/* reports.css — the customer's home (reports.html), rebuilt on the Instrument 2026-09-18 (the launch plan's
   section 4). Page-scoped rules on top of tokens/base/components/instrument; external because the site
   CSP has no 'unsafe-inline' for styles. Every colour is a token; the rig language is instrument.css's. */

.home-main { padding-top: 56px; }
.home-wrap { max-width: 860px; margin-inline: auto; }

.home-form { max-width: 460px; margin: var(--s-6) auto 0; }

.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.home-head h1 { margin: 0 0 var(--s-2); }
.home-head .eyebrow { display: block; margin-bottom: var(--s-2); }
.home-head .lead { margin: 0; }

/* The plan panel is a rig: a live head, a bar with the title and the billing door, then the readings. */
.home-rig { margin-bottom: var(--s-6); }
.home-rig-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin: 14px 0 10px; }
.home-rig-bar h2 { margin: 0; font-size: 1.35rem; }
.home-welcome h1 { margin: 14px 0 var(--s-3); font-size: clamp(1.8rem, 4vw, 2.6rem); }

.plan-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.plan-summary .pname { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.plan-summary .pprice { font-family: var(--font-mono); font-size: .82rem; color: var(--gold); }
.plan-summary .pstatus { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.plan-summary .pstatus.warn { color: var(--amber); }

.plan-clock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); overflow: hidden; }
.plan-clock > div { padding: 10px 12px; min-width: 0; }
.plan-clock > div + div { border-left: 1px solid var(--line); }
.plan-clock dt { margin: 0; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.plan-clock dd { margin: 3px 0 0; font-family: var(--font-mono); font-size: .78rem; line-height: 1.35; color: var(--pin); }

.market-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.market-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.market-row h3 { margin: 0 0 2px; font-size: 1.05rem; }
.market-row .mmeta { margin: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; color: var(--muted); }
/* A market whose first reading is already running: the same line, in the live ink the plan clock uses, so it
   reads as work in progress rather than as a row with nothing in it (2026-09-19). */
.market-row .mmeta.now { color: var(--pin); }
.market-row .btn { flex: none; }
.market-none { margin: 0; color: var(--muted); font-size: .95rem; }

/* The report rows: one instrument row per report, newest first. */
.home-block { margin-bottom: var(--s-6); }
.home-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.home-block-head h2 { margin: 0; font-size: 1.35rem; }
.home-block-head .muted { margin: 0; font-size: .9rem; }
.rlist { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.rrow {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
}
.rrow h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink); }
.rrow-meta { margin: 0; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .03em; color: var(--muted); }
/* (a report held for review wears the same quiet pill, with its own word: "On its way", 24 Sep) */
.rrow-expired, .rrow-held {
  flex: none; color: var(--faint); font-family: var(--font-mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 4px 12px;
}
.rrow .btn { flex: none; }

.home-people { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.home-people h2 { margin: 0 0 var(--s-2); font-size: 1.2rem; }
.home-people .muted { margin: 0; }
.home-people .hero-actions { margin-top: var(--s-4); }
/* The booking button's label is long; on a phone it wraps inside the panel rather than running past it. */
.home-people .btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }

.home-back { margin-top: var(--s-7); }

/* G12/G16: the older report subscriptions keep their settings cards inside the plan rig. */
.subs-card { margin-top: 12px; }
.subs-card h2 { font-size: 1.05rem; margin: 0 0 2px; }
.subs-card .field { margin-top: 10px; }

@media (max-width: 560px) {
  .rrow, .market-row { flex-direction: column; align-items: flex-start; }
  .rrow .btn, .market-row .btn { width: 100%; }
  .home-head { flex-wrap: wrap; }
  .home-rig-bar { flex-wrap: wrap; }
  .plan-clock { grid-template-columns: 1fr; }
  .plan-clock > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .home-people .hero-actions .btn { width: 100%; }
}

/* ── THE HOME WITHOUT A PLAN (the owner's pick of Fri 2 Oct 2026, the hybrid: lighthouse-ecosystem
   docs/reports-home-redesign-plan-2026-10-02.html). Built on the cockpit's own classes (home.css: .cp, .cp-head, .cp-tile,
   .cp-kicker, .cp-chip, .cp-bento) and its tokens, which home.css defines for both looks; every class of its own is rh-.
   State is a word first, then a full border, a wash, a dot or a chip; nothing uses a coloured edge. ── */
.rh .rh-s3 { grid-column: span 3; } .rh .rh-s4 { grid-column: span 4; } .rh .rh-s5 { grid-column: span 5; }
.rh .rh-s8 { grid-column: span 8; } .rh .rh-s12 { grid-column: 1 / -1; }

/* a product's glyph, the same on every card */
.rh-kind { display: inline-flex; align-items: center; gap: 7px; font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rh-kind i { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font: 700 12px var(--font-display); font-style: normal; letter-spacing: 0; border: 1px solid var(--line-2); color: var(--muted); }
.rh-kind.is-full i { background: var(--cp-gold-soft); color: var(--cp-gold); border-color: var(--cp-gold-line); }
.rh-kind.is-intel i { background: var(--cp-mint-soft); color: var(--cp-mint); border-color: var(--cp-mint-line); }
.rh-kind.is-check i { background: transparent; color: var(--cp-sky); border-color: var(--cp-sky); }

/* a report's state: mint open, gold soon or being built, lavender with a person, quiet once its link has ended */
.rh-st { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--font-mono); letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.rh-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.rh-st.is-ready { color: var(--cp-mint); border-color: var(--cp-mint-line); background: var(--cp-mint-soft); }
.rh-st.is-soon, .rh-st.is-building { color: var(--cp-gold); border-color: var(--cp-gold-line); background: var(--cp-gold-soft); }
.rh-st.is-held { color: var(--cp-lav); border-color: var(--cp-lav-line); background: var(--cp-lav-soft); }
.rh-st.is-ended { color: var(--faint); }
.rh-st.is-ended::before { background: transparent; border: 1.5px solid currentColor; }

/* the tiles: the latest report, the invitation and its credit, the empty home */
.rh .rh-big { font: 700 32px/1.05 var(--font-display); color: var(--ink); margin: 4px 0 6px; }
.rh-big em { font-style: normal; color: var(--cp-gold); }
.rh-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.rh .rh-gap { margin-top: 12px; }
.rh-tile-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.rh .rh-fine { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--faint); }
.rh .rh-fine.is-bad { color: var(--cp-red); }
.rh-latest .rh-kind { margin-bottom: 4px; }
.rh-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.rh-invite, .rh-restart { border-color: var(--cp-gold-line); background: linear-gradient(180deg, var(--cp-gold-soft), transparent 72%), var(--surface); }
.rh-credit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--cp-gold-line); border-radius: 12px; }
.rh-credit b { font: 700 24px/1 var(--font-display); color: var(--cp-gold); grid-row: span 2; white-space: nowrap; }
.rh-credit span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.rh-credit strong { color: var(--ink); font-weight: 600; }
/* "Up to": the credit is a ceiling the checkout confirms (review F1), said small above the figure */
.rh-credit b small { display: block; margin-bottom: 4px; font: 600 11px/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rh-empty { text-align: center; padding: 34px 22px; }
.rh-empty .rh-sub { max-width: 34em; margin: 6px auto 0; }
.rh-empty .rh-tile-act { justify-content: center; }
.rh .cp-person-line { margin-top: 4px; font-weight: 600; line-height: 1.45; }
.rh .cp-btns { margin-top: 12px; }

/* rows: "before this", and a month's checks */
.rh-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rh-row:first-child { border-top: 0; }
.rh-row .rh-n { font: 600 14px/1.35 var(--font-body); color: var(--ink); }
.rh-row .rh-n small { display: block; font: 400 12px/1.4 var(--font-body); color: var(--faint); }
.rh-row .rh-d { font: 500 12.5px var(--font-mono); color: var(--muted); }
.rh-row.rh-mini { grid-template-columns: minmax(0, 1fr) auto; padding: 7px 0; }
.rh-row.rh-mini .rh-n { font-size: 13px; }
.rh-link { font-weight: 600; color: var(--cp-mint); white-space: nowrap; }
.rh-link.is-quiet { color: var(--muted); font-weight: 500; }

/* the past plan */
.rh-past { border-color: var(--cp-sky); }
.rh-past-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 20px; flex-wrap: wrap; }
.rh .rh-past h2 { font-size: 28px; }
.rh-past h2 small { display: block; font: 500 12.5px var(--font-mono); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.rh-past-side { display: grid; gap: 4px; justify-items: start; max-width: 34em; }
.rh .rh-past-side .cp-fine { margin-top: 2px; }
.rh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.rh-stat { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 10px 12px; }
.rh-stat b { display: block; font: 700 28px/1 var(--font-display); color: var(--ink); }
.rh-stat span { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.rh-strip { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.rh-strip .ax { stroke: var(--line-2); stroke-width: 1.5; }
.rh-strip .ln { stroke: var(--line); stroke-width: 1; }
.rh-strip .mt { font: 500 10.5px var(--font-mono); fill: var(--faint); letter-spacing: .04em; }
.rh-strip .on { fill: var(--cp-sky); }
.rh-strip .off { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.rh-strip .sp { fill: var(--cp-gold-fill); stroke: var(--surface); stroke-width: 2; }
.rh-strip .lb { font: 500 11px var(--font-mono); fill: var(--muted); }
.rh-strip .lb.g { fill: var(--cp-gold); }
.rh-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.rh-key span { display: inline-flex; align-items: center; gap: 6px; }
.rh-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rh-key i.on { background: var(--cp-sky); }
.rh-key i.off { border: 1.5px solid var(--line-2); }
.rh-key i.sp { background: var(--cp-gold-fill); transform: rotate(45deg); border-radius: 2px; }
.rh-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.rh-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--cp-sky); }
.rh-dots i.is-off { background: transparent; border: 1.5px solid var(--line-2); }
.rh-dots i.is-sp { background: var(--cp-gold-fill); transform: rotate(45deg); border-radius: 2px; }
.rh-ph { display: none; }

/* the library: a toolbar when it helps, a business per group, cards in a grid */
.rh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.rh-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rh-seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font-body); padding: 7px 12px; border-radius: 8px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.rh-seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.rh-seg button small { font: 500 11.5px var(--font-mono); color: var(--faint); margin-left: 5px; }
.rh-sel { appearance: none; background-color: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; font: 500 13px var(--font-body); padding: 8px 30px 8px 12px; min-height: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.rh-search { flex: 1 1 220px; max-width: 340px; position: relative; }
.rh-search input { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; font: 400 13.5px var(--font-body); padding: 9px 12px 9px 34px; min-height: 40px; }
.rh-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--faint); fill: none; stroke-width: 1.8; }
.rh-count { margin-left: auto; font: 500 12px var(--font-mono); color: var(--faint); }
.rh-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin: 18px 0 10px; }
.rh-group:first-child .rh-gh { margin-top: 0; }
.rh .rh-gh h2 { font-size: 22px; }
.rh-gh p { font: 500 12.5px var(--font-mono); color: var(--muted); }
.rh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rh-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; min-height: 196px; }
.rh-card[hidden], .rh-group[hidden] { display: none; }
.rh-card.is-ended { background: transparent; border-style: dashed; }
.rh-card .rh-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rh .rh-card h3.rh-date { font: 700 26px/1 var(--font-display); color: var(--ink); }
.rh .rh-card.is-ended h3.rh-date { color: var(--muted); }
.rh-card .rh-date small { display: block; font: 500 12px var(--font-mono); color: var(--faint); margin-top: 5px; letter-spacing: 0; }
.rh-card .rh-say { font-size: 13px; line-height: 1.45; color: var(--muted); }
.rh-card .rh-act { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rh-card .btn { min-height: 38px; }
/* a plan's checks as one card, its layers drawn behind it */
.rh-stack { position: relative; border-color: var(--cp-sky); box-shadow: 6px 6px 0 -1px var(--surface), 6px 6px 0 0 var(--line-2), 12px 12px 0 -1px var(--surface), 12px 12px 0 0 var(--line); margin: 0 12px 12px 0; }
/* the checks, opened: by month, each month a disclosure button */
.rh-ckpanel { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--cp-sky); border-radius: 16px; background: var(--surface); }
.rh-ckpanel[hidden] { display: none; }
.rh .rh-ck-h { font-size: 18px; margin-bottom: 4px; }
.rh-fold { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-top: 10px; }
.rh .rh-fold-h { margin: 0; font: inherit; }
.rh-fold-b { appearance: none; width: 100%; display: grid; grid-template-columns: minmax(150px, .9fr) minmax(0, 2fr) auto; gap: 8px 18px; align-items: center; padding: 12px 16px; min-height: 56px;
  background: transparent; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; border-radius: 14px; }
