/* Long-form guides in the knowledge-page family (src/lib/knowledge-pages.mjs, block type "html").
   Uses the tokens from knowledge-page.css. */
.guide-prose { max-width: 760px; font-size: 17px; line-height: 1.7; }
.guide-prose > * + * { margin-top: 1em; }
.guide-prose h3 { margin-top: 1.8em; font: 700 21px/1.25 var(--display); }
.guide-prose h4 { margin-top: 1.4em; font: 700 17px/1.3 var(--display); }
.guide-prose ul, .guide-prose ol { padding-left: 1.3em; }
.guide-prose li + li { margin-top: .45em; }
.guide-prose li > p { margin: 0; }
.guide-prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.guide-prose strong { font-weight: 700; }
.guide-prose blockquote { padding-left: 18px; border-left: 3px solid var(--coral); color: var(--muted); }
.guide-prose .table-wrap { max-width: none; overflow-x: auto; }
.guide-prose .decision-table { margin-top: 8px; }
.guide-prose .decision-table td:first-child { font-weight: 600; }
.guide-prose .guide-callout { margin: 1.6em 0; }
.guide-prose .guide-callout ul, .guide-prose .guide-callout ol { margin-top: 10px; font-size: 15px; }
.guide-prose .handoff { margin: 1.8em 0; padding: 18px 22px; border-radius: 16px; background: var(--peach); font-size: 16px; line-height: 1.6; }
.guide-prose .handoff b { display: block; margin-bottom: 6px; color: var(--coral-deep); font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.guide-prose .handoff a:first-of-type { font-weight: 700; }
.guide-prose .up-next { background: var(--teal-soft); }
.guide-prose .up-next b { color: var(--teal-deep); }
.guide-prose .up-next .also { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.guide-prose .guide-cta span { margin-left: 10px; color: var(--muted); font-size: 14px; }
.knowledge-hero .series-nav { margin-top: 18px; color: var(--muted); font: 500 12px/1.5 var(--mono); letter-spacing: .04em; }
.knowledge-hero .series-nav a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .guide-prose { font-size: 16px; } }
.guide-prose .guide-callout li strong, .guide-prose .guide-callout p strong { display: inline; font: inherit; font-weight: 700; }

/* ---------- Phones: tables as cards, a wider text margin, readable label sizes ---------- */
@media (max-width: 700px) {
  .wrap { width: min(100% - 40px, 1160px); }
  .hero .lead { font-size: 17px; line-height: 1.6; }
  .answer-band p { font-size: 17px; line-height: 1.6; }
  .guide-prose { font-size: 16.5px; line-height: 1.72; }
  .guide-prose > * + * { margin-top: 1.1em; }
  .guide-prose h3 { margin-top: 2em; font-size: 20px; }
  .article section + section { margin-top: 56px; }
  .article h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.12; }
  .eyebrow, .status, .toc b, .decision-table th { font-size: 11.5px !important; }
  .guide-prose .handoff { padding: 16px 18px; font-size: 15.5px; }
  .guide-prose .handoff b { font-size: 11.5px; }
  .table-wrap:has(.gw-rtable) { overflow: visible; }
  .gw-rtable { min-width: 0 !important; width: 100%; }
  .gw-rtable td, .gw-rtable th { padding: 11px 12px; font-size: 14.5px; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) { display: block; border: 0; background: none; border-radius: 0; overflow: visible; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) thead { display: none; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) tbody { display: grid; gap: 12px; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) tr { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td { display: block; border-right: 0 !important; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 400 !important; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td:last-child { border-bottom: 0; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td:first-child { background: var(--cream-deep); font: 700 17px/1.3 var(--display); }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td:first-child::before { display: none; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td:empty { display: none; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) tr { display: grid; grid-template-columns: 1fr 1fr; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td { grid-column: 1 / -1; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td.gw-s { grid-column: auto; }
  .gw-rtable:not([data-cols="1"]):not([data-cols="2"]) td.gw-s:nth-child(even of .gw-s) { border-left: 1px solid var(--line, #e2d6cc); }
  .related-grid small, .crm-alt b, .gw-meta b, .gw-kpi small { font-size: 11.5px !important; }
}
