/* Daily Scout - site stylesheet (Milestone 4 slice (a), Roy 2026-10-01).
   Ported verbatim from the approved v0 mockups (docs/design/v0/app/globals.css): every custom property
   keeps its name and value. Differences from the source, all marked:
   - the @font-face rules below (self-hosted woff2 in /static/fonts, no request to Google Fonts);
   - --font-cormorant / --font-inter defined here (next/font set them in the mockups);
   - the "Daily Scout additions" section at the end, for markup the mockups did not cover.
   The email and PDF keep their own styles (src/lib/render.ts); this file is web-only. */

/* Cormorant Garamond 400/500/600, normal and italic; Inter variable (100-900). SIL OFL 1.1, licences beside
   the files. Subset by us from the full fonts (Latin, Latin-1, Latin Extended-A, typographic punctuation and
   the signs a digest prints: >= <= +- ~ en/em dash x %, approx, not-equal, minus) - Fontsource's Latin
   subsets left out >= and <=, which then fell back to the system sans (Roy, 2026-10-01). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/cormorant-garamond-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/static/fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/cormorant-garamond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/static/fonts/cormorant-garamond-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/cormorant-garamond-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("/static/fonts/cormorant-garamond-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-variable.woff2") format("woff2"); }

:root {
  /* Paper */
  --paper: #f6f1e9;
  --surface: #fdfaf5;
  --vellum: #efe7da;

  /* Ink */
  --ink: #1f1b16;
  --ink-2: #5f564c;
  --ink-3: #6e6458;
  --ink-4: #a39889;

  /* Rules */
  --rule: #ddd1bf;
  --rule-light: #e9e0d2;

  /* Signature accent (the box) */
  --sellier: #a84b1a;
  --sellier-deep: #8a3d14;

  /* Labels */
  --high-bg: #f3dccd;
  --high-ink: #8a3112;
  --medium-bg: #ede2c8;
  --medium-ink: #6b5220;
  --quiet-bg: #ebe4d8;
  --quiet-ink: #5f564c;

  /* Daily Scout: the two names next/font used to set */
  --font-cormorant: "Cormorant Garamond";
  --font-inter: "Inter";

  --font-display: var(--font-cormorant), "Cormorant Garamond", Georgia, Garamond, "Times New Roman", serif;
  --font-sans: var(--font-inter), -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 720px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--high-bg);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid var(--sellier);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.display em {
  font-style: italic;
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--ink);
}

.subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-2);
}

.section-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.quiet {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}

.meta {
  font-size: 13px;
  color: var(--ink-3);
}

.link {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 160ms ease, color 160ms ease;
}

.link:hover {
  color: var(--sellier-deep);
  border-bottom-color: var(--sellier);
}

.source-link {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sellier-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.source-link:hover {
  border-bottom-color: var(--sellier);
}

/* ---------- Beta banner ---------- */

.beta-banner {
  background: var(--ink);
  color: #efe7da;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 9px var(--gutter);
}

.beta-banner span {
  color: #e9a77f;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px var(--gutter) 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-nav {
  display: flex;
  gap: 32px;
  justify-self: start;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sellier);
}

.site-nav .soon {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-left: 6px;
}

