/* Easy Kit family — Graphite Mint theme (Easy Verifier site).
   Every colour on the site is a token in :root below; nothing else holds a colour literal.
   Fonts: IBM Plex Sans / Mono, self-hosted (SIL OFL 1.1, see fonts/OFL.txt). */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #121413; --bg-sunken: #0E100F; --bg-hover: #181B1A;
  --line-subtle: #1F2321; --line: #262B29; --line-strong: #2C3230; --line-header: #232826;
  --text-strong: #EAEDEA; --text: #DCE0DD; --text-2: #ABB3AE; --text-nav: #B5BCB7;
  --text-muted: #8C9590; --text-dim: #6E7772;
  --accent: #3CF5A8; --accent-hover: #B2EDCF;
  --accent-soft: rgba(60, 245, 168, 0.08); --accent-line: rgba(60, 245, 168, 0.35);
  /* Glow (T127, from the design canvas). A shadow may only use these tokens, on the
     selectors the boards glow: eyebrow, active sidebar item, score number (text);
     current family dot, bar fill (dot); primary button, highlighted card (ring); codebox (box). */
  --glow-text: 0 0 12px rgba(60, 245, 168, 0.35);
  --glow-dot: 0 0 8px #3CF5A8;
  --glow-ring: 0 0 0 1px rgba(60, 245, 168, 0.25), 0 0 18px rgba(60, 245, 168, 0.25);
  --glow-box: 0 0 0 1px rgba(60, 245, 168, 0.2), 0 0 24px rgba(60, 245, 168, 0.12);
  --on-accent: #0E100F; --dot-idle: #3A413E;
  --role-backend: #7AA7E8; --role-infra: #E3A66B; --role-frontend: #B39AE8; --role-qa: #86CFA0;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 56px;
  --header-h: 64px; --sidebar-w: 248px; --content-max: 920px;
  --container-max: 1280px;
  --selection: rgba(60, 245, 168, 0.25);
}

/* ---- base (Appendix A §Components) ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--selection); color: var(--text-strong); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
strong, b, th, h1, h2, h3, h4 { font-weight: 600; }

h1 { margin: 0; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-strong); }
h2 { margin: 0 0 var(--s-4); font-size: 20px; line-height: 1.3; color: var(--text-strong); }
h3 { margin: var(--s-6) 0 var(--s-2); font-size: 15px; line-height: 1.4; color: var(--text-strong); }
h4 { margin: var(--s-4) 0 var(--s-2); font-size: 14px; line-height: 1.4; color: var(--text-strong); }
p, ul, ol { margin: 0 0 var(--s-4); }
code { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); background: var(--bg-sunken); border-radius: var(--r-xs); padding: 1px 6px; }

.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--r-sm); font: 500 14px var(--font-sans); cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; box-shadow: var(--glow-ring); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }

.codebox { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 400 14px/1.6 var(--font-mono); overflow-x: auto; box-shadow: var(--glow-box); }
.codebox .prompt { color: var(--accent); }
.codebox .comment { color: var(--text-dim); }
.codebox .btn { height: 36px; padding: 0 16px; font-size: 13px; }

.strip { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.strip > * { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.strip > * + * { border-left: 1px solid var(--line); }
.strip .num { font: 500 28px/1.1 var(--font-mono); color: var(--text-strong); }
.strip .num small { font-size: 17px; color: var(--text-dim); }
.strip .label { font-size: 13.5px; color: var(--text-muted); }
.step-no { font: 400 11.5px var(--font-mono); color: var(--accent); }
.step-title { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.step-meta { font: 400 11.5px/1.5 var(--font-mono); color: var(--text-muted); }
.card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 6px; }
.card.is-highlight { border-color: var(--accent-line); box-shadow: var(--glow-ring); }
.chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); font: 400 12px var(--font-mono); color: var(--text-nav); }
.bar { height: 6px; border-radius: 3px; background: var(--line-header); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); box-shadow: var(--glow-dot); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 12px var(--font-mono); color: var(--text-muted); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-hover); }

/* ---- shell: one centred 1280px container ------------------------------- */
.skip-link { position: absolute; left: -9999px; top: var(--s-2); z-index: 50; padding: var(--s-2) 14px; background: var(--bg); color: var(--accent); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.skip-link:focus { left: var(--s-4); }

.shell { max-width: var(--container-max); margin-inline: auto; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

.site-header { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; gap: 28px; padding: 0 32px; background: var(--bg); border-bottom: 1px solid var(--line-header); }
.identity { flex: none; display: flex; align-items: center; gap: var(--s-3); margin-right: auto; }
.glyph { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand { font-size: 17px; font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.brand:hover { color: var(--text-strong); text-decoration: none; }
.tag { font: 400 12px var(--font-mono); color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: var(--r-xs); padding: 3px 8px; white-space: nowrap; }
.family { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.family a { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text-2); white-space: nowrap; }
.family a::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--dot-idle); }
.family a[aria-current="page"] { color: var(--text-strong); }
.family a[aria-current="page"]::before { background: var(--accent); box-shadow: var(--glow-dot); }
.family a:hover { color: var(--text-strong); text-decoration: none; }
.site-header .github { height: auto; padding: 8px 14px; }
.nav-toggle { display: none; }

.sidebar { position: sticky; top: var(--header-h); align-self: start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 32px 20px; }
.sidebar .family, .sidebar .github { display: none; }
.sections ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sections ul:last-child { margin-bottom: 0; }
.group-label { margin: 0; padding: 0 12px 8px; font: 400 11.5px var(--font-mono); color: var(--text-muted); }
.sections a { display: block; padding: 7px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-nav); }
.sections a:hover { background: var(--bg-hover); color: var(--text-strong); text-decoration: none; }
.sections a.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; box-shadow: inset 0 0 0 1px var(--accent-line); text-shadow: var(--glow-text); }

