/* Herrera on Cigar Law. Brand tokens match hnewmedia.com. */
@font-face { font-family: "Spectral"; src: url("/assets/fonts/Spectral-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/Spectral-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/Spectral-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/Spectral-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/Plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/Plex-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/Plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0C2E51;
  --deep: #071E38;
  --deeper: #051628;
  --gold: #AD9362;
  --gold-lt: #C9AE79;
  --logo-gold: #BA9545;
  --gold-ink: #7E6537;      /* gold dark enough for small text on light grounds */
  --paper: #FFFFFF;
  --ivory: #FAF8F3;
  --cream: #F6F3EC;
  --ink: #0F1C2B;
  --ink-2: #2E4157;
  --muted: #56667A;
  --line: #D6DCE3;
  --line-soft: #E6EAEF;
  --on-dark: #E8EDF2;
  --on-dark-sub: #A8BDD3;
  --dark-line: #1E3450;

  --bg: var(--paper);
  --bg-alt: var(--ivory);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--muted);
  --rule: var(--line);
  --rule-soft: var(--line-soft);
  --accent-text: var(--gold-ink);
  --link: var(--navy);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1180px;
  --measure: 40rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081A2E; --bg-alt: #0B2138; --text: #E8EDF2; --text-2: #C3D0DD; --text-3: #93A7BC;
    --rule: #22395A; --rule-soft: #1A3150; --accent-text: #C9AE79; --link: #E8EDF2; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081A2E; --bg-alt: #0B2138; --text: #E8EDF2; --text-2: #C3D0DD; --text-3: #93A7BC;
  --rule: #22395A; --rule-soft: #1A3150; --accent-text: #C9AE79; --link: #E8EDF2; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--gold); color: var(--deep); padding: .5rem 1rem; z-index: 10; font-weight: 600; }
.skip:focus { top: .5rem; }

/* Eyebrow labels, matching the firm site */
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-text); display: inline-flex; align-items: center; gap: .75rem; margin: 0;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.eyebrow.plain::before { display: none; }

/* Utility bar and masthead */
.util { background: var(--deeper); color: var(--on-dark-sub); font-size: .78rem; }
.util .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; }
.util a { color: var(--on-dark); text-decoration: none; }
.util a:hover { color: var(--gold-lt); }
.util .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 640px) { .util .links a:not(:first-child) { display: none; } }

.masthead { background: var(--deep); color: var(--on-dark); border-bottom: 1px solid var(--dark-line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--on-dark); }
.brand svg { width: 34px; height: auto; flex: none; }
.brand .name { display: flex; flex-direction: column; line-height: 1; }
.brand .pre { font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: .35rem; }
.brand .word { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .12em; }
.brand .word sup { font-family: var(--sans); font-size: .32em; letter-spacing: .04em; vertical-align: top; position: relative; top: .1em; margin-left: .1em; }

.mainnav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.mainnav a { color: var(--on-dark); text-decoration: none; font-size: .92rem; padding: .6rem .7rem; border-radius: 2px; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--gold-lt); }
.mainnav .search-link, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  color: var(--on-dark); background: none; border: 1px solid var(--dark-line); border-radius: 2px; cursor: pointer; margin-left: .25rem;
}
.mainnav .search-link:hover, .theme-toggle:hover { border-color: var(--gold); color: var(--gold-lt); }
.mainnav .subscribe-btn { border: 1px solid var(--gold); color: var(--gold-lt); margin-left: .5rem; padding: .55rem 1rem; }
.mainnav .subscribe-btn:hover { background: var(--gold); color: var(--deep); }
@media (max-width: 860px) {
  .mainnav { width: 100%; justify-content: flex-start; margin-left: -.7rem; }
}

/* Home hero */
.hero { background: var(--deep); color: var(--on-dark); padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-lt); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; margin: 1.1rem 0 .9rem; letter-spacing: -.01em; max-width: 16ch; }
.hero h1 em { color: var(--gold-lt); font-style: italic; font-weight: 400; }
.hero p.lede { font-size: 1.15rem; color: var(--on-dark-sub); max-width: 38rem; margin: 0; }
.hero .badge { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); width: 220px; opacity: .95; }
@media (max-width: 960px) { .hero .badge { display: none; } }

/* Section headers */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .9rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; margin: .35rem 0 0; line-height: 1.15; }
.section-head .more { font-size: .88rem; color: var(--text-2); text-decoration: none; }
.section-head .more:hover { color: var(--accent-text); }

