/* ─────────────────────────────────────────────────────────────────────────────
   Label Lens — legal-forensic. Ink on paper, one alarm accent, numbers in
   monospace so a figure never reads as prose. Dark mode is a real second
   design, not an inversion.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #f2eee5;
  --paper-2: #eae5d9;
  --card: #fbf9f4;
  --ink: #17150f;
  --ink-soft: #453f33;
  --mut: #6f6858;
  --line: #d6cfbe;
  --line-soft: #e3ddcd;

  --alarm: #a8321e;
  --alarm-soft: #f4e2dd;
  --ok: #1f5c46;
  --ok-soft: #dfeae4;
  --unread: #8b8474;

  --shadow: 0 1px 2px rgba(23, 21, 15, 0.05), 0 8px 24px -12px rgba(23, 21, 15, 0.12);
  --shadow-lg: 0 2px 4px rgba(23, 21, 15, 0.06), 0 24px 48px -20px rgba(23, 21, 15, 0.2);

  --display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r: 4px;
  --r-lg: 8px;
  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

html[data-theme='dark'] {
  --paper: #14130f;
  --paper-2: #191813;
  --card: #1d1c16;
  --ink: #f0ece2;
  --ink-soft: #c8c2b3;
  --mut: #8d8676;
  --line: #302e26;
  --line-soft: #262419;

  --alarm: #e2705a;
  --alarm-soft: #35201b;
  --ok: #79c2a4;
  --ok-soft: #182a23;
  --unread: #6d6759;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--alarm);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── header ───────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--ink);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 0.18rem;
}

.head-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.845rem;
}
.head-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.head-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--alarm);
}

/* The one outbound link in the header: up a level, to the door that explains
   why this instrument exists. Set apart with a rule and the display face so it
   never reads as another section anchor. */
.head-up {
  margin-left: 0.35rem;
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink) !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.head-up span {
  font-size: 0.72rem;
  color: var(--alarm);
}
.head-up:hover span {
  transform: translate(1px, -1px);
}
.head-up span {
  transition: transform 0.18s;
}

.foot-up {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.foot-up:hover {
  border-bottom-color: var(--alarm);
}

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover {
  border-color: var(--ink-soft);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 940px) {
  .head-nav {
    display: none;
  }
}

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 100% 2.25rem;
  background-position: 0 0.4rem;
}

.hero-inner {
  max-width: 62rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--alarm);
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  max-width: 22ch;
}

.hero-lede {
  margin-top: 1.35rem;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--alarm);
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1px;
  margin: 3rem 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-stats > div {
  background: var(--card);
  padding: 1.4rem 1.5rem;
}
.hero-stats dt {
  font-size: 0.79rem;
  color: var(--mut);
  line-height: 1.4;
  max-width: 24ch;
}
.hero-stats dd {
  margin: 0;
}
.fig {
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  display: inline-block;
  margin-top: 0.5rem;
  line-height: 1;
}
.stat-src {
  margin-top: 0.6rem !important;
  font-size: 0.72rem;
}
.stat-src a {
  color: var(--mut);
}
.stat-src a:hover {
  color: var(--alarm);
}

.hero-foot {
  margin-top: 1.6rem;
  max-width: 62ch;
  font-size: 0.9rem;
  color: var(--mut);
  border-left: 2px solid var(--alarm);
  padding-left: 1rem;
}

/* ── bands ────────────────────────────────────────────────────────────────── */

.band {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.band--alt {
  background: var(--paper-2);
}
.band--dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--ink);
}
.band--dark .sec-lede {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.sec-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 500;
}
.sec-lede {
  margin-top: 0.85rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.975rem;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.fineprint {
  margin-top: 1.75rem;
  font-size: 0.815rem;
  color: var(--mut);
  max-width: 68ch;
}
.fineprint a {
  color: var(--mut);
}

/* ── lens cards ───────────────────────────────────────────────────────────── */

.lens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.lens-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.lens-card--lead {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.lens-tag {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--alarm);
  margin-bottom: 0.85rem;
}
.lens-card h3 {
  font-size: 1.2rem;
}
.lens-card p:last-child {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ── filter chips ─────────────────────────────────────────────────────────── */

.filter {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.chip {
  font: inherit;
  font-size: 0.79rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover {
  border-color: var(--ink-soft);
}
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ── deal cards ───────────────────────────────────────────────────────────── */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19.5rem, 100%), 1fr));
  gap: 1rem;
}

