/* ═══════════════════════════════════════════════════════════════════════════
   PRESCIENT — FDI Deadline Calculator
   Stratalis Brand System v1.0 — paper / navy / terracotta
   Legacy variable names (--bg, --accent, --danger…) are kept and remapped so
   app.js keeps working without change.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ---------- Stratalis tokens ---------- */
  --st-navy:            #1C2B3A;
  --st-navy-deep:       #131F2A;
  --st-navy-soft:       #2A3B4D;
  --st-terracotta:      #C4642A;
  --st-terracotta-deep: #A8521E;
  --st-terracotta-soft: #E2A57A;
  --st-grey-700:        #4A5560;
  --st-grey-500:        #A8ACB1;
  --st-grey-300:        #DCDCDC;
  --st-grey-100:        #EFEEEA;
  --st-grey-50:         #F7F6F2;
  --st-paper:           #FBFAF6;
  --st-ink:             #1C2B3A;
  --st-ink-soft:        #4A5560;
  --st-line:            #E5E2DA;

  --st-sans: "Helvetica Neue", "Arial", "Liberation Sans", system-ui, sans-serif;
  --st-mono: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  --st-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --st-shadow-card: 0 1px 0 rgba(28,43,58,0.04), 0 12px 32px -16px rgba(28,43,58,0.18);

  /* ---------- Legacy names remapped (used by app.js inline styles) -------- */
  --bg:       var(--st-paper);
  --surface:  var(--st-grey-50);
  --card:     #FFFFFF;
  --card2:    var(--st-grey-100);
  --border:   var(--st-line);
  --accent:   var(--st-navy);
  --accent-h: var(--st-navy);
  --accent-l: var(--st-navy-soft);
  --success:  var(--st-navy);
  --warning:  var(--st-ink-soft);
  --danger:   var(--st-terracotta-deep);
  --info:     var(--st-navy-soft);
  --text:     var(--st-ink);
  --muted:    var(--st-ink-soft);
  --fg:       var(--st-ink);
  --radius:   0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--st-paper); }

body {
  background: var(--st-paper);
  color: var(--st-ink);
  font-family: var(--st-sans);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--st-navy); color: var(--st-paper); }

:focus-visible {
  outline: 2px solid var(--st-navy);
  outline-offset: 2px;
}

/* ── Stratalis mark (pure CSS, 4 bands) ─────────────────────────────────── */
.st-mark { display: inline-grid; gap: 3px; width: 40px; flex-shrink: 0; }
.st-mark > i { display: block; height: 6px; background: var(--st-navy); }
.st-mark > i:nth-child(1) { background: var(--st-navy);       width: 88%; }
.st-mark > i:nth-child(2) { background: var(--st-terracotta); width: 100%; height: 14px; }
.st-mark > i:nth-child(3) { background: var(--st-grey-500);   width: 96%; }
.st-mark > i:nth-child(4) { background: var(--st-grey-300);   width: 80%; height: 4px; }

.st-mark--sm { width: 22px; gap: 2px; }
.st-mark--sm > i { height: 3px; }
.st-mark--sm > i:nth-child(2) { height: 8px; }
.st-mark--sm > i:nth-child(4) { height: 2px; }

/* ── Layout — header ────────────────────────────────────────────────────── */
.app-header {
  background: var(--st-paper);
  border-bottom: 1px solid var(--st-line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.app-lockup .text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-wordmark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--st-navy);
  text-transform: uppercase;
  line-height: 1;
}

.app-sub {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  line-height: 1;
}

.app-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  border-left: 1px solid var(--st-line);
  padding-left: 16px;
}

.app-user {
  margin-left: auto;
  font-size: 12px;
  color: var(--st-ink-soft);
}

/* ── Tab navigation ─────────────────────────────────────────────────────── */
.nav-tabs {
  background: var(--st-paper);
  border-bottom: 1px solid var(--st-line);
  display: flex;
  padding: 0 32px;
  gap: 8px;
}

.nav-tab {
  padding: 14px 18px 12px;
  font-family: var(--st-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 180ms var(--st-ease), border-color 180ms var(--st-ease);
}
.nav-tab:hover  { color: var(--st-navy); }
.nav-tab.active { color: var(--st-navy); border-bottom-color: var(--st-terracotta); }

.nav-tab--disclaimer { color: var(--st-grey-500); }
.nav-tab--disclaimer:hover { color: var(--st-ink-soft); }
.nav-tab--disclaimer.active { color: var(--st-navy); border-bottom-color: var(--st-terracotta); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.main-content { padding: 32px; max-width: 1280px; margin: 0 auto; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  padding: 24px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--st-line);
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-terracotta);
}

