/* ==========================================================================
   Flagshipper UI extension — subpage + blog layer
   --------------------------------------------------------------------------
   Builds ON the existing Flagshipper system. It adds no new palette or font:
     Fonts    --font-heading (Muoto), --font-sans (Instrument Sans)   [styles.css]
     Colours  --color-yellow (saffron), --color-yellow-pressed,
              --color-yellow-shadow, --color-accent, --color-navy,
              --color-navy-deep, --line, --ink, --muted, --gutter     [v6-chrome.css]
              --b-ink, --b-muted, --b-biscuit, --b-lite, --b-saffron,
              --b-navy, --b-line (the inner-page set, same values)    [blog.css / qh-inner.css]
     Rhythm   --tracking-heading, 999px pill buttons, 10-14px card radius,
              navy banner on universal-clay, white field, biscuit accents.
   Everything is scoped under body.qh-ui-page (set by includes/header.php when a
   page uses a page-template-*.php) so existing pages are never affected.
   ========================================================================== */

body.qh-ui-page .page-top {
  background: transparent;
  min-height: 0;
  overflow: visible;
}

body.qh-ui-page .page-main {
  /* Existing inner-page tokens (identical values to blog.css / qh-inner.css) */
  --b-ink: #121826;
  --b-muted: #5c6575;
  --b-biscuit: #fdf2d5;
  --b-lite: #fff8e8;
  --b-saffron: #f2c150;
  --b-navy: #03264e;
  --b-line: rgba(18, 24, 38, 0.1);

  /* Thin extensions, all derived from the tokens above */
  --qh-text: var(--b-ink);
  --qh-text-muted: var(--b-muted);
  --qh-link: var(--b-navy);
  --qh-surface: #fff;
  --qh-surface-soft: #fffaf0;          /* same soft cream as --qi-soft */
  --qh-surface-warm: var(--b-biscuit);
  --qh-line: var(--b-line);
  --qh-line-strong: rgba(3, 38, 78, 0.2);
  --qh-accent: var(--b-saffron);
  --qh-accent-ink: var(--color-accent, #b2861f);
  --qh-radius: 12px;
  --qh-radius-lg: 14px;
  --qh-shadow: 0 1px 2px rgba(18, 24, 38, 0.04), 0 8px 22px rgba(18, 24, 38, 0.05);
  --qh-wide: 70rem;                    /* 1120px, same as .qh-inner-wrap */
  --qh-measure: 44rem;                 /* ~70 characters of body copy */
  --qh-section-y: clamp(2.25rem, 5vw, 4rem);

  background: #fff;
  color: var(--qh-text);
  padding: 0;
}

body.qh-ui-page .qh-ui {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--qh-text);
}

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

.qh-wrap {
  width: min(var(--qh-wide), calc(100% - 2.5rem));
  margin-inline: auto;
}
.qh-wrap--narrow { width: min(var(--qh-measure), calc(100% - 2.5rem)); }
.qh-section { padding-block: var(--qh-section-y); }
.qh-section--soft { background: var(--qh-surface-soft); }
.qh-section--tight { padding-block: clamp(1.25rem, 3vw, 2rem); }

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

/* ---------- Banner / hero (mirrors the existing inner-page banner) ---------- */
.qh-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 28vw, 340px);
  padding: 2.75rem 1.25rem 2.85rem;
  background-color: var(--b-navy);
  background-image: var(--qh-banner-img);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.qh-banner-shade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 38, 78, 0.34) 0%, rgba(3, 38, 78, 0.42) 55%, rgba(3, 38, 78, 0.6) 100%);
}
.qh-banner-inner {
  position: relative; z-index: 1;
  width: min(820px, 100%);
  display: grid; gap: 0.85rem; justify-items: center;
}
.qh-banner .qh-eyebrow { color: var(--b-saffron); }
.qh-banner h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading, -0.04em);
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(3, 38, 78, 0.35);
}
.qh-banner-sub {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
@media (width <= 640px) {
  .qh-banner { background-image: var(--qh-banner-img-mobile, var(--qh-banner-img)); }
}

.qh-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--b-navy);
}

