/*
Theme Name: STLInjuryAndSpine.com
Template: twentytwentyfive
Description: STLInjuryAndSpine.com — direction 1b (Modernist), forensic variant. Light reading ground, Archivo, the kit blue #14568f only on things you can tap, 2px rules, no radius, no shadows. Photography is hard monochrome on ink plates (owner, 2026-09-05: "darker, starker"). Interaction and accessibility floor from the patient-facing UI standard.
Version: 2.0.0
*/

/* ==== 1. Tokens =========================================================
   Read everything from these. Values are the owner's 1b brief; two were
   adjusted after measuring contrast against the ground:
   - --color-divider is the brand-kit gray #7d7979 (3.85:1), not ink at 40% (2.41:1),
     because it also draws card-cell and secondary-button borders (floor 3:1).
   - the accent is the brand-kit blue #14568f (owner: same 1b brief, this brand's kit color), not #ec3013.
   - button labels are 19px/800 (kept from the sibling for parity; ground-on-blue is 6.93:1 so any size passes).
   ---------------------------------------------------------------------- */
:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #14568f;      /* brand kit primary; 6.93:1 under ground text (#f3f2f2), passes AA normal text */
  --color-accent-600: #114a7b;  /* hover */
  --color-accent-700: #0e3d66;  /* pressed / link hover */
  --color-brand-gray: #7d7979;  /* kit gray: logotype, rules and dividers only (3.85:1) */
  --color-neutral-200: #dedcdc;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-divider: #7d7979;
  /* Forensic/dark surfaces. The kit blue is UNUSABLE on ink (2.42:1), so dark
     surfaces get --color-accent-on-ink instead; both measured, not guessed. */
  --color-ink: #33373b;            /* plate + poster ground. Dark gray, not black (owner
                                      2026-09-05: "tone it to a dark gray, still readable").
                                      Ground text on it = 10.74:1, muted = 5.91:1,
                                      accent-on-ink = 6.08:1 — all AA with room. */
  --color-ink-800: #3f4348;        /* raised cell on ink */
  --color-on-ink: #f3f2f2;         /* 16.52:1 on ink */
  --color-on-ink-muted: #b9b5b5;   /* 9.09:1 on ink */
  --color-accent-on-ink: #8fbdea;  /* 9.35:1 on ink — the tappable blue on dark */
  --rule: 2px solid var(--color-divider);
  --radius: 0px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 56px;
  --content: 1280px;
  --prose: 820px;
  --gap-section: 88px;
  --gap-col: 64px;
  --motion: 150ms;
  --tap: 48px;
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --gap-section: 36px; --gap-col: 24px; }
}

/* ==== 2. Base =========================================================== */
html { background: var(--color-bg); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
* { border-radius: 0 !important; box-shadow: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--color-accent-700); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; color: var(--color-text); margin: 0 0 0.5em; text-align: left; letter-spacing: -0.02em; }
h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.025em; margin-left: -0.05em; }
h2 { font-size: 42px; line-height: 1.05; margin-top: 1.4em; }
h3 { font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; margin-top: 1.2em; }
h4 { font-size: 22px; line-height: 1.2; }
strong { font-weight: 600; }
em { font-style: italic; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.4em; }
li { margin-bottom: 0.45em; }
hr { border: 0; border-top: var(--rule); margin: var(--gap-section) 0; }
@media (max-width: 768px) {
  body { font-size: 19px; }
  h1 { font-size: 36px; line-height: 1.04; }
  h2 { font-size: 28px; }
  h3 { font-size: 21px; }
}

