/* Advanced Frontal Sinus Surgery Course · admin records theme.
 *
 * While the Frontal Sinus course is selected, the lab station layout and the
 * pre-course assessment dashboard wear the course's Brand Guidelines v1.0
 * (kept in private/frontal-sinus/branding/): a navy head carrying the reversed
 * lockup over the quiet ostium pattern (white at 13%), a white and ice field,
 * Outfit for headlines and capital labels (+140 letter-spacing), Source Sans 3
 * for reading, royal for headings and key facts, sky for card borders and
 * rules, azure for graphics only, rounded cards, and a single coral point per
 * page. Every rule is scoped to body.theme-afs, set by each page's script, so
 * every other course keeps the house style.
 */
@font-face{font-family:'Outfit';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/outfit-latin.woff2) format('woff2')}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/source-sans-3-latin.woff2) format('woff2')}

body.theme-afs {
  --afs-navy: #0B285F; --afs-royal: #0507E0; --afs-azure: #05A3FB; --afs-coral: #E9574A;
  --afs-sky: #B3D2E9; --afs-ice: #F4F7FA; --afs-text: #3D5480;
  --afs-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Ccircle cx='18' cy='18' r='6' fill='none' stroke='%23fff' stroke-opacity='.13' stroke-width='1.6'/%3E%3Ccircle cx='18' cy='21.5' r='2' fill='%23fff' fill-opacity='.13'/%3E%3C/svg%3E");
  --afs-head: 'Outfit', 'Century Gothic', Arial, sans-serif;
  --afs-read: 'Source Sans 3', Arial, sans-serif;
}
.afs-lockup { display: none; }
body.theme-afs .afs-lockup { display: block; flex: none; line-height: 0; }
body.theme-afs .afs-lockup svg { display: block; width: 168px; height: auto; }

/* ================= Lab station layout (/lab-stations) ================= */
body.theme-afs.page-stations {
  --gold: var(--afs-royal); --gold-soft: var(--afs-azure); --charcoal: var(--afs-navy); --line: var(--afs-sky);
  font-family: var(--afs-read); background: var(--afs-ice); color: var(--afs-navy);
}
body.theme-afs.page-stations .mast h1, body.theme-afs.page-stations .st-title,
body.theme-afs.page-stations .core h2, body.theme-afs.page-stations .notes h3,
body.theme-afs.page-stations .gate h2, body.theme-afs.page-stations .empty h3,
body.theme-afs.page-stations .tally .t-value { font-family: var(--afs-head); }
/* Capital labels: Outfit SemiBold, +140 tracking, royal on white. */
body.theme-afs.page-stations .st-eyebrow, body.theme-afs.page-stations .slot-name,
body.theme-afs.page-stations .notes h3, body.theme-afs.page-stations .core .eyebrow,
body.theme-afs.page-stations .mast .eyebrow {
  font-family: var(--afs-head); font-weight: 600; letter-spacing: .14em; color: var(--afs-royal);
}
body.theme-afs.page-stations .gate .eyebrow { color: var(--afs-royal); }
body.theme-afs.page-stations .p-obj::before, body.theme-afs.page-stations .p-obj::after { color: var(--afs-royal); }

