/* The public pages (V-09) in the Label direction. Tokens from /css/design.css;
   no colour, size or space is defined here that design.css does not name.
   Broadsheet's principles carry into these pages (D-30): one idea per page,
   type carries the hierarchy, the evidence is the decoration. */

/* ---- frame ---- */

.skip {
  position: absolute; left: var(--space-4); top: -100px;
  padding: var(--space-2) var(--space-3);
  color: var(--surface); background: var(--text);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--space-2); color: var(--surface); }

.fixture-banner {
  margin: 0; max-width: none;
  padding: var(--space-3) var(--space-4);
  background: var(--colour-caution-100);
  color: var(--text);
  border-bottom: 2px dashed var(--text);
  font-size: var(--font-size-sm);
}

.band {
  background: var(--masthead);
  color: var(--masthead-ink);
  border-bottom: var(--rule-heavy) solid var(--colour-accent-300);
}
.band-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5);
  max-width: 48rem; margin: 0 auto; padding: var(--space-2) var(--space-4);
}
.band .mark {
  display: inline-flex; align-items: center; min-height: var(--touch);
  font-family: var(--font-family-display); font-size: var(--font-size-md); font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--masthead-ink); text-decoration: none;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--touch);
  color: var(--masthead-quiet); font-size: var(--font-size-sm); font-weight: 700;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"] { color: var(--masthead-ink); border-bottom-color: var(--colour-accent-300); }
@media (hover: hover) {
  .nav a:hover { color: var(--masthead-ink); }
  .band .mark:hover { color: var(--masthead-quiet); }
}

.page { max-width: 48rem; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-7); }

/* ---- headings and running text ---- */

.page-head { margin-bottom: var(--space-6); }
.page-head h1 { font-size: clamp(2.25rem, 9vw, var(--font-size-3xl)); line-height: 0.98; }
.eyebrow {
  margin: 0 0 var(--space-2);
  font-family: var(--font-family-display); font-weight: 700; font-size: var(--font-size-sm);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}
.lede { color: var(--text-muted); font-size: var(--font-size-md); line-height: 1.5; }
.meta { color: var(--text-muted); font-size: var(--font-size-sm); }
.small { font-size: var(--font-size-sm); color: var(--text-muted); }
.block { display: block; }
.none { color: var(--text-muted); font-style: normal; }

.jump ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-4) 0 0; padding: var(--space-3) 0 0; list-style: none; border-top: var(--rule-light) solid var(--border); }
.jump a { display: inline-flex; align-items: center; min-height: var(--touch); font-weight: 700; }

.section { margin: 0 0 var(--space-7); padding-top: var(--space-4); border-top: var(--rule-heavy) solid var(--text); }
.section h2 { font-size: var(--font-size-xl); }
.section h3 { font-size: var(--font-size-lg); margin-top: var(--space-5); }

/* ---- tier chips: the word always, and a shape that differs per tier ---- */

.tier {
  display: inline-block;
  padding: 0 var(--space-2);
  font-family: var(--font-family-display); font-size: var(--font-size-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.7;
  color: var(--text); background: var(--surface-raised);
  border: 2px solid var(--text);
  white-space: nowrap;
}
.tier--validated { color: var(--surface); background: var(--text); }
.tier--limited { color: var(--text); background: var(--surface-raised); }
.tier--contested { color: var(--text); background: var(--surface-raised); border-width: 2px 7px; }
.tier--unvalidated { color: var(--text); background: var(--surface-raised); border-style: dashed; }
.tier--out { color: var(--text-muted); background: var(--surface-raised); border-style: dotted; }
.tier--withheld { color: var(--text-muted); background: var(--surface-sunken); border-style: dotted; }

.tag {
  display: inline-block;
  padding: 0 var(--space-2);
  font-family: var(--font-family-display); font-size: var(--font-size-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.7;
  color: var(--text); background: var(--surface-raised);
}
.tag--maker { border: 3px double var(--text); }
.tag--checked { border: 2px solid var(--text); }

.grade {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; min-height: 2rem;
  font-family: var(--font-family-display); font-weight: 700;
  border: 2px solid var(--text);
}

/* ---- evidence ---- */

.metrics, .findings, .facts-list, .offers, .cell-list, .ways, .versions { margin: 0; padding: 0; list-style: none; }
.metric { padding: var(--space-4) 0; border-bottom: var(--rule-light) solid var(--border); }
.metric-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.metric-head h3 { margin: 0; font-size: var(--font-size-lg); }
.cap { margin: var(--space-2) 0 0; font-size: var(--font-size-sm); color: var(--text-muted); }

.finding { margin: var(--space-4) 0 0; padding: var(--space-4); background: var(--surface-sunken); color: var(--text); border-left: var(--rule-heavy) solid var(--text); }
.finding-stat { font-weight: 700; }
.meets, .misses, .not-assessable { font-weight: 400; }
.misses { text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 0.2em; }
.inherited-note { padding: var(--space-2) var(--space-3); background: var(--surface); color: var(--text); border: 2px dashed var(--text); font-size: var(--font-size-sm); }

.quote { margin: 0 0 var(--space-4); padding-left: var(--space-3); border-left: var(--rule-light) solid var(--border-strong); color: var(--text-muted); font-style: italic; }
.quote p { margin: 0; }
.quote--small { font-size: var(--font-size-sm); margin-top: var(--space-2); }

.facts { display: grid; grid-template-columns: 1fr; gap: var(--space-1) var(--space-4); margin: 0; font-size: var(--font-size-sm); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-3); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.due { font-weight: 700; }

.notice { margin: 0 0 var(--space-6); padding: var(--space-4); background: var(--colour-caution-100); color: var(--text); border: 2px solid var(--text); }
.notice h2 { font-size: var(--font-size-lg); }
.notice ul { margin: 0 0 var(--space-3); padding-left: var(--space-5); }

/* ---- compatibility, specification ---- */

.fact { padding: var(--space-3) 0; border-bottom: var(--rule-light) solid var(--border); }
.fact-line { margin: 0 0 var(--space-1); }
.fact-src { font-size: var(--font-size-sm); color: var(--text-muted); }
.claim-vs { display: grid; gap: var(--space-2); margin: 0; }
.claim-vs div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-3); }
.claim-vs dt { font-weight: 700; font-size: var(--font-size-sm); }
.claim-vs dd { margin: 0; }