/* Layout: one content column, prose narrower, flush left. TT5's constrained layout centers children; we do not. */
.entry-content > *, .entry-content .wp-block-group > *, .is-layout-constrained > * { margin-left: 0 !important; margin-right: 0 !important; }
.wp-site-blocks > main, main.wp-block-group { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.entry-content > *:not(.alignfull):not(.prp-hero):not(.stlis-grid):not(.stlis-faq):not(.prp-cta):not(.prp-sources):not(.prp-seals):not(.wp-block-columns):not(.prp-access) { max-width: var(--prose); margin-left: 0; margin-right: 0; }
.entry-content > .alignfull { max-width: none; margin-left: 0; margin-right: 0; }
.wp-block-group.is-layout-constrained > * { margin-left: 0; margin-right: 0; }

/* Photography: always black and white. Seals and the wordmark are graphics, not photos. */
.prp-hero-img img, .wp-block-post-featured-image img, .prp-card-img img, .grayscale img, img.grayscale { filter: grayscale(1) contrast(1.08); }

/* Motion floor */
a, button, .wp-block-button__link, .stlis-card { transition: background-color var(--motion), color var(--motion), border-color var(--motion), transform var(--motion); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ==== 3. Buttons ======================================================== */
.wp-block-button__link, .btn {
  display: inline-flex; align-items: center; justify-content: flex-start;
  min-height: var(--tap); padding: 10px 20px; box-sizing: border-box;
  font-family: var(--font); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: 0;
  text-decoration: none; border: 1px solid var(--color-divider); background: transparent; color: var(--color-text);
}
.wp-block-button__link:hover, .btn:hover { background: var(--color-neutral-200); color: var(--color-text); }
.wp-block-button__link:active, .btn:active { background: var(--color-divider); }
.btn--primary, .prp-btn-call .wp-block-button__link, .hdr-call .wp-block-button__link { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.btn--primary:hover, .prp-btn-call .wp-block-button__link:hover, .hdr-call .wp-block-button__link:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); color: var(--color-bg); }
.btn--primary:active, .prp-btn-call .wp-block-button__link:active, .hdr-call .wp-block-button__link:active { background: var(--color-accent-700); border-color: var(--color-accent-700); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-buttons .wp-block-button { margin: 0; }

/* ==== 4. Masthead ======================================================= */
.stlis-masthead { position: sticky; top: 0; z-index: 40; background: var(--color-bg); border-bottom: var(--rule); }
.stlis-masthead-inner { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; }
.stlis-wordmark { font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-decoration: none; color: var(--color-text); min-height: var(--tap); display: inline-flex; align-items: center; }
.stlis-wordmark:hover { color: var(--color-text); }
.stlis-actions { display: flex; gap: 10px; align-items: center; }
.stlis-actions .btn { white-space: nowrap; }
.stlis-actions .btn--menu { gap: 10px; }
.stlis-actions .btn--menu svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .stlis-masthead-inner { min-height: 64px; }
  .stlis-actions .btn--text, .stlis-actions .btn--book { display: none; }
  .stlis-actions .btn--call .btn-number { display: none; }
}

/* ==== 5. Menu: full-screen index ======================================== */
.stlis-menu { position: fixed; inset: 0; z-index: 60; background: var(--color-bg); overflow-y: auto; display: none; }
.stlis-menu[data-open="true"] { display: block; }
body[data-menu-open="true"] { overflow: hidden; }
.stlis-menu-inner { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter) 56px; box-sizing: border-box; }
.stlis-menu-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: var(--rule); }
.stlis-menu-urgent { border-bottom: var(--rule); padding: 20px 0; }
.stlis-menu-urgent a { font-weight: 800; font-size: 22px; }
.stlis-menu-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 32px; padding-top: 28px; }
.stlis-menu-group h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); margin: 0 0 12px; letter-spacing: 0.08em; }
.stlis-menu-group ul { list-style: none; padding: 0; margin: 0 0 32px; }
.stlis-menu-group li { margin: 0; }
.stlis-menu-group a { display: block; padding: 8px 0; text-decoration: none; font-size: 19px; font-weight: 600; min-height: 44px; box-sizing: border-box; }
.stlis-menu-group a:hover, .stlis-menu-group a:focus-visible { text-decoration: underline; color: var(--color-accent-700); }
.stlis-menu-pages { grid-column: 1 / -1; border-top: var(--rule); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 32px; }
.stlis-menu-pages a { font-size: 22px; font-weight: 800; text-decoration: none; padding: 8px 0; display: inline-block; }
@media (max-width: 900px) { .stlis-menu-cols { grid-template-columns: 1fr 1fr; } .stlis-menu-bar { min-height: 64px; } }
@media (max-width: 560px) { .stlis-menu-cols { grid-template-columns: 1fr; } }