.deal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.deal--ours {
  border-color: var(--ok);
  border-width: 1px;
  box-shadow: inset 3px 0 0 var(--ok);
}

.deal-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.deal-name {
  font-size: 1.19rem;
  font-weight: 700;
}
.deal-org {
  font-size: 0.76rem;
  color: var(--mut);
  margin-top: 0.22rem;
}
.deal-kind {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 0.5rem;
}

.gauge {
  flex: none;
  text-align: right;
}
.gauge-num {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}
.gauge-lab {
  font-family: var(--mono);
  font-size: 0.575rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mut);
  display: block;
  margin-top: 0.35rem;
}
.t-hi {
  color: var(--alarm);
}
.t-ok {
  color: var(--ok);
}
.t-mid {
  color: var(--ink);
}

.deal-sum {
  font-size: 0.885rem;
  color: var(--ink-soft);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}
.bar-row {
  display: grid;
  grid-template-columns: 6.9rem 1fr;
  gap: 0.7rem;
  align-items: center;
}
.bar-lab {
  font-size: 0.735rem;
  color: var(--mut);
  line-height: 1.25;
}
.bar-track {
  height: 6px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--alarm);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-fill--ok {
  background: var(--ok);
}
.bar-unread {
  height: 6px;
  border-radius: 999px;
  border: 1px dashed var(--unread);
  background: transparent;
  display: flex;
  align-items: center;
}

.read-count {
  font-family: var(--mono);
  font-size: 0.665rem;
  letter-spacing: 0.06em;
  color: var(--mut);
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.read-count.is-thin {
  color: var(--alarm);
}

.deal-more {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 0.815rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line);
  align-self: flex-start;
}
.deal-more:hover {
  text-decoration-color: var(--alarm);
}

/* [hidden] must beat display:flex — the UA rule loses on specificity alone. */
.terms[hidden] {
  display: none;
}

.terms {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}
.term {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.term-k {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}
.term-v {
  color: var(--ink-soft);
  line-height: 1.5;
}
.term-v.is-unread {
  color: var(--unread);
  font-style: italic;
}
.term-src {
  display: block;
  font-size: 0.735rem;
  margin-top: 0.35rem;
}
.term-src a {
  color: var(--alarm);
}
.deal-note {
  font-size: 0.82rem;
  color: var(--mut);
  border-left: 2px solid var(--line);
  padding-left: 0.85rem;
}

/* ── compare ──────────────────────────────────────────────────────────────── */

.cmp-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin: 2rem 0 1.75rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 14rem;
}
.field--wide {
  flex-basis: 100%;
}
.field > span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.input,
select.input {
  font: inherit;
  font-size: 0.925rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
.cmp-v {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mut);
  padding-bottom: 0.85rem;
  flex: none;
}

.cmp-out {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.cmp-head,
.cmp-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.cmp-head {
  background: var(--paper-2);
  align-items: end;
}
.cmp-row:last-child {
  border-bottom: 0;
}
.cmp-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mut);
  line-height: 1.35;
}
.cmp-side-name {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
}
.cmp-cell {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cmp-cell.is-unread {
  color: var(--unread);
  font-style: italic;
}
.cmp-cell .term-src {
  margin-top: 0.4rem;
}
.cmp-cell b {
  color: var(--ink);
}
.verdict {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: inline-block;
}

@media (max-width: 720px) {
  .cmp-head,
  .cmp-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .cmp-head {
    display: none;
  }
  .cmp-cell::before {
    content: attr(data-side);
    display: block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mut);
    margin-bottom: 0.25rem;
  }
}

/* ── scorer ───────────────────────────────────────────────────────────────── */

.privacy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: var(--ok-soft);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  max-width: 60rem;
}
.privacy svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ok);
}

.scorer {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}
.q {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
}
.q-n {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alarm);
  margin-bottom: 0.6rem;
}
.q-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.q-help {
  font-size: 0.82rem;
  color: var(--mut);
  margin-top: 0.4rem;
}
.opts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font-size: 0.865rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.opt:hover {
  border-color: var(--ink-soft);
}
.opt input {
  margin: 0.22rem 0 0;
  accent-color: var(--alarm);
  flex: none;
}
.opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper-2);
}
.opt--silent {
  border-style: dashed;
}
.opt-t {
  line-height: 1.4;
}

.scorer-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.scorer-foot .hint {
  font-size: 0.8rem;
  color: var(--mut);
}

/* ── receipt ──────────────────────────────────────────────────────────────── */