/* Lead + docket grid */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 960px) { .lead-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 3.5rem; } }
.lead h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; margin: .75rem 0 .9rem; }
.lead h2 a { text-decoration: none; color: var(--text); }
.lead h2 a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
:root[data-theme="dark"] .lead h2 a:hover { color: var(--gold-lt); }
.lead .dek { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--text-2); margin: 0 0 1.25rem; }
.lead ul.takeaways { margin: 1.5rem 0 0; }
.meta { font-size: .82rem; color: var(--text-3); display: flex; gap: .4rem .9rem; flex-wrap: wrap; align-items: center; }
.meta .dot::before { content: "·"; margin-right: .9rem; }
.meta a { color: var(--accent-text); text-decoration: none; font-weight: 500; }

.docket { border-top: 3px solid var(--gold); padding-top: 1rem; }
.docket h2 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: .4rem 0 .25rem; }
.docket .asof { font-size: .8rem; color: var(--text-3); margin: 0 0 1rem; }
.docket ul { list-style: none; padding: 0; margin: 0; }
.docket li { border-bottom: 1px solid var(--rule-soft); padding: .8rem 0; }
.docket li a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; line-height: 1.35; display: block; }
.docket li a:hover { color: var(--accent-text); }
.docket .row { display: flex; gap: .65rem; align-items: baseline; }
.status { font-size: .78rem; color: var(--text-2); display: inline-flex; align-items: center; gap: .45rem; margin-top: .25rem; }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; flex: none; background: var(--muted); }
.status.active::before { background: #2F7D5B; }
.status.watch::before { background: var(--logo-gold); }
.status.closed::before { background: transparent; border: 1.5px solid var(--muted); width: .45rem; height: .45rem; }

/* Post list */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: 1.5rem 0; border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: .6rem; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin: 0; }
.card h3 a { text-decoration: none; color: var(--text); }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.card p { margin: 0; color: var(--text-2); font-size: .98rem; }

/* Topics index */
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic-tile { background: var(--bg); padding: 1.5rem; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: .5rem; min-height: 10rem; }
.topic-tile:hover { background: var(--bg-alt); }
.topic-tile h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0; }
.topic-tile p { margin: 0; color: var(--text-2); font-size: .93rem; }
.topic-tile .count { margin-top: auto; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }

/* Dates strip */
.dates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 760px) { .dates.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; } }
.dates li { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.dates .when { font-family: var(--serif); line-height: 1.1; }
.dates .when .m { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.dates .when .d { font-size: 1.9rem; font-weight: 500; }
.dates .when .y { display: block; font-size: .8rem; color: var(--text-3); font-family: var(--sans); }
.dates .when .approx { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--accent-text); line-height: 1.3; }
.dates .what strong { display: block; font-weight: 500; line-height: 1.35; }
.dates .what span { font-size: .88rem; color: var(--text-2); }
.dates .what a { font-size: .85rem; color: var(--accent-text); text-decoration: none; font-weight: 500; }

/* Subscribe band */
.band { background: var(--deep); color: var(--on-dark); padding: 3.5rem 0; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; } }
.band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.12; margin: .75rem 0 .75rem; }
.band p { color: var(--on-dark-sub); margin: 0; }
.band .eyebrow { color: var(--gold-lt); }
form.subscribe { display: flex; flex-direction: column; gap: .75rem; }
form.subscribe .fields { display: flex; gap: .5rem; flex-wrap: wrap; }
form.subscribe label { font-size: .85rem; color: var(--on-dark-sub); }
form.subscribe input[type="email"], form.subscribe input[type="text"] {
  flex: 1 1 14rem; min-height: 48px; padding: .7rem .9rem; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 2px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem;
  font: inherit; font-weight: 500; color: var(--deep); background: var(--gold-lt); border: 1px solid var(--gold-lt); border-radius: 2px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #D9C08E; border-color: #D9C08E; }
.btn.ghost { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.fineprint { font-size: .78rem; color: var(--on-dark-sub); }
.hidden-field { display: none; }

/* Article */
.article-head { background: var(--deep); color: var(--on-dark); padding: 3rem 0 2.75rem; border-bottom: 1px solid var(--dark-line); }
.article-head .eyebrow { color: var(--gold-lt); }
.article-head .eyebrow a { color: inherit; text-decoration: none; }
.article-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 1rem 0 1rem; max-width: 22ch; letter-spacing: -.005em; }
.article-head .dek { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--on-dark-sub); max-width: 44rem; margin: 0 0 1.5rem; }
.article-head .meta { color: var(--on-dark-sub); }
.article-head .meta a { color: var(--gold-lt); }
.byline { display: flex; align-items: center; gap: .75rem; }
.byline .mono { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); color: var(--gold-lt); font-size: 1rem; flex: none; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 3rem 0 4rem; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); justify-content: space-between; gap: 4rem; } }
.article-aside { order: -1; }
@media (min-width: 1040px) { .article-aside { order: 0; } .article-aside .sticky { position: sticky; top: 1.5rem; } }
.aside-block { border-top: 1px solid var(--rule); padding: 1rem 0 1.25rem; font-size: .9rem; }
.aside-block h2 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.toc a { text-decoration: none; color: var(--text-2); line-height: 1.35; display: block; padding-left: .75rem; border-left: 1px solid var(--rule); }
.toc a:hover, .toc a.is-active { color: var(--text); border-left-color: var(--gold); }
@media (max-width: 1039px) { .toc { display: none; } }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--rule); color: var(--text-2); background: none; border-radius: 2px; text-decoration: none; font: inherit; font-size: .85rem; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--gold); color: var(--text); }