/* ==== 6. Hero ============================================================ */
.prp-hero { border-bottom: var(--rule); padding: 48px 0 56px; margin: 0 0 var(--gap-section); }
.prp-hero .prp-split { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap-col); align-items: start; }
.prp-hero .wp-block-column { width: auto !important; flex-basis: auto !important; }
.prp-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); margin: 0 0 20px; }
h3.prp-eyebrow { margin-top: 0; font-size: 14px; letter-spacing: 0.08em; }
.prp-lead { font-size: 22px; line-height: 1.55; font-weight: 600; color: var(--color-text); margin: 24px 0 0; }
.prp-hero-img { margin: 0; }
.prp-hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) {
  .prp-hero .prp-split { grid-template-columns: 1fr; }
  .prp-hero { padding: 24px 0 32px; }
  .prp-lead { font-size: 20px; }
}
/* Home: full-bleed photo with the text block overlapping bottom-left. */
.home .prp-hero { border-bottom: 0; padding: 0 0 var(--gap-section); }
.home .prp-hero .prp-split { grid-template-columns: 1fr; gap: 0; }
.home .prp-hero .wp-block-column:last-child { order: -1; margin: 0 calc(-1 * var(--gutter)); }
.home .prp-hero .wp-block-column:last-child .prp-hero-img img { width: 100%; height: 720px; aspect-ratio: auto; object-fit: cover; }
.home .prp-hero .wp-block-column:first-child { position: relative; z-index: 2; background: var(--color-bg); width: 720px; max-width: 100%; box-sizing: border-box; padding: 48px 48px 0 0; margin-top: -220px; border-bottom: var(--rule); padding-bottom: 40px; }
@media (max-width: 900px) {
  .home .prp-hero .wp-block-column:last-child .prp-hero-img img { height: 360px; }
  .home .prp-hero .wp-block-column:first-child { width: 100%; margin-top: 0; padding: 24px 0 28px; }
}

/* Contact page: the phone at display size (brief §8) */
.prp-display { font-size: 56px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; text-decoration: none; display: inline-block; padding: 6px 0; }
.prp-display:hover { color: var(--color-accent-700); text-decoration: underline; }
@media (max-width: 768px) { .prp-display { font-size: 36px; } }

/* ==== 7. Body components ================================================= */
.entry-content h2 { border-top: var(--rule); padding-top: 40px; margin-top: var(--gap-section); max-width: none !important; }
.entry-content h2:not(.stlis-poster h2) { padding-right: 30%; }
.entry-content > .prp-hero + h2, .entry-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.entry-content p, .entry-content li { color: var(--color-neutral-800); }
.entry-content .prp-lead, .entry-content .prp-tier p, .entry-content .prp-stat p { color: var(--color-text); }
.wp-block-columns:not(.prp-split) { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap-col); }
@media (max-width: 900px) { .wp-block-columns:not(.prp-split) { grid-template-columns: 1fr; } }

/* Tier callouts: ruled, no fills. Alert = inversion. */
.prp-tier { border: var(--rule); padding: 24px 28px; margin: 0 0 20px; max-width: var(--prose); box-sizing: border-box; }
.prp-tier p:last-child { margin-bottom: 0; }
.prp-tier-alert { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.prp-tier-alert p, .prp-tier-alert .prp-eyebrow, .prp-tier-alert li { color: var(--color-bg); font-weight: 600; }
.prp-tier-alert a { color: var(--color-bg); }

/* Steps */
.prp-steps ol { counter-reset: step; list-style: none; padding: 0; border-top: var(--rule); }
.prp-steps li { counter-increment: step; border-bottom: var(--rule); padding: 18px 0 18px 64px; position: relative; margin: 0; }
.prp-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-size: 14px; font-weight: 800; }

/* Stat */
.prp-stat { border-top: var(--rule); border-bottom: var(--rule); padding: 28px 0; margin: 32px 0; max-width: var(--prose); }
.prp-fig { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.025em; margin: 0 0 12px; }

/* Quote */
.prp-quote { border-left: var(--rule); padding: 8px 0 8px 28px; margin: 32px 0; max-width: var(--prose); }
.prp-q { font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.prp-attrib { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); margin: 0; }

/* Drive-time rows */
.prp-access ul { list-style: none; padding: 0; margin: 0 0 24px; border-top: var(--rule); max-width: var(--prose); }
.prp-access li { margin: 0; border-bottom: var(--rule); }
.prp-access a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; text-decoration: none; min-height: var(--tap); }
.prp-from { font-weight: 800; }
.prp-min { color: var(--color-neutral-700); font-weight: 600; }