.wordmark {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.header-account {
  justify-self: end;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  transform: translateY(-2px) rotate(45deg);
}

.account-menu[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 8px 0;
  z-index: 10;
}

.account-menu__panel a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.account-menu__panel a:hover {
  color: var(--ink);
  background: var(--paper);
}

.account-menu__label--short,
.account-menu__email {
  display: none;
}

.account-menu__email {
  padding: 10px 20px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-menu__email span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.account-menu__panel hr {
  border: 0;
  border-top: 1px solid var(--rule-light);
  margin: 8px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 96px;
  padding: 48px var(--gutter) 56px;
  text-align: center;
}

.site-footer__mark {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.site-footer__links a:hover {
  color: var(--ink);
}

.site-footer__disclaimer {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
}

/* ---------- Layout ---------- */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
}

.page--wide {
  max-width: 960px;
}

.page-head {
  text-align: center;
  margin-bottom: 56px;
}

.page-head .eyebrow {
  margin-bottom: 18px;
}

.page-head .subtitle {
  margin-top: 14px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto 0;
  color: var(--sellier);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--rule);
}

.ornament span {
  width: 5px;
  height: 5px;
  border: 1px solid var(--sellier);
  transform: rotate(45deg);
}

.surface {
  background: var(--surface);
  border: 1px solid var(--rule);
}

/* ---------- Labels ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.label--high {
  background: var(--high-bg);
  color: var(--high-ink);
}

.label--medium {
  background: var(--medium-bg);
  color: var(--medium-ink);
}

.label--quiet {
  background: var(--quiet-bg);
  color: var(--quiet-ink);
}

.label--beta {
  background: transparent;
  color: var(--sellier);
  border: 1px solid var(--sellier);
  padding: 2px 7px;
  font-size: 11px;
  letter-spacing: 0.24em;
}

.label--status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.label--building {
  background: transparent;
  color: var(--sellier-deep);
  border: 1px solid var(--rule);
}

.label--building::before {
  background: transparent;
  border: 1px solid currentColor;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 30px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--sellier-deep);
  border-color: var(--sellier-deep);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--block {
  width: 100%;
}

.btn--small {
  min-height: 38px;
  padding: 0 20px;
  font-size: 11px;
}

.btn:disabled {
  background: var(--vellum);
  border-color: var(--rule);
  color: var(--ink-4);
  cursor: not-allowed;
}

.text-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
}

.text-button:hover {
  color: var(--high-ink);
  border-bottom-color: currentColor;
}

/* ---------- Fields ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field__input {
  width: 100%;
  height: 50px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-3);
  border-radius: 0;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 160ms ease;
}

.field__input::placeholder {
  color: var(--ink-3);
}

.field__input:hover {
  border-bottom-color: var(--ink);
}

.field__input:focus {
  outline: none;
  border-bottom: 1px solid var(--sellier);
  box-shadow: 0 1px 0 0 var(--sellier);
}

.field__help {
  font-size: 12.5px;
  color: var(--ink-3);
}

.field--error .field__input {
  border-bottom-color: var(--high-ink);
  box-shadow: 0 1px 0 0 var(--high-ink);
}

.field--error .field__help {
  color: var(--high-ink);
}

/* ---------- Notices ---------- */

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.55;
  border-left: 2px solid;
}

.notice__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
  padding-top: 1px;
}

.notice__title {
  font-weight: 500;
  color: var(--ink);
}

.notice__body {
  color: var(--ink-2);
  margin-top: 4px;
}

.notice__actions {
  margin-top: 14px;
}

.notice--info {
  background: var(--vellum);
  border-color: var(--ink-3);
}

.notice--info .notice__mark {
  color: var(--ink-2);
}

.notice--error {
  background: var(--high-bg);
  border-color: var(--high-ink);
}

.notice--error .notice__mark,
.notice--error .notice__title {
  color: var(--high-ink);
}

.notice--accent {
  background: var(--surface);
  border-color: var(--sellier);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.notice--accent .notice__mark {
  color: var(--sellier);
}

/* ---------- Tables ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--ink);
}

.table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--rule-light);
  vertical-align: middle;
}

.table th:first-child,
.table td:first-child {
  padding-left: 0;
}

.table th:last-child,
.table td:last-child {
  padding-right: 0;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table--compact {
  font-size: 12.5px;
}

.table--compact td {
  padding: 11px 12px;
}

.symbol {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- Styleguide ---------- */

.sg-section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

.sg-section__head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  margin-bottom: 32px;
  align-items: baseline;
}

.sg-section__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--sellier);
}

.sg-section__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.sg-section__lede {
  grid-column: 2;
  color: var(--ink-2);
  font-size: 14px;
  max-width: 560px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.swatch__chip {
  height: 96px;
  border: 1px solid var(--rule);
  margin-bottom: 10px;
}

.swatch__name {
  font-size: 13px;
  font-weight: 500;
}

.swatch__value {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.type-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-light);
  align-items: baseline;
}