.rh-fold .rh-m { font: 700 20px/1.1 var(--font-display); color: var(--ink); }
.rh-fold .rh-ms { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.rh-chev { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.8; transition: transform .2s; }
.rh-fold-b[aria-expanded="true"] .rh-chev { transform: rotate(90deg); }
.rh-fold .rh-body { padding: 2px 16px 12px; border-top: 1px solid var(--line); }
.rh-fold .rh-body[hidden] { display: none; }
.rh-more { margin-top: 16px; }
.rh .rh-foot { margin-top: 16px; font-size: 14px; }
.rh-subs > .home-block-head { margin-bottom: 8px; }

/* the light look: the footer stays the dark band, so its tagline keeps the band's own ink (the plan's section 2) */
html[data-home-theme="light"] .site-footer .muted { color: rgba(255, 255, 255, .76); }

@media (prefers-reduced-motion: reduce) { .rh-chev { transition: none; } }
@media (pointer: coarse) {
  .rh .rh-seg button, .rh .rh-sel, .rh .rh-search input, .rh .rh-fold-b { min-height: 44px; }
  .rh .rh-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 1100px) {
  .rh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh .rh-s4, .rh .rh-s5 { grid-column: span 6; }
  .rh .rh-s3 { grid-column: 1 / -1; }
}
/* a phone: one column, the person last, no text under 12 px (the cockpit's phone rule 6) */
@media (max-width: 760px) {
  .rh .cp-bento > * { grid-column: 1 / -1; grid-row: auto; }
  .rh .cp-bento > .rh-ph-last { order: 99; }
  .rh-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rh-card { min-height: 0; padding: 14px; }
  .rh .rh-card h3.rh-date { font-size: 22px; }
  .rh .rh-card .btn { width: auto; }
  .rh-stack { margin: 0 8px 8px 0; box-shadow: 4px 4px 0 -1px var(--surface), 4px 4px 0 0 var(--line-2), 8px 8px 0 -1px var(--surface), 8px 8px 0 0 var(--line); }
  .rh-bar { gap: 8px; }
  .rh-seg { width: 100%; overflow-x: auto; }
  .rh-seg button { flex: 1 0 auto; padding: 7px 9px; font-size: 12.5px; }
  .rh-sel { flex: 1 1 140px; }
  .rh-search { max-width: none; flex-basis: 100%; }
  .rh-count { margin-left: 0; }
  .rh-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rh-row .rh-d { grid-column: 1; grid-row: 2; }
  .rh-row .rh-st { grid-column: 2; grid-row: 1; justify-self: end; }
  .rh-row .rh-link { grid-column: 2; grid-row: 2; justify-self: end; }
  .rh .rh-past h2 { font-size: 24px; }
  .rh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-fold-b { grid-template-columns: minmax(0, 1fr) auto; }
  .rh-fold .rh-ms { grid-column: 1 / -1; grid-row: 2; }
  .rh-fold .rh-chev { grid-column: 2; grid-row: 1; }
  .rh-ckpanel { padding: 12px; }
  .rh .rh-big { font-size: 28px; }
  .rh .rh-tile-act .btn { width: 100%; }
  .rh .rh-gh h2 { font-size: 20px; }
  .rh-dk { display: none; }
  .rh-ph { display: flex; margin-top: 10px; }
  .rh-ph i { width: 12px; height: 12px; }
  .rh-kind, .rh-st, .rh .rh-fine, .rh-key, .rh-row .rh-n small, .rh-stat span, .rh-card .rh-date small, .rh-gh p, .rh-count, .rh-seg button small { font-size: 12px; }
}