main { min-width: 0; padding: 48px 56px; border-left: 1px solid var(--line-subtle); }
main > * { max-width: var(--content-max); }
section { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + var(--s-6)); }
section > p, section > ul:not(.strip), details p { max-width: 72ch; }

/* ---- page ------------------------------------------------------------- */
.eyebrow { margin: 0 0 var(--s-3); font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); text-shadow: var(--glow-text); }
.lede { max-width: 680px; margin: var(--s-4) 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }

ul.strip { list-style: none; margin: 0 0 var(--s-4); padding: 0; font-size: 14px; color: var(--text-2); }
.strip strong { font-size: 15px; line-height: 1.4; color: var(--text-strong); }

.quick { align-items: flex-start; padding: 16px 12px 16px 20px; margin-bottom: var(--s-4); font-size: 13px; }
.quick-body { min-width: 0; overflow-x: auto; }
.quick .comment { margin: 0; font: inherit; }
.quick .comment + pre { margin-top: 0; }
.quick pre { margin: 0 0 var(--s-3); padding: 0; border: 0; background: none; overflow: visible; white-space: pre; font: inherit; color: var(--text); }
.quick pre:last-child { margin-bottom: 0; }
.quick code { background: none; padding: 0; font-size: inherit; }
.copy-status { display: block; min-height: 1.6em; margin-top: var(--s-1); font: 400 12px var(--font-sans); color: var(--text-muted); }
.no-js .copy-wrap { display: none; }
.copy-wrap { flex: none; text-align: right; }

pre { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 400 14px/1.6 var(--font-mono); color: var(--text); overflow-x: auto; }
pre code { background: none; padding: 0; font-size: inherit; }

details { margin-top: var(--s-6); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); }
summary { cursor: pointer; color: var(--accent); font-weight: 500; }
details[open] summary { margin-bottom: var(--s-2); }

.table-wrap { margin-bottom: var(--s-4); }
.table-wrap table { min-width: 30rem; }
td code { background: none; padding: 0; }
td:first-child code { white-space: nowrap; }
tr.is-apart td { border-top: 1px solid var(--line-strong); background: var(--bg-sunken); }
.status { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.status-none { color: var(--text-dim); }

svg.flow { display: block; width: 100%; max-width: 26rem; height: auto; margin: var(--s-4) auto; font-family: var(--font-sans); }
svg.flow .node { fill: var(--bg-sunken); stroke: var(--line-strong); stroke-width: 1.5; }
svg.flow .node-gate { stroke: var(--accent-line); }
svg.flow .t { fill: var(--text-strong); font-size: 14px; font-weight: 600; text-anchor: middle; }
svg.flow .s { fill: var(--text-muted); font-size: 12px; text-anchor: middle; }
svg.flow .arrow { stroke: var(--text-dim); stroke-width: 1.5; fill: none; }
svg.flow .arrowhead { fill: var(--text-dim); }
svg.flow .lbl { font-size: 12px; font-weight: 500; fill: var(--text-2); }
svg.flow .lbl-yes { text-anchor: end; }
svg.flow .lbl-no { text-anchor: start; }

/* T150: overview picture (reuses svg.flow), dimension cards, area chart + tiles.
   Status marks differ in shape as well as colour: filled, outlined, dashed. */
.overview-row { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: var(--s-7); align-items: center; margin-bottom: var(--s-4); }
.overview-row > p { margin: 0; max-width: 72ch; }
svg.flow.overview { max-width: 22rem; margin: 0; }
svg.flow .group { fill: none; stroke: var(--line); stroke-dasharray: 4 4; }

.dim-group { margin-top: var(--s-5); }
.group-title { margin: 0 0 var(--s-2); font: 400 12px var(--font-mono); color: var(--text-muted); }
.dim-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3); }
.dim-card { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.dim-card > code { padding: 0; background: none; color: var(--text-strong); }
.dim-group.is-apart { margin-top: var(--s-6); padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-sunken); }