/* Ruled card grids: "Which of these is you?", Related reading, Areas we serve */
.stlis-grid { list-style: none; padding: 0; margin: 0 0 var(--gap-section); counter-reset: cell; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); border-left: var(--rule); max-width: none; }
.stlis-grid li { counter-increment: cell; margin: 0; border-right: var(--rule); border-bottom: var(--rule); min-height: 260px; padding: 20px 24px 24px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; position: relative; color: var(--color-neutral-800); }
.stlis-grid li::before { content: counter(cell, decimal-leading-zero); font-size: 14px; font-weight: 800; color: var(--color-text); margin-bottom: 24px; }
.stlis-grid li a { font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; text-decoration: none; color: var(--color-text); display: block; margin-bottom: 8px; }
.stlis-grid li a::after { content: ""; position: absolute; inset: 0; }
.stlis-grid li:hover, .stlis-grid li:focus-within { background: var(--color-neutral-200); }
.stlis-grid li:focus-within a { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (max-width: 900px) { .stlis-grid { grid-template-columns: 1fr 1fr; } .stlis-grid li { min-height: 150px; padding: 14px 16px 16px; } .stlis-grid li a { font-size: 19px; } }

/* FAQ: shown open, four columns */
.stlis-faq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gap-col); margin: 0 0 var(--gap-section); }
.stlis-faq-item h3 { font-size: 20px; line-height: 1.2; margin: 0 0 12px; }
.stlis-faq-item p { font-size: 18px; line-height: 1.6; color: var(--color-neutral-800); margin: 0; }
@media (max-width: 1100px) { .stlis-faq { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stlis-faq { grid-template-columns: 1fr; } }

/* In-page contact box (tail: CTA -> Sources -> byline). Ink on ground, ruled; Call is the one red. */
.prp-cta { border-top: var(--rule); border-bottom: var(--rule); padding: 40px 0; margin: var(--gap-section) 0 40px; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap-col); }
.prp-cta h2 { border-top: 0; padding-top: 0; margin-top: 0; grid-column: 1; }
.prp-cta > p:first-of-type { grid-column: 1; }
.prp-cta .prp-actions { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: stretch; gap: 8px; }
.prp-cta .prp-actions .wp-block-button__link { width: 100%; min-height: 52px; }
.prp-cta > p:last-child { grid-column: 1; margin: 0; font-weight: 600; }
.prp-fineprint { display: block; font-weight: 400; color: var(--color-neutral-800); font-size: 18px; }
@media (max-width: 900px) { .prp-cta { grid-template-columns: 1fr; } .prp-cta .prp-actions { grid-column: 1; grid-row: auto; } }

/* Sources + byline */
.prp-sources { max-width: var(--prose); }
.prp-sources h2 { font-size: 20px; border-top: var(--rule); padding-top: 24px; margin-top: 0; }
.prp-sources ul { list-style: none; padding: 0; }
.prp-sources li { font-size: 17px; line-height: 1.55; padding: 10px 0; border-bottom: var(--rule); margin: 0; }
.prp-byline { border-top: var(--rule); padding: 24px 0 var(--gap-section); font-size: 18px; max-width: var(--prose); }
.prp-reviewed { color: var(--color-neutral-700); font-weight: 600; }

/* Seals: graphics keep their color */
.prp-seals { border-top: var(--rule); padding-top: 32px; margin: var(--gap-section) 0; max-width: none; }
.prp-seals-h { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 20px; }
.prp-seals-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.prp-seals-row figure { margin: 0; width: 96px; }

/* ==== 8. Blue poster close (every page, before the footer) ================ */
.stlis-poster { background: var(--color-accent); color: var(--color-bg); padding: 80px 0; margin-top: var(--gap-section); }
.stlis-poster-inner { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap-col); align-items: center; }
.stlis-poster h2 { color: var(--color-bg); font-size: 56px; line-height: 1.02; letter-spacing: -0.025em; margin: 0; border: 0; padding: 0; }
.stlis-poster-actions { display: flex; flex-direction: column; gap: 10px; }
.stlis-poster .btn { min-height: 56px; font-size: 19px; border: 2px solid var(--color-bg); color: var(--color-bg); background: transparent; }
.stlis-poster .btn:hover { background: color-mix(in srgb, var(--color-bg) 14%, transparent); color: var(--color-bg); }
.stlis-poster .btn--fill { background: var(--color-bg); color: var(--color-accent-700); }
.stlis-poster .btn--fill:hover { background: var(--color-surface); color: var(--color-accent-700); }
.stlis-poster :focus-visible { outline-color: var(--color-bg); }
@media (max-width: 900px) { .stlis-poster { padding: 48px 0; } .stlis-poster-inner { grid-template-columns: 1fr; } .stlis-poster h2 { font-size: 36px; } }