.type-row:last-child {
  border-bottom: 0;
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.sg-cell {
  min-width: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sg-cell__caption {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.spacing-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.spacing-bar span:first-child {
  height: 10px;
  background: var(--sellier);
  opacity: 0.85;
}

/* ---------- Sign in ---------- */

.signin-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}

.signin-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 56px 52px 48px;
  text-align: center;
}

.signin-card .title {
  margin: 18px 0 10px;
}

.signin-card form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.signin-card__note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
}

.state-caption {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.sent-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: 1px solid var(--sellier);
  display: grid;
  place-items: center;
  color: var(--sellier);
  transform: rotate(45deg);
}

.sent-mark svg {
  transform: rotate(-45deg);
}

/* ---------- Watchlist ---------- */

.wl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.wl-count {
  text-align: right;
}

.wl-count__num {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.wl-count__num small {
  font-size: 18px;
  color: var(--ink-3);
}

.wl-meter {
  width: 180px;
  height: 1px;
  background: var(--rule);
  margin-top: 12px;
  margin-left: auto;
  position: relative;
}

.wl-meter span {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  background: var(--sellier);
}

.add-ticker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}

.suggestions {
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 0;
}

.suggestions li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 20px;
  border-top: 1px solid var(--rule-light);
  font-size: 14px;
  cursor: pointer;
}

.suggestions li[aria-selected="true"] {
  background: var(--paper);
}

.suggestions li:hover {
  background: var(--paper);
}

.suggestions mark {
  background: none;
  color: var(--sellier-deep);
  font-weight: 600;
}

.suggestions__symbol {
  font-weight: 600;
  letter-spacing: 0.06em;
}

.suggestions__exchange {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.wl-table-wrap {
  margin-top: 64px;
}

.company {
  color: var(--ink-2);
}

.date-cell {
  color: var(--ink-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.building-note {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Digest ---------- */

.digest-masthead {
  text-align: center;
  margin-bottom: 48px;
}

.digest-masthead .eyebrow {
  margin-bottom: 16px;
}

.digest-masthead__date {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 400;
}

.digest-masthead__meta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.digest-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.digest-actions a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}

.digest-actions a:hover {
  border-bottom-color: var(--sellier);
  color: var(--sellier-deep);
}

.summary {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  padding: 32px 36px 28px;
}

.summary__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}

.summary li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-light);
  font-size: 15px;
  line-height: 1.55;
}

.summary li a.ticker-ref {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 12.5px;
  padding-top: 2px;
  color: var(--sellier-deep);
}

.ticker-block {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.ticker-block__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}

.ticker-block__symbol {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.ticker-block__company {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.ticker-section + .ticker-section {
  margin-top: 36px;
}

.whats-new li {
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--rule-light);
  position: relative;
  font-size: 15px;
  line-height: 1.55;
}

.whats-new li:last-child {
  border-bottom: 1px solid var(--rule-light);
}

.whats-new li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 23px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--sellier);
  transform: rotate(45deg);
}

.whats-new__source {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  margin-left: 8px;
  white-space: nowrap;
}

.whats-new__source time {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.why {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  padding-left: 22px;
  border-left: 1px solid var(--sellier);
}

.before {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.before p + p {
  margin-top: 10px;
}

.before-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.before-details summary::-webkit-details-marker {
  display: none;
}

.before-details summary .section-heading {
  margin-bottom: 0;
}

.before-details summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-3);
  line-height: 1;
}

.before-details[open] summary::after {
  content: "\2212";
}

.before-details[open] .before {
  margin-top: 14px;
}

.guidance {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 22px 24px 8px;
}

.guidance .table td:last-child {
  text-align: right;
}

.ticker-block__foot {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.quiet-line {
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.quiet-line .section-heading {
  margin-bottom: 10px;
}

.digest-close {
  text-align: center;
  padding-top: 48px;
}

.digest-close .quiet {
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Index ---------- */

.index-list li {
  border-top: 1px solid var(--rule);
}

.index-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.index-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 26px 0;
  transition: padding 240ms ease, background-color 240ms ease;
}

.index-list a:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: var(--surface);
}

.index-list__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--sellier);
}