.qh-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.15rem 0; margin: 0; padding: 0; list-style: none;
}
.qh-breadcrumb li {
  display: inline-flex; align-items: center;
  font-size: 0.875rem; line-height: 1.4; font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.qh-breadcrumb li:not(:last-child)::after { content: "\203A"; margin: 0 0.55rem; color: rgba(255, 255, 255, 0.5); }
.qh-breadcrumb a { color: rgba(255, 255, 255, 0.9); text-decoration: none; border-bottom: 1px solid transparent; }
.qh-breadcrumb a:hover { color: #fff; border-bottom-color: rgba(242, 193, 80, 0.85); }
.qh-breadcrumb [aria-current="page"] { color: var(--b-saffron); font-weight: 600; }

/* ---------- Image slots: 16:9 and 1:1, placeholder or approved image ---------- */
.qh-slot { margin: 0; width: 100%; }
.qh-slot--1x1 { max-width: 26rem; margin-inline: auto; }
.qh-slot-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--qh-line);
  border-radius: var(--qh-radius-lg);
  background: var(--qh-surface-soft);
  box-shadow: var(--qh-shadow);
}
.qh-slot--16x9 .qh-slot-frame { aspect-ratio: 16 / 9; }
.qh-slot--1x1 .qh-slot-frame { aspect-ratio: 1 / 1; }
.qh-slot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qh-slot.is-placeholder .qh-slot-frame {
  display: grid; place-items: center; text-align: center; padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(253, 242, 213, 0.75), rgba(255, 250, 240, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(3, 38, 78, 0.03) 14px 15px);
  border-style: dashed;
  border-color: var(--qh-line-strong);
  box-shadow: none;
}
.qh-slot-placeholder { display: grid; gap: 0.35rem; justify-items: center; max-width: 30rem; }
.qh-slot-ratio {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--b-navy); padding: 0.2rem 0.6rem; border: 1px solid var(--qh-line-strong); border-radius: 999px; background: #fff;
}
.qh-slot-label { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--qh-text); letter-spacing: -0.01em; }
.qh-slot-note { font-size: 0.82rem; color: var(--qh-text-muted); }
.qh-slot figcaption { margin-top: 0.6rem; font-size: 0.875rem; line-height: 1.5; color: var(--qh-text-muted); text-align: center; }
.qh-slot-wrap { padding-top: clamp(1.5rem, 3.5vw, 2.5rem); }
.qh-slot-wrap .qh-slot--16x9 { max-width: 60rem; margin-inline: auto; }

/* ---------- Prose ---------- */
.qh-prose { color: var(--qh-text); }
.qh-prose > * + * { margin-top: 1.1rem; }
.qh-prose p,
.qh-prose ul,
.qh-prose ol,
.qh-prose blockquote,
.qh-prose .qh-callout { max-width: var(--qh-measure); }
.qh-prose h2, .qh-prose h3, .qh-prose h4 {
  font-family: var(--font-heading);
  color: var(--b-navy);
  letter-spacing: var(--tracking-heading, -0.04em);
  line-height: 1.2;
  text-wrap: balance;
  scroll-margin-top: 6rem;
}
.qh-prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; margin-top: 2.75rem; padding-top: 0.25rem; }
.qh-prose h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 600; margin-top: 2rem; }
.qh-prose h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1.75rem; color: var(--qh-text-muted); }
.qh-prose > h2:first-child, .qh-prose > h3:first-child { margin-top: 0; }
.qh-prose h2 + *, .qh-prose h3 + * { margin-top: 0.65rem; }
.qh-prose p { line-height: 1.75; }
.qh-prose a { color: var(--qh-link); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(3, 38, 78, 0.3); text-underline-offset: 3px; }
.qh-prose a:hover { text-decoration-color: var(--qh-accent-ink); }
.qh-prose strong { font-weight: 700; color: var(--qh-text); }
.qh-prose ul, .qh-prose ol { padding-left: 1.4rem; }
.qh-prose ul { list-style: disc; }
.qh-prose ol { list-style: decimal; }
.qh-prose li { padding-left: 0.2rem; line-height: 1.7; }
.qh-prose li + li { margin-top: 0.4rem; }
.qh-prose li::marker { color: var(--qh-accent-ink); }
.qh-prose blockquote {
  padding: 0.9rem 1.15rem;
  border-left: 4px solid var(--qh-accent);
  border-radius: 0 var(--qh-radius) var(--qh-radius) 0;
  background: var(--qh-surface-soft);
  font-size: 1.05rem;
}
.qh-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em; padding: 0.12em 0.4em; border-radius: 6px;
  background: var(--b-lite); border: 1px solid var(--qh-line); color: var(--b-navy);
}
.qh-prose pre { padding: 1rem 1.15rem; overflow-x: auto; border-radius: var(--qh-radius); background: var(--b-navy); color: #fff; font-size: 0.9rem; }
.qh-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.qh-prose hr { border: 0; border-top: 1px solid var(--qh-line); margin-block: 2.25rem; }
.qh-prose img { border-radius: var(--qh-radius); height: auto; }
.qh-prose figure { margin: 1.75rem 0; }
.qh-prose figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--qh-text-muted); }
.qh-callout {
  padding: 1rem 1.15rem;
  border-radius: var(--qh-radius);
  background: var(--qh-surface-warm);
  border-left: 4px solid var(--qh-accent);
  font-size: 1.02rem; line-height: 1.6;
}
.qh-callout > * + * { margin-top: 0.5rem; }
.qh-prose--wide .qh-wide { max-width: none; }