/* The navy head: logo top left, reversed, on the quiet pattern. */
body.theme-afs.page-stations .mast {
  background: var(--afs-pattern) 0 0 / 36px 36px, var(--afs-navy);
  border: 0; border-radius: 16px; padding: 26px 28px 24px; margin-bottom: 30px;
  box-shadow: 0 14px 34px rgba(11,40,95,.18); align-items: center;
}
body.theme-afs.page-stations .mast > div:first-child { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
body.theme-afs.page-stations .mast .afs-lockup { padding-right: 24px; border-right: 1px solid rgba(179,210,233,.35); }
body.theme-afs.page-stations .mast .eyebrow { color: var(--afs-sky); }
body.theme-afs.page-stations .mast h1 { color: #fff; font-weight: 700; letter-spacing: 0; }
body.theme-afs.page-stations .mast h1 .thin { color: var(--afs-sky); font-weight: 500; }
body.theme-afs.page-stations .mast .sub { color: #D5E4F2; }
body.theme-afs.page-stations .mast nav a.link { color: #D5E4F2; }
body.theme-afs.page-stations .mast nav a.link:hover { color: #fff; }
body.theme-afs.page-stations .mast select { background: #fff; color: var(--afs-navy); border-color: var(--afs-sky); border-radius: 8px; }
body.theme-afs.page-stations .mast .btn.ghost { background: transparent; border-color: rgba(179,210,233,.6); color: #fff; border-radius: 8px; }
body.theme-afs.page-stations .mast .btn.ghost:hover { background: #fff; border-color: #fff; color: var(--afs-navy); }
body.theme-afs.page-stations .mast .btn.ghost[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--afs-navy); }
body.theme-afs.page-stations .btn { background: var(--afs-royal); border-color: var(--afs-royal); color: #fff; border-radius: 8px; font-family: var(--afs-head); }
body.theme-afs.page-stations .btn:hover { background: var(--afs-navy); border-color: var(--afs-navy); }

/* People sit in rounded rectangles: each station is a white card with a sky border. */
body.theme-afs.page-stations .station {
  background: #fff; border: 1px solid var(--afs-sky); border-radius: 16px;
  box-shadow: 0 8px 22px rgba(11,40,95,.07);
}
body.theme-afs.page-stations .station:hover { border-color: var(--afs-azure); box-shadow: 0 16px 34px rgba(11,40,95,.14); }
body.theme-afs.page-stations .st-num {
  font-family: var(--afs-head); font-weight: 700; letter-spacing: -2px;
  color: rgba(5,7,224,.06); -webkit-text-stroke: 1.6px rgba(5,7,224,.4); paint-order: stroke fill;
}
body.theme-afs.page-stations .station:hover .st-num { -webkit-text-stroke-color: rgba(5,7,224,.75); }
body.theme-afs.page-stations .st-title { color: var(--afs-navy); font-weight: 700; }
body.theme-afs.page-stations .st-meta { color: var(--afs-text); }
body.theme-afs.page-stations .st-rule { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--afs-sky), rgba(179,210,233,.35) 50%, transparent); }
body.theme-afs.page-stations .person, body.theme-afs.page-stations .slot { border-bottom-color: #E6EEF6; }
body.theme-afs.page-stations .p-name { color: var(--afs-navy); font-weight: 600; }
body.theme-afs.page-stations .p-sub, body.theme-afs.page-stations .p-obj,
body.theme-afs.page-stations .pip-label { color: var(--afs-text); }
body.theme-afs.page-stations .p-level, body.theme-afs.page-stations .slot-tag {
  color: var(--afs-navy); background: var(--afs-ice); border-color: var(--afs-sky); border-radius: 20px;
}
body.theme-afs.page-stations .p-obs { color: #fff; background: var(--afs-navy); border-color: var(--afs-navy); border-radius: 20px; }
body.theme-afs.page-stations .p-note { border-left-color: var(--afs-azure); color: var(--afs-text); }
/* Confidence pips: navy tints, light to full, so the order reads in greyscale. */
body.theme-afs.page-stations .pip { border-radius: 3px; }
body.theme-afs.page-stations .pip, body.theme-afs.page-stations .pip.on-1 { background: #E7E9EF; }
body.theme-afs.page-stations .pip.on-1 { box-shadow: inset 0 0 0 1px var(--afs-sky); }
body.theme-afs.page-stations .pip.on-2 { background: #B6BECF; }
body.theme-afs.page-stations .pip.on-3 { background: #798AAB; }
body.theme-afs.page-stations .pip.on-4 { background: #3C537F; }
body.theme-afs.page-stations .pip.on-5 { background: var(--afs-navy); }

/* The faculty island is the navy panel, with the course's one coral point. */
body.theme-afs.page-stations .core {
  background: var(--afs-pattern) 0 0 / 36px 36px, var(--afs-navy);
  border: 0; border-radius: 16px; color: #fff; box-shadow: 0 18px 40px rgba(11,40,95,.22);
}
body.theme-afs.page-stations .core::before { display: none; }
body.theme-afs.page-stations .core .eyebrow { color: var(--afs-sky); display: flex; align-items: center; gap: 9px; }
body.theme-afs.page-stations .core .eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--afs-coral); flex: none;
}
body.theme-afs.page-stations .core h2 { color: #fff; font-weight: 700; }
body.theme-afs.page-stations .core p { color: #D5E4F2; }
body.theme-afs.page-stations .core strong { color: #fff; }
body.theme-afs.page-stations .core a.link { color: #fff; font-weight: 600; text-decoration-color: var(--afs-azure); }
body.theme-afs.page-stations .notes, body.theme-afs.page-stations .paths {
  background: #fff; border: 1px solid var(--afs-sky); border-left: 4px solid var(--afs-royal); border-radius: 16px;
}
body.theme-afs.page-stations .notes p, body.theme-afs.page-stations .notes li { color: var(--afs-text); }
body.theme-afs.page-stations .skeleton { background: #fff; border-color: var(--afs-sky); border-top-color: var(--afs-sky); border-radius: 16px; }
body.theme-afs.page-stations .empty { background: #fff; border-color: var(--afs-sky); border-radius: 16px; }
body.theme-afs.page-stations .empty .glyph { font-family: var(--afs-head); -webkit-text-stroke-color: rgba(5,7,224,.45); }
@media print {
  body.theme-afs.page-stations { background: #fff; }
  body.theme-afs.page-stations .mast, body.theme-afs.page-stations .core { box-shadow: none; }
}

/* ============ Pre-course assessment dashboard (/precourse-dashboard) ============ */
body.theme-afs.page-precourse {
  --teal: var(--afs-navy); --teal-dark: var(--afs-royal); --teal-light: #E7E9EF;
  --gold: var(--afs-azure); --gold-light: var(--afs-ice);
  --cream: var(--afs-ice); --charcoal: var(--afs-navy); --text: #1B2F55; --muted: var(--afs-text);
  --line: var(--afs-sky); --specialty: #3C537F;
  font-family: var(--afs-read); background: var(--afs-ice);
}
body.theme-afs.page-precourse .topbar {
  background: var(--afs-pattern) 0 0 / 36px 36px, var(--afs-navy); padding: 20px 28px;
}
body.theme-afs.page-precourse .topbar-title { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
body.theme-afs.page-precourse .topbar .afs-lockup { padding-right: 22px; border-right: 1px solid rgba(179,210,233,.35); }
body.theme-afs.page-precourse .topbar h1 { font-family: var(--afs-head); font-weight: 700; font-size: 20px; }
body.theme-afs.page-precourse .topbar .sub { color: #D5E4F2; opacity: 1; }
body.theme-afs.page-precourse .topbar a { color: #D5E4F2; }
body.theme-afs.page-precourse .topbar a:hover { color: #fff; }
body.theme-afs.page-precourse .card-head h2, body.theme-afs.page-precourse .kpi .k-value,
body.theme-afs.page-precourse .gate h2 { font-family: var(--afs-head); font-weight: 700; }
body.theme-afs.page-precourse .kpi .k-value .unit { font-family: var(--afs-read); }
body.theme-afs.page-precourse .kpi .k-label, body.theme-afs.page-precourse .section-title,
body.theme-afs.page-precourse .controls label, body.theme-afs.page-precourse thead th,
body.theme-afs.page-precourse .course-chip {
  font-family: var(--afs-head); font-weight: 600; letter-spacing: .14em;
}
body.theme-afs.page-precourse .kpi .k-label { color: var(--afs-royal); }
body.theme-afs.page-precourse thead th { color: var(--afs-navy); background: var(--afs-ice); }
body.theme-afs.page-precourse .card, body.theme-afs.page-precourse .kpi { border-radius: 16px; box-shadow: 0 6px 20px rgba(11,40,95,.06); }
body.theme-afs.page-precourse .scope { border-radius: 16px; border-left-color: var(--afs-royal); }
/* The one coral point on the page: the highlighted KPI. */
body.theme-afs.page-precourse .kpi.accent { border-left-color: var(--afs-coral); }
body.theme-afs.page-precourse .course-chip { background: var(--afs-ice); color: var(--afs-royal); border: 1px solid var(--afs-sky); }
body.theme-afs.page-precourse .tag.p-high { background: var(--afs-navy); color: #fff; }
body.theme-afs.page-precourse .tag.p-mid { background: #E1EDF7; color: var(--afs-navy); }
body.theme-afs.page-precourse .tag.p-low { background: var(--afs-ice); color: var(--afs-text); box-shadow: inset 0 0 0 1px var(--afs-sky); }
body.theme-afs.page-precourse .btn { background: var(--afs-royal); font-family: var(--afs-head); }
body.theme-afs.page-precourse .btn:hover { background: var(--afs-navy); }
body.theme-afs.page-precourse .btn.ghost { background: #fff; color: var(--afs-navy); border-color: var(--afs-sky); }
body.theme-afs.page-precourse .btn.ghost:hover { background: var(--afs-ice); }
body.theme-afs.page-precourse .count-pill, body.theme-afs.page-precourse .controls select { border-color: var(--afs-sky); }
body.theme-afs.page-precourse .controls select:focus { border-color: var(--afs-royal); }
body.theme-afs.page-precourse tbody tr:hover { background: var(--afs-ice); }
body.theme-afs.page-precourse .grid-line { stroke: #E6EEF6; }
body.theme-afs.page-precourse .chart svg text { font-family: var(--afs-read); }
body.theme-afs.page-precourse .chart svg .chart-value, body.theme-afs.page-precourse .chart svg .donut-num { font-family: var(--afs-head); }
@media print {
  body.theme-afs.page-precourse { background: #fff; }
}

/* Frontal Sinus participant distribution: the table instructors of each
   session sit on ice cards with the royal edge, and the four-session rotation
   is a quiet table in navy and brand text blue. */
body.theme-afs.page-stations .fs-session { background: var(--afs-ice); border-color: var(--afs-sky); border-left-color: var(--afs-royal); border-radius: 10px; }
body.theme-afs.page-stations .fs-instructor { color: var(--afs-navy); font-family: var(--afs-read); }
body.theme-afs.page-stations .fs-matrix th, body.theme-afs.page-stations .fs-matrix td { border-bottom-color: #E6EEF6; }
body.theme-afs.page-stations .fs-matrix thead th { color: var(--afs-royal); font-family: var(--afs-head); font-weight: 600; letter-spacing: .14em; }
body.theme-afs.page-stations .fs-matrix tbody th { color: var(--afs-navy); font-family: var(--afs-head); }
body.theme-afs.page-stations .fs-matrix td, body.theme-afs.page-stations .fs-matrix .fs-pair { color: var(--afs-text); }
body.theme-afs.page-stations .day-tab.active { color: var(--afs-navy); background: #fff; border-color: var(--afs-royal); }
body.theme-afs.page-stations .day-tab.active .t-when { color: var(--afs-royal); }
body.theme-afs.page-stations .day-head h2 { color: var(--afs-navy); font-family: var(--afs-head); }
body.theme-afs.page-stations .day-head .d-when { color: var(--afs-royal); }
body.theme-afs.page-stations .fs-cadaver { background: var(--afs-ice); border-color: var(--afs-sky); border-radius: 10px; }
body.theme-afs.page-stations .fs-cadaver strong, body.theme-afs.page-stations .fs-matrix .fs-cad-tag { color: var(--afs-navy); font-family: var(--afs-head, inherit); }
