/* =====================================================================
   APS · V4 utility pages: contact, blog list + article, legal, errors.
   No mockup exists for these; they reuse the V4 grounds, type roles,
   .crumb, .faq-list, .related and button language from v4.css.
   ===================================================================== */

/* ---------- Shared page hero + body ---------- */
.pg-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 48px); }
.pg-hero h1 { max-width: 15em; font-size: clamp(44px, 5.2vw, 80px); line-height: .98; }
.pg-hero .lead { margin-top: var(--s4); }
.pg-body { padding: 0 0 var(--section); }
.crumb-current { color: var(--ink-2); }

/* ---------- Empty state ---------- */
.pg-empty { display: grid; justify-items: start; gap: var(--s3); max-width: 36em; padding: var(--s6) 0; border-top: 1px solid var(--rule-strong); }
.pg-empty > i { font-size: 44px; color: var(--gold-dk); }
.pg-empty p { color: var(--ink-2); }
.pg-empty .btn { margin-top: var(--s2); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: var(--s6) clamp(40px, 5vw, 88px); align-items: start; padding-top: var(--s4); border-top: 1px solid var(--rule-strong); position: relative; }
.contact-grid::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 1px; background: var(--gold); }
.contact-card { padding: clamp(24px, 3vw, 44px); background: var(--stone); border-radius: var(--r-s); }
.contact-card-intro { margin: var(--s2) 0 var(--s5); color: var(--ink-2); }
.contact-side { position: sticky; top: 112px; display: grid; gap: var(--s5); }
.contact-paths h2 { margin-bottom: var(--s3); }
.contact-path { position: relative; display: grid; gap: 4px; padding: var(--s3) 40px var(--s3) 0; border-top: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; }
.contact-path:last-child { border-bottom: 1px solid var(--rule-strong); }
.cp-k { font: 600 13.5px/1.3 var(--text); color: var(--gold-dk); }
.contact-path b { font: 600 clamp(23px, 1.9vw, 27px)/1.15 var(--display); transition: color .2s; }
.cp-d { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.contact-path i { position: absolute; right: 4px; top: 50%; font-size: 20px; color: var(--gold-dk); transform: translateY(-50%); transition: transform .3s var(--ease); }
@media (hover: hover) { .contact-path:hover b { color: var(--gold-dk); } .contact-path:hover i { transform: translate(4px, -50%); } }
.contact-path:active b { color: var(--brown); }
.contact-path:focus-visible { outline-offset: 4px; }
.contact-lines { margin: 0; display: grid; }
.contact-lines div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s2); padding: 12px 0; border-top: 1px solid var(--rule); }
.contact-lines div:last-child { border-bottom: 1px solid var(--rule); }
.contact-lines dt { font: 600 13.5px/1.6 var(--text); color: var(--ink-3); }
.contact-lines dd { margin: 0; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-lines .link { text-underline-offset: 4px; }
.contact-note { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.contact-note img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: sepia(.2); box-shadow: 0 0 0 1px var(--gold); }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 560px) {
  .contact-card { margin-inline: calc(var(--gutter) * -1); padding: 24px var(--gutter) 28px; border-radius: 0; }
}

/* =====================================================================
   BLOG LIST
   ===================================================================== */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 13.5px/1.4 var(--text); color: var(--ink-3); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags li { padding: 5px 9px; border: 1px solid var(--rule-strong); border-radius: var(--r-s); font: 500 12.5px/1 var(--text); color: var(--ink-2); }
.post-feature { display: grid; gap: var(--s3); padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--rule-strong); position: relative; }
.post-feature::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 1px; background: var(--gold); }
.post-feature h2 { max-width: 20em; font-size: clamp(34px, 3.4vw, 54px); line-height: 1.02; }
.post-feature h2 a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.post-feature h2 a:hover { background-size: 100% 2px; }
.post-feature .post-desc { max-width: 40em; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); }
.post-feature > .link { justify-self: start; }
.post-index-title { margin: var(--s4) 0 var(--s3); font: 600 12.5px/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); }
.post-index li .post-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 8fr) auto; gap: 8px 32px; align-items: baseline; padding: var(--s4) 0; border-top: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; }
.post-index li:last-child .post-row { border-bottom: 1px solid var(--rule-strong); }
.post-row-main { display: grid; gap: 6px; }
.post-row-main b { font: 600 clamp(23px, 1.9vw, 28px)/1.15 var(--display); transition: color .2s; }
.post-row .post-desc { font-size: 15.5px; color: var(--ink-2); }
.post-row i { font-size: 20px; color: var(--gold-dk); transition: transform .3s var(--ease); }
@media (hover: hover) { .post-row:hover b { color: var(--gold-dk); } .post-row:hover i { transform: translateX(4px); } }
.post-row:active b { color: var(--brown); }
.post-row:focus-visible { outline-offset: 4px; }
.feed-note { display: flex; align-items: center; gap: 8px; margin-top: var(--s5); }
.feed-note i { font-size: 18px; color: var(--gold-dk); }
@media (max-width: 700px) {
  .post-index li .post-row { grid-template-columns: minmax(0, 1fr) auto; }
  .post-row .post-meta { grid-column: 1 / -1; }
  .post-row i { align-self: center; }
}