/* ==== 9. Footer ========================================================== */
.stlis-footer { border-top: var(--rule); padding: 56px 0 140px; font-size: 17px; line-height: 1.6; }
.stlis-footer-inner { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap-col); }
.stlis-footer p { margin: 0 0 12px; }
.stlis-footer .stlis-wordmark { font-size: 22px; margin-bottom: 12px; }
.stlis-footer-phone { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; display: inline-block; padding: 4px 0; }
.stlis-footer-phone:hover { color: var(--color-accent-700); }
.stlis-footer-legal { font-size: 15px; color: var(--color-neutral-700); }
.stlis-footer-legal a { color: var(--color-neutral-700); }
.stlis-footer-legal ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.stlis-footer-legal li { margin: 0; }
.stlis-footer-flag { color: var(--color-text); font-weight: 600; font-size: 17px; }
@media (max-width: 900px) { .stlis-footer-inner { grid-template-columns: 1fr; gap: 32px; } .stlis-footer { padding-bottom: 130px; } }

/* ==== 10. Mobile sticky bar ============================================== */
.stlis-sticky { display: none; }
@media (max-width: 900px) {
  .stlis-sticky { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 50; border-top: var(--rule); background: var(--color-bg); }
  .stlis-sticky a { display: flex; align-items: center; justify-content: flex-start; padding: 0 20px; font-size: 18px; font-weight: 800; text-decoration: none; color: var(--color-text); }
  .stlis-sticky a:first-child { background: var(--color-accent); color: var(--color-bg); }
  .stlis-sticky a:first-child:hover { background: var(--color-accent-600); }
}

/* The Retell chat bubble is fixed at bottom:24px; on phones lift it above the sticky bar. */
/* The bubble is position:fixed inside the widget's shadow root, out of reach of page CSS; a transform on the host makes the host its containing block, so the host's bottom offset carries the bubble with it. */
@media (max-width: 900px) { #retell-widget-root { bottom: 76px !important; transform: translateZ(0); } }

/* ==== 11. Articles index rows =========================================== */
.stlis-rows { border-top: var(--rule); margin: 32px 0 var(--gap-section); }
.stlis-row { border-bottom: var(--rule); padding: 24px 0; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.stlis-row .wp-block-post-date { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); padding-top: 6px; }
.stlis-row .wp-block-post-title { font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 8px; font-weight: 800; }
.stlis-row .wp-block-post-title a { text-decoration: none; }
.stlis-row .wp-block-post-title a:hover { text-decoration: underline; }
.stlis-row .wp-block-post-excerpt__excerpt { font-size: 18px; color: var(--color-neutral-800); margin: 0; }
.stlis-row .wp-block-post-excerpt__more-text { display: none; }
@media (max-width: 640px) { .stlis-row { grid-template-columns: 1fr; gap: 6px; } }
.wp-block-query-pagination { margin: 24px 0; font-weight: 800; }

/* Hide the theme's own post title on hero pages (the hero carries the H1) */
.wp-block-post-title.stlis-hidden { display: none; }
/* TT5 leftovers we do not want */
.wp-block-post-featured-image { display: none; }
.entry-content .prp-hero .wp-block-post-featured-image { display: block; }

/* ==== 12. Brand lockup ================================================== */
.stlis-lockup { display: inline-flex; align-items: center; text-decoration: none; min-height: var(--tap); }
.stlis-lockup-svg { height: 60px; width: auto; display: block; }
.stlis-mark-mobile { display: none; height: 48px; width: 48px; }
.stlis-footer .stlis-lockup-svg { height: 60px; }
.stlis-menu-bar .stlis-lockup-svg { height: 56px; }
@media (max-width: 900px) {
  .stlis-masthead .stlis-lockup-svg, .stlis-menu-bar .stlis-lockup-svg { display: none; }
  .stlis-masthead .stlis-mark-mobile, .stlis-menu-bar .stlis-mark-mobile { display: block; }
  .stlis-footer .stlis-lockup-svg { height: 56px; }
}
.stlis-poster-mark { height: 56px; width: 56px; display: block; margin-bottom: 24px; }
.stlis-poster-copy { grid-column: 1; }
.stlis-masthead .stlis-lockup-svg { height: 68px; }
/* Footer legal block */
.stlis-footer-legalrow { max-width: var(--content); margin: 40px auto 0; padding: 28px var(--gutter) 0; box-sizing: border-box; border-top: var(--rule); font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--gap-col); }
.stlis-footer-legalrow p { margin: 0 0 8px; }
.stlis-footer-legalrow a { color: var(--color-neutral-700); }
.stlis-footer-legalrow strong { color: var(--color-text); font-weight: 600; }
@media (max-width: 900px) { .stlis-footer-legalrow { grid-template-columns: 1fr; } }