.prose { font-family: var(--serif); font-size: 1.22rem; line-height: 1.68; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-bottom: 0; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.2; margin: 2.2em 0 0; scroll-margin-top: 1.5rem; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; margin: 1.8em 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 600; }
.prose blockquote { margin-left: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--gold); color: var(--text-2); font-style: italic; }
.prose .callout { font-family: var(--sans); font-size: 1rem; line-height: 1.6; background: var(--bg-alt); border-top: 2px solid var(--gold); padding: 1.1rem 1.25rem; }
.prose .callout p { margin: 0; }
.prose .callout p + p { margin-top: .6em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.prose a { color: var(--link); }

.takeaways-box { border-top: 2px solid var(--gold); background: var(--bg-alt); padding: 1.25rem 1.5rem 1.4rem; margin-bottom: 2.5rem; }
.takeaways-box h2 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .75rem; }
ul.takeaways { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
ul.takeaways li { position: relative; padding-left: 1.4rem; line-height: 1.5; color: var(--text); }
ul.takeaways li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 1px; background: var(--gold); }

.sources { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; font-size: .9rem; }
.sources h2 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .75rem; }
.sources ol { padding-left: 1.25rem; margin: 0; display: grid; gap: .45rem; color: var(--text-2); }
.sources a { word-break: break-word; }
.post-note { margin-top: 2rem; font-size: .85rem; color: var(--text-3); border-top: 1px solid var(--rule-soft); padding-top: 1rem; }

/* Page */
.page-head { background: var(--deep); color: var(--on-dark); padding: 2.75rem 0 2.5rem; }
.page-head .eyebrow { color: var(--gold-lt); }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin: .9rem 0 .6rem; }
.page-head p { color: var(--on-dark-sub); max-width: 42rem; margin: 0; font-size: 1.08rem; }
.page-body { padding: 3rem 0 4rem; }
.page-body .prose { max-width: var(--measure); }

/* Tracker table */
.tracker-group { margin-bottom: 3rem; }
.tracker-group h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 .5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid var(--text); padding-bottom: .6rem; }
.tracker-group h2 a { font-family: var(--sans); font-size: .85rem; color: var(--accent-text); text-decoration: none; font-weight: 500; }
.tracker-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 800px) { .tracker-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.6fr); } }
.tracker-row .n { font-weight: 500; line-height: 1.35; }
.tracker-row .n a { color: var(--text); }
.tracker-row .s { font-size: .9rem; }
.tracker-row .s .status { margin-top: 0; font-size: .9rem; color: var(--text); }
.tracker-row .x { font-size: .92rem; color: var(--text-2); }
.legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0 0 2.5rem; font-size: .85rem; }

/* Search */
.search-shell { max-width: 44rem; }
.pagefind-ui { --pagefind-ui-scale: .9; --pagefind-ui-primary: var(--navy); --pagefind-ui-text: var(--text); --pagefind-ui-background: var(--bg); --pagefind-ui-border: var(--rule); --pagefind-ui-tag: var(--bg-alt); --pagefind-ui-border-radius: 2px; --pagefind-ui-font: var(--sans); }