.index-list__title {
  font-family: var(--font-display);
  font-size: 28px;
}

.index-list__desc {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.index-list__arrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 14.5px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "mark account"
      "nav nav";
    padding: 18px var(--gutter) 0;
    gap: 16px;
  }

  .wordmark {
    grid-area: mark;
    justify-self: start;
    align-items: flex-start;
  }

  .wordmark__name {
    font-size: 22px;
  }

  .header-account {
    grid-area: account;
  }

  .account-menu summary .account-email {
    display: none;
  }

  .account-menu__label--short {
    display: inline;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .account-menu__email {
    display: block;
  }

  .account-menu__panel {
    min-width: 0;
    width: min(260px, calc(100vw - 2 * var(--gutter)));
  }

  .site-nav {
    grid-area: nav;
    justify-self: stretch;
    justify-content: space-between;
    border-top: 1px solid var(--rule-light);
    padding: 12px 0;
    gap: 12px;
  }

  .site-nav a {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .page {
    padding-top: 48px;
  }

  .display {
    font-size: 34px;
  }

  .title {
    font-size: 28px;
  }

  .page-head {
    margin-bottom: 40px;
  }

  .sg-grid,
  .signin-wrap,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .sg-section__head {
    grid-template-columns: 36px 1fr;
  }

  .type-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .signin-card {
    padding: 40px 24px 32px;
  }

  .wl-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wl-count {
    text-align: left;
  }

  .wl-meter {
    margin-left: 0;
  }

  .add-ticker {
    grid-template-columns: 1fr;
  }

  .suggestions li {
    grid-template-columns: 60px 1fr;
  }

  .suggestions__exchange {
    display: none;
  }

  .wl-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .wl-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .wl-table tbody tr:first-child {
    border-top: 1px solid var(--ink);
  }

  .wl-table td,
  .wl-table td:first-child,
  .wl-table td:last-child {
    display: block;
    padding: 0;
    border: 0;
  }

  .wl-table .col-company {
    display: none;
  }

  .wl-table .company-inline {
    display: block;
  }

  .wl-table .col-symbol {
    grid-column: 1;
    grid-row: 1;
  }

  .wl-table .col-remove {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 6px;
  }

  .wl-table .col-coverage {
    grid-column: 1;
    grid-row: 2;
  }

  .wl-table .col-date {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    white-space: nowrap;
    padding-top: 3px;
  }

  .date-prefix {
    display: inline;
  }

  .sg-table .col-company {
    display: none;
  }

  .sg-table .company-inline {
    display: block;
  }

  .sg-table {
    width: 100%;
    table-layout: fixed;
  }

  .sg-table .label {
    white-space: normal;
    letter-spacing: 0.12em;
  }

  .sg-table .symbol,
  .sg-table .company-inline {
    overflow-wrap: anywhere;
  }

  .sg-table th,
  .sg-table td {
    padding-left: 6px;
    padding-right: 6px;
  }

  .sg-table th:first-child,
  .sg-table td:first-child {
    padding-left: 0;
  }

  .sg-table th:last-child,
  .sg-table td:last-child {
    padding-right: 0;
    white-space: normal;
  }

  .sg-cell {
    padding: 24px 20px;
  }

  .table td {
    padding: 16px 10px;
  }

  .digest-masthead__date {
    font-size: 36px;
  }

  .summary {
    padding: 24px 20px 18px;
  }

  .summary li {
    grid-template-columns: 52px 1fr;
    gap: 12px;
    font-size: 14.5px;
  }

  .ticker-block {
    padding: 44px 0 36px;
  }

  .ticker-block__symbol {
    font-size: 32px;
  }

  .why {
    font-size: 19px;
    padding-left: 16px;
  }

  .whats-new__source {
    display: flex;
    margin: 6px 0 0;
  }

  .guidance {
    padding: 18px 16px 4px;
    overflow-x: auto;
  }

  .index-list a {
    grid-template-columns: 36px 1fr;
  }

  .index-list__arrow {
    display: none;
  }
}

.company-inline {
  display: none;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
  line-height: 1.4;
}

.date-prefix {
  display: none;
}

/* ======================================================================================================
   Daily Scout additions (not in the v0 mockups). Each replaces an inline style in a mockup, or covers
   markup the mockups did not draw. Token values only - no new colours.
   ====================================================================================================== */

/* The mockups' inline styles, as classes */
.signin-card--narrow {
  max-width: 520px;
  margin: 0 auto;
}

.subtitle--compact {
  font-size: 17px;
}

.ink-strong {
  font-style: normal;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.signin-card__body {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 14px;
}

.signin-card__note--plain {
  border-top: 0;
  padding-top: 0;
}

.title--after-mark {
  margin-top: 36px;
}

.state-caption--left {
  margin-top: 40px;
  text-align: left;
}

.sg-cell--full {
  grid-column: 1 / -1;
}

.swatch__chip--label {
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.spacing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* A form whose only control is a button, sitting in running text or a menu */
.inline-form,
.signin-card .inline-form {
  display: inline;
  margin: 0;
}

/* A POST button that reads like .link ("Send another link") */
.link-button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 1px;
  margin: 0;
  cursor: pointer;
  font-style: normal;
  color: var(--ink);
  transition: border-color 160ms ease, color 160ms ease;
}

.link-button:hover {
  color: var(--sellier-deep);
  border-bottom-color: var(--sellier);
}

/* Sign out is a POST: a button styled exactly like the panel's links */
.account-menu__panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.account-menu__panel button:hover {
  color: var(--ink);
  background: var(--paper);
}

/* A nav item whose page is not built yet: same type as a link, no link */
.site-nav .nav-item--soon {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 0;
  white-space: nowrap;
}

/* A multi-line field in the underlined .field__input style (report an error) */
.field__input--area {
  height: auto;
  min-height: 120px;
  padding: 10px 2px;
  resize: vertical;
  line-height: 1.55;
}

/* The sign-in form's marketing opt-in (CASL express consent, unchecked by default) */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  margin: 3px 0 0;
  accent-color: var(--sellier);
}

/* Account page */
.account-list {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.account-list dt,
.account-list dd {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-light);
}

.account-list dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 21px;
}