/* ---- offers (D-13) ---- */

.offer { padding: var(--space-4) 0; border-bottom: var(--rule-light) solid var(--border); }
.offer--quiet { color: var(--text-muted); }
.amount { margin: 0; font-family: var(--font-family-mono); font-size: var(--font-size-xl); font-weight: 500; line-height: 1.1; }
.amount span { font-family: var(--font-family-sans); font-size: var(--font-size-sm); font-weight: 700; }
.amount--none { font-family: var(--font-family-display); font-size: var(--font-size-lg); font-weight: 700; }
.lowest { margin: var(--space-1) 0 0; font-weight: 700; font-size: var(--font-size-sm); }
.checked { margin: var(--space-1) 0 0; font-size: var(--font-size-sm); color: var(--text-muted); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-3) 0 0; }

/* ---- the register ---- */

.context { margin: 0 0 var(--space-5); padding: var(--space-4); background: var(--marker); color: var(--text); border-left: var(--rule-heavy) solid var(--text); }
.context p { margin: 0; }
.table-wrap { overflow-x: auto; }
.register-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.register-table th, .register-table td { padding: var(--space-3) var(--space-2); text-align: left; vertical-align: top; border-bottom: var(--rule-light) solid var(--border); }
.register-table thead th { font-family: var(--font-family-display); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--text); }
.register-table tbody th a { font-weight: 700; }
.maker { display: block; color: var(--text-muted); font-weight: 400; }
.cell-list li + li { margin-top: var(--space-1); }

/* ---- the checker ---- */

.check-form { display: grid; gap: var(--space-4); max-width: 30rem; margin: 0 0 var(--space-6); }
.check-form .field label { margin-bottom: var(--space-1); }
.check-form .submit { margin: var(--space-4) 0 0; }
.answer { margin: 0 0 var(--space-6); padding: var(--space-4); border: var(--rule-heavy) solid var(--text); background: var(--surface-raised); color: var(--text); }
.answer h2 { font-size: var(--font-size-2xl); }
.answer--yes h2 { border-bottom: var(--rule-heavy) solid var(--action); padding-bottom: var(--space-2); }
.answer--no h2 { border-bottom: var(--rule-heavy) solid var(--text); padding-bottom: var(--space-2); }
.answer--unknown { border-style: dashed; }

/* ---- the method ---- */

.defs { margin: 0; }
.defs div { display: grid; grid-template-columns: 1fr; gap: var(--space-1); padding: var(--space-3) 0; border-bottom: var(--rule-light) solid var(--border); }
.defs dt { font-weight: 700; }
.defs dd { margin: 0; }
.versions li { padding: var(--space-2) 0; }
.ways li { padding: var(--space-2) 0; }

/* ---- footer ---- */

.foot { border-top: var(--rule-heavy) solid var(--text); background: var(--surface-sunken); color: var(--text); }
.foot-in { max-width: 48rem; margin: 0 auto; padding: var(--space-5) var(--space-4) var(--space-6); font-size: var(--font-size-sm); }
.foot-disclosure { margin-bottom: var(--space-4); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--touch); }
.operator { color: var(--text-muted); margin: 0; }

@media (min-width: 40rem) {
  .defs div { grid-template-columns: 11rem 1fr; gap: var(--space-4); }
  .check-form { grid-template-columns: 1fr 1fr; max-width: none; align-items: end; }
  .check-form .submit { grid-column: 1 / -1; }
}