.receipt {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
.rc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1.25rem;
}
.rc-tag {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
}
.rc-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-top: 0.5rem;
  max-width: 30ch;
}
.rc-score {
  text-align: right;
  flex: none;
}
.rc-score .gauge-num {
  font-size: 2.6rem;
}
.rc-body {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
.rc-lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.rc-line {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.875rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.rc-line .rc-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
}
.rc-line .rc-v {
  color: var(--ink-soft);
  line-height: 1.45;
}
.rc-line .rc-w {
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
}
.rc-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.rc-block p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.rc-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.rc-block li {
  margin-bottom: 0.35rem;
}
.rc-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.rc-foot {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--mut);
}

@media (max-width: 620px) {
  .rc-line {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ── calculator ───────────────────────────────────────────────────────────── */

.calc {
  margin-top: 2rem;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.range {
  flex: 1;
  min-width: 0;
  accent-color: var(--alarm);
  height: 1.5rem;
}
.slider-row output {
  flex: none;
  min-width: 5.5rem;
  text-align: right;
}
.slider-row .fig {
  margin-top: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.calc-cell {
  background: var(--card);
  padding: 1.5rem;
}
.calc-cell--lead {
  background: var(--ok-soft);
}
.calc-k {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mut);
}
.calc-v {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 0.7rem;
  line-height: 1.05;
  word-break: break-word;
}
.calc-n {
  font-size: 0.83rem;
  color: var(--mut);
  margin-top: 0.6rem;
  line-height: 1.45;
}

/* ── refusals ─────────────────────────────────────────────────────────────── */

/* 26rem forces a clean 2x2 for four cards rather than an orphaned 3+1. */
.refusals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.refusal {
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.refusal-claim {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: var(--alarm);
  text-decoration-thickness: 2px;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
.refusal-why,
.refusal-instead {
  font-size: 0.875rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}
.refusal-instead {
  color: var(--paper);
  border-left: 2px solid var(--alarm);
  padding-left: 0.9rem;
}
.refusal-k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--alarm);
  display: block;
  margin-bottom: 0.35rem;
}
.refusal-src {
  font-size: 0.735rem;
  margin-top: auto;
}
.refusal-src a {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}
.refusal-src a:hover {
  color: var(--paper);
}

/* ── tiers ────────────────────────────────────────────────────────────────── */

.tiers-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .tiers-wrap {
    grid-template-columns: 1fr;
  }
}
.tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.tiers li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.tiers li:last-child {
  border-bottom: 0;
  background: var(--alarm-soft);
}
.tier-n {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--alarm);
}
.tier-l {
  font-size: 0.92rem;
  font-weight: 500;
}
.tier-h {
  font-size: 0.8rem;
  color: var(--mut);
  margin-top: 0.2rem;
}

/* ── footer ───────────────────────────────────────────────────────────────── */

.site-foot {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper-2);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}
.foot-note {
  margin-top: 0.6rem;
  max-width: 54ch;
  font-size: 0.83rem;
  color: var(--mut);
}
.foot-meta {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: right;
  line-height: 2;
}
@media (max-width: 620px) {
  .foot-meta {
    text-align: left;
  }
}

