/* Head Gasket Bench page (/headgasket/). Only what te.css and sections.css do not already have:
   the FAQ disclosures (as on /bench/), the quote, the stat row, the board table and the public/not-public pair. */
.hg-inline { color: var(--accent-ink); font-weight: 550; }
.hg-inline:hover { text-decoration: underline; text-underline-offset: 3px; }
.hg-prose { max-width: 780px; margin: 0 auto; display: grid; gap: 16px; }
.hg-prose p, .hg-prose-p { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.hg-prose-p { max-width: 720px; margin-top: 22px; }
.hg-note { max-width: 780px; margin: 28px auto 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-align: center; text-wrap: pretty; }
.hg-note a, .hg-prose a, .faq a, .install a, .never a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bento .step-n { margin: 0; }

/* Disclosures, as on /bench/ */
.faq { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.7px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.7px 14px no-repeat; transition: transform .35s var(--ease-out); }
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
.faq details > :not(summary) { max-width: 820px; }
.faq details > :last-child { margin-bottom: 26px; }
.faq details p, .faq details li { font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.faq details p + p, .faq details ul + p, .faq details ol + p, .faq details pre + p { margin-top: 12px; }
.faq details ul, .faq details ol { display: grid; gap: 8px; margin: 4px 0 0; padding-left: 20px; }
.faq details b { color: var(--ink); font-weight: 600; }
.faq pre { margin: 12px 0 0; padding: 16px 18px; border-radius: var(--radius-s); background: var(--bg-2); white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13.5px/1.65 var(--mono); color: var(--ink); }
.band-alt .faq pre { background: #fff; }
.faq .hg-tools { list-style: none; padding-left: 0; }
.faq .hg-tools code { margin-right: 8px; color: var(--ink); }
.hg-faq-tight { margin-top: 4px; }
.hg-faq-tight summary { min-height: 52px; padding: 12px 0; font-size: 16px; }

/* The paper's words */
.hg-quote { max-width: 860px; margin: 0 auto; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.hg-quote blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.hg-quote blockquote p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.hg-quote figcaption { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.hg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 24px auto 0; }
.hg-stat { padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.hg-num { font-size: clamp(28px, 2.8vw, 36px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-ink); margin-bottom: 10px; }
.hg-stat p + p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 860px) { .hg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The paper */
.hg-paper { max-width: 860px; }
.hg-paper .headline { font-size: clamp(32px, 4.4vw, 54px); }
.hg-byline { margin-top: 20px; font-size: 18px; font-weight: 600; color: var(--ink); }
.hg-meta { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.hg-paper .cta-row { margin-top: 28px; }
.hg-hash { margin-top: 18px; overflow-wrap: anywhere; }

/* Install details */
.hg-gap { margin-top: 14px; }
.hg-client { margin: 18px 0 8px 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.install .term + .term { margin-top: 12px; }

/* The board */
.hg-board { max-width: 100%; overflow-x: auto; border-radius: var(--radius-m); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); scrollbar-width: thin; }
.hg-board:focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
.hg-board table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.hg-board caption { caption-side: bottom; padding: 14px 18px 16px; text-align: left; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--line-2); }
.hg-board th, .hg-board td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.hg-board thead th { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2); background: var(--bg-3); }
.hg-board tbody th[scope="row"] { font-weight: 600; color: var(--ink); }
.hg-board .num { text-align: right; font-variant-numeric: tabular-nums; }
.hg-board .hg-group th { padding-top: 18px; font-size: 14px; font-weight: 650; color: var(--accent-ink); background: #fff; white-space: normal; }
.hg-board .hg-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.hg-board .hg-empty { color: var(--ink-2); font-style: italic; }
.hg-board a { color: var(--accent-ink); }
.hg-board code { font-size: 13px; }

/* Public and not public */
.hg-public { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hg-public h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.028em; margin-bottom: 14px; }
.hg-public ul { display: grid; gap: 12px; padding-left: 18px; }
.hg-public li { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hg-public b { color: var(--ink); font-weight: 600; margin-right: 4px; }
@media (max-width: 760px) { .hg-public { grid-template-columns: minmax(0, 1fr); } }
.hg-board td:last-child { white-space: normal; min-width: 150px; }
/* The client may name an effort setting, e.g. "Claude Code (effort max)": on wide screens let it wrap rather than
   widen the table past its box; on narrow screens the board scrolls sideways anyway. */
@media (min-width: 1100px) { .hg-board tbody tr > td:nth-child(2) { white-space: normal; } }
.hg-board td:last-child code { display: inline; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
/* Keep a group's title in view while the table scrolls sideways on small screens. */
.hg-board .hg-gtext { position: sticky; left: 14px; display: block; max-width: min(100%, calc(100vw - 2 * var(--gutter) - 28px)); }