/* ==== 13. Forensic imagery — darker, starker ============================
   Owner direction 2026-09-05: "a darker look to the imagery, starker."
   Three moves, all on the picture and none on the reading surface, so the
   19px/1.65 body floor and every contrast ratio in sections 1-12 stand:
     a) photography is crushed monochrome, not soft grayscale;
     b) every photograph sits on an ink plate, so its edges cut rather than fade;
     c) the page closes on ink instead of blue.
   The kit blue measures 2.42:1 on ink and cannot be used there — dark surfaces
   take --color-accent-on-ink (9.35:1). That substitution is the whole reason
   this file has a second accent.
   ---------------------------------------------------------------------- */

/* a) the treatment. Deep blacks, held highlights, no blue cast. */
.prp-hero-img img,
.wp-block-post-featured-image img,
.prp-card-img img,
.grayscale img, img.grayscale {
  filter: grayscale(1) contrast(1.42) brightness(0.72) saturate(0);
}

/* b) the plate. An image on ink reads as evidence, not decoration. */
.prp-hero-img { background: var(--color-ink); }
.prp-hero-img img { mix-blend-mode: normal; }

/* Interior hero: the picture is a hard block against the ink. */
.prp-hero .wp-block-column:last-child { background: var(--color-ink); }

/* c) home hero: full-bleed ink photograph, headline reversed over it.
   The scrim is a hard linear ramp — no soft vignette — so the type sits on a
   measured floor rather than on whatever the photograph happens to be doing. */