.account-list dd {
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.page-notice {
  margin-bottom: 40px;
}

/* Watchlist (slice (c)): each match is a submit button carrying its symbol (no client script), laid out
   exactly like the mockup's <li> grid, which moves onto the button */
.suggestions li {
  display: block;
  padding: 0;
  cursor: default;
}

.suggestions__choice {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: baseline;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.suggestions__choice:hover,
.suggestions__choice:focus-visible {
  background: var(--paper);
}

.suggestions__choice:disabled {
  cursor: default;
  color: var(--ink-3);
}

.add-ticker__submit {
  align-self: start;
}

.wl-notice {
  margin-top: 28px;
}

/* Digest pages (slice (d)): pieces the digest mockup implies but did not draw */
.digest-empty {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 28px;
}

.digest-actions--close {
  margin-top: 28px;
}

.ticker-section.notice {
  margin-bottom: 28px;
}

/* One heading per dossier section inside "What we knew before" */
.before__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 6px;
}

.before__title:first-child {
  margin-top: 0;
}

/* Footnote markers in the dossier prose (the [1] citations) */
sup.fn {
  font-size: 10px;
  line-height: 0;
  margin-left: 1px;
  white-space: nowrap;
}

sup.fn a {
  color: var(--sellier-deep);
  border-bottom: 1px solid transparent;
}

sup.fn a:hover {
  border-bottom-color: var(--sellier);
}

/* A guidance value's earlier figure, under the current one */
.guidance__prior {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
}

.guidance__source-h {
  text-align: right;
}

/* "Not included": the analyst's exclusions for the day, collapsed and quiet */
.not-included-web {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
}

.not-included-web summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.not-included-web ul {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
}

.not-included-web li + li {
  margin-top: 4px;
}

.quiet-line__meta {
  margin-top: 8px;
}

.deliveries-note {
  margin-top: 24px;
}

/* Watchlist: the coverage label and the date added share one line on a phone (Roy, 2026-10-01). On a
   wide screen the date has its own column and .date-inline stays hidden. */
.coverage-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.date-inline {
  display: none;
}

@media (max-width: 760px) {
  /* td.col-date and td.col-coverage, not .col-date: the mockup's .wl-table td / td:last-child rules
     (display: block) and the later .table td (padding: 16px 10px) would otherwise win over a bare
     class selector. The date moves onto the coverage line (.date-inline) instead. */
  .wl-table td.col-date {
    display: none;
  }

  .wl-table td.col-coverage {
    grid-column: 1 / -1;
    padding: 0;
  }

  .suggestions__choice {
    grid-template-columns: 60px 1fr;
  }

  /* The archive and delivery tables drop their middle column on a phone (its text moves under the date) */
  .archive-table .col-company,
  .deliveries-table .col-company {
    display: none;
  }

  .archive-table .company-inline,
  .deliveries-table .company-inline {
    display: block;
  }

  .date-inline {
    display: inline;
  }

  .account-list {
    grid-template-columns: 1fr;
  }

  .account-list dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .account-list dd {
    padding-top: 6px;
  }
}

/* The admin pages (docs/admin-plan.md): behind the /admin basic-auth gate, never seen by a subscriber */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.admin-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--sellier-deep);
}