/* =====================================================================
   ARTICLE
   ===================================================================== */
.article-head { padding: clamp(40px, 5vw, 72px) 0 var(--s6); }
.article-head .crumb { overflow-wrap: anywhere; }
.article-head h1 { max-width: 18em; font-size: clamp(40px, 4.6vw, 70px); line-height: 1.02; }
.article-head .lead { margin-top: var(--s4); max-width: 40em; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); max-width: 46em; }
.article-byline img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: sepia(.2); box-shadow: 0 0 0 1px var(--gold); }
.article-byline p { display: grid; gap: 2px; font-size: 15px; color: var(--ink-2); }
.byline-name { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.byline-name:hover { text-decoration-color: currentColor; }
.byline-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13.5px; color: var(--ink-3); }
.article-head .post-tags { margin-top: var(--s3); }

.article-wrap { padding-bottom: var(--section-tight); }
.article-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--s6) clamp(40px, 5vw, 88px); align-items: start; padding-top: var(--s5); border-top: 1px solid var(--rule-strong); }
.article-aside { position: sticky; top: 104px; display: grid; gap: var(--s5); }
.article-main { min-width: 0; max-width: 46em; }

/* Table of contents */
.toc-box summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong); font: 600 12.5px/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-count { font: 500 12.5px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.toc-box ol { margin-top: var(--s2); counter-reset: toc; }
.toc-box li { counter-increment: toc; }
.toc-box a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px; padding: 7px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.toc-box a::before { content: counter(toc, decimal-leading-zero); font: 600 12px/1.9 var(--text); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc-box a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.aside-cta { display: grid; gap: var(--s2); padding: var(--s4); background: var(--ink); color: var(--on-dark); border-radius: var(--r-s); }
.aside-cta p { font: 600 22px/1.15 var(--display); }
.aside-cta .btn { min-height: 46px; padding: 0 16px; font-size: 14.5px; }
.aside-cta :focus-visible { outline-color: var(--gold-lt); }

/* Long-form prose: ~68ch measure, display-face headings, gold-underlined links */
.prose { color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; color: var(--ink); scroll-margin-top: 104px; }
.prose h3 { margin-top: 1.7em; font-size: clamp(23px, 1.9vw, 28px); line-height: 1.2; color: var(--ink); scroll-margin-top: 104px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; background: var(--gold); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--gold-dk); font-weight: 600; }
.prose li + li { margin-top: .5em; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px var(--s4); border-left: 2px solid var(--gold); font: italic 500 clamp(21px, 1.7vw, 25px)/1.4 var(--display); color: var(--ink); }
.prose code { padding: 1px 6px; border-radius: var(--r-s); background: var(--stone); font-size: .88em; }
.prose pre { overflow-x: auto; padding: var(--s3); border-radius: var(--r-s); background: var(--ink); color: var(--on-dark); font-size: 14.5px; line-height: 1.55; }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--rule-strong); margin-block: 2em; }
/* Tables scroll inside themselves on narrow screens; the page never scrolls sideways. */
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { min-width: 120px; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { border-bottom: 1px solid var(--rule-strong); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* After the article: CTA, FAQ, sources, author */
.article-cta { margin-top: var(--s7); padding: clamp(24px, 3vw, 40px); background: var(--brown); color: var(--on-dark); border-radius: var(--r-s); }
.article-cta h2 { font-size: clamp(28px, 2.6vw, 38px); }
.article-cta p { margin-top: var(--s2); max-width: 36em; color: var(--on-dark-2); }
.article-cta-acts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.article-cta :focus-visible { outline-color: var(--gold-lt); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(244, 239, 230, .55); }
.btn-ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); }
.article-block-title { margin-bottom: var(--s3); font-size: clamp(28px, 2.4vw, 36px); }
.article-faq { margin-top: var(--s7); }
.article-faq details { border-top: 1px solid var(--rule-strong); }
.article-faq details:last-child { border-bottom: 1px solid var(--rule-strong); }
.article-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font: 600 clamp(20px, 1.6vw, 23px)/1.25 var(--display); color: var(--ink); transition: color .2s; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform .35s var(--ease); }
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq summary:hover { color: var(--gold-dk); }
.article-faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }
.article-sources { margin-top: var(--s7); }
.article-sources ol { list-style: decimal; padding-left: 1.4em; font-size: 15.5px; color: var(--ink-2); }
.article-sources li { padding: 6px 0; overflow-wrap: anywhere; }
.article-sources li::marker { color: var(--ink-3); }
.article-sources .link { font-weight: 500; text-underline-offset: 4px; }
.author-box { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule-strong); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; filter: sepia(.2); box-shadow: 0 0 0 1px var(--gold); outline: 1px solid var(--rule-strong); outline-offset: 5px; }
.author-k { font: 600 13.5px/1.3 var(--text); color: var(--gold-dk); }
.author-box h2 { margin-top: 4px; font-size: clamp(26px, 2.2vw, 32px); }
.author-role { margin-top: 2px; font-size: 14.5px; color: var(--ink-3); }
.author-bio { margin-top: var(--s2); font-size: 15.5px; color: var(--ink-2); }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s2); font-size: 15px; }
.related-title { margin-bottom: var(--s4); }

