/* Shared article layout for the site's long-form medical guides. */
.guide-page {
  --guide-brand: #1e3a8a;
  --guide-brand-2: #244aa5;
  --guide-ink: #172033;
  --guide-muted: #5f6b7a;
  --guide-bg: #f5f7fb;
  --guide-card: #ffffff;
  --guide-line: #dfe5ef;
  --guide-soft: #eaf1ff;
  --guide-accent: #0f766e;
  --guide-radius: 22px;
  padding-top: 5rem;
  background: var(--guide-bg);
  color: var(--guide-ink);
  line-height: 1.75;
}

.guide-page *,
.guide-page *::before,
.guide-page *::after { box-sizing: border-box; }

.guide-page a { color: inherit; }
.guide-page [id] { scroll-margin-top: 6.5rem; }
.guide-page .container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }

.guide-page .hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 54px;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #21469d 62%, #163275 100%);
}

.guide-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .1;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 40px 40px;
}

.guide-page .hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  left: -120px;
  top: -175px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.025);
}

.guide-page .hero .container { position: relative; z-index: 1; }
.guide-page .crumbs { margin-bottom: 20px; color: #cdd9f6; font-size: 13px; }
.guide-page .crumbs a { text-decoration: none; }
.guide-page .crumbs a:hover { color: #fff; text-decoration: underline; }
.guide-page .hero-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 44px; align-items: center; }
.guide-page h1 { margin: 0 0 18px; font-size: 48px; line-height: 1.16; letter-spacing: -1.2px; font-weight: 800; }
.guide-page .lead { max-width: 780px; margin: 0 0 28px; color: #e0f2fe; font-size: 20px; }
.guide-page .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.guide-page .btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 21px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.guide-page .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,23,42,.16); }
.guide-page .btn-light { color: var(--guide-brand); background: #fff; }
.guide-page .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.42); }
.guide-page .btn-ghost:hover { background: rgba(255,255,255,.1); }
.guide-page .quick { padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: rgba(255,255,255,.09); backdrop-filter: blur(4px); }
.guide-page .quick h2 { margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.guide-page .quick ul { margin: 0; padding: 0 20px 0 0; }
.guide-page .quick li { margin: 7px 0; color: #f3f7ff; font-size: 14px; }

.guide-page .trust { background: #fff; border-bottom: 1px solid var(--guide-line); }
.guide-page .trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.guide-page .trust-item { padding: 19px 18px; text-align: center; border-left: 1px solid var(--guide-line); }
.guide-page .trust-item:last-child { border-left: 0; }
.guide-page .trust-item strong { display: block; color: var(--guide-brand); font-size: 14px; }
.guide-page .trust-item span { color: var(--guide-muted); font-size: 12px; }

.guide-page .guide-body { padding: 44px 0 76px; }
.guide-page .layout { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.guide-page .toc { position: sticky; top: 98px; padding: 20px; border: 1px solid var(--guide-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(25,46,99,.04); }
.guide-page .toc h2 { margin: 0 0 12px; color: var(--guide-brand); font-size: 15px; font-weight: 800; }
.guide-page .toc a { display: block; padding: 6px 0; border-bottom: 1px solid #f0f2f6; color: #536072; font-size: 13px; text-decoration: none; }
.guide-page .toc a:last-child { border-bottom: 0; }
.guide-page .toc a:hover { color: var(--guide-brand); }
.guide-page .content { min-width: 0; }
.guide-page .section { margin-bottom: 24px; padding: 34px; border: 1px solid var(--guide-line); border-radius: var(--guide-radius); background: var(--guide-card); box-shadow: 0 10px 30px rgba(25,46,99,.035); }
.guide-page .section h2 { margin: 0 0 16px; color: #1c2a49; font-size: 29px; line-height: 1.25; letter-spacing: -.35px; font-weight: 800; }
.guide-page .section h3 { margin: 26px 0 8px; color: #243456; font-size: 20px; font-weight: 800; }
.guide-page .section p { margin: 10px 0; color: #364152; }
.guide-page .section ul:not(.checklist),
.guide-page .section ol { padding-right: 1.35rem; }
.guide-page .section li { margin-block: .35rem; }
.guide-page .answer { margin: 18px 0; padding: 18px 20px; border-right: 4px solid var(--guide-brand); border-radius: 14px; background: var(--guide-soft); }
.guide-page .answer strong { display: block; margin-bottom: 4px; color: var(--guide-brand); }
.guide-page .note { padding: 15px 17px; border: 1px solid var(--guide-line); border-radius: 13px; color: #536072; background: #f8fafc; font-size: 14px; }
.guide-page .warning { padding: 16px 18px; border: 1px solid #f2dfad; border-radius: 14px; color: #6d4c15; background: #fff8e8; font-size: 14px; }
.guide-page .highlight { margin: 18px 0; padding: 18px 20px; border-right: 4px solid var(--guide-accent); border-radius: 14px; background: #eef7f5; }
.guide-page .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.guide-page .mini { padding: 18px; border: 1px solid var(--guide-line); border-radius: 16px; background: #fbfcff; }
.guide-page .mini h3 { margin: 0 0 8px; font-size: 17px; }
.guide-page .mini p { margin: 0; color: #596577; font-size: 14px; }
.guide-page .metric { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }
.guide-page .metric > div { padding: 18px; border: 1px solid #dfe7f7; border-radius: 15px; background: #f8faff; text-align: center; }
.guide-page .metric b { display: block; color: var(--guide-brand); font-size: 27px; line-height: 1.1; }
.guide-page .metric span { color: var(--guide-muted); font-size: 12px; }
.guide-page .checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 18px 0; padding: 0; list-style: none; }
.guide-page .checklist li { position: relative; padding-right: 28px; color: #3e4a5d; }
.guide-page .checklist li::before { content: "✓"; position: absolute; right: 0; top: 0; color: var(--guide-accent); font-weight: 900; }
.guide-page .flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 20px 0; }
.guide-page .step { padding: 15px; border: 1px solid var(--guide-line); border-radius: 15px; background: #fff; }
.guide-page .step b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 8px; border-radius: 50%; color: #fff; background: var(--guide-brand); }
.guide-page .step strong { display: block; font-size: 14px; }
.guide-page .step span { color: var(--guide-muted); font-size: 12px; }
.guide-page .cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.guide-page .case { padding: 18px; border: 1px solid var(--guide-line); border-radius: 16px; background: #fbfcff; }
.guide-page .tag { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; color: var(--guide-brand); background: #eaf1ff; font-size: 11px; font-weight: 800; }
.guide-page .case h3 { margin: 0 0 7px; font-size: 17px; }
.guide-page .case p { margin: 0; color: #596577; font-size: 13px; }

.guide-page details { padding: 15px 0; border-top: 1px solid var(--guide-line); }
.guide-page details:first-of-type { border-top: 0; }
.guide-page summary { position: relative; padding-left: 26px; color: #263552; font-weight: 800; cursor: pointer; list-style: none; }
.guide-page summary::-webkit-details-marker { display: none; }
.guide-page summary::before { content: "+"; position: absolute; left: 0; color: var(--guide-brand); font-size: 21px; line-height: 1; }
.guide-page details[open] summary::before { content: "–"; }
.guide-page .faq p { margin: 10px 0 0; font-size: 14px; }

.guide-page .table-scroll { width: 100%; margin: 20px 0; overflow-x: auto; border: 1px solid var(--guide-line); border-radius: 16px; background: #fff; }
.guide-page .compare { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
.guide-page .compare th,
.guide-page .compare td { padding: 14px 16px; border-bottom: 1px solid var(--guide-line); font-size: 14px; text-align: right; vertical-align: top; }
.guide-page .compare th { color: #263552; background: #f3f6fc; font-weight: 800; }
.guide-page .compare tr:last-child td { border-bottom: 0; }
.guide-page .compare td:first-child { width: 23%; color: #34425d; font-weight: 800; }
.guide-page .sources li { margin: 12px 0; color: #4f5d70; }
.guide-page .sources a { color: var(--guide-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-page .updated { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #718096; font-size: 12px; }
.guide-page .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--guide-accent); }
.guide-page .cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 26px; padding: 34px; border-radius: 24px; color: #fff; background: var(--guide-brand); }
.guide-page .cta h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.guide-page .cta p { max-width: 700px; margin: 0; color: #dbeafe; }
.guide-page .cta .btn { color: var(--guide-brand); background: #fff; }

@media (max-width: 920px) {
  .guide-page .hero-grid,
  .guide-page .layout { grid-template-columns: 1fr; }
  .guide-page .quick { max-width: 620px; }
  .guide-page .toc { position: relative; top: 0; }
  .guide-page .trust-row { grid-template-columns: 1fr 1fr; }
  .guide-page .metric,
  .guide-page .cases,
  .guide-page .flow { grid-template-columns: 1fr 1fr; }
  .guide-page .cta { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .guide-page .container { width: min(calc(100% - 24px), 1160px); }
  .guide-page .hero { padding: 42px 0 38px; }
  .guide-page h1 { font-size: 35px; }
  .guide-page .lead { font-size: 17px; }
  .guide-page .trust-row,
  .guide-page .grid2,
  .guide-page .checklist,
  .guide-page .metric,
  .guide-page .cases,
  .guide-page .flow { grid-template-columns: 1fr; }
  .guide-page .section { padding: 23px; border-radius: 17px; }
  .guide-page .section h2 { font-size: 24px; }
  .guide-page .toc { display: none; }
  .guide-page .cta { padding: 25px; }
  .guide-page .cta h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-page .btn { transition: none; }
}