/* ---------- Tables: comparison / data / package ---------- */
.qh-table-wrap {
  width: 100%; margin-block: 1.5rem; overflow-x: auto;
  border: 1px solid var(--qh-line); border-radius: var(--qh-radius); background: #fff;
  -webkit-overflow-scrolling: touch;
}
.qh-table-wrap:focus-visible { outline: 2px solid var(--b-navy); outline-offset: 2px; }
.qh-prose table,
.qh-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; background: #fff;
  font-variant-numeric: tabular-nums;
}
/* Bare tables inside prose still scroll safely on small screens */
.qh-prose > table { display: block; max-width: 100%; overflow-x: auto; border: 1px solid var(--qh-line); border-radius: var(--qh-radius); }
.qh-table-wrap > table { display: table; border: 0; }
.qh-prose caption, .qh-table caption {
  caption-side: top; text-align: left; padding: 0.9rem 1rem 0.4rem;
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; color: var(--b-navy);
}
.qh-prose th, .qh-prose td, .qh-table th, .qh-table td {
  text-align: left; vertical-align: top; padding: 0.7rem 1rem; border-top: 1px solid var(--qh-line); min-width: 8rem;
}
.qh-prose thead th, .qh-table thead th {
  border-top: 0; background: var(--b-lite); color: var(--b-navy);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; white-space: nowrap;
}
.qh-prose tbody th, .qh-table tbody th { font-weight: 700; color: var(--qh-text); }
.qh-prose tbody tr:nth-child(even) td, .qh-prose tbody tr:nth-child(even) th,
.qh-table tbody tr:nth-child(even) td, .qh-table tbody tr:nth-child(even) th { background: rgba(255, 250, 240, 0.7); }
.qh-prose tr.is-featured td, .qh-prose tr.is-featured th, .qh-table tr.is-featured td, .qh-table tr.is-featured th,
.qh-table td.is-featured, .qh-table th.is-featured { background: var(--b-biscuit); }
.qh-prose tfoot td, .qh-table tfoot td { font-size: 0.85rem; color: var(--qh-text-muted); background: var(--qh-surface-soft); }
.qh-prose table a { font-weight: 600; }

/* Package / plan cards (pure layout; copy comes from the page) */
.qh-packages { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-block: 1.5rem; max-width: none; }
.qh-package {
  display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem;
  border: 1px solid var(--qh-line); border-radius: var(--qh-radius-lg); background: #fff; box-shadow: var(--qh-shadow);
}
.qh-package--featured { border-color: var(--qh-accent); border-top-width: 4px; background: var(--qh-surface-soft); }
.qh-package h3 { margin: 0; font-size: 1.25rem; }
.qh-package-price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--b-navy); letter-spacing: -0.03em; }
.qh-package ul { margin: 0; }

.qh-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); max-width: none; }
.qh-card {
  padding: 1.15rem 1.25rem; border: 1px solid var(--qh-line); border-radius: var(--qh-radius-lg); background: #fff; box-shadow: var(--qh-shadow);
}