.admin-nav__mark {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--sellier-deep);
}

.admin-links {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.admin-links li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-light);
}

.admin-section {
  margin-top: 44px;
}

.admin-scroll {
  overflow-x: auto;
}

.admin-caption {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  color: var(--ink-3);
  padding-bottom: 6px;
}

.admin-facts {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 16px;
  margin: 0 0 20px;
  font-size: 14px;
}

.admin-facts dt {
  color: var(--ink-3);
}

.admin-facts dd {
  margin: 0;
}

.admin-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
}

.admin-notice {
  margin-top: 16px;
}

.admin-dossier {
  padding: 16px 0;
  border-top: 1px solid var(--rule-light);
}

.admin-quote {
  font-size: 12px;
  color: var(--ink-3);
  min-width: 260px;
}

.admin-revision {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--ink-2);
}

.admin-search {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 560px;
  margin-top: 8px;
}

.admin-search .field {
  flex: 1;
}

@media (max-width: 640px) {
  .admin-links li,
  .admin-facts {
    grid-template-columns: 1fr;
  }
}

.admin-nav .nav-item--soon,
.admin-links .nav-item--soon {
  color: var(--ink-4);
  white-space: nowrap;
}

.admin-nav .soon,
.admin-links .soon {
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.admin-day {
  border-top: 1px solid var(--rule-light);
  padding: 10px 0;
}

.admin-day summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
}

.admin-day summary strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 8px;
}

.admin-day[open] summary {
  margin-bottom: 10px;
}

/* Admin tables are wide (the ledger has nine columns): a wider page, and names that wrap at their
   underscores and colons, never letter by letter */
.page--admin {
  max-width: 1200px;
}

.admin-ledger td:first-child {
  min-width: 190px;
}

.admin-ledger .ink-strong {
  overflow-wrap: normal;
  word-break: normal;
}

.admin-revisions {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.admin-pager {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
}

/* a row label reads like a cell, not like a column heading */
.admin-week th[scope="row"] {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule-light);
}

.admin-week__group th {
  padding-top: 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  text-align: left;
}

.admin-week__total {
  font-weight: 600;
}

.admin-zero {
  color: var(--ink-4);
}

.admin-counts {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 24px;
  font-size: 14px;
}

.admin-counts li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule-light);
}

.admin-counts__n {
  font-weight: 600;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-top: 28px;
}

.admin-filter .field {
  min-width: 160px;
}

.admin-item {
  padding: 18px 0;
  border-top: 1px solid var(--rule-light);
}

.admin-item__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}