/* Footer */
.site-footer { background: var(--deeper); color: var(--on-dark-sub); padding: 3rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 800px) { .site-footer .cols { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.site-footer h2 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lt); margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.site-footer .lockup { width: 260px; max-width: 100%; display: block; margin-bottom: 1rem; }
.site-footer .legal { border-top: 1px solid var(--dark-line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .78rem; line-height: 1.55; display: grid; gap: .5rem; }

/* Print */
@media print {
  .util, .masthead nav, .article-aside, .band, .site-footer, .skip, .share { display: none !important; }
  .article-head, .masthead { background: none; color: #000; }
  .article-head h1, .article-head .dek, .article-head .meta { color: #000; }
  .prose { font-size: 11.5pt; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* ---- Brand scale-up and authority elements ---- */
sup.tm, .brand .word sup, .hl-word sup { font-family: var(--sans); font-weight: 500; font-size: .36em; letter-spacing: .03em; vertical-align: top; position: relative; top: .12em; margin-left: .1em; line-height: 1; }
.prose sup.tm, .card sup.tm, .lead sup.tm, p sup.tm, h1 sup.tm, h2 sup.tm, h3 sup.tm, li sup.tm, a sup.tm, span sup.tm, strong sup.tm, em sup.tm { font-size: .5em; top: -.05em; }

.masthead .wrap { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { gap: 1.1rem; }
.brand svg { width: 52px; }
.brand .pre { font-size: .72rem; letter-spacing: .34em; margin-bottom: .4rem; }
.brand .word { font-size: 2.15rem; letter-spacing: .12em; }
.brand .since { display: flex; align-items: center; gap: .6rem; margin-top: .45rem; font-family: var(--sans); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-lt); }
.brand .since::before, .brand .since::after { content: ""; height: 1px; flex: 1; background: var(--gold); opacity: .8; }
@media (max-width: 520px) { .brand .word { font-size: 1.65rem; } .brand svg { width: 42px; } }

.hero { padding: 4rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; } }
.hero .badge { position: static; transform: none; width: 320px; max-width: 70vw; justify-self: center; display: block; }
@media (max-width: 999px) { .hero .badge { width: 220px; } }
.hero-lockup { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); margin: 0; max-width: none; font-weight: inherit; }
.hl-icon { flex: none; width: clamp(64px, 11vw, 150px); }
.hl-icon svg { width: 100%; height: auto; display: block; }
.hl-text { display: flex; flex-direction: column; min-width: 0; }
.hl-pre { font-family: var(--sans); font-size: clamp(.8rem, 1.6vw, 1.2rem); font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: .55rem; }
.hl-word { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 8.6vw, 7.2rem); line-height: .95; letter-spacing: .1em; color: var(--on-dark); white-space: nowrap; }
.hl-since { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-family: var(--sans); font-size: clamp(.75rem, 1.3vw, 1.05rem); font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-lt); }
.hl-since::before, .hl-since::after { content: ""; height: 1px; flex: 1; background: var(--gold); }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--gold-lt); margin: 2rem 0 .75rem; }
.hero p.lede { max-width: 44rem; }

.creds { background: var(--deeper); color: var(--on-dark); border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.creds ul { list-style: none; margin: 0; padding: 1.75rem 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2.5rem; }
@media (min-width: 640px) { .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .creds ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.creds li { display: flex; flex-direction: column; gap: .3rem; border-left: 1px solid var(--gold); padding-left: 1rem; }
.creds strong { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--gold-lt); line-height: 1.1; }
.creds span { font-size: .9rem; color: var(--on-dark-sub); line-height: 1.45; }

.article-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 1040px) { .article-head-grid { grid-template-columns: minmax(0, 1fr) 170px; } }
.head-seal { display: none; }
@media (min-width: 1040px) { .head-seal { display: block; } }
.head-seal img { width: 170px; display: block; }

.author-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 3rem; padding: 1.5rem; background: var(--deep); color: var(--on-dark); border-top: 3px solid var(--gold); }
@media (min-width: 640px) { .author-box { grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 1.75rem; } }
.author-box img { width: 132px; }
.author-box .eyebrow { color: var(--gold-lt); }
.author-box h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: .3rem 0 .5rem; color: var(--on-dark); }
.author-box p { margin: 0 0 .6rem; color: var(--on-dark-sub); font-size: .98rem; line-height: 1.6; }
.author-box a { color: var(--gold-lt); }