/* Section icons — house icon system: 1.5px square-cap navy strokes,
   exactly one terracotta bar per glyph (same family as stratalis.eu) */
.section-icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
  color: var(--st-navy);
}
.section-icon .accent { fill: var(--st-terracotta); }

/* Standalone section heading (outside card headers) */
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Form elements ──────────────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--st-line);
  border-radius: 0;
  padding: 8px 2px;
  color: var(--st-ink);
  font-size: 14px;
  font-family: var(--st-sans);
  outline: none;
  transition: border-color 180ms var(--st-ease);
  appearance: none;
}

input[type="date"],
input[type="number"] { font-variant-numeric: tabular-nums; }

input::placeholder, textarea::placeholder { color: var(--st-grey-500); }

input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--st-navy);
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--st-navy);
  box-shadow: 0 1px 0 0 var(--st-navy);
}

input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--st-navy);
  cursor: pointer;
  flex-shrink: 0;
}

input[type="radio"] { accent-color: var(--st-navy); }

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='none' stroke='%231C2B3A' stroke-width='1.5' d='M1.5 3.5L5 7l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.field { display: flex; flex-direction: column; }

/* Table-style rows for RFI sections */
.table-head, .table-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.table-head span, .row-num {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  font-weight: 500;
}

.row-num { font-variant-numeric: tabular-nums; }

.days-badge {
  border: 1px solid var(--st-line);
  background: var(--st-grey-50);
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--st-grey-500);
  text-align: center;
  min-width: 54px;
}
.days-badge.has-value {
  color: var(--st-navy);
  border-color: var(--st-navy);
  background: #FFFFFF;
}
.days-badge.is-invalid {
  color: var(--st-terracotta-deep);
  border-color: var(--st-terracotta-deep);
  background: #FFFFFF;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 0;
  font-family: var(--st-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms var(--st-ease), color 180ms var(--st-ease), border-color 180ms var(--st-ease);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Primary — navy solid */
.btn-primary {
  background: var(--st-navy);
  color: var(--st-paper);
  border: 1px solid var(--st-navy);
}
.btn-primary:hover:not(:disabled) { background: var(--st-navy-deep); border-color: var(--st-navy-deep); }

/* Accent — terracotta, reserved for the decisive CTA */
.btn-accent {
  background: var(--st-terracotta);
  color: var(--st-paper);
  border: 1px solid var(--st-terracotta);
}
.btn-accent:hover:not(:disabled) { background: var(--st-terracotta-deep); border-color: var(--st-terracotta-deep); }

/* Secondary — ghost */
.btn-secondary {
  background: transparent;
  color: var(--st-navy);
  border: 1px solid var(--st-navy);
}
.btn-secondary:hover:not(:disabled) { background: var(--st-navy); color: var(--st-paper); }

/* Danger — ghost terracotta-deep */
.btn-danger {
  background: transparent;
  color: var(--st-terracotta-deep);
  border: 1px solid var(--st-terracotta-deep);
}
.btn-danger:hover:not(:disabled) { background: var(--st-terracotta-deep); color: var(--st-paper); }

.btn-sm { padding: 6px 12px; font-size: 11px; letter-spacing: 0.06em; }

/* ── Deadline result cards ──────────────────────────────────────────────── */
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) { .deadline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .deadline-grid { grid-template-columns: 1fr; } }

.deadline-card {
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  border-top: 2px solid var(--st-navy);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 112px;
}

.deadline-card--final { border-top-color: var(--st-terracotta); }

.deadline-card .d-date {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--st-navy) !important;   /* neutralises legacy inline colours */
}
.deadline-card--final .d-date { color: var(--st-terracotta-deep) !important; }

.deadline-card .d-day {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
}

.deadline-card .d-label {
  margin-top: auto;
  padding-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
}

/* Suspension stat tiles (inline-styled divs in app.html get these) */
.stat-tile {
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  padding: 14px 18px;
}
.stat-tile .stat-value {
  font-size: 20px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--st-navy);
}
.stat-tile .stat-label {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: transparent;
  color: var(--st-ink-soft);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--st-navy);
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--st-line);
  color: var(--st-ink);
  font-variant-numeric: tabular-nums;
}

tr:last-child td { border-bottom: none; }
tr:hover td      { background: var(--st-grey-50); }

.tbl-wrap {
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  overflow: hidden;
  margin-bottom: 16px;
}

/* Inputs inside tables keep their underline but sit tighter */
td input[type="date"], td input[type="text"] { padding: 4px 2px; }

/* ── Timeline ───────────────────────────────────────────────────────────── */
.timeline { padding: 8px 0; }