.admin-item__claim,
.admin-item__note {
  margin: 10px 0 4px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.admin-item__note {
  color: var(--ink-2);
  font-style: italic;
}

.admin-item__resolved {
  margin-top: 10px;
  font-size: 14px;
}

.admin-resolve {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
}

.admin-resolve__note {
  flex: 1;
  min-width: 200px;
}

.admin-item p {
  overflow-wrap: anywhere;
}

.admin-confirm {
  font-size: 17px;
  margin-bottom: 12px;
}

/* Admin corrections (slice 5): the correction forms, and the small inline regrade / mark-wrong forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-textarea {
  width: 100%;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
}

.admin-retire {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.admin-regrade summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--sellier);
  margin-top: 6px;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-inline-form .field__input {
  min-width: 0;
  flex: 1 1 140px;
}

/* A Low briefing grade (Roy, 2026-10-02): a day whose only news is low, such as a scheduled earnings date. The
   mockups drew High, Medium and Quiet only; Low takes Medium's ink on no fill, so it reads as a step below it. */
.label--low {
  background: transparent;
  color: var(--medium-ink);
  border: 1px solid var(--medium-bg);
}

/* A ticker beyond the plan's limit (CLAUDE.md rev 85 Q3): kept and listed, marked Paused, its row muted so the
   active tickers read first. The count's own "N paused" sits under the meter. */
.wl-count__paused {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.wl-row--paused .symbol,
.wl-row--paused .company,
.wl-row--paused .company-inline {
  color: var(--ink-3);
}

/* The same-day cutoff (CLAUDE.md rev 86): one line under the add form, and the empty watchlist as a new member's
   welcome, both stating the 4:30 PM rule */
.wl-cutoff {
  margin-top: 10px;
}

.wl-welcome {
  max-width: 62ch;
  color: var(--ink-2);
}

.wl-welcome p {
  margin: 0 0 10px;
}

.wl-welcome__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

/* The account page (Roy, 2026-10-02): country and product news are rows of the list, each with a "Change" link that
   opens its form in place; sections get the same space above their heading as the watchlist's; deleting the account
   sits at the bottom, apart */
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.account-row__change {
  font-size: 13px;
  white-space: nowrap;
}

.account-edit {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-edit__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-section {
  margin-top: 64px;
}

.account-delete {
  padding-top: 32px;
  border-top: 1px solid var(--rule-light);
}

.account-delete .meta {
  margin-top: 10px;
}

/* Admin members (Roy, 2026-10-02): the table fits at 1440 px; the send switch sits beside its status; turning on
   briefings to members asks first */
.admin-members th {
  letter-spacing: 0.04em;
  padding-left: 6px;
  padding-right: 6px;
  vertical-align: bottom;
}

.admin-members td {
  padding-left: 6px;
  padding-right: 6px;
}

.admin-members td:first-child {
  min-width: 150px;
  overflow-wrap: anywhere;
}

.admin-members td.nowrap {
  white-space: nowrap;
}

.admin-switch {
  white-space: nowrap;
}

.admin-switch span {
  margin-right: 8px;
}

/* Milestone 6 added the Billing column; in the members table the switch's button sits under its status so the table
   fits the admin column at 1440 px again (Roy, 2026-10-04) */
.admin-members td.admin-switch {
  white-space: normal;
}

.admin-members td.admin-switch span {
  display: block;
  margin: 0 0 6px;
  white-space: nowrap;
}

.admin-members td.admin-switch .btn {
  white-space: nowrap;
}

/* Cloudflare Turnstile on /login (Roy, 2026-10-04): empty unless Cloudflare asks for a check, then a full-width row
   above the button */
.turnstile-slot:not(:empty) {
  margin: 0 0 20px;
}

/* The two countries in one cell, and the five dates (invited, first and last sign-in, last briefing sent, Terms) in
   another, one per line, so the table fits with room to spare at 1440 px up to 125% zoom (Roy, 2026-10-04) */
.admin-members td.admin-country span,
.admin-members td.admin-dates > span {
  display: block;
  white-space: nowrap;
}

.admin-switch .btn--small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 10px;
}

.admin-confirm {
  margin-top: 8px;
}

.admin-filter {
  margin-top: 44px;
}

/* Admin intro paragraphs (Roy, 2026-10-02): the page's normal text width, left-aligned like the sections below */
.admin-intro {
  max-width: var(--measure);
  color: var(--ink-2);
}

/* Choosing a plan, /account/plan (milestone 6): a period switch, then one card per plan. Signed-in pages only; names are
   prefixed so nothing collides with home.css's plan rules on the public pages. */
.choose-plan__periods {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid var(--rule);
}

.choose-plan__period {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}

.choose-plan__period + .choose-plan__period {
  border-left: 1px solid var(--rule);
}

.choose-plan__period.is-current {
  background: var(--ink);
  color: var(--surface);
}

.choose-plan {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.choose-plan__card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.choose-plan__card.is-featured {
  border-color: var(--sellier);
}

.choose-plan__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.choose-plan__name {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.choose-plan__price {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.choose-plan__other {
  margin: 2px 0 0;
  min-height: 1.4em;
}

.choose-plan__note {
  margin: 10px 0 0;
}

.choose-plan__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.choose-plan__action {
  margin-top: 22px;
  min-height: 44px;
}

.choose-plan__list li + li {
  margin-top: 6px;
}

.choose-plan__guarantee {
  margin-top: 24px;
  max-width: var(--measure);
}

.choose-plan__guarantee + .choose-plan__guarantee {
  margin-top: 8px;
}

/* The billing rows on the account page (milestone 6) */
.account-billing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .choose-plan {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* The capacity page (/admin/capacity, launch rework plan Part 5): one row per limit, accent from 70% */
.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.cap-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.cap-row__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  align-items: baseline;
}
.cap-row__label {
  font-weight: 500;
}
.cap-row__ref {
  color: var(--quiet-ink);
  font-size: 12px;
  font-weight: 400;
}
.cap-row__value {
  font-variant-numeric: tabular-nums;
}
.cap-row--warn .cap-row__value,
.cap-row--over .cap-row__value {
  color: var(--sellier);
  font-weight: 500;
}
.cap-row--not_entered .cap-row__value,
.cap-row--unknown .cap-row__value {
  color: var(--quiet-ink);
}
.cap-bar {
  height: 4px;
  margin: 10px 0 8px;
  background: var(--rule);
}
.cap-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
}
.cap-row--warn .cap-bar span,
.cap-row--over .cap-bar span {
  background: var(--sellier);
}
.cap-row__detail,
.cap-row__source {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
.cap-row__source {
  color: var(--quiet-ink);
}
.cap-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.cap-entry__label {
  margin: 0;
  font-weight: 500;
}
.cap-entry__status {
  margin: 2px 0 8px;
  font-size: 13px;
  color: var(--quiet-ink);
}
.cap-entry__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
}
@media (max-width: 760px) {
  .cap-entry__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* a slide line in the draft panel and the editor's preview: the slide the public page will show (2026-10-06) */
.draft-slide {
  margin: 12px 0;
}
.draft-slide img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.draft-slide figcaption {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 4px;
}

.draft-verify {
  text-decoration: none;
}
.draft-verify mark {
  background: var(--high-bg);
  color: var(--high-ink);
  padding: 0 2px;
}
.draft-verify--kept mark {
  background: var(--quiet-bg);
  color: var(--ink-2);
}
/* a speaker the writer could not name (writer v6): Roy names it in the editor before publishing */
.draft-speaker {
  text-decoration: none;
}
.draft-speaker mark {
  background: var(--high-bg);
  color: var(--high-ink);
  padding: 0 2px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.draft-ref {
  font-size: 11.5px;
  color: var(--ink-4);
  text-decoration: none;
}

/* An admin flag (the IR columns' "8-K, no release"): the look of label--beta under its own name (main's review, ING-3) */
.label--flag {
  background: transparent;
  color: var(--sellier);
  border: 1px solid var(--sellier);
  padding: 2px 7px;
  font-size: 11px;
  letter-spacing: 0.24em;
}

/* The admin nav's count beside Releases (docs/ir-feeds-plan.md 16.9): only drawn with RELEASES_INBOX_ENABLED */
.admin-nav__count {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--sellier);
  color: var(--paper);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* The admin nav's current page (docs/ir-feeds-plan.md 16.9, the design mockup's mark): one rule, the link aria-current */
.admin-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--sellier);
}