/* ---------- Key takeaways ---------- */
.qh-takeaways {
  margin: 0 0 2rem;
  padding: 1.15rem 1.35rem 1.2rem;
  background: var(--qh-surface-warm);
  border: 1px solid var(--qh-line);
  border-left: 4px solid var(--qh-accent);
  border-radius: var(--qh-radius-lg);
}
.qh-takeaways-title {
  margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--b-navy);
  font-family: var(--font-sans);
}
.qh-takeaways ul { margin: 0; padding-left: 1.2rem; list-style: disc; }
.qh-takeaways li { padding-left: 0.2rem; line-height: 1.6; }
.qh-takeaways li + li { margin-top: 0.4rem; }
.qh-takeaways li::marker { color: var(--qh-accent-ink); }
.qh-takeaways p + p { margin-top: 0.5rem; }

/* ---------- Layout: reading column + TOC ---------- */
.qh-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.qh-layout--toc { align-items: start; }
@media (min-width: 1024px) {
  .qh-layout--toc { grid-template-columns: minmax(0, var(--qh-measure)) 16rem; justify-content: center; gap: 3.5rem; }
  .qh-layout--toc .qh-aside { position: static; max-height: none; overflow: visible; min-width: 0; }
  .qh-layout--single { justify-items: center; }
}
.qh-article { min-width: 0; width: 100%; }
.qh-toc {
  border: 1px solid var(--qh-line); border-radius: var(--qh-radius-lg); background: var(--qh-surface-soft); padding: 0.25rem 1rem;
}
.qh-toc summary {
  cursor: pointer; list-style: none; padding: 0.75rem 0;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--b-navy);
  display: flex; justify-content: space-between; align-items: center;
}
.qh-toc summary::-webkit-details-marker { display: none; }
.qh-toc summary::after { content: "+"; font-size: 1.1rem; letter-spacing: 0; color: var(--qh-accent-ink); }
.qh-toc[open] summary::after { content: "\2212"; }
.qh-toc ol { margin: 0 0 0.75rem; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.qh-toc a {
  display: block; padding: 0.4rem 0.5rem; margin-inline: -0.5rem; border-radius: 8px;
  font-size: 0.92rem; line-height: 1.4; color: var(--qh-text); text-decoration: none;
}
.qh-toc a:hover { background: #fff; color: var(--b-navy); }
.qh-toc--inline { margin-bottom: 2rem; }

/* ---------- FAQ (native details/summary, no JS) ---------- */
.qh-faq { padding-top: 2.5rem; }
.qh-faq-title {
  margin: 0 0 1rem; font-family: var(--font-heading); font-weight: 700; color: var(--b-navy);
  font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: var(--tracking-heading, -0.04em); line-height: 1.2;
}
.qh-faq-list { display: grid; gap: 0.6rem; max-width: var(--qh-measure); }
.qh-faq details { border: 1px solid var(--qh-line); border-radius: var(--qh-radius); background: #fff; transition: border-color 160ms ease, background 160ms ease; }
.qh-faq details[open] { border-color: var(--qh-line-strong); background: var(--qh-surface-soft); }
.qh-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 0.95rem 1.1rem; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--qh-text);
}
.qh-faq summary::-webkit-details-marker { display: none; }
.qh-faq summary::after {
  content: "+"; flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--qh-line-strong); color: var(--b-navy); font-size: 1.05rem; line-height: 1; background: #fff;
}
.qh-faq details[open] summary::after { content: "\2212"; background: var(--qh-accent); border-color: var(--qh-accent); }
.qh-faq summary:hover { color: var(--b-navy); }
.qh-faq-a { padding: 0 1.1rem 1.05rem; color: var(--qh-text); line-height: 1.7; }
.qh-faq-a > * + * { margin-top: 0.7rem; }
.qh-faq-a a { color: var(--qh-link); font-weight: 600; text-underline-offset: 3px; }
.qh-faq--wide .qh-faq-list { max-width: none; }

/* ---------- Blog metadata bar ---------- */
.qh-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  margin: 0 auto; padding: 0.85rem 0; max-width: var(--qh-measure);
  border-bottom: 1px solid var(--qh-line);
  font-size: 0.9rem; color: var(--qh-text-muted);
}
.qh-meta strong { color: var(--qh-text); font-weight: 700; }
.qh-meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.qh-meta-item + .qh-meta-item::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--qh-accent-ink); margin-right: 0.8rem; }
.qh-pill {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--b-biscuit);
  border: 1px solid var(--qh-line); color: var(--b-navy); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.qh-blog-main { padding-top: clamp(1.25rem, 3vw, 2rem); }