.tl-item { display: flex; gap: 0; position: relative; }

.tl-date {
  width: 120px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 20px;
  padding-top: 2px;
}

.tl-date .date-str {
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--st-ink);
}
.tl-date .day-str {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
}

.tl-dot-col {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* square markers — sharp corners are the house style */
.tl-dot {
  width: 8px; height: 8px;
  border-radius: 0;
  background: var(--st-grey-300);
  border: none;
  flex-shrink: 0;
  margin-top: 6px;
}
.tl-item.important .tl-dot {
  background: var(--st-navy);
  width: 12px; height: 12px;
  margin-top: 4px;
}

.tl-line {
  width: 1px;
  background: var(--st-line);
  flex-grow: 1;
  min-height: 20px;
  margin-top: 4px;
}

.tl-content { padding: 0 0 24px 20px; flex: 1; }

.tl-label {
  font-size: 13px;
  color: var(--st-ink);
  line-height: 1.4;
}

.tl-item.important .tl-label {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  border-left: 2px solid var(--st-navy);
  padding: 8px 14px;
  border-radius: 0;
  color: var(--st-navy);
}

.tl-item.important .tl-date .date-str {
  color: var(--st-navy);
  font-weight: 500;
  font-size: 13px;
}

.tl-legal {
  font-size: 11px;
  color: var(--st-ink-soft);
  margin-top: 4px;
}

/* Final deadline — the only terracotta milestone */
.tl-item.important.tl-item--final .tl-dot { background: var(--st-terracotta); }
.tl-item.important.tl-item--final .tl-label {
  border-left-color: var(--st-terracotta);
  color: var(--st-terracotta-deep);
}
.tl-item.important.tl-item--final .tl-date .date-str { color: var(--st-terracotta-deep); }

/* ── Badges / tags — bordered rectangles, caption style ─────────────────── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  background: transparent;
}
.badge-success { color: var(--st-navy);            border-color: var(--st-navy); }
.badge-warning { color: var(--st-ink-soft);        border-color: var(--st-grey-500); }
.badge-danger  { color: var(--st-terracotta-deep); border-color: var(--st-terracotta-deep); }
.badge-info    { color: var(--st-navy-soft);       border-color: var(--st-navy-soft); }
.badge-muted   { color: var(--st-grey-500);        border-color: var(--st-grey-300); }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(28, 43, 58, .45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--st-ease);
  padding: 24px;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  border-top: 2px solid var(--st-navy);
  border-radius: 0;
  box-shadow: var(--st-shadow-card);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  transform: translateY(16px);
  transition: transform 240ms var(--st-ease);
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--st-navy);
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 0;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  background: var(--st-grey-50);
  border-left: 2px solid var(--st-grey-500);
  color: var(--st-ink);
}
.alert.show { display: block; }
.alert-error   { border-left-color: var(--st-terracotta-deep); color: var(--st-terracotta-deep); }
.alert-success { border-left-color: var(--st-navy); color: var(--st-navy); }
.alert-info    { border-left-color: var(--st-navy-soft); color: var(--st-ink-soft); }

/* ── Separator ──────────────────────────────────────────────────────────── */
.sep { height: 1px; background: var(--st-line); margin: 16px 0; }

/* ── Utils ──────────────────────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mb-0   { margin-bottom: 0 !important; }
.text-muted { color: var(--st-ink-soft); }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.text-success { color: var(--st-navy); }
.text-warning { color: var(--st-ink-soft); }
.text-danger  { color: var(--st-terracotta-deep); }
.text-accent  { color: var(--st-terracotta); }
.fw-700 { font-weight: 600; }
.w-full { width: 100%; }

/* ── Site footer — discreet builder credit ──────────────────────────────── */
.app-footer {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  opacity: 0.75;
  transition: opacity 180ms var(--st-ease);
}
.app-footer:hover, .app-footer:focus-within { opacity: 1; }
.app-footer a {
  color: inherit;
  text-decoration: none;
  margin-left: 0.4em;
  transition: color 180ms var(--st-ease);
}
.app-footer a:hover, .app-footer a:focus-visible {
  color: var(--st-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Login / set-password page ──────────────────────────────────────────── */
.login-page {
  min-height: calc(100vh - 64px - 48px);   /* header + footer: no scroll on a short page */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 32px;
}

.login-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.login-lockup .login-wordmark {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--st-navy);
  /* offset optical centre created by tracking */
  padding-left: 0.32em;
}

.login-lockup .login-baseline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  padding-left: 0.18em;
}

.login-rule {
  width: 48px;
  height: 2px;
  background: var(--st-terracotta);
  border: 0;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  border-radius: 0;
  padding: 40px 36px;
}

.login-footnote {
  font-size: 11px;
  color: var(--st-ink-soft);
  text-align: center;
  line-height: 1.7;
}

/* Legacy classes kept for safety */
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo-badge {
  background: var(--st-navy);
  color: var(--st-paper);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 0;
}
.logo-text { font-size: 15px; font-weight: 500; color: var(--st-navy); }

.request-link {
  color: var(--st-navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}
.request-link:hover { color: var(--st-terracotta-deep); }

/* Login modal (embedded styles in login.html reference these) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 43, 58, .45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  border-top: 2px solid var(--st-navy);
  border-radius: 0;
  box-shadow: var(--st-shadow-card);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box .field { margin-bottom: 16px; }
.modal-box textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

.modal-success { display: none; text-align: center; padding: 16px 0 4px; }
.modal-success p { color: var(--st-ink); line-height: 1.6; }

/* ── Disclaimer ─────────────────────────────────────────────────────────── */
.disclaimer-block {
  background: var(--st-grey-50);
  border-left: 2px solid var(--st-terracotta);
  border-radius: 0;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.disclaimer-block p { margin: 0; line-height: 1.7; }
.disclaimer-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--st-terracotta-deep);
  margin: 0 0 10px 0;
}

/* ── Date format hint ───────────────────────────────────────────────────── */
.date-fmt-hint {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--st-grey-500);
  text-transform: none;
  margin-left: 4px;
  vertical-align: middle;
}