.site-footer .badge-foot { width: 150px; display: block; margin-bottom: 1.25rem; }
.site-footer .foot-pre { font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-lt); margin: 0 0 .5rem; }
.site-footer .lockup { width: 380px; }

/* fit fixes */
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 270px; } .hero .badge { width: 270px; } }
.hl-word { font-size: clamp(2.3rem, 7.4vw, 4.9rem); }
.hl-icon { width: clamp(58px, 9vw, 124px); }
.eyebrow { display: block; }
.eyebrow::before { display: inline-block; vertical-align: middle; margin-right: .75rem; position: relative; top: -.1em; }
.eyebrow.plain::before { display: none; }
.eyebrow sup.tm { font-size: .7em; top: -.1em; letter-spacing: .05em; margin-left: .15em; }
.hero-tag sup.tm { font-style: normal; font-size: .4em; top: .15em; }

.about-seal { float: right; margin: 0 0 1.5rem 2rem; }
.about-seal img { width: 220px; display: block; }
@media (max-width: 640px) { .about-seal { float: none; margin: 0 0 1.5rem; } .about-seal img { width: 170px; } }
.page-head .eyebrow sup.tm { font-size: .7em; }

/* ---- Family of sites ---- */
.util .family-links { display: flex; align-items: center; gap: .4rem 1.1rem; flex-wrap: wrap; }
.util .family-links .lbl { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-sub); }
.util .family-links a::before, .util .soon-wrap::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); margin-right: .5rem; position: relative; top: -.12em; }
.util .soon-wrap { color: var(--on-dark-sub); }
.util .soon { border: 1px solid var(--gold); color: var(--gold-lt); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: .1rem .35rem; margin-left: .3rem; }
@media (max-width: 760px) { .util .family-links .lbl, .util .soon-wrap { display: none; } }

.site-footer .family { border-top: 1px solid var(--dark-line); margin-top: 2.5rem; padding-top: 2rem; }
.site-footer .family ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .site-footer .family ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .site-footer .family ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fam-card { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--dark-line); border-top: 2px solid var(--gold); color: var(--on-dark); text-decoration: none; transition: border-color .15s, background .15s; }
a.fam-card:hover { background: rgba(186,149,69,.07); border-color: var(--gold); }
.fam-card.is-soon { opacity: .8; }
.fam-word { font-size: 1.05rem; letter-spacing: .16em; color: var(--on-dark); margin: 0; line-height: 1.2; }
.fam-word.serif { font-family: var(--serif); font-weight: 500; }
.fam-word.sans { font-family: var(--sans); font-weight: 600; }
.fam-sub { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); }
.fam-tag { font-size: .85rem; color: var(--on-dark-sub); line-height: 1.5; }
.fam-url { margin-top: auto; padding-top: .4rem; font-size: .8rem; color: var(--gold-lt); }

.aside-block.promo { background: var(--deep); color: var(--on-dark); padding: 1rem 1.1rem 1.15rem; border-top: 2px solid var(--gold); }
.aside-block.promo h2 { color: var(--gold-lt); }
.aside-block.promo .fam-word { font-size: 1rem; }
.promo-tag { margin: .5rem 0 .75rem; color: var(--on-dark-sub); font-size: .88rem; line-height: 1.5; }
.promo-link { color: var(--gold-lt); font-weight: 500; font-size: .88rem; }

/* family logos */
.fam-logo { display: flex; align-items: center; gap: .7rem; min-height: 46px; margin-bottom: .35rem; }
.fam-logo img { display: block; height: 40px; width: auto; }
.fam-logo.wide img { height: 42px; }
.fam-logo.stack img { height: 40px; }
.fam-logo.mark img { height: 38px; }
.fam-logo-word { display: flex; flex-direction: column; line-height: 1.1; }
.fam-logo-word b { font-family: var(--serif); font-weight: 500; font-size: .98rem; letter-spacing: .14em; color: #F6F3EC; }
.fam-logo-word small { font-family: var(--sans); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-lt); margin-top: .2rem; }
.aside-block.promo .fam-logo { margin: .25rem 0 .1rem; }
.fam-logo-word b { font-size: .84rem; white-space: nowrap; letter-spacing: .12em; }
.fam-logo.mark img { height: 34px; }
.fam-logo { min-height: 34px; }
.fam-logo img, .fam-logo.wide img, .fam-logo.stack img { height: 30px; max-width: 160px; }
.fam-logo.mark img { height: 26px; }
.fam-logo-word b { font-size: .78rem; }
.fam-logo { min-height: 52px; gap: .8rem; }
.fam-logo img, .fam-logo.wide img, .fam-logo.stack img { height: 46px; max-width: 220px; }
.fam-logo.mark img { height: 40px; }
.fam-logo-word b { font-size: .92rem; }
.aside-block.promo .fam-logo img { height: 40px; }
.fam-logo.mark { gap: .6rem; }
.fam-logo.mark img { height: 38px; }
.fam-logo-word b { font-size: .8rem; letter-spacing: .08em; }
.fam-logo-word small { font-size: .55rem; letter-spacing: .26em; }