.qh-blog-main .qh-article { max-width: var(--qh-measure); margin-inline: auto; }
.qh-blog-main .qh-prose { font-size: 1.125rem; }
.qh-blog-main .qh-prose > p:first-child { font-size: 1.2rem; line-height: 1.7; }

/* ---------- Related links ---------- */
.qh-related { padding-top: 2.5rem; }
.qh-related-title {
  margin: 0 0 1rem; font-family: var(--font-heading); font-weight: 700; color: var(--b-navy);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: var(--tracking-heading, -0.04em); line-height: 1.2;
}
.qh-related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.qh-related-card {
  display: grid; gap: 0.35rem; align-content: start; padding: 1.1rem 1.2rem;
  border: 1px solid var(--qh-line); border-radius: var(--qh-radius-lg); background: #fff; color: var(--qh-text); text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.qh-related-card:hover { border-color: var(--qh-line-strong); transform: translateY(-2px); box-shadow: var(--qh-shadow); }
.qh-related-card strong { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--b-navy); }
.qh-related-card span { font-size: 0.92rem; line-height: 1.55; color: var(--qh-text-muted); }
.qh-related-card em { font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--qh-accent-ink); }

/* ---------- Buttons (same pill language as .qh-inner-btn) ---------- */
.qh-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.6rem 1.35rem;
  border-radius: 999px; font-family: var(--font-heading); font-size: 0.92rem; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--b-navy); background: #fff; border: 1px solid var(--qh-line-strong);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}
.qh-btn:hover { border-color: var(--b-navy); transform: translateY(-1px); }
.qh-btn--primary { background: var(--b-saffron); border-color: var(--b-saffron); color: #10213a; }
.qh-btn--primary:hover { background: #f5cb6a; border-color: #f5cb6a; }
.qh-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.qh-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.qh-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ---------- Closing CTA (one per page) ---------- */
.qh-cta-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.qh-cta {
  display: grid; gap: 0.8rem; justify-items: start; padding: clamp(1.6rem, 4vw, 2.75rem);
  border-radius: var(--qh-radius-lg); background: var(--b-navy); color: #fff;
}
.qh-cta .qh-eyebrow { color: var(--b-saffron); }
.qh-cta h2 {
  margin: 0; font-family: var(--font-heading); font-weight: 700; color: #fff; text-wrap: balance;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.15; letter-spacing: var(--tracking-heading, -0.04em);
}
.qh-cta p { margin: 0; max-width: 38rem; color: rgba(255, 255, 255, 0.88); line-height: 1.65; }
.qh-cta .qh-actions { margin-top: 0.4rem; }

/* ---------- Focus + motion ---------- */
.qh-ui a:focus-visible, .qh-ui summary:focus-visible, .qh-ui .qh-btn:focus-visible { outline: 2px solid var(--b-navy); outline-offset: 3px; border-radius: 6px; }
.qh-banner a:focus-visible, .qh-cta a:focus-visible { outline-color: var(--b-saffron); }
@media (prefers-reduced-motion: reduce) {
  .qh-ui * { transition: none !important; }
}
@media (width <= 640px) {
  .qh-ui { font-size: 1rem; }
  .qh-cta .qh-actions .qh-btn { width: 100%; }
  .qh-prose th, .qh-prose td, .qh-table th, .qh-table td { padding: 0.6rem 0.75rem; min-width: 7rem; }
}
@media print {
  .qh-toc, .qh-cta-section { display: none; }
}
/* ---------- QuickHey polish (3 Dec 2026): crisper inner-page headings, no raw code blocks ---------- */
body.qh-ui-page .qh-banner h1 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); line-height: 1.12; font-weight: 600; max-width: 22em; margin-inline: auto; }
body.qh-ui-page .qh-prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; font-weight: 600; }
body.qh-ui-page .qh-prose h3 { font-size: clamp(1.12rem, 1.8vw, 1.3rem); font-weight: 600; }
body.qh-ui-page .qh-slot-wrap .qh-slot--16x9 { max-width: 56rem; }