@media print {
  .site-head,
  .site-foot,
  .hero,
  .band:not(#score),
  .scorer,
  .privacy,
  .sec-lede,
  .rc-acts {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .receipt {
    border: 1px solid #000;
    box-shadow: none;
    margin: 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SESSION 7 — the facilitated hour
   Denser than the rest of the page on purpose. This is the one section a person
   reads standing up with a room in front of them, so the run of show has to be
   scannable at arm's length and the sidebar has to be readable in one pass.
   ──────────────────────────────────────────────────────────────────────────── */

.s7-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
}
.s7-kicker b { color: var(--alarm); font-weight: 600; }

.s7-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 1.75rem 0 1.25rem;
}
.s7-meta > div { background: var(--card); padding: 0.85rem 1rem; }
.s7-meta span {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.25rem;
}
.s7-meta b { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

.s7-leave {
  border-left: 3px solid var(--ok);
  background: var(--ok-soft);
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 3rem;
}
.s7-leave span {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.25rem;
}
.s7-leave p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); }

.s7-grid {
  display: grid;
  grid-template-columns: minmax(min(30rem, 100%), 1.6fr) minmax(min(17rem, 100%), 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.s7-h {
  margin: 2.75rem 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.s7-main > .s7-h:first-child { margin-top: 0; }
.s7-note { margin: 0 0 1.1rem; font-size: 0.9375rem; line-height: 1.6; color: var(--mut); max-width: 62ch; }

/* ── the clock ─────────────────────────────────────────────────────────────── */
.s7-timer {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  padding: 1.1rem 1.2rem 0.9rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.s7-clock { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.s7-clock b {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 5.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.s7-clock span { font-size: 0.875rem; color: var(--mut); }
.s7-timer-btns { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.95rem 0 0.9rem; }
.s7-track { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.s7-track i { display: block; height: 100%; width: 0; background: var(--alarm); transition: width 0.9s linear; }

/* ── run of show ───────────────────────────────────────────────────────────── */
.s7-ros { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.s7-ros > li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--card);
  transition: background 0.25s, border-color 0.25s;
}
.s7-ros > li:last-child { border-bottom: none; }
.s7-ros .ros-time { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; }
.s7-ros .ros-body b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.s7-ros .ros-body em { display: block; margin-top: 0.2rem; font-style: normal; font-size: 0.875rem; line-height: 1.5; color: var(--mut); }
.s7-ros .ros-len { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
/* The live block is marked with the alarm colour on the rail rather than a fill,
   because a facilitator glances at this and needs one thing to jump. */
.s7-ros > li.live { background: var(--alarm-soft); box-shadow: inset 3px 0 0 var(--alarm); }
.s7-ros > li.live .ros-time, .s7-ros > li.live .ros-len { color: var(--alarm); }
.s7-ros > li.done { opacity: 0.55; }
.s7-ros > li.done .ros-body b { text-decoration: line-through; text-decoration-color: var(--line); }

/* ── opening script ───────────────────────────────────────────────────────── */
.s7-script {
  margin: 0;
  padding: 1.25rem clamp(1.1rem, 2.5vw, 1.8rem);
  border-left: 3px solid var(--alarm);
  background: var(--paper-2);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
  font-style: italic;
  line-height: 1.62;
  color: var(--ink);
}

/* ── discussion ───────────────────────────────────────────────────────────── */
.s7-disc { margin: 0; padding: 0 0 0 1.35rem; }
.s7-disc > li { margin-bottom: 1.35rem; }
.s7-disc > li::marker { font-family: var(--mono); font-size: 0.8125rem; color: var(--alarm); }
.disc-q { margin: 0 0 0.45rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.disc-good { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); padding-left: 0.85rem; border-left: 2px solid var(--line); }
.disc-good span {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.2rem;
}

/* ── verdict ──────────────────────────────────────────────────────────────── */
.s7-verdicts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s7-v {
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.s7-v:hover { border-color: var(--ink); }
.s7-v[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.s7-verdict-out {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--alarm);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--card);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.vo-head { margin: 0 0 0.7rem; font-size: 0.9375rem; color: var(--mut); }
.vo-head b { font-size: 1.25rem; color: var(--ink); font-family: var(--display); }
.vo-fore { margin: 0 0 0.85rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink); }
.vo-fore span {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alarm);
  margin-bottom: 0.2rem;
}
.vo-rule { margin: 0; padding-top: 0.7rem; border-top: 1px solid var(--line-soft); font-size: 0.875rem; line-height: 1.55; color: var(--mut); }

/* ── sidebar ──────────────────────────────────────────────────────────────── */
.s7-side { display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.s7-box {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 0.95rem 1.1rem;
}
.s7-box h4 {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
.s7-box p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink-soft); }
.s7-box ul { margin: 0; padding-left: 1.1rem; }
.s7-box li { font-size: 0.875rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 0.3rem; }
.s7-box dl { margin: 0; }
.s7-box dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.6rem;
}
.s7-box dt:first-child { margin-top: 0; }
.s7-box dd { margin: 0.15rem 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--ink-soft); }
.s7-box--warn { border-left: 3px solid var(--unread); }
.s7-box--alarm { border-left: 3px solid var(--alarm); background: var(--alarm-soft); }
.s7-box--must { border-left: 3px solid var(--ok); background: var(--ok-soft); }
.s7-fix { margin-top: 0.65rem !important; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.s7-fix span {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.2rem;
}
.s7-fix em { font-style: normal; color: var(--ink); }

@media (max-width: 900px) {
  .s7-grid { grid-template-columns: 1fr; }
  .s7-side { position: static; }
  .s7-ros > li { grid-template-columns: 4.2rem 1fr; }
  .s7-ros .ros-len { display: none; }
}