/* State heat map (tile grid) */
.hm { --h1:#F3E8D2; --h2:#E2C48C; --h3:#C6914B; --h4:#94592A; --h5:#5A3015; --hl:#0F1C2B; --hd:#FFFFFF;
  position: relative; margin: 2rem 0 0; font-family: var(--sans); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hm { --h1:#2E2A24; --h2:#5E4526; --h3:#8E6630; --h4:#C49650; --h5:#EBCF98; --hl:#FFFFFF; --hd:#0F1C2B; } }
:root[data-theme="dark"] .hm { --h1:#2E2A24; --h2:#5E4526; --h3:#8E6630; --h4:#C49650; --h5:#EBCF98; --hl:#FFFFFF; --hd:#0F1C2B; }
.hm-svg { display: block; width: 100%; height: auto; }
.hm-tile { cursor: default; outline: none; }
.hm-tile rect { stroke: var(--bg); stroke-width: 2; }
.hm-tile.b1 rect { fill: var(--h1); stroke: var(--rule); stroke-width: 1; }
.hm-tile.b2 rect { fill: var(--h2); } .hm-tile.b3 rect { fill: var(--h3); }
.hm-tile.b4 rect { fill: var(--h4); } .hm-tile.b5 rect { fill: var(--h5); }
.hm-tile text { text-anchor: middle; font-family: var(--sans); fill: var(--hl); pointer-events: none; }
.hm-tile.b4 text, .hm-tile.b5 text { fill: var(--hd); }
.hm-ab { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.hm-sc { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .85; }
.hm-tile:hover rect, .hm-tile:focus rect { stroke: var(--text); stroke-width: 2.5; }
.hm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: 1rem; font-size: .82rem; color: var(--text-2); }
.hm-lg-lab { color: var(--text-3); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.hm-sw { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.hm-sw i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.hm-sw.b1 i { background: var(--h1); box-shadow: inset 0 0 0 1px var(--rule); } .hm-sw.b2 i { background: var(--h2); }
.hm-sw.b3 i { background: var(--h3); } .hm-sw.b4 i { background: var(--h4); } .hm-sw.b5 i { background: var(--h5); }
.hm figcaption { margin-top: .6rem; font-size: .85rem; color: var(--text-3); }
.hm-tip { position: absolute; z-index: 5; width: 18rem; max-width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--rule);
  border-top: 2px solid var(--gold); box-shadow: 0 6px 24px rgba(7,30,56,.18); padding: .7rem .85rem; font-size: .84rem; line-height: 1.4; pointer-events: none; }
.hm-tip strong { font-weight: 600; display: block; margin-bottom: .35rem; }
.hm-tip dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; }
.hm-tip dt { color: var(--text-3); } .hm-tip dd { margin: 0; text-align: right; }
.hm-table { margin-top: 1.5rem; font-family: var(--sans); }
.hm-table summary { cursor: pointer; font-size: .95rem; color: var(--link); font-weight: 500; }
.hm-table table { margin-top: .8rem; font-size: .85rem; }
.hm-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .hm-ab { font-size: 21px; } .hm-sc { font-size: 18px; } .hm-tile text.hm-ab { transform: translateY(-2px); } }
/* Heat Map page: let the map and table use the full content width */
.page-body .prose .hm, .page-body .prose .hm-table { width: min(68rem, calc(100vw - 2rem)); max-width: none; }
@media (min-width: 720px) { .page-body .prose .hm, .page-body .prose .hm-table { width: min(68rem, calc(100vw - 4rem)); } }