@media (max-width: 1023px) {
  .article-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .article-aside { position: static; }
  .aside-cta { display: none; }
  .toc-box:not([open]) summary { border-bottom-color: var(--rule); }
  .toc-box { padding: var(--s2) var(--s3) var(--s2); background: var(--stone); border-radius: var(--r-s); }
  .toc-box summary { padding: 8px 0; border-bottom: 0; }
  .toc-box summary::after { content: ""; flex: none; align-self: center; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
  .toc-box[open] summary::after { transform: rotate(45deg); }
  .toc-count { margin-left: auto; }
}
@media (max-width: 560px) {
  .prose { font-size: 17px; }
  .author-box { grid-template-columns: 1fr; }
  .article-cta { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding: 28px var(--gutter); }
  .article-cta .btn { width: 100%; }
}

/* =====================================================================
   LEGAL
   ===================================================================== */
.pg-hero-legal h1 { font-size: clamp(42px, 4.6vw, 68px); }
.legal-updated { margin-top: var(--s3); font-size: 15px; color: var(--ink-3); }
.legal-updated strong { color: var(--ink-2); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--s5) clamp(40px, 5vw, 88px); align-items: start; padding-top: var(--s5); border-top: 1px solid var(--rule-strong); }
.legal-toc { position: sticky; top: 104px; }
.legal-toc-k { padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong); font: 600 12.5px/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); }
.legal-toc ol { margin-top: var(--s2); }
.legal-toc a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.legal-prose { max-width: 44em; font-size: 17px; }
.legal-prose h2 { font-size: clamp(26px, 2.2vw, 32px); }
.legal-prose h2:first-child { margin-top: 0; }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

/* =====================================================================
   ERRORS (500 is standalone: no nav links, no footer)
   ===================================================================== */
.pg-error { min-height: 100svh; display: flex; flex-direction: column; }
.pg-error main { flex: 1; }
.error-hero { padding-block: clamp(64px, 9vw, 136px); }
.error-hero .label { margin-bottom: var(--s3); }

/* =====================================================================
   PROSE ROBUSTNESS (any Markdown the blog API may send)
   No current post uses h4-h6, images or long unbroken strings, so these
   rules change nothing that renders today; they keep future posts safe.
   ===================================================================== */
.prose { overflow-wrap: anywhere; }                 /* long URLs, emails, identifiers break instead of widening the page */
.prose code { overflow-wrap: anywhere; }
.prose pre { max-width: 100%; white-space: pre; overflow-wrap: normal; -webkit-overflow-scrolling: touch; }
.prose pre code { overflow-wrap: normal; }
.prose h4, .prose h5, .prose h6 { margin-top: 1.5em; font: 600 1em/1.35 var(--text); color: var(--ink); }
.prose h4 + *, .prose h5 + *, .prose h6 + * { margin-top: .4em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-s); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: var(--s1); font-size: 14px; color: var(--ink-3); }
.prose li > ul, .prose li > ol { margin-top: .5em; }
.prose th, .prose td { overflow-wrap: normal; }

/* =====================================================================
   PHONE + TABLET (desktop >= 901px is untouched)
   ===================================================================== */

/* Article tables: scroll inside their own box with a sticky first column and
   edge shadows that appear only while there is more to see (CSS-only hint). */