.coverage { margin: 0 0 var(--s-5); }
.coverage figcaption { margin-bottom: var(--s-2); font: 400 12px var(--font-mono); color: var(--text-muted); }
.coverage-bar { display: flex; gap: 2px; height: 12px; border-radius: 3px; overflow: hidden; }
.seg { display: block; min-width: 6px; }
.seg-ruled { background: var(--accent); }
.seg-pack { background: var(--role-infra); }
.seg-none { background: var(--text-dim); }
.coverage-legend { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: 14px; color: var(--text-2); }
.coverage-legend li { display: flex; align-items: center; gap: var(--s-2); }
.coverage-legend strong { font-family: var(--font-mono); font-weight: 500; color: var(--text-strong); }

.mark { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.mark-ruled { background: var(--accent); }
.mark-pack { border: 2px solid var(--role-infra); }
.mark-none { border: 1px dashed var(--text-muted); }

.area-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3); align-items: start; margin-bottom: var(--s-4); }
.area-group { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.area-group h3 { margin: 0 0 var(--s-2); font: 400 12px var(--font-mono); color: var(--text-muted); }
.area-group h3 code { padding: 0; background: none; font-size: 13px; color: var(--text-strong); }
.tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tile { display: flex; align-items: flex-start; gap: var(--s-2); font-size: 13.5px; line-height: 1.45; color: var(--text); }
.tile .mark { margin-top: 5px; }
.tile-pack { font: 400 12px var(--font-mono); color: var(--text-muted); }

ol.steps { --cols: 5; list-style: none; margin: var(--s-4) 0 var(--s-6); padding: 0; }
ol.steps > li { padding: 16px; }

.sample-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-4); align-items: start; margin-bottom: var(--s-4); }
.sample-grid p { margin: 0; }
.card-label { font: 400 12px var(--font-mono); color: var(--text-muted); }
.card-label code { padding: 0; background: none; color: inherit; font-size: inherit; }
.score { font: 500 40px/1.1 var(--font-mono); color: var(--accent); text-shadow: var(--glow-text); }
.score small { font-size: 17px; color: var(--text-dim); text-shadow: none; }
.score-note { font-size: 13.5px; color: var(--text-muted); }
.caption { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.card-table { padding: 0; overflow-x: auto; }
.card-table table { min-width: 0; }
.abstained { color: var(--text-dim); }

footer { margin-top: 56px; padding-top: var(--s-4); border-top: 1px solid var(--line-subtle); font-size: 13.5px; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar { transition: none; }
}

/* ---- < 1200px: no room for the tag beside the five-site family nav --- */
@media (max-width: 1199px) {
  .site-header .tag { display: none; }
}

/* ---- 720–1023px: sidebar becomes a drawer behind Menu ----------------- */
/* Five family links + GitHub + Menu do not fit the header below 1024px, so the
   family nav moves into the drawer together with the sections. */
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  main { padding: 32px; border-left: 0; }
  .site-header { gap: 20px; }
  .site-header .family { display: none; }
  .sidebar .family { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-bottom: var(--s-4); }
  .sidebar .family a { min-height: 44px; padding: 0 12px; }
  .js .nav-toggle { display: inline-flex; }
  .no-js .sidebar { position: static; max-height: none; border-bottom: 1px solid var(--line-subtle); }
  .js .sidebar { position: fixed; z-index: 30; top: var(--header-h); bottom: 0; left: 0; width: min(300px, 85vw); max-height: none; background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-100%); visibility: hidden; transition: transform 0.2s ease, visibility 0.2s; }
  .js .sidebar.is-open { transform: none; visibility: visible; }
  .overview-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
}

/* ---- < 720px: GitHub moves into the drawer too ------------------------ */
@media (max-width: 719px) {
  .site-header { padding: 0 16px; gap: var(--s-3); }
  .site-header .github { display: none; }
  .sidebar .github { display: inline-flex; min-height: 44px; margin: 0 12px 28px; }
  .sections a { display: flex; align-items: center; min-height: 44px; }
  .nav-toggle, .copy, summary { min-height: 44px; }
  summary { display: flex; align-items: center; }
  main { padding: 24px 16px; }
  h1 { font-size: 32px; }
  .strip { --cols: 2; }
  .strip > * + * { border-left: 0; }
  .strip > :nth-child(2n) { border-left: 1px solid var(--line); }
  .strip > :nth-child(n + 3) { border-top: 1px solid var(--line); }
  .strip > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  ul.strip > li { padding: 16px; }
  ol.steps { --cols: 1; }
  ol.steps > li:nth-child(n) { grid-column: auto; border-left: 0; }
  ol.steps > li + li { border-top: 1px solid var(--line); }
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .quick { flex-direction: column; }
  .copy-wrap { text-align: left; }
}
