/* ═══════════════════════════════════════════════════════
   First Half Financial — book-companion.css
   /book/companion only (book-companion.html), on top of landing.css and book.css (same fonts, colours, half-circles).
   ═══════════════════════════════════════════════════════ */
.comp-hero { padding-block: 36px 72px; }
.comp-cover { justify-self: center; width: min(100%, 320px); height: auto; border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.comp-hero .eyebrow + h1 { max-width: none; }

.comp-body { max-width: 860px; }
.comp-body > h2 { margin-top: 56px; font-size: clamp(1.6rem, 3.6vw, 2.2rem); scroll-margin-top: 20px; }
.comp-body > h2:first-child { margin-top: 0; }
.comp-body p { margin: 16px 0 0; max-width: 70ch; }
.comp-body ul { margin: 14px 0 0; padding-left: 1.3em; max-width: 70ch; }
.comp-body li { margin-top: 10px; }
.comp-body li > p { margin-top: 8px; }
.comp-body li ul { margin-top: 8px; }
.comp-body a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.comp-body a:hover { color: var(--teal); }

.tablewrap { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.comp-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.45; }
.comp-body th, .comp-body td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.comp-body th { background: var(--mint-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
.comp-body tr:last-child td { border-bottom: 0; }
.comp-body tbody tr:nth-child(even) td { background: rgba(227, 242, 238, .35); }

@media (max-width: 920px) { .comp-hero { padding-bottom: 56px; } .comp-cover { width: min(100%, 260px); } }
