/* ============================================================================
   Signal House editorial layer v1.2 — INHERITS Source's token system.
   IMPORTANT: Source sets html{font-size:62.5%} → 1rem = 10px. Every rem here
   is authored on that 10px scale (v1.1 was authored on a 16px assumption and
   rendered ~62.5% of intended size — do not regress this).
   Display face = Space Grotesk (variable, wght 300–700 ONLY: never 800+ on
   any element using --sh-display or the browser fakes bold).
   Spacing rhythm = var(--container-gap); grays = Source color tokens; only
   true brand values (amber, ink, deep navy) are ours. Accent flows from Ghost
   settings via var(--ghost-accent-color).
   ========================================================================== */
:root {
  --sh-ink: #0f1420;
  --sh-navy-deep: #0b2740;
  --sh-amber: #f9a825;
  --sh-num: #6b7785;            /* ranked numerals: 4.5:1 on white — they are content, not decoration */
  --sh-rhythm: var(--container-gap, 32px);
  --sh-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Type system: display grade ---------------------------------------- */
.is-title, .gh-article-title { letter-spacing: -0.022em; }
.gh-article-title { font-family: var(--sh-display); font-weight: 700; font-size: clamp(3.6rem, 2vw + 2.9rem, 5.6rem); letter-spacing: -0.03em; line-height: 1.03; text-wrap: balance; }
body { color: var(--sh-ink); }
.gh-content { font-variant-numeric: lining-nums; }
.gh-content h2, .gh-content h3 { letter-spacing: -0.02em; }
.gh-card-title { font-family: var(--sh-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; }

.sh-wordmark { font-family: var(--sh-display); font-weight: 700; letter-spacing: -0.035em; color: var(--sh-ink); }
.sh-wordmark::after { content: ""; display: inline-block; width: 0.3em; height: 0.3em;
  background: var(--sh-amber); border-radius: 2px; margin-left: 0.16em; }
.gh-navigation-logo { font-size: calc(2.6rem * var(--factor, 1)); }
.gh-navigation.has-accent-color .sh-wordmark { color: #fff; }

.sh-kicker {
  font-family: var(--sh-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ghost-accent-color, #076196); margin-bottom: 6px;
}
.sh-meta { font-size: 1.2rem; color: var(--color-secondary-text, #767676); font-variant-numeric: tabular-nums; }

/* ---- Brand band: slim editorial strip ----------------------------------- */
.sh-band { background: linear-gradient(120deg, var(--ghost-accent-color, #076196) 0%, var(--sh-navy-deep) 100%); color: #fff; }
.sh-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: calc(var(--sh-rhythm) * 0.55) 0; }
.sh-band-title { color: #fff; font-family: var(--sh-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; white-space: nowrap; }
.sh-band-title::after { content: none; }
.sh-band-sub { opacity: 0.85; margin: 0; font-size: 1.4rem; line-height: 1.4; flex: 1 1 320px; }
.sh-band-ctas { display: flex; gap: 10px; }
.sh-btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-weight: 600; font-size: 1.35rem; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.sh-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.18); text-decoration: none; }
.sh-btn-light { background: #fff; color: var(--ghost-accent-color, #076196); }
.sh-btn-light:hover { color: var(--ghost-accent-color, #076196); }
.sh-btn-ghost { display: none; } /* slim band: one CTA only */

/* ---- Modules: rhythm from Source's own gap math -------------------------- */
/* padding-block, NOT the padding shorthand: a shorthand `0` wipes .gh-outer's side gutters (phones went edge-to-edge) */
.sh-module { padding-block: calc(var(--sh-rhythm) * 0.9) calc(var(--sh-rhythm) * 0.35); }
.sh-section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--sh-ink); padding-bottom: 8px; margin-bottom: calc(var(--sh-rhythm) * 0.4); }
.sh-section-title { font-family: var(--sh-display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.sh-section-more { font-size: 1.25rem; font-weight: 600; color: var(--ghost-accent-color, #076196); text-decoration: none; transition: color .12s ease; }
.sh-section-more:hover { text-decoration: underline; text-decoration-color: var(--sh-amber); text-underline-offset: 3px; }

/* Unify Source's post-list header ("Latest") with the house section style */
.gh-container-title {
  font-family: var(--sh-display); font-size: 1.3rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 2px solid var(--sh-ink); padding-bottom: 8px; margin-bottom: calc(var(--sh-rhythm) * 0.4);
}

/* ---- Lead package --------------------------------------------------------- */
.sh-lead-grid { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: calc(var(--sh-rhythm) * 1.25); }
.sh-lead-image-link { display: block; overflow: hidden; border: 1px solid var(--color-border, #e6e9ed); border-radius: 6px; margin-bottom: 16px; }
.sh-lead-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .25s ease, opacity .25s ease; }
.sh-lead-image-link:hover .sh-lead-image { transform: scale(1.015); opacity: 0.96; }
.sh-lead-title { font-family: var(--sh-display); font-size: clamp(2.8rem, 2vw + 2rem, 4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; margin: 0 0 10px; text-wrap: balance; }
.sh-lead-title a { color: var(--sh-ink); text-decoration: none; transition: color .12s ease; }
.sh-lead-title a:hover { color: var(--ghost-accent-color, #076196); }
.sh-lead-dek { color: var(--color-darker-gray, #444); font-size: 1.6rem; line-height: 1.55; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sh-secondary { display: flex; flex-direction: column; border-left: 1px solid var(--color-border, #e6e9ed); padding-left: calc(var(--sh-rhythm) * 0.75); }
.sh-secondary-item { padding: 13px 0; border-bottom: 1px solid var(--color-border, #e6e9ed); }
.sh-secondary-item:first-child { padding-top: 0; }
.sh-secondary-title { font-family: var(--sh-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.012em; line-height: 1.28; margin: 0 0 5px; }
.sh-secondary-title a { color: var(--sh-ink); text-decoration: none; transition: color .12s ease; }
.sh-secondary-title a:hover { color: var(--ghost-accent-color, #076196); }
.sh-rail-more { margin-top: auto; padding-top: 14px; font-size: 1.3rem; font-weight: 700; color: var(--ghost-accent-color, #076196); text-decoration: none; }
.sh-rail-more:hover { text-decoration: underline; text-decoration-color: var(--sh-amber); text-underline-offset: 3px; }

/* ---- Ranked list: aligned grid, legible numerals -------------------------- */
.sh-ranked { list-style: none; counter-reset: shr; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row; column-gap: calc(var(--sh-rhythm) * 1.25); }
.sh-ranked-item { counter-increment: shr; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--color-border, #e6e9ed); position: relative; }
.sh-ranked-item::before { content: counter(shr, decimal-leading-zero); position: absolute; left: 0; top: 10px;
  font-family: var(--sh-display); font-weight: 700; font-size: 1.75rem; color: var(--sh-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sh-ranked-item a { color: var(--sh-ink); font-family: var(--sh-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.008em; line-height: 1.35; text-decoration: none; transition: color .12s ease; }
.sh-ranked-item a:hover { color: var(--ghost-accent-color, #076196); }
.sh-chip { display: none; } /* chips added noise; tags live on hover/detail */

/* ---- Topic rows ------------------------------------------------------------ */
.sh-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--sh-rhythm) * 1.25); }
.sh-headline-list { list-style: none; margin: 0; padding: 0; }
.sh-headline-list li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--color-border, #e6e9ed); }
.sh-headline-list a { color: var(--sh-ink); font-family: var(--sh-display); font-weight: 600; font-size: 1.45rem; line-height: 1.4; letter-spacing: -0.005em; text-decoration: none; transition: color .12s ease; }
.sh-headline-list a:hover { color: var(--ghost-accent-color, #076196); }
.sh-headline-list time { font-size: 1.15rem; color: var(--color-secondary-text, #767676); white-space: nowrap; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Focus + motion -------------------------------------------------------
   WCAG 2.2 SC 1.4.11: amber alone is 1.97:1 on white — light surfaces get a
   two-tone ring (ink outline + amber halo); dark surfaces keep pure amber. */
a:focus-visible, button:focus-visible, input:focus-visible, [data-portal]:focus-visible {
  outline: 2px solid var(--sh-ink); outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--sh-amber); border-radius: 2px;
}
.sh-band a:focus-visible, .sh-band button:focus-visible,
.gh-footer a:focus-visible, .gh-footer button:focus-visible, .gh-footer input:focus-visible {
  outline: 3px solid var(--sh-amber); box-shadow: none;
}

/* Read-state for the library lists: 340+ articles, readers need to know where
   they've been. Muted slate, 6.6:1 — clearly "read", not disabled. */
.sh-ranked-item a:visited, .sh-headline-list a:visited,
.sh-secondary-title a:visited, .gh-card-title:visited { color: #566577; }
@media (prefers-reduced-motion: reduce) {
  .sh-btn, .sh-lead-image, .sh-lead-title a, .sh-secondary-title a, .sh-ranked-item a,
  .sh-headline-list a, .sh-section-more { transition: none !important; }
}

/* ---- Article page ----------------------------------------------------------- */
.gh-article { --content-width: 680px; } /* ~75ch measure; wide/full kg-cards unaffected (grid columns) */
.gh-article-excerpt { color: var(--color-secondary-text, #767676); font-size: 1.7rem; line-height: 1.55; }
.gh-content table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; font-size: 0.93em; margin: 24px 0; border: 1px solid var(--color-border, #e6e9ed); }
.gh-content table th { background: var(--ghost-accent-color, #076196); color: #fff; text-align: left; padding: 10px 14px; font-weight: 700; }
.gh-content table td { padding: 9px 14px; border-bottom: 1px solid var(--color-border, #e6e9ed); } /* lighter-gray = even-row bg → rules vanished */
.gh-content table tbody tr:nth-child(even) { background: var(--color-lighter-gray, #f8f9fa); }
.gh-content a:hover { text-decoration-color: var(--sh-amber); }
.ds-tldr, .ds-numbers, .ds-sowhat { border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.ds-tldr { background: #f0f7ff; border-left: 4px solid var(--ghost-accent-color, #076196); }
.ds-numbers { background: var(--color-lighter-gray, #f8f9fa); border: 1px solid var(--color-border, #e6e9ed); }
.ds-sowhat { background: #fff8e6; border-left: 4px solid var(--sh-amber); }
.ds-block-label { display: block; font-size: 0.72em; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ghost-accent-color, #076196); margin-bottom: 8px; }
.ds-sowhat .ds-block-label { color: #8a5800; } /* 5.3:1 on the amber wash; #b27200 was 3.74:1 */
.gh-post-upgrade-cta-content { border: 1px solid var(--color-border, #e6e9ed); border-radius: 10px; }

/* ---- Footer (editorial dark) ------------------------------------------------
   The footer carries has-accent-color unconditionally (footer.hbs) so Source's
   dark-surface branch fires: token remap, white input text/placeholder, light
   form well + hover, white Subscribe button. We re-assert the deep navy over
   Source's accent background at matching specificity. */
.gh-footer { background: var(--sh-navy-deep); color: #cbd5e1; }
.gh-footer.has-accent-color { background: var(--sh-navy-deep); }
.gh-footer .gh-footer-logo, .gh-footer h2 { color: #fff; }
.gh-footer .sh-wordmark { color: #fff; }
.gh-footer-logo, .gh-footer-signup-header { font-family: var(--sh-display); font-weight: 700; }
.gh-footer-bar { border-block: 1px solid var(--color-border, rgba(255,255,255,0.15)); padding-bottom: 18px; }
.sh-footer-tagline { justify-self: end; text-align: right; }

/* Signup form: visible well + boundary + focus feedback on the dark surface */
.gh-footer .gh-form { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }
/* Source's input is absolutely positioned over the WHOLE form, so its own
   outline draws a square box around the pill. The form's ring is the single
   focus indicator (2px amber = 7.7:1 on navy). */
.gh-footer .gh-form:focus-within { border-color: transparent; box-shadow: 0 0 0 2px var(--sh-amber); }
.gh-footer .gh-form-input:focus-visible { outline: none; box-shadow: none; }
.gh-footer .gh-form-input { caret-color: #fff; }
.gh-footer .gh-form-input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--sh-navy-deep) inset;
  -webkit-text-fill-color: #fff; caret-color: #fff;
}
.gh-footer-menu a { color: #cbd5e1; transition: color .12s ease; }
.gh-footer-menu a:hover { color: #fff; }
.sh-footer-tagline { font-size: 1.35rem; color: #94a3b8; margin: 6px 0 0; }
.sh-footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 1.25rem; color: #94a3b8; }
.gh-footer-signup { padding: 26px 0 6px; }
.gh-footer-signup-header { font-size: 2.1rem; letter-spacing: -0.01em; }

/* ---- Responsive --------------------------------------------------------------- */
@media (max-width: 991px) {
  .sh-lead-grid { grid-template-columns: 1fr; gap: calc(var(--sh-rhythm) * 0.6); }
  .sh-secondary { border-left: none; padding-left: 0; border-top: 2px solid var(--sh-ink); padding-top: 12px; }
  .sh-topics { grid-template-columns: 1fr; gap: calc(var(--sh-rhythm) * 0.8); }
  .sh-ranked { grid-template-columns: 1fr; }
  .sh-band-inner { justify-content: center; text-align: center; }
}

/* ============================================================================
   PAGE COMPONENTS (v1.4) — the shared vocabulary for every page in
   dental-signal/site/pages/. Page HTML uses these classes ONLY: no inline
   style="", no emoji icons. rem on the 10px root; colors from tokens.
   ========================================================================== */

/* ---- Content typography (posts + pages) ---------------------------------- */
.gh-content > * { min-width: 0; } /* grid children: let wide tables scroll inside their wrapper instead of widening the page */
.gh-content h2, .gh-content h3, .gh-content h4 { font-family: var(--sh-display); font-weight: 700; color: var(--sh-ink); }
.gh-content h2 { letter-spacing: -0.02em; }
.gh-content h3 { letter-spacing: -0.012em; }
.page-template .gh-content h2 { font-size: 2.4rem; line-height: 1.2; border-top: 2px solid var(--sh-ink); padding-top: 1.4rem; margin-top: 5.6rem; }
.page-template .gh-content > h2:first-child { margin-top: 0; }
.page-template .gh-content h3 { font-size: 1.9rem; line-height: 1.3; }
.gh-article.sh-page-wide { --content-width: 104rem; }

.ds-lede { font-size: 2rem; line-height: 1.5; color: var(--sh-ink); }
.ds-muted { color: #4a5560; }
.ds-updated { font-size: 1.35rem; color: #4a5560; font-variant-numeric: tabular-nums; }

/* ---- Buttons ------------------------------------------------------------ */
.ds-btn, .gh-content .ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 4.4rem; padding: 0 2rem; border-radius: 8px; border: 1.5px solid transparent;
  font-family: var(--font-sans, Inter, sans-serif); font-size: 1.5rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.ds-btn--primary, .gh-content .ds-btn--primary { background: var(--ghost-accent-color, #076196); color: #fff; }
.ds-btn--primary:hover, .gh-content .ds-btn--primary:hover { background: #054f7a; color: #fff; }
.ds-btn--outline, .gh-content .ds-btn--outline { background: transparent; color: var(--ghost-accent-color, #076196); border-color: var(--ghost-accent-color, #076196); }
.ds-btn--outline:hover, .gh-content .ds-btn--outline:hover { background: #f0f6fa; }
.ds-btn--inverse, .gh-content .ds-btn--inverse { background: #fff; color: var(--sh-navy-deep); }
.ds-btn--inverse:hover, .gh-content .ds-btn--inverse:hover { background: #e6edf3; color: var(--sh-navy-deep); }
.ds-btn--block { width: 100%; }
.ds-btn[disabled] { opacity: .55; cursor: default; }

/* ---- Grids + cards --------------------------------------------------------- */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2rem; margin: 2.4rem 0; }
.ds-grid--tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.6rem; }
.ds-card { display: flex; flex-direction: column; gap: 0.8rem; padding: 2.4rem; background: #fff; border: 1px solid var(--color-border, #e6e9ed); border-radius: 8px; margin: 0; }
.gh-content .ds-card > * { margin: 0; }
.ds-card h3 { font-size: 1.9rem; line-height: 1.3; }
.ds-card p { font-size: 1.55rem; line-height: 1.55; color: #4a5560; }
a.ds-card, .gh-content a.ds-card { color: inherit; text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease; }
a.ds-card:hover { border-color: var(--ghost-accent-color, #076196); box-shadow: 0 2px 12px rgba(15,20,32,.06); }
a.ds-card:hover h3 { color: var(--ghost-accent-color, #076196); }
.ds-card-kicker { font-family: var(--sh-display); font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ghost-accent-color, #076196); }
.ds-card--featured { border: 2px solid var(--ghost-accent-color, #076196); }
.ds-card .ds-btn { margin-top: auto; }

/* Pricing tiers */
.ds-price { font-family: var(--sh-display); font-size: 4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--sh-ink); font-variant-numeric: tabular-nums; }
.ds-price small { font-family: var(--font-sans, Inter, sans-serif); font-size: 1.4rem; font-weight: 500; letter-spacing: 0; color: #4a5560; }
.ds-price-note { font-size: 1.35rem; color: #4a5560; }
.ds-ticks { list-style: none; padding: 0; margin: 0.8rem 0 1.6rem; }
.gh-content .ds-ticks li { position: relative; padding-left: 2.4rem; margin: 0 0 0.8rem; font-size: 1.5rem; line-height: 1.45; }
.ds-ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 1.1rem; height: 0.6rem; border: solid var(--ghost-accent-color, #076196); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---- Link lists (tools hub, contact, related) ----------------------------- */
.ds-list { list-style: none; padding: 0; margin: 1.6rem 0 3.2rem; border-top: 1px solid var(--color-border, #e6e9ed); }
.gh-content .ds-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 2.4rem; align-items: baseline; margin: 0; padding: 1.6rem 0; border-bottom: 1px solid var(--color-border, #e6e9ed); }
.gh-content .ds-list-title { font-family: var(--sh-display); font-size: 1.8rem; font-weight: 700; line-height: 1.3; color: var(--sh-ink); text-decoration: none; }
.gh-content a.ds-list-title:hover { color: var(--ghost-accent-color, #076196); }
.ds-list-type { font-family: var(--sh-display); font-size: 1.15rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4a5560; white-space: nowrap; }
.gh-content .ds-list > li > p { grid-column: 1 / -1; margin: 0; font-size: 1.55rem; color: #4a5560; }

/* Numbered reading path (Start Here) */
.ds-steps { list-style: none; counter-reset: dss; padding: 0; margin: 2.4rem 0; border-top: 1px solid var(--color-border, #e6e9ed); }
.gh-content .ds-steps > li { counter-increment: dss; position: relative; margin: 0; padding: 2.2rem 0 2.2rem 6.4rem; border-bottom: 1px solid var(--color-border, #e6e9ed); }
.ds-steps > li::before { content: counter(dss, decimal-leading-zero); position: absolute; left: 0; top: 2rem; font-family: var(--sh-display); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--sh-num); font-variant-numeric: tabular-nums; }
.gh-content .ds-steps h3 { margin: 0 0 0.6rem; font-size: 2rem; }
.gh-content .ds-steps h3 a { color: var(--sh-ink); text-decoration: none; }
.gh-content .ds-steps h3 a:hover { color: var(--ghost-accent-color, #076196); }
.gh-content .ds-steps p { margin: 0; font-size: 1.6rem; color: #4a5560; }

.ds-related { margin: 4.8rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--color-border, #e6e9ed); }
.ds-related-title { font-family: var(--sh-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4a5560; margin: 0 0 1rem; }
.gh-content .ds-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; }
.gh-content .ds-related li { margin: 0; font-size: 1.55rem; }

/* ---- Stats (benchmark figures, calculator results) ------------------------ */
.ds-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.6rem; margin: 2.4rem 0; }
.ds-stat { margin: 0; padding: 1.8rem 2rem; background: #f6f7f9; border-top: 4px solid var(--ghost-accent-color, #076196); border-radius: 0 0 8px 8px; }
.ds-stat-label { font-family: var(--sh-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4a5560; }
.ds-stat-value { font-family: var(--sh-display); font-size: 3.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--sh-ink); margin: 0.6rem 0 0.4rem; font-variant-numeric: tabular-nums; }
.ds-stat-note { font-size: 1.35rem; line-height: 1.45; color: #4a5560; }
.ds-stat--hero .ds-stat-value { font-size: 5.2rem; }
.ds-stat--good { border-top-color: #1a7f4b; }
.ds-stat--warn { border-top-color: var(--sh-amber); }
.ds-stat--bad { border-top-color: #b42318; }
.ds-source { font-size: 1.35rem; line-height: 1.5; color: #4a5560; margin: 1.2rem 0 0; }
.ds-source strong { color: var(--sh-ink); font-weight: 600; }

/* ---- Callouts (merges the ds-tldr / ds-sowhat palettes) -------------------- */
.ds-callout { margin: 2.4rem 0; padding: 1.6rem 2rem; border-left: 4px solid var(--ghost-accent-color, #076196); border-radius: 0 8px 8px 0; background: #f0f6fa; font-size: 1.6rem; line-height: 1.55; }
.gh-content .ds-callout > * { margin: 0; }
.gh-content .ds-callout > * + * { margin-top: 0.8rem; }
.ds-callout--warn { background: #fff8e6; border-left-color: var(--sh-amber); }
.ds-callout--sources { background: #f6f7f9; border-left-color: #6b7785; font-size: 1.4rem; color: #4a5560; }
.ds-callout-label { display: block; font-family: var(--sh-display); font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ghost-accent-color, #076196); }
.ds-callout--warn .ds-callout-label { color: #8a5800; }
.ds-callout--sources .ds-callout-label { color: #4a5560; }

/* ---- CTA block (dark surface, matches footer) ------------------------------ */
.ds-cta { margin: 5.6rem 0 1.6rem; padding: 3.2rem; background: var(--sh-navy-deep); color: #cbd5e1; border-radius: 12px; }
.gh-content .ds-cta > * { margin: 0; }
.gh-content .ds-cta h2, .gh-content .ds-cta h3 { color: #fff; border: 0; padding: 0; font-size: 2.4rem; }
.gh-content .ds-cta p { margin-top: 0.8rem; font-size: 1.6rem; color: #cbd5e1; }
.gh-content .ds-cta .ds-btn { margin-top: 2rem; }
.ds-cta a:not(.ds-btn) { color: #fff; }

/* ---- FAQ (native details/summary) ------------------------------------------ */
.ds-faq { margin: 1.6rem 0 3.2rem; border-top: 1px solid var(--color-border, #e6e9ed); }
.gh-content .ds-faq details { margin: 0; border-bottom: 1px solid var(--color-border, #e6e9ed); }
.ds-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; padding: 1.8rem 0; cursor: pointer; list-style: none; font-family: var(--sh-display); font-size: 1.8rem; font-weight: 600; line-height: 1.35; color: var(--sh-ink); }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-sans, Inter, sans-serif); font-size: 2.4rem; font-weight: 400; line-height: 1; color: var(--ghost-accent-color, #076196); }
.ds-faq details[open] summary::after { content: "\2212"; }
.ds-faq summary:hover { color: var(--ghost-accent-color, #076196); }
.gh-content .ds-faq details > :not(summary) { margin: 0 0 1.8rem; font-size: 1.6rem; color: #2e3642; }

/* ---- Tables ------------------------------------------------------------------ */
.ds-table-wrap { overflow-x: auto; margin: 2.4rem 0; border: 1px solid var(--color-border, #e6e9ed); border-radius: 8px; -webkit-overflow-scrolling: touch; }
.gh-content .ds-table-wrap table { margin: 0; border: 0; min-width: 56rem; }
.gh-content .ds-table-wrap th { position: sticky; top: 0; }
.ds-yes, .ds-no, .ds-num { text-align: center; }
.ds-yes { color: var(--ghost-accent-color, #076196); font-weight: 700; }
.ds-no { color: #5c6670; }
.gh-content td.ds-group { background: #f6f7f9; font-family: var(--sh-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4a5560; }

/* ---- Checklists --------------------------------------------------------------- */
.ds-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; margin: 2.4rem 0; padding: 1.4rem 1.8rem; background: #f6f7f9; border-radius: 8px; }
.ds-progress { display: flex; align-items: center; gap: 1.2rem; flex: 1 1 28rem; font-family: var(--sh-display); font-size: 1.45rem; font-weight: 600; color: var(--sh-ink); font-variant-numeric: tabular-nums; }
.ds-progress-bar { flex: 1; height: 0.8rem; background: #dde3ea; border-radius: 99px; overflow: hidden; }
.ds-progress-bar span { display: block; height: 100%; width: 0; background: var(--ghost-accent-color, #076196); transition: width .2s ease; }
.ds-toolbar-actions { display: flex; gap: 0.8rem; }
.ds-checklist { list-style: none; padding: 0; margin: 1.2rem 0 3.2rem; border-top: 1px solid var(--color-border, #e6e9ed); }
.gh-content .ds-checklist > li { margin: 0; border-bottom: 1px solid var(--color-border, #e6e9ed); }
.ds-check { display: flex; gap: 1.4rem; align-items: flex-start; min-height: 4.4rem; padding: 1.2rem 0.4rem; cursor: pointer; font-size: 1.6rem; line-height: 1.5; }
.ds-check input { appearance: none; -webkit-appearance: none; flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; margin: 0.1rem 0 0; border: 2px solid #6b7785; border-radius: 4px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.ds-check input::after { content: ""; width: 1.1rem; height: 0.6rem; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.ds-check input:checked { background: var(--ghost-accent-color, #076196); border-color: var(--ghost-accent-color, #076196); }
.ds-check input:checked::after { opacity: 1; }
.ds-check input:checked + span { color: #5c6670; }
.ds-check:hover input:not(:checked) { border-color: var(--ghost-accent-color, #076196); }
.ds-flag { display: inline-block; margin-left: 0.6rem; padding: 0.2rem 0.6rem; border-radius: 4px; background: #fff8e6; color: #8a5800; font-family: var(--sh-display); font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: 0.15em; white-space: nowrap; }
.ds-section-count { font-family: var(--font-sans, Inter, sans-serif); font-size: 1.35rem; font-weight: 500; color: #4a5560; margin-left: 0.8rem; font-variant-numeric: tabular-nums; }

/* ---- Calculators ---------------------------------------------------------------- */
.ds-calc { margin: 2.4rem 0; padding: 3.2rem; background: #fff; border: 1px solid var(--color-border, #e6e9ed); border-radius: 12px; }
.gh-content .ds-calc > * { margin: 0; }
.gh-content .ds-calc > * + * { margin-top: 2.8rem; }
.ds-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 2rem 2.4rem; }
.ds-fieldset { grid-column: 1 / -1; margin: 1.2rem 0 0; padding: 0; border: 0; }
.ds-fieldset legend { padding: 0; margin: 0 0 1.2rem; font-family: var(--sh-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4a5560; }
.ds-fieldset .ds-form { margin: 0; }
.ds-field { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.ds-field--full { grid-column: 1 / -1; }
.ds-field label, .ds-label { font-size: 1.45rem; font-weight: 600; line-height: 1.35; color: var(--sh-ink); }
.ds-hint { font-size: 1.3rem; line-height: 1.4; color: #4a5560; }
.ds-input-wrap { position: relative; display: flex; }
.ds-input { width: 100%; height: 4.8rem; padding: 0 1.4rem; border: 1.5px solid #8fa1b3; border-radius: 8px; background: #fff; color: var(--sh-ink); font-family: inherit; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
select.ds-input { padding-right: 3.2rem; }
.ds-input:hover { border-color: #6b7785; }
.ds-input:focus { border-color: var(--ghost-accent-color, #076196); }
.ds-affix { position: absolute; top: 50%; transform: translateY(-50%); left: 1.4rem; font-size: 1.6rem; color: #4a5560; pointer-events: none; }
.ds-input-wrap--prefix .ds-input { padding-left: 2.8rem; }
.ds-input-wrap--suffix .ds-affix { left: auto; right: 1.4rem; }
.ds-input-wrap--suffix .ds-input { padding-right: 3.6rem; }
.ds-error { font-size: 1.3rem; color: #b42318; }
.ds-error:empty { display: none; }
.ds-field.is-invalid .ds-input { border-color: #b42318; }
.ds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2.8rem; }
.ds-results { margin-top: 3.2rem; padding-top: 2.8rem; border-top: 2px solid var(--sh-ink); }
.gh-content .ds-results > * { margin: 0; }
.gh-content .ds-results > * + * { margin-top: 1.6rem; }
.ds-verdict { font-size: 1.8rem; line-height: 1.5; color: var(--sh-ink); }
.ds-results table { font-size: 1.45rem; }

/* Optional "email me this" (after results, never a gate) */
.ds-save { margin-top: 2.8rem; padding: 2.4rem 2.8rem; background: var(--sh-navy-deep); color: #cbd5e1; border-radius: 12px; }
.gh-content .ds-save > * { margin: 0; }
.gh-content .ds-save h3 { color: #fff; font-size: 2rem; }
.gh-content .ds-save p { margin-top: 0.6rem; font-size: 1.5rem; }
.ds-save form { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.ds-save .ds-input { flex: 1 1 24rem; width: auto; border-color: transparent; }
.ds-save-msg { display: none; margin-top: 1.2rem; font-size: 1.5rem; }
.ds-save form.success ~ .ds-save-msg--ok, .ds-save form.error ~ .ds-save-msg--err { display: block; }
.ds-save form.success { display: none; }
.ds-save form.loading .ds-btn { opacity: .6; pointer-events: none; }

/* ---- Archive + benchmarks templates ------------------------------------------ */
.sh-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0 0 3.2rem; padding: 0; list-style: none; }
.sh-filters li { margin: 0; }
.gh-content .sh-filter { display: inline-flex; align-items: baseline; gap: 0.6rem; padding: 0.7rem 1.4rem; border: 1px solid var(--color-border, #e6e9ed); border-radius: 99px; font-family: var(--sh-display); font-size: 1.4rem; font-weight: 600; color: var(--sh-ink); text-decoration: none; }
.gh-content .sh-filter:hover { border-color: var(--ghost-accent-color, #076196); color: var(--ghost-accent-color, #076196); }
.sh-filter span { font-family: var(--font-sans, Inter, sans-serif); font-size: 1.25rem; font-weight: 500; color: #4a5560; font-variant-numeric: tabular-nums; }
.sh-archive { list-style: none; padding: 0; margin: 0; }
.gh-content .sh-archive > li { display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; gap: 2rem; align-items: baseline; margin: 0; padding: 1.2rem 0; border-bottom: 1px solid var(--color-border, #e6e9ed); }
.gh-content .sh-archive > li.sh-archive-month { display: block; border: 0; padding: 4rem 0 0.4rem; }
.gh-content .sh-archive > li.sh-archive-month:first-child { padding-top: 0; }
.gh-content .sh-archive-month h2 { margin: 0; }
.sh-archive time { font-size: 1.35rem; color: #4a5560; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-content .sh-archive a { font-family: var(--sh-display); font-size: 1.7rem; font-weight: 600; line-height: 1.35; color: var(--sh-ink); text-decoration: none; }
.gh-content .sh-archive a:hover { color: var(--ghost-accent-color, #076196); }
.gh-content .sh-archive a:visited { color: #566577; }
.sh-archive-tag { font-family: var(--sh-display); font-size: 1.1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ghost-accent-color, #076196); white-space: nowrap; }
.sh-latest { margin: 0 0 4rem; }

/* ---- Responsive + print ------------------------------------------------------- */
@media (max-width: 767px) {
  .ds-calc { padding: 2rem 1.6rem; }
  .ds-cta { padding: 2.4rem 2rem; }
  .ds-stat--hero .ds-stat-value { font-size: 4rem; }
  .gh-content .ds-steps > li { padding-left: 5rem; }
  .ds-steps > li::before { font-size: 2.6rem; }
  .gh-content .sh-archive > li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .sh-archive-tag { display: none; }
  .gh-content .ds-list > li { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .gh-navigation, .gh-footer, .sh-band, #ds-sticky-bar, .ds-inline-capture, .ds-toolbar-actions,
  .ds-save, .ds-cta, .ds-related, .ds-actions, .gh-search, #ds-exit-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .gh-content a { color: #000; text-decoration: none; }
  .ds-toolbar { background: none; padding: 0; }
  .ds-check { break-inside: avoid; min-height: 0; padding: 0.4rem 0; }
  .ds-check input { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .page-template .gh-content h2 { break-after: avoid; }
}
.sh-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* v1.4 polish: group subtotals read as numbers, not labels; compact results
   table on mobile; inputs inside flex rows may shrink below intrinsic width */
.gh-content td.ds-group.ds-num { font-family: var(--font-sans, Inter, sans-serif); font-size: inherit; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--sh-ink); }
.ds-save .ds-input { min-width: 0; }
@media (max-width: 767px) {
  .gh-content .ds-results .ds-table-wrap table { min-width: 0; font-size: 1.35rem; }
  .gh-content .ds-results .ds-table-wrap th, .gh-content .ds-results .ds-table-wrap td { padding: 8px 8px; }
  .ds-save { padding: 2rem; }
  .ds-save .ds-btn { width: 100%; }
}
/* Component lists: Source's `.gh-content :is(ul,ol){padding-left:28px}` (0,1,1)
   outranks the bare component classes — reset at matching specificity. */
.gh-content .ds-list, .gh-content .ds-ticks, .gh-content .ds-steps, .gh-content .ds-checklist,
.gh-content .ds-related ul, .gh-content .sh-filters, .gh-content .sh-archive { padding-left: 0; }
/* The page h2 rhythm (5.6rem top) must not leak into dark CTA/save blocks */
.page-template .gh-content .ds-cta h2, .page-template .gh-content .ds-save h3 { margin-top: 0; }
/* Narrow comparison tables compress on phones instead of scrolling */
.gh-content .ds-table-wrap--compact table { min-width: 0; }
@media (max-width: 767px) {
  .gh-content .ds-table-wrap--compact th, .gh-content .ds-table-wrap--compact td { padding: 8px 8px; font-size: 1.4rem; }
}
/* Table cells break at spaces, never mid-word ("financin g" in narrow columns) */
.gh-content table th, .gh-content table td { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* ============================================================================
   v1.5 — article tools block, share/embed, embed mode
   ========================================================================== */
.sh-post-tools { margin-top: 4.8rem; }
.sh-post-tools-inner { border-top: 2px solid var(--sh-ink); padding-top: 1.4rem; }
.sh-post-tools-title { margin: 0 0 1.2rem; font-family: var(--sh-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-ink); }
.sh-tools-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1rem 2.4rem; }
.sh-tools-list li { margin: 0; padding: 1.2rem 1.4rem; border: 1px solid var(--color-border, #e6e9ed); border-radius: 8px; }
.sh-tools-list li.is-featured { border: 2px solid var(--ghost-accent-color, #076196); background: #f0f6fa; grid-column: 1 / -1; }
.sh-tools-list a { display: block; font-family: var(--sh-display); font-size: 1.7rem; font-weight: 700; color: var(--sh-ink); text-decoration: none; }
.sh-tools-list a:hover { color: var(--ghost-accent-color, #076196); }
.sh-tools-list span { display: block; margin-top: .3rem; font-size: 1.4rem; line-height: 1.45; color: #4a5560; }
.sh-post-tools-note { margin: 1.2rem 0 0; font-size: 1.35rem; color: #4a5560; }
.sh-post-tools-note a { color: var(--ghost-accent-color, #076196); }

/* Share + embed controls on calculators */
.ds-share { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.ds-share-msg { font-size: 1.4rem; color: #4a5560; }
.ds-embed-code { width: 100%; min-height: 9rem; padding: 1.2rem 1.4rem; border: 1.5px solid #8fa1b3; border-radius: 8px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.3rem; line-height: 1.5; color: var(--sh-ink); background: #f6f7f9; resize: vertical; }
.sh-powered { display: none; }

/* Embed mode (?embed=1): calculator only, with attribution */
.sh-embed .gh-navigation, .sh-embed .gh-footer, .sh-embed .sh-band, .sh-embed #ds-sticky-bar,
.sh-embed #ds-exit-overlay, .sh-embed .ds-exit-popup-overlay, .sh-embed .ds-inline-capture,
.sh-embed .ds-related, .sh-embed .ds-embed-section, .sh-embed .gh-comments,
.sh-embed .gh-content > h2, .sh-embed .gh-content > p, .sh-embed .gh-content > .ds-table-wrap { display: none !important; }
.sh-embed body { padding-bottom: 0 !important; }
.sh-embed .gh-article-header { padding-top: 2.4rem; padding-bottom: 0; }
.sh-embed .gh-article-title { font-size: 2.6rem; }
.sh-embed .gh-article-excerpt { font-size: 1.5rem; }
.sh-embed .sh-powered { display: block; margin: 1.6rem 0 2.4rem; text-align: center; font-size: 1.35rem; color: #4a5560; }
.sh-embed .sh-powered a { color: var(--ghost-accent-color, #076196); font-weight: 600; }
@media print { .sh-post-tools, .ds-share, .ds-embed-section { display: none !important; } }

/* ============================================================================
   v1.6 — charts (articles + calculator results), article contents list
   ds-chart: inline SVG bar chart. Same markup is produced server-side by
   dental-signal/scripts/lib/chart-svg.mjs (articles) and client-side by
   DS.barChart in ds-tools.js (calculator results). Colors/fonts via classes.
   ========================================================================== */
.ds-chart { margin: 3.2rem 0; padding: 2rem 2.2rem 1.6rem; border: 1px solid var(--color-border, #e6e9ed); border-radius: 8px; background: #fff; }
.gh-content .ds-chart > * { margin: 0; }
.ds-chart-title { font-family: var(--sh-display); font-size: 1.7rem; font-weight: 700; line-height: 1.3; color: var(--sh-ink); }
.ds-chart-sub { margin-top: .4rem !important; font-size: 1.35rem; color: #4a5560; }
.ds-chart-title { display: block; text-align: left; }
.ds-chart-rule-note { display: flex; align-items: center; gap: .8rem; margin-top: .8rem !important; font-size: 1.3rem; font-weight: 600; color: var(--sh-ink); }
.ds-chart-rule-note i { display: inline-block; width: 2.2rem; border-top: 2px dashed var(--sh-ink); }
.ds-bars { display: grid; gap: 1.4rem; margin-top: 1.4rem !important; }
.gh-content .ds-bar-label { margin: 0 0 .4rem; font-size: 1.4rem; font-weight: 600; line-height: 1.3; color: var(--sh-ink); }
.ds-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; }
.ds-bar-row + .ds-bar-row { margin-top: .5rem; }
.ds-bar-track { position: relative; height: 1.8rem; background: #eef1f4; border-radius: 3px; }
.ds-bar-fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); background: var(--ghost-accent-color, #076196); border-radius: 3px; }
.ds-bar-fill--alt { background: #8fa1b3; }
.ds-bar-fill--hi { background: var(--sh-amber); }
.ds-bar-rule { position: absolute; top: -.5rem; bottom: -.5rem; left: var(--x); border-left: 2px dashed var(--sh-ink); }
.ds-bar-value { font-family: var(--sh-display); font-size: 1.4rem; font-weight: 700; color: var(--sh-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .ds-bar-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; } .ds-bar-value { font-size: 1.3rem; } }
.ds-chart-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1rem !important; font-size: 1.3rem; color: #4a5560; list-style: none; padding: 0; }
.ds-chart-legend li { display: flex; align-items: center; gap: .6rem; margin: 0; }
.ds-chart-legend i { display: inline-block; width: 1.2rem; height: 1.2rem; border-radius: 2px; background: var(--ghost-accent-color, #076196); }
.ds-chart-legend i.alt { background: #8fa1b3; }
.ds-chart-legend i.hi { background: var(--sh-amber); }
.ds-chart-source { margin-top: 1.2rem !important; font-size: 1.3rem; line-height: 1.45; color: #4a5560; }
.ds-chart-source a { color: #4a5560; }
.ds-results .ds-chart { margin: 0; }

/* Article contents list (built by sh-events.js for long articles) */
.sh-toc { margin: 0 0 3.2rem; padding: 1.6rem 2rem; background: #f6f7f9; border-radius: 8px; }
.sh-toc-title { margin: 0 0 .8rem; font-family: var(--sh-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4a5560; }
.gh-content .sh-toc ol { margin: 0; padding-left: 2rem; }
.gh-content .sh-toc li { margin: .3rem 0; font-size: 1.55rem; line-height: 1.4; }
.gh-content .sh-toc a { color: var(--sh-ink); text-decoration: none; }
.gh-content .sh-toc a:hover { color: var(--ghost-accent-color, #076196); text-decoration: underline; }
/* Long-read rhythm: clearer section breaks in articles */
.post-template .gh-content h2 { margin-top: 5.2rem; scroll-margin-top: 2.4rem; }
@media (max-width: 767px) { .ds-chart { padding: 1.6rem 1.4rem 1.2rem; } }
@media print { .sh-toc { display: none; } .ds-chart { break-inside: avoid; } }
.ds-chart + .ds-chart { margin-top: 1.6rem !important; }
/* Key-numbers box inserted into articles by scripts/article-charts.mjs */
.ds-keynums { margin: 3.2rem 0; padding: 2rem 2.2rem 1.6rem; border: 1px solid var(--color-border, #e6e9ed); border-radius: 8px; }
.gh-content .ds-keynums > * { margin: 0; }
.gh-content .ds-keynums .ds-stats { margin: 1.2rem 0 0; }
.gh-content .ds-keynums .ds-source { margin-top: 1.2rem; }

/* ============================================================================
   v1.7 — homepage: numbers band, chart of the week, topic leads, tools band,
   more stories. Editorial + data-forward; ornament never imitates data.
   ========================================================================== */
/* By the numbers (full-bleed deep navy) */
.sh-numbers { background: var(--sh-navy-deep); color: #fff; padding-block: calc(var(--sh-rhythm) * 1.1); margin-top: calc(var(--sh-rhythm) * 0.6); }
.sh-numbers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.sh-numbers-title { margin: 0; font-family: var(--sh-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.sh-numbers-sub { margin: 0; font-size: 1.4rem; color: #94a3b8; }
.sh-numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 2.4rem; }
.sh-number { padding: 0 2.4rem; border-left: 1px solid rgba(255,255,255,.14); }
.sh-number:first-child { padding-left: 0; border-left: 0; }
.sh-number-value { font-family: var(--sh-display); font-size: clamp(3.2rem, 1.6vw + 2.2rem, 4.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.sh-number-value::after { content: ""; display: block; width: 3.2rem; height: 3px; margin: 1.2rem 0 1rem; background: var(--sh-amber); border-radius: 2px; }
.sh-number-label { font-size: 1.45rem; line-height: 1.4; color: #cbd5e1; }
.sh-number-source { display: inline-block; margin-top: .8rem; font-size: 1.2rem; color: #94a3b8; text-decoration: underline; text-decoration-color: rgba(148,163,184,.4); text-underline-offset: 3px; }
.sh-number-source:hover { color: #fff; }

/* Chart of the week + essential reading */
.sh-feature-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--sh-rhythm) * 1.25); }
.sh-feature-row.has-chart { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sh-chart-week-body .ds-chart { margin: 0; }
.sh-chart-week-from { margin: 1rem 0 0; font-size: 1.35rem; color: #4a5560; }
.sh-chart-week-from a { color: var(--sh-ink); font-weight: 600; }
.sh-ranked--single { grid-template-columns: minmax(0, 1fr); }

/* Topic columns: lead story with image */
.sh-headline-list li.sh-topic-lead { display: block; padding-top: 0; }
.sh-topic-lead-image { display: block; margin-bottom: 1rem; overflow: hidden; border-radius: 6px; border: 1px solid var(--color-border, #e6e9ed); }
.sh-topic-lead-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.sh-topic-lead-image:hover img { transform: scale(1.02); }
.sh-headline-list li.sh-topic-lead > a:not(.sh-topic-lead-image) { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.3; }
.sh-headline-list li.sh-topic-lead time { display: block; text-align: left; margin-top: .4rem; }

/* Run your numbers */
.sh-tools-band { background: #f6f7f9; padding-block: calc(var(--sh-rhythm) * 1) calc(var(--sh-rhythm) * .8); margin-block: calc(var(--sh-rhythm) * .6); }
.sh-tool-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.sh-tool-card { display: flex; flex-direction: column; gap: .6rem; padding: 2rem; background: #fff; border: 1px solid var(--color-border, #e6e9ed); border-radius: 8px; text-decoration: none; color: var(--sh-ink); transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.sh-tool-card:hover { border-color: var(--ghost-accent-color, #076196); box-shadow: 0 4px 16px rgba(15,20,32,.07); transform: translateY(-1px); }
.sh-tool-name { font-family: var(--sh-display); font-size: 1.8rem; font-weight: 700; line-height: 1.25; }
.sh-tool-card:hover .sh-tool-name { color: var(--ghost-accent-color, #076196); }
.sh-tool-desc { font-size: 1.45rem; line-height: 1.45; color: #4a5560; }
.sh-tools-note { margin: 1.4rem 0 0; font-size: 1.35rem; color: #4a5560; }
/* Ornamental glyphs (no axes, no values) */
.sh-glyph { display: flex; align-items: flex-end; gap: .4rem; height: 4.4rem; margin-bottom: .8rem; }
.sh-glyph i { display: block; border-radius: 2px; background: var(--ghost-accent-color, #076196); }
.sh-glyph--bars i { width: .9rem; }
.sh-glyph--bars i:nth-child(1) { height: 45%; } .sh-glyph--bars i:nth-child(2) { height: 75%; background: var(--sh-amber); }
.sh-glyph--bars i:nth-child(3) { height: 60%; } .sh-glyph--bars i:nth-child(4) { height: 95%; }
.sh-glyph--range { flex-direction: column; align-items: flex-start; justify-content: center; gap: .6rem; }
.sh-glyph--range i { height: .9rem; } .sh-glyph--range i:nth-child(1) { width: 4.6rem; background: #8fa1b3; } .sh-glyph--range i:nth-child(2) { width: 7.2rem; }
.sh-glyph--pairs i { width: .9rem; }
.sh-glyph--pairs i:nth-child(odd) { background: #8fa1b3; }
.sh-glyph--pairs i:nth-child(1) { height: 70%; } .sh-glyph--pairs i:nth-child(2) { height: 55%; }
.sh-glyph--pairs i:nth-child(3) { height: 70%; margin-left: .6rem; } .sh-glyph--pairs i:nth-child(4) { height: 90%; }
.sh-glyph--rule { position: relative; align-items: center; }
.sh-glyph--rule i { width: 7.2rem; height: .9rem; background: linear-gradient(90deg, var(--sh-amber) 0 62%, #dde3ea 62% 100%); }
.sh-glyph--rule b { position: absolute; left: 5rem; top: .6rem; bottom: .6rem; border-left: 2px dashed var(--sh-ink); }

/* More stories: one lead + six */
.sh-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem calc(var(--sh-rhythm) * .9); }
.sh-more-item { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.sh-more-item--lead { grid-column: span 2; grid-row: span 2; }
.sh-more-image { display: block; overflow: hidden; border-radius: 6px; border: 1px solid var(--color-border, #e6e9ed); margin-bottom: .6rem; }
.sh-more-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.sh-more-image:hover img { transform: scale(1.02); }
.sh-more-title { margin: 0; font-family: var(--sh-display); font-size: 1.8rem; font-weight: 700; line-height: 1.28; letter-spacing: -.012em; }
.sh-more-item--lead .sh-more-title { font-size: clamp(2.4rem, 1.2vw + 1.8rem, 3.2rem); line-height: 1.12; letter-spacing: -.02em; }
.sh-more-title a { color: var(--sh-ink); text-decoration: none; }
.sh-more-title a:hover { color: var(--ghost-accent-color, #076196); }
.sh-more-dek { margin: 0; font-size: 1.6rem; line-height: 1.5; color: #4a5560; }

@media (max-width: 991px) {
  .sh-numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.8rem 0; }
  .sh-number:nth-child(3) { padding-left: 0; border-left: 0; }
  .sh-feature-row.has-chart { grid-template-columns: minmax(0, 1fr); }
  .sh-tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sh-numbers-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-number { padding: 0; border-left: 0; }
  .sh-tool-cards, .sh-more { grid-template-columns: minmax(0, 1fr); }
  .sh-more-item--lead { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .sh-tool-card, .sh-more-image img, .sh-topic-lead-image img { transition: none; } }

/* Footer legal row owns the disclaimer (injected copy retired 2026-10-07). */
.sh-footer-legal a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 2px; }
.sh-footer-legal a:hover { color: #fff; }

/* ============================================================================
   v1.7.2 — tablet navigation, tap targets, minimum text size
   The full desktop menu + wordmark + actions don't fit below ~1100px (it pushed
   pages sideways +239–373px at 768/1024). Use Source's own burger navigation up
   to 1099px: these rules mirror Source's @media (max-width: 767px) block.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1099px) {
  .gh-burger { display: flex; }
  #gh-navigation { height: 64px; }
  #gh-navigation .gh-navigation-inner { grid-template-rows: auto 1fr auto; grid-template-columns: 1fr; gap: 48px; }
  #gh-navigation .gh-navigation-brand { display: grid; grid-template-columns: 1fr auto auto; grid-column-start: 1; align-items: center; height: 64px; }
  #gh-navigation .gh-navigation-menu, #gh-navigation .gh-navigation-actions { position: fixed; justify-content: center; visibility: hidden; opacity: 0; }
  #gh-navigation .gh-navigation-menu { transition: none; transform: translateY(0); }
  #gh-navigation .nav { gap: 20px; align-items: center; line-height: 1.4; }
  #gh-navigation .nav a { font-size: 1.9rem; font-weight: 600; text-transform: none; }
  #gh-navigation .nav li { opacity: 0; transform: translateY(-4px); }
  #gh-navigation .gh-navigation-actions { text-align: center; }
  #gh-navigation .gh-navigation-actions .gh-search { display: none; }
  #gh-navigation .gh-navigation-members { flex-direction: column-reverse; gap: 16px; width: 100%; }
  #gh-navigation :is(.gh-button, a[data-portal="signin"]) { opacity: 0; transform: translateY(8px); }
  #gh-navigation .gh-button { width: 100%; max-width: 40rem; font-size: 1.75rem; text-transform: none; }
  #gh-navigation a[data-portal="signin"] { font-size: 1.75rem; }
  .is-open#gh-navigation { position: fixed; inset: 0; z-index: 3999999; height: 100%; overflow-y: scroll; -webkit-overflow-scrolling: touch; }
  .is-open#gh-navigation .gh-navigation-menu, .is-open#gh-navigation .gh-navigation-actions { position: static; visibility: visible; opacity: 1; }
  .is-open#gh-navigation .nav { display: flex; flex-direction: column; }
  .is-open#gh-navigation .nav li { opacity: 1; transition: transform .2s, opacity .2s; transform: translateY(0); }
  .is-open#gh-navigation .gh-navigation-actions { position: sticky; right: 0; bottom: 0; left: 0; display: inline-flex; flex-direction: column; gap: 12px; align-items: center; padding: var(--container-gap) 0; }
  .is-open#gh-navigation :is(.gh-button, a[data-portal="signin"]) { opacity: 1; transition: transform .4s, opacity .4s; transition-delay: .2s; transform: translateY(0); }
}

/* Minimum readable size for small caps labels and dates */
.sh-kicker, .ds-card-kicker, .sh-headline-list time, .ds-list-type, .sh-archive-tag { font-size: 1.2rem; }

/* Thumb-sized hit areas on touch screens without changing the visual layout */
@media (max-width: 767px) {
  .sh-section-more, .sh-rail-more, .gh-article-tag, .sh-toc a, .sh-number-source, .sh-chart-week-from a {
    display: inline-block; padding-block: 1.2rem; margin-block: -1.2rem;
  }
  .sh-tools-list a { padding-block: .6rem; }
  .sh-headline-list a, .sh-ranked-item a, .sh-secondary-title a { display: inline-block; padding-block: .4rem; }
}

/* v1.7.3 topic columns: every item carries its image, only the lead shows it;
   sh-events.js de-duplicates against the lead package and other columns */
.sh-headline-list li:not(.sh-topic-lead) .sh-topic-lead-image { display: none; }
.sh-headline-list li:nth-child(n+6) { display: none; }

/* Paywall CTA (partials/content-cta.hbs): the public preview fades into the offer */
.sh-paywall { position: relative; }
.sh-paywall::before { content: ""; position: absolute; left: 0; right: 0; top: -10.4rem; height: 9.6rem; background: linear-gradient(rgba(255, 255, 255, 0), var(--background-color, #fff)); pointer-events: none; }
.gh-content .sh-paywall .sh-paywall-signin { margin-top: 1.6rem; font-size: 1.4rem; color: #cbd5e1; }