.home .prp-hero { background: var(--color-ink); padding-bottom: 0; margin-bottom: var(--gap-section); }
.home .prp-hero .wp-block-column:last-child { margin: 0; }
.home .prp-hero .wp-block-column:last-child .prp-hero-img img {
  height: 760px;
  filter: grayscale(1) contrast(1.5) brightness(0.55) saturate(0);
}
.home .prp-hero .wp-block-column:first-child {
  background: transparent;
  color: var(--color-on-ink);
  margin-top: -420px;
  padding: 0 48px 56px 0;
  border-bottom: 0;
  width: 860px;
}
.home .prp-hero .prp-eyebrow { color: var(--color-accent-on-ink); }
.home .prp-hero h1, .home .prp-hero .prp-display { color: var(--color-on-ink); }
.home .prp-hero .prp-lead { color: var(--color-on-ink); }
.home .prp-hero a { color: var(--color-on-ink); }
.home .prp-hero .wp-block-button__link {
  background: var(--color-on-ink); border-color: var(--color-on-ink); color: var(--color-ink);
}
.home .prp-hero .wp-block-button__link:hover { background: #ffffff; border-color: #ffffff; color: var(--color-ink); }
.home .prp-hero .btn--ghost, .home .prp-hero .is-style-outline .wp-block-button__link {
  background: transparent; border: 2px solid var(--color-on-ink); color: var(--color-on-ink);
}
.home .prp-hero :focus-visible { outline-color: var(--color-accent-on-ink); }
@media (max-width: 900px) {
  .home .prp-hero .wp-block-column:last-child .prp-hero-img img { height: 420px; }
  .home .prp-hero .wp-block-column:first-child { width: 100%; margin-top: -260px; padding: 0 20px 36px; }
}

/* The closing poster goes ink, not blue. Blue stays for the things you tap. */
.stlis-poster { background: var(--color-ink); color: var(--color-on-ink); }
.stlis-poster h2 { color: var(--color-on-ink); }
.stlis-poster p { color: var(--color-on-ink-muted); }
.stlis-poster .btn { border-color: var(--color-on-ink); color: var(--color-on-ink); }
.stlis-poster .btn:hover { background: color-mix(in srgb, var(--color-on-ink) 14%, transparent); color: var(--color-on-ink); }
.stlis-poster .btn--fill { background: var(--color-on-ink); color: var(--color-ink); }
.stlis-poster .btn--fill:hover { background: #ffffff; color: var(--color-ink); }
.stlis-poster :focus-visible { outline-color: var(--color-accent-on-ink); }

/* Alert tier already inverts to ink — give its links the dark-surface blue. */
.prp-tier-alert { background: var(--color-ink); border-color: var(--color-ink); }
.prp-tier-alert a { color: var(--color-on-ink); text-decoration-thickness: 2px; }

/* Figure captions under a plate read as exhibit labels. */
.prp-hero-img figcaption, .wp-block-image figcaption {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: none;
  color: var(--color-neutral-700); padding: 10px 0 0; margin: 0;
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Lockup color: the vendor mark is one color, drawn in currentColor, so the
   same geometry serves the light masthead and the ink poster. */
.stlis-lockup, .stlis-footer .stlis-lockup { color: var(--color-accent); }
.stlis-lockup:hover { color: var(--color-accent-700); }
.stlis-poster .stlis-lockup, .stlis-poster .stlis-poster-mark, .stlis-poster-mark { color: var(--color-on-ink); }
.stlis-menu .stlis-lockup { color: var(--color-accent); }

/* ==== 14. Kill TT5's leading gap above the hero =========================
   Measured on the live page 2026-09-05: TT5 puts `margin-block-start: 37.24px`
   on <main> AND a matching `padding-top` on its has-global-padding wrapper, so
   an alignfull hero starts ~75px below the masthead before its own padding is
   counted at all. The hero is full-bleed and should meet the masthead rule.
   Zero both, then put the spacing back deliberately on the two things that
   actually need it: the hero, and the theme post-title on pages that have no
   hero (the legal set).
   ---------------------------------------------------------------------- */
.wp-site-blocks > main { margin-block-start: 0 !important; margin-top: 0 !important; }
.wp-site-blocks > main > .wp-block-group.has-global-padding { padding-top: 0 !important; }

.prp-hero { padding-top: 40px; }
.home .prp-hero { padding-top: 0; }
.entry-content > .wp-block-post-title,
main .wp-block-post-title:not(.stlis-hidden) { margin-top: 40px; }
@media (max-width: 900px) {
  .prp-hero { padding-top: 20px; }
  .entry-content > .wp-block-post-title,
  main .wp-block-post-title:not(.stlis-hidden) { margin-top: 20px; }
}

/* ==== 15. Fax in the masthead ==========================================
   Attorneys and carriers fax records, so the number belongs where they can
   see it. It is deliberately NOT a link: a fax rendered as tel: dials a fax
   machine, which is a real defect, not a convenience. Ink rather than accent,
   because accent is reserved for things you can tap.
   ---------------------------------------------------------------------- */
.stlis-fax {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 16px; line-height: 1.2; color: var(--color-neutral-700);
  white-space: nowrap; margin-right: 6px; user-select: text;
}
.stlis-fax-l { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.stlis-fax-n { font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; }
.stlis-menu-bar .stlis-fax { margin-right: 12px; }
/* The action bar runs out of room before the buttons do; drop the fax first. */
@media (max-width: 1180px) { .stlis-masthead .stlis-fax { display: none; } }
@media (max-width: 700px)  { .stlis-menu-bar .stlis-fax { display: none; } }

/* ==== 16. Close the gap before the poster ==============================
   The byline carried `padding-bottom: var(--gap-section)` (88px) and the
   poster carried `margin-top: var(--gap-section)` (88px), so 176px of dead
   ground opened between the last line of text and the closing band. The
   poster is a full-bleed band; it should meet the content, not float below it.
   ---------------------------------------------------------------------- */
.prp-byline { padding-bottom: 40px; }
.stlis-poster { margin-top: 0; }
.wp-site-blocks > main { margin-block-end: 0 !important; margin-bottom: 0 !important; }
@media (max-width: 900px) { .prp-byline { padding-bottom: 28px; } }

/* ==== 17. Photography: keep the detail =================================
   Measured 2026-09-05: 23 of 43 heroes rendered as solid black. The sources
   were deliberately low-key AND the filter cut brightness 28% on top of a
   1.42 contrast stretch, which pushes anything below mid-grey to zero. The
   darkness should come from the picture, not from crushing it. Contrast only,
   no brightness cut; the home hero keeps a light cut because type sits on it.
   ---------------------------------------------------------------------- */
.prp-hero-img img,
.wp-block-post-featured-image img,
.prp-card-img img,
.grayscale img, img.grayscale {
  filter: grayscale(1) contrast(1.18);
}
.home .prp-hero .wp-block-column:last-child .prp-hero-img img {
  filter: grayscale(1) contrast(1.22) brightness(0.82);
}

/* ==== 18. Fax button + visible hover on everything tappable ============
   A fax number cannot be dialled, so the button COPIES it instead of linking.
   That keeps the accent-only-on-tappable rule honest: it really is tappable,
   it just does something other than open an app. It is never a tel: link.
   ---------------------------------------------------------------------- */
.btn--fax { cursor: copy; }
.btn--fax[data-copied="1"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.btn--fax[data-copied="1"]::after { content: " — copied"; font-weight: 600; }
.stlis-poster .btn--fax[data-copied="1"] { background: var(--color-on-ink); color: var(--color-ink); border-color: var(--color-on-ink); }

/* Hover: every tappable thing changes clearly, not by a few percent.
   Owner 2026-09-05: "highlight buttons on rollover." */
.wp-block-button__link, .btn, .stlis-sticky a {
  transition: background-color var(--motion) ease, color var(--motion) ease, border-color var(--motion) ease;
}
/* Outline / default buttons invert to ink */
.wp-block-button__link:hover, .btn:hover,
.wp-block-button__link:focus-visible, .btn:focus-visible {
  background: var(--color-text); border-color: var(--color-text); color: var(--color-bg);
}
/* Primary keeps the accent and deepens */
.btn--primary:hover, .prp-btn-call .wp-block-button__link:hover, .hdr-call .wp-block-button__link:hover,
.btn--primary:focus-visible, .prp-btn-call .wp-block-button__link:focus-visible {
  background: var(--color-accent-700); border-color: var(--color-accent-700); color: var(--color-bg);
}
/* On the ink poster, invert to the light ground */
.stlis-poster .btn:hover, .stlis-poster .btn:focus-visible {
  background: var(--color-on-ink); border-color: var(--color-on-ink); color: var(--color-ink);
}
.stlis-poster .btn--fill:hover, .stlis-poster .btn--fill:focus-visible {
  background: #ffffff; border-color: #ffffff; color: var(--color-ink);
}
/* Mobile sticky bar */
.stlis-sticky a:hover { background: var(--color-text); color: var(--color-bg); }
.stlis-sticky a:first-child:hover { background: var(--color-accent-700); color: var(--color-bg); }
/* Ruled grid cells and article rows already move on hover; make the link explicit */
.stlis-grid li:hover a, .stlis-row:hover .wp-block-post-title a { text-decoration: underline; }

/* ==== 19. Last of the TT5 leading =====================================
   The has-global-padding wrapper carries a bottom padding to match its top
   one, so 37px survived below the byline even after the byline and poster
   margins were fixed. Zero it; the byline's own 40px is the spacing.
   And the hero's right column no longer carries the ink plate — the figure
   does. A column-level background paints an empty grey box below a picture
   that is shorter than the column.
   ---------------------------------------------------------------------- */
.wp-site-blocks > main > .wp-block-group.has-global-padding { padding-bottom: 0 !important; }
.prp-hero .wp-block-column:last-child { background: transparent; }
.prp-hero-img { background: var(--color-ink); line-height: 0; }
.prp-hero-img img { display: block; }

/* ==== 20. Alert tier: beat the .entry-content prose color =============
   `.entry-content .prp-tier p` is (0,2,1); the alert override was
   `.prp-tier-alert .prp-eyebrow` at (0,2,0), so ink text won on specificity
   and the eyebrow rendered #201e1d on the #33373b plate — about 1.1:1, i.e.
   invisible. The list items were unaffected because that selector does not
   match <li>, which is exactly why it read as one element "disappearing"
   rather than as a broken block. Restate the inversion at a specificity that
   wins, and cover every text node the plate can contain.
   ---------------------------------------------------------------------- */
.entry-content .prp-tier-alert p,
.entry-content .prp-tier-alert .prp-eyebrow,
.entry-content .prp-tier-alert li,
.entry-content .prp-tier-alert h2,
.entry-content .prp-tier-alert h3,
.entry-content .prp-tier-alert strong,
.entry-content .prp-tier-alert em {
  color: var(--color-on-ink);
}
.entry-content .prp-tier-alert .prp-eyebrow { color: var(--color-on-ink); opacity: 1; }
.entry-content .prp-tier-alert a { color: var(--color-on-ink); text-decoration-thickness: 2px; }
.entry-content .prp-tier-alert a:hover { color: var(--color-accent-on-ink); }