/* Toolbar date-format link */
.date-fmt-badge {
  font-size: 11px;
  color: var(--st-ink-soft);
  padding: 5px 10px;
  border: 1px solid var(--st-line);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: border-color 180ms var(--st-ease), color 180ms var(--st-ease);
}
.date-fmt-badge:hover { border-color: var(--st-navy); color: var(--st-navy); }

/* ── Audit log filters ──────────────────────────────────────────────────── */
.log-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) repeat(2, 140px) auto;
  gap: 16px 20px;
  align-items: end;
  background: #FFFFFF;
  border: 1px solid var(--st-line);
  padding: 16px 20px 18px;
  margin-bottom: 12px;
}
.log-filter--clear { padding-bottom: 2px; }
.log-count {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  font-variant-numeric: tabular-nums;
  min-height: 16px;
  margin-bottom: 10px;
}
.log-more { display: flex; justify-content: center; margin-top: 4px; }
@media (max-width: 1000px) {
  .log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-filter--search { grid-column: 1 / -1; }
}

/* ── Settings sidebar ───────────────────────────────────────────────────── */
.settings-layout { display: flex; gap: 0; min-height: 400px; }

.settings-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--st-line);
  padding: 4px 0;
  margin-right: 32px;
}

.settings-nav-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  font-family: var(--st-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-ink-soft);
  background: transparent;
  border: none;
  border-right: 2px solid transparent;
  margin-right: -1px;
  cursor: pointer;
  transition: color 180ms var(--st-ease), border-color 180ms var(--st-ease);
  border-radius: 0;
}
.settings-nav-item:hover  { color: var(--st-navy); }
.settings-nav-item.active { color: var(--st-navy); border-right-color: var(--st-terracotta); }

.settings-section        { display: none; flex: 1; }
.settings-section.active { display: block; }

/* ── Print — the Results tab becomes a clean deadline memo ──────────────── */
@media print {
  body { background: #FFFFFF; font-size: 12px; }
  .app-header, .nav-tabs, .btn, .date-fmt-badge, .alert, .app-footer { display: none !important; }
  .main-content { padding: 0; max-width: none; }
  .card, .tbl-wrap, .deadline-card, .stat-tile { border-color: #999; break-inside: avoid; }
  .deadline-card { border-top-color: var(--st-navy); }
  .deadline-card--final { border-top-color: var(--st-terracotta); }
  tr:hover td { background: transparent; }
  a { color: inherit; text-decoration: none; }
}

/* ── Country switch: Belgium (default) / Luxembourg / France ─────────────── */
.only-lu, .only-fr, .only-ext { display: none; }
body[data-country="LU"] .only-be, body[data-country="FR"] .only-be { display: none !important; }
body[data-country="LU"] .only-fr, body[data-country="FR"] .only-lu { display: none !important; }
body[data-country="LU"] .only-lu, body[data-country="FR"] .only-fr,
body[data-country="LU"] .only-ext, body[data-country="FR"] .only-ext { display: block; }
body[data-country="LU"] .deadline-grid.only-ext, body[data-country="FR"] .deadline-grid.only-ext { display: grid; }