@media (max-width: 900px) {
  .prose table {
    margin-inline: calc(var(--gutter) * -1);
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    font-size: 14.5px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(to left, var(--cream) 40%, rgba(250, 249, 246, 0)) right center / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, rgba(14, 17, 23, .24), rgba(14, 17, 23, 0)) right center / 16px 100% no-repeat scroll;
  }
  .prose th, .prose td { min-width: 9.5em; padding: 10px 14px; white-space: normal; }
  .prose th:last-child, .prose td:last-child { padding-right: var(--gutter); }
  /* Row labels stay in view while the other columns scroll under them */
  .prose th:first-child, .prose td:first-child {
    position: sticky; left: 0; z-index: 1;
    min-width: 7.5em; max-width: 9em;
    padding-left: var(--gutter);
    background: var(--cream);
    box-shadow: inset -1px 0 0 var(--rule-strong);
    color: var(--ink); font-weight: 600;
  }
  .prose pre { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding: var(--s3) var(--gutter); font-size: 13.5px; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  /* Shared hero: tighter top band on phones */
  .pg-hero { padding: 32px 0 28px; }
  .pg-hero h1 { font-size: clamp(38px, 10.5vw, 46px); line-height: 1.02; }
  .pg-body { padding-bottom: 64px; }

  /* ---------- Blog list ---------- */
  .post-feature { padding: var(--s4) 0 var(--s5); }
  .post-feature h2 { font-size: clamp(30px, 8.4vw, 36px); line-height: 1.06; }
  .post-feature > .link { padding-block: 10px; margin-block: -4px; }
  .post-index li .post-row { position: relative; grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .post-row i { position: absolute; right: 0; top: 18px; }   /* arrow sits on the meta line so titles use the full width */
  .post-row .post-meta { padding-right: 32px; }
  .feed-note { display: block; margin-top: var(--s4); }
  .feed-note i { display: inline-block; margin-right: 6px; vertical-align: -3px; }
  .feed-note .link { display: inline-block; padding-block: 6px; }

  /* ---------- Article ---------- */
  .article-head { padding: 32px 0 var(--s4); }
  .article-head .crumb { margin-bottom: 18px; }
  .article-head h1 { font-size: clamp(36px, 10vw, 44px); line-height: 1.04; }
  .article-head .lead { margin-top: var(--s3); }
  .article-byline { margin-top: var(--s4); }
  .byline-name { display: inline-block; padding-block: 6px; margin-block: -6px; }
  .article-grid { padding-top: var(--s4); }
  .toc-box summary { min-height: 44px; align-items: center; padding: 10px 0; }
  .toc-box a { padding: 9px 0; min-height: 40px; }
  .prose h2 { margin-top: 1.7em; font-size: clamp(28px, 7.6vw, 32px); }
  .prose h3 { font-size: 23px; }
  .prose blockquote { padding-left: var(--s3); font-size: 21px; }
  .article-cta, .article-faq, .article-sources { margin-top: var(--s6); }
  .article-sources li { padding: 2px 0; }
  .article-sources .link { display: inline-block; padding-block: 7px; }
  .article-faq details p { padding-right: 0; }
  /* Author: small portrait beside the name, bio full width below */
  .author-box { grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--s3); row-gap: 0; margin-top: var(--s6); padding-top: var(--s4); }
  .author-box > div { display: contents; }
  .author-box img { grid-row: 1 / span 3; align-self: center; width: 64px; height: 64px; outline-offset: 3px; }
  .author-box > div > * { grid-column: 2; }
  .author-box .author-bio, .author-box .author-links { grid-column: 1 / -1; }
  .author-box .author-bio { margin-top: var(--s3); }
  .author-links .link { display: inline-block; padding-block: 8px; }

  /* ---------- Contact ---------- */
  .contact-grid { gap: var(--s5); padding-top: 0; border-top: 0; }
  .contact-grid::before { display: none; }
  .contact-path { padding-block: 16px; }
  .contact-lines div { grid-template-columns: 64px minmax(0, 1fr); padding: 6px 0; align-items: center; }
  .contact-lines .link { display: inline-block; padding-block: 8px; }
  .contact-lines address { padding-block: 6px; }

  /* ---------- Legal ---------- */
  .pg-hero-legal h1 { font-size: clamp(38px, 10.5vw, 46px); }
  .legal-grid { grid-template-columns: minmax(0, 1fr); padding-top: var(--s4); }
  .legal-prose { font-size: 16px; }
  .legal-prose h2 { font-size: 26px; }
  .legal-prose a { padding-block: 6px; }   /* inline padding: bigger hit area, no reflow */

  /* ---------- Errors (404 + 500) ---------- */
  .error-hero, .pg-error-404 .svc-hero { padding: 40px 0 56px; }
  .error-links { flex-direction: column; align-items: stretch; gap: 0; }
  .error-links .btn { width: 100%; margin-bottom: var(--s3); }
  .error-links .link { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
  .error-links .link:last-child { border-bottom: 1px solid var(--rule); }
  .error-links a[href^="mailto:"] { font-size: 14.5px; }   /* keeps the long support address on one line at 360px */
}
