/* FusionTrace Academy: the fusiontrace.io system, plainer. Serif headings, a 17 px body, 12 px minimum text,
   hairline rules, corners of 0 to 4 px, no glows, no shadows, no shaded callouts. Light and dark. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/source-serif-var.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plex-mono-400.woff2") format("woff2"); }
:root {
  --navy: #0B1528; --ink: #0B1528; --body: #2B3547; --muted: #4A5568; --paper: #F4F5F7; --white: #FFFFFF;
  --line: #D5DAE2; --line-strong: #6B778C; --blue: #1F4FCC; --blue-light: #8FB4FF; --ok: #1B6B3A; --bad: #A3261A;
  --serif: "Source Serif", Georgia, serif; --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", sans-serif; --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --r: 3px; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #F1F4F9; --body: #D7DDE7; --muted: #A9B3C2; --paper: #0E1729; --white: #13213A; --line: #2A3A57; --line-strong: #6B778C; --blue: #8FB4FF; --ok: #7FD69E; --bad: #FF9C8F; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.65 var(--sans); color: var(--body); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 980px; width: 100%; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 16px; top: -80px; background: #fff; color: #0B1528; padding: 12px 16px; border: 2px solid #0B1528; border-radius: var(--r); font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }
.bar { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { color: #fff; text-decoration: none; font: 600 20px/1 var(--serif); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.brand-sub { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.bar nav a, .bar nav .link { color: rgba(255,255,255,.86); font: 600 14px/1 var(--sans); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.bar nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue-light); }
main { flex: 1; padding-top: 32px; padding-bottom: 56px; }
h1 { font: 600 34px/1.2 var(--serif); color: var(--ink); margin-bottom: 16px; }
h2 { font: 600 22px/1.3 var(--serif); color: var(--ink); margin: 32px 0 12px; }
p, ul, ol { margin-bottom: 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--ink); }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 15px; }
.mono { font-family: var(--mono); }
.big { font-size: 22px; letter-spacing: .12em; }
.wrapword { word-break: break-all; }
.mt { margin-top: 32px; }
.status-line { border-left: 3px solid var(--blue); padding: 4px 0 4px 12px; color: var(--ink); font-weight: 600; }
.done { border-left: 3px solid var(--ok); padding: 4px 0 4px 12px; color: var(--ink); margin-bottom: 20px; }
.error { color: var(--bad); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.card, .panel { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--white); margin: 16px 0; }
.card h2, .panel h2 { margin-top: 0; }
.stack { display: grid; gap: 14px; max-width: 640px; margin: 12px 0 20px; }
.stack.compact { margin: 8px 0 16px; }
.field { display: grid; gap: 4px; }
.field span { font-weight: 600; color: var(--ink); font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }
input, select, textarea { font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 12px; min-height: 44px; width: 100%; }
input[type="radio"], input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--blue); }
button, .button { font: 600 16px/1 var(--sans); background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: var(--r); padding: 0 20px; min-height: 48px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (prefers-color-scheme: dark) { button, .button { color: #0B1528; } }
button.secondary { background: transparent; color: var(--blue); }
button.link { background: none; border: 0; padding: 0; min-height: 44px; color: inherit; font: inherit; text-decoration: underline; }
.bar button.link { text-decoration: none; }
form.inline { display: inline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form select, .inline-form input { width: auto; min-width: 120px; }
.inline-form button { min-height: 44px; padding: 0 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
fieldset.q { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 6px; background: var(--white); }
fieldset.q legend { font-weight: 600; color: var(--ink); padding: 0 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; min-height: 44px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0 20px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stamp { display: inline-block; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 2px; padding: 2px 6px; color: var(--ok); }
.s-suspended, .s-revoked, .s-expired, .s-none { color: var(--bad); }
.s-pending-issue { color: var(--muted); border-style: dashed; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.kpis div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--white); display: grid; }
.kpis .k { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpis .v { font: 600 24px/1.2 var(--serif); color: var(--ink); }
.clock { font: 500 15px/1.4 var(--mono); color: var(--ink); position: sticky; top: 0; background: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); z-index: 2; }
.certificate { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 32px; background: var(--white); max-width: 760px; }
.certificate .holder { font: 600 26px/1.3 var(--serif); color: var(--ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 20px 0; }
.facts dt { font: 500 12px/1.8 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot { background: var(--navy); color: rgba(255,255,255,.78); font-size: 14px; padding: 24px 0; }
.foot a { color: var(--blue-light); }
@media (max-width: 600px) { h1 { font-size: 28px; } .facts { grid-template-columns: 1fr; } .certificate { padding: 20px; } }
@media print { .bar, .foot, .skip { display: none; } body { background: #fff; color: #000; } .certificate { border: 1px solid #000; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
