/* MailFleet content templates — Help Center, help articles, blog, feature landing pages,
   comparisons, glossary and the API reference — set in the site's Modernist register:
   a flat ground, 2px rules doing the layout, square corners, Archivo display caps, and red
   used only as a mark (squares, numerals, kickers) and as the closing field.
   Loads after /site/site.css (nav, footer, .close, .meta-row, .hl, .faq live there); the
   tokens come from /site/ds/styles.css, loaded by /site/ds-base.js. */

:root {
  /* The reading measure, in rem so it means the same width on a paragraph and on a heading
     (ch scales with each element's own font size): about 70 characters of 17px text. */
  --measure: 41rem;
  --rail: 250px;
  --gap: clamp(28px, 4.6vw, 84px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ink-86: color-mix(in srgb, var(--color-text) 86%, transparent);
  --ink-72: color-mix(in srgb, var(--color-text) 72%, transparent);
}
main { display: block; }
.btn, .site-nav .nav-menu { border-radius: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--color-accent); color: var(--color-bg);
  padding: 10px 16px; font-size: 13px; font-weight: 600; text-decoration: none; transition: top .14s; }
.skip-link:focus, .skip-link:hover { top: 12px; color: var(--color-bg); }
.text-muted { color: var(--muted); }

/* ── Breadcrumbs: a small caps trail above every header ─────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 22px var(--edge) 0;
  font-size: 12px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease), color .2s; }
.crumbs a:hover { color: var(--color-text); background-size: 100% 2px; }
.crumbs .sep { color: var(--faint); }
.crumbs [aria-current] { color: var(--color-text); }

/* ── Article header: meta row, display title, lede + a side note ─────────────── */
.art-head { padding: calc(1.3 * var(--lead)) var(--edge) calc(1.6 * var(--lead)); border-bottom: 2px solid var(--color-text); }
.art-head .meta-row { padding-bottom: calc(1.1 * var(--lead)); }
.art-head .meta-row a { color: inherit; }
.art-head .meta-row a:hover { color: var(--color-text); }
.doc-h { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(40px, 6.6vw, 108px); line-height: .92;
  letter-spacing: -.035em; text-transform: uppercase; max-width: 16ch; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.doc-h.m { font-size: clamp(36px, 5.2vw, 84px); max-width: 20ch; }
.doc-h.l { font-size: clamp(30px, 3.8vw, 62px); line-height: .96; max-width: 26ch; }
.doc-h .pre { display: block; font-size: max(.36em, 18px); letter-spacing: -.01em; line-height: 1.2; color: var(--muted); margin-bottom: .12em; }
.doc-h .q { color: var(--color-accent); }
.art-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 22px var(--gap); align-items: end; margin-top: calc(1.3 * var(--lead)); }
.art-foot.solo { grid-template-columns: minmax(0, 1fr); }
.art-head .lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; max-width: 60ch; margin: 0; color: var(--ink-86); }
.art-foot .where, .art-foot .verified { margin: 0; padding: 14px 18px 15px; font-size: 14px; line-height: 1.6; color: var(--ink-86);
  background: var(--color-surface); border-left: 4px solid var(--color-accent); }
.art-foot .where b { display: block; margin-bottom: 3px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700); }
.art-foot .verified a { color: var(--color-accent-700); }
.head-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.art-head .btn, .actions .btn, .entry .btn { font-size: 15px; padding: 13px 20px; border: 2px solid transparent; }
.art-head .btn-primary { border-color: var(--color-accent); }
.art-head .btn-primary:hover { border-color: var(--color-accent-600); }
.art-head a.btn-secondary, .actions .btn-secondary, .entry a.btn-secondary { border-color: var(--color-text); color: var(--color-text); }
.art-head a.btn-secondary:hover, .actions .btn-secondary:hover, .entry a.btn-secondary:hover { background: var(--color-text); color: var(--color-bg); }

/* ── Body: a sticky contents rail beside one readable column ────────────────── */
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--gap); align-items: start;
  padding: calc(1.8 * var(--lead)) var(--edge) calc(2.6 * var(--lead)); }
@media (min-width: 1000px) { .art-grid.with-toc { grid-template-columns: var(--rail) minmax(0, 1fr); } }

.art .toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.art .toc-t { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700);
  padding-bottom: 8px; border-bottom: 2px solid var(--color-text); }
.art .toc a { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; font-size: 14px; line-height: 1.35; text-decoration: none;
  color: var(--ink-72); border-bottom: 1px solid var(--color-divider); transition: color .2s; }
.art .toc a::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--faint); transform: translateY(-2px); transition: background-color .2s, transform .3s var(--ease); }
.art .toc a:hover, .art .toc a.on { color: var(--color-text); }
.art .toc a:hover::before { background: var(--color-text); }
.art .toc a.on::before { background: var(--color-accent); transform: translateY(-2px) rotate(45deg); }
@media (max-width: 999px) {
  /* Below the rail breakpoint the contents become the site's chip bar, stuck under the nav. */
  .art .toc { top: 64px; z-index: 20; display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0;
    margin: calc(-1.8 * var(--lead)) calc(-1 * var(--edge)) calc(1.4 * var(--lead)); background: var(--color-bg);
    border-bottom: 2px solid var(--color-text); scrollbar-width: none; }
  .art .toc::-webkit-scrollbar { display: none; }
  .art .toc-t { flex: none; display: flex; align-items: center; padding: 0 16px 0 var(--edge); border-bottom: 0; font-size: 11px; white-space: nowrap; }
  .art .toc a { flex: none; max-width: 72vw; padding: 13px 16px; border-bottom: 0; border-left: 2px solid var(--color-divider);
    font-size: 13.5px; font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .art .toc a::before { display: none; }
  .art .toc a.on { background: var(--color-text); color: var(--color-bg); }
}

/* ── Article typography ───────────────────────────────────────────────────── */
.art-body { min-width: 0; font-size: 17px; line-height: 1.7; color: var(--ink-86); }
.art-body :is(p, ul, ol, dl, h3, h4, blockquote, .callout, .tipbox, .faq) { max-width: var(--measure); }
/* With a contents rail the section rules run the full column (tables and code may too);
   without one the whole body keeps to the measure, like the site's legal pages. */
.art-grid:not(.with-toc) .art-body { max-width: var(--measure); }
.art-body > :first-child { margin-top: 0; }
.art-body h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(25px, 2.5vw, 36px); line-height: 1.02; letter-spacing: -.025em;
  text-transform: uppercase; color: var(--color-text); margin: calc(2 * var(--lead)) 0 18px; padding-top: 18px; border-top: 2px solid var(--color-text);
  text-wrap: balance; overflow-wrap: break-word; }
.art-body > h2:first-child { margin-top: 0; }
.art-body h3 { font-family: var(--font-heading); font-weight: 800; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; color: var(--color-text); margin: 36px 0 10px; }
.art-body h4 { font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text); margin: 26px 0 8px; }
.art-body p { margin: 0 0 18px; }
.art-body :is(strong, b) { font-weight: 600; color: var(--color-text); }
.art-body a { color: var(--color-accent-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-body a:hover { color: var(--color-accent-600); text-decoration-thickness: 2px; }
.art-body ul, .art-body ol { list-style: none; margin: 0 0 22px; padding: 0; }
.art-body li { position: relative; margin: 8px 0; padding-left: 26px; }
.art-body ul > li::before { content: ""; position: absolute; left: 2px; top: calc(.85em - 4px); width: 7px; height: 7px; background: var(--color-accent); }
.art-body ol { counter-reset: n; }
.art-body ol > li { counter-increment: n; padding-left: 34px; }
.art-body ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--font-heading); font-weight: 800;
  font-size: 13px; line-height: 1.6; color: var(--color-accent); font-feature-settings: "tnum" 1; }
.art-body ul.check > li { padding-left: 32px; }
.art-body ul.check > li::before { left: 0; top: calc(.85em - 8px); width: 16px; height: 16px; box-sizing: border-box; background: transparent; border: 2px solid var(--color-accent); }
/* Help articles: numbered steps, set like the guide — one rule per step, a big red numeral. */
.art-body ol.how { margin: 4px 0 26px; border-bottom: 1px solid var(--color-divider); }
.art-body ol.how > li { margin: 0; padding: 16px 0 16px 58px; border-top: 1px solid var(--color-divider); }
.art-body ol.how > li::before { top: 13px; font-size: 22px; letter-spacing: -.02em; }
.art-body ul.details > li { margin: 0; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--color-divider); font-size: 16px; }
.art-body ul.details > li::before { top: calc(10px + .85em - 4px); }
.art-body ul.details { border-bottom: 1px solid var(--color-divider); }
.art-body hr, .rule2 { height: 2px; border: 0; margin: calc(1.4 * var(--lead)) 0; background: var(--color-divider); }
.art-body code { font-family: var(--mono); font-size: .86em; padding: 2px 5px; background: color-mix(in srgb, var(--color-text) 7%, transparent);
  color: var(--color-text); overflow-wrap: anywhere; }
.art-body pre { margin: 18px 0 28px; padding: 18px 22px; overflow-x: auto; background: var(--color-text); color: var(--color-bg);
  border-left: 4px solid var(--color-accent); font: 13.5px/1.65 var(--mono); tab-size: 2; scrollbar-width: thin; }
.art-body pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.callout, .tipbox { margin: 26px 0; padding: 16px 22px 17px; background: var(--color-surface); border-left: 4px solid var(--color-accent);
  font-size: 16px; line-height: 1.65; color: var(--ink-86); }
.callout.product { border-left-color: var(--color-text); }
.tipbox b:first-child { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); }

/* Tables scroll inside their own frame; the first column stays put on a phone. */
.tbl { margin: 22px 0 30px; overflow-x: auto; border-top: 2px solid var(--color-text); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tbl table { width: 100%; min-width: calc(var(--cols, 3) * 124px); border-collapse: collapse; font-size: 15px; line-height: 1.5; font-feature-settings: "tnum" 1; }
.tbl th { text-align: left; vertical-align: bottom; padding: 12px 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--color-text); }
.tbl td { padding: 12px 14px; vertical-align: top; border-bottom: 1.5px solid var(--color-divider); }
.tbl td.k { font-weight: 600; color: var(--color-text); }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--color-accent) 6%, var(--color-bg)); }
.tbl code { font-size: .88em; }
@media (max-width: 760px) {
  .tbl th:first-child, .tbl td.k { position: sticky; left: 0; z-index: 1; background: var(--color-bg); box-shadow: inset -2px 0 0 var(--color-divider); }
}

/* FAQ accordions inside an article: the site's FAQ, fitted to the column. */
.art-body .faq { margin-top: calc(2 * var(--lead)); border-top: 0; }
.art-body .faq h2 { margin-top: 0; margin-bottom: 0; }
.art-body .faq details { border-bottom: 2px solid var(--color-divider); }
/* The summary bleeds 14px either side so its inverted hover field frames the question
   while the text stays on the column's edge. */
.art-body .faq summary { margin: 0 -14px; padding: 18px 14px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; color: var(--color-text); gap: 16px; }
.art-body .faq details > div { padding: 0 0 22px; font-size: 16px; line-height: 1.7; color: var(--ink-72); }
.art-body dl.faq { margin: 12px 0 0; border-top: 0; }
.art-body dl.faq dt { font-family: var(--font-heading); font-weight: 800; font-size: 18px; line-height: 1.35; color: var(--color-text);
  padding-top: 18px; margin-top: 18px; border-top: 2px solid var(--color-divider); }
.art-body dl.faq dt:first-child { margin-top: 0; }
.art-body dl.faq dd { margin: 6px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-72); }

/* The DNS record on /help/tracking-domain. */
table.rec { width: 100%; margin: 14px 0 12px; border-collapse: collapse; border-top: 2px solid var(--color-text); font-size: 15px; }
table.rec th, table.rec td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1.5px solid var(--color-divider); }
table.rec th { width: 150px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); }
table.rec .aside { color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: calc(1.6 * var(--lead)); }

/* ── Related links: the features grid of ruled cards ───────────────────────── */
.related { padding: calc(2 * var(--lead)) var(--edge) calc(2.4 * var(--lead)); border-top: 2px solid var(--color-text); }
.related h2 { margin: 0 0 calc(1.2 * var(--lead)); font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 4.4vw, 70px); line-height: .94;
  letter-spacing: -.03em; text-transform: uppercase; }
/* Ruled card grids (related links, glossary terms): each card draws its own 2px box and
   overlaps its neighbour's by 2px, so rules stay single and a short last row ends cleanly. */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); padding: 0 2px 2px 0; }
.rel { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 24px; margin: 0 -2px -2px 0; border: 2px solid var(--color-divider);
  color: var(--color-text); text-decoration: none; transition: background-color .25s, color .25s; }
.rel:hover { background: var(--color-text); color: var(--color-bg); }
.rel-k { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700); }
.rel:hover .rel-k { color: var(--color-accent-400); }
.rel-t { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-heading); font-weight: 800; font-size: 18px; line-height: 1.25; }
.rel-t::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--color-accent); transform: translateY(-2px); transition: transform .3s var(--ease); }
.rel:hover .rel-t::before { transform: translateY(-2px) rotate(45deg); }
.rel-d { font-size: 14px; line-height: 1.6; color: var(--muted); }
.rel:hover .rel-d { color: color-mix(in srgb, var(--color-bg) 76%, transparent); }

/* ── The red close, fitted to longer lines ─────────────────────────────────── */
.close-h .hl { font-size: clamp(40px, 6.2vw, 104px); line-height: .9; }
.close-sub { margin: calc(1.1 * var(--lead)) 0 0; max-width: 58ch; font-size: 17px; line-height: 1.6; color: color-mix(in srgb, var(--color-bg) 90%, transparent); }
.close .mailto:hover { color: var(--color-bg); }

/* ── Hubs (blog, compare, glossary, Help Center): a poster header ────────── */
.hub-head { padding: calc(1.3 * var(--lead)) var(--edge) calc(1.8 * var(--lead)); }
.hub-head .meta-row { padding-bottom: calc(1.2 * var(--lead)); }
.hub-h { margin: 0; }
.hub-h .hl { font-size: clamp(52px, 9vw, 150px); }
.hub-h.s .hl { font-size: clamp(44px, 7vw, 118px); }
.hub-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 24px var(--gap); align-items: end; margin-top: calc(1.4 * var(--lead)); }
.hub-foot.solo { grid-template-columns: minmax(0, 1fr); }
.hub-foot .lede { max-width: 60ch; }
.hub-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); padding-left: 18px; border-left: 4px solid var(--color-accent); }
.hub-sec { margin: calc(2.4 * var(--lead)) var(--edge) calc(1 * var(--lead)); font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 70px); line-height: .94; letter-spacing: -.03em; text-transform: uppercase; }

/* Post rows: numbered, ruled, inverted on hover. */
.posts { counter-reset: post; margin: 0 var(--edge); border-top: 2px solid var(--color-text); }
.post { counter-increment: post; display: grid; grid-template-columns: clamp(56px, 7vw, 124px) minmax(0, 1fr) minmax(0, 220px);
  grid-template-areas: "n k m" "n t m" "n d m"; gap: 8px clamp(16px, 2.4vw, 40px); padding: 26px 20px 28px;
  border-bottom: 2px solid var(--color-divider); color: var(--color-text); text-decoration: none; transition: background-color .25s, color .25s; }
.post::before { content: counter(post, decimal-leading-zero); grid-area: n; font-family: var(--font-heading); font-weight: 800; font-size: clamp(34px, 4.2vw, 68px);
  line-height: .82; letter-spacing: -.04em; color: var(--color-accent); font-feature-settings: "tnum" 1; }
.post-k { grid-area: k; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700); font-feature-settings: "tnum" 1; }
.post-t { grid-area: t; font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 2.7vw, 42px); line-height: 1; letter-spacing: -.025em;
  text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; }
.post-d { grid-area: d; margin-top: 4px; max-width: 72ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.post-m { grid-area: m; justify-self: end; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-feature-settings: "tnum" 1; }
.post:hover { background: var(--color-text); color: var(--color-bg); }
.post:hover .post-k { color: var(--color-accent-400); }
.post:hover :is(.post-d, .post-m) { color: color-mix(in srgb, var(--color-bg) 74%, transparent); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px var(--gap); margin: calc(2.4 * var(--lead)) var(--edge) calc(2.4 * var(--lead));
  padding-top: calc(1.2 * var(--lead)); border-top: 2px solid var(--color-text); scroll-margin-top: 90px; }
.about h2 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 3.8vw, 60px); line-height: .94; letter-spacing: -.03em; text-transform: uppercase; }
.about p { margin: 0; max-width: 64ch; font-size: 17px; line-height: 1.7; color: var(--ink-86); }
.about strong { font-weight: 600; color: var(--color-text); }
.hub > :last-child:not(.about) { margin-bottom: calc(2.4 * var(--lead)); }

/* Glossary: a sticky letter bar, then each letter as a big red initial beside its terms. */
.letters { position: sticky; top: 64px; z-index: 20; display: flex; overflow-x: auto; background: var(--color-bg);
  border-block: 2px solid var(--color-text); scrollbar-width: none; }
.letters::-webkit-scrollbar { display: none; }
.letters a { flex: 1 0 auto; min-width: 44px; padding: 12px 10px; text-align: center; font-family: var(--font-heading); font-weight: 800; font-size: 15px;
  color: var(--color-text); text-decoration: none; border-left: 2px solid var(--color-divider); transition: background-color .2s, color .2s; }
.letters a:first-child { border-left: 0; }
.letters a:hover { background: var(--color-text); color: var(--color-bg); }
.gl { display: grid; grid-template-columns: clamp(64px, 12vw, 200px) minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 48px); padding: calc(1.2 * var(--lead)) var(--edge) calc(1.4 * var(--lead));
  border-bottom: 2px solid var(--color-text); scroll-margin-top: 120px; }
.gl .letter { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(56px, 9vw, 150px); line-height: .8; letter-spacing: -.04em;
  color: var(--color-accent); text-transform: uppercase; }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding: 0 2px 2px 0; align-self: start; }
.term { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; margin: 0 -2px -2px 0; border: 2px solid var(--color-divider);
  color: var(--color-text); text-decoration: none; transition: background-color .25s, color .25s; }
.term b { font-family: var(--font-heading); font-weight: 800; font-size: 18px; line-height: 1.25; }
.term span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.term:hover { background: var(--color-text); color: var(--color-bg); }
.term:hover span { color: color-mix(in srgb, var(--color-bg) 76%, transparent); }

/* ── Help Center home (/help) ───────────────────────────────────────────── */
.hc-h .hl { font-size: clamp(50px, 8.6vw, 144px); }
.hc-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 2px solid var(--color-text); background: var(--color-bg); cursor: text; }
.search svg { flex: none; }
.search input { all: unset; flex: 1; min-width: 0; padding: 15px 0; font-size: 16px; color: var(--color-text); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.search .count { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-feature-settings: "tnum" 1; }
.hc-doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0 var(--gap); padding: calc(1.4 * var(--lead)) var(--edge) calc(2.4 * var(--lead));
  border-top: 2px solid var(--color-text); }
.hc-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.toc-group { margin-bottom: var(--lead); }
.toc-group a { display: block; padding: 7px 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-72); text-decoration: none; border-bottom: 1px solid var(--color-divider);
  transition: color .2s, padding .25s var(--ease), box-shadow .25s; }
.toc-group a:hover, .toc-group a.on { color: var(--color-text); }
.toc-group a.on { box-shadow: inset 3px 0 0 var(--color-accent); padding-left: 11px; }
.toc-group a.kicker { padding: 0 0 8px; margin-bottom: 2px; font-size: 12px; color: var(--color-accent-700); border-bottom: 2px solid var(--color-text); }
.hc-main { min-width: 0; counter-reset: area; }
.area { counter-increment: area; padding-top: calc(.6 * var(--lead)); }
.area + .area { padding-top: calc(1.6 * var(--lead)); }
.area-h { display: flex; gap: .35em; align-items: baseline; margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--color-text); font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 54px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; scroll-margin-top: 110px; }
.area-h::before { content: counter(area, decimal-leading-zero); color: var(--color-accent); font-feature-settings: "tnum" 1; }
.entry { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 22px 0 26px; border-bottom: 2px solid var(--color-divider); scroll-margin-top: 110px; }
.entry > * { grid-column: 2; }
.entry > .entry-num { grid-column: 1; grid-row: 1 / span 8; padding-top: 5px; font-family: var(--font-heading); font-weight: 800; font-size: 15px; line-height: 1;
  color: var(--color-accent); font-feature-settings: "tnum" 1; }
.entry h3 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1.08; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.entry h3 a { color: var(--color-text); text-decoration: none; background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.entry h3 a:hover { background-size: 100% 2px; }
.entry .lede { margin: 10px 0 0; max-width: 72ch; font-size: 16px; line-height: 1.65; color: var(--ink-86); }
.entry .where, .entry .note { margin: 10px 0 0; max-width: 72ch; font-size: 14px; line-height: 1.6; color: var(--ink-72); }
.entry .where b { margin-right: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); }
.entry .note { padding-left: 12px; border-left: 3px solid var(--color-accent); }
.entry .sheet { margin: 14px 0 0; }
.entry .more { margin: 12px 0 0; font-size: 14px; }
.entry .more a { font-weight: 600; color: var(--color-accent-700); text-decoration: none; }
.entry .more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.entry .more .text-muted { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.entry code, .hc-main code { font-family: var(--mono); font-size: .88em; padding: 2px 5px; background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.empty { display: none; padding: var(--lead) 0; font-size: 16px; color: var(--ink-72); }
.empty.on { display: block; }

/* ── API reference (/docs/api) ─────────────────────────────────────────────
   One ruled block per endpoint; the verb chip carries the method so the page scans by verb. */
.art-body .ep { margin: calc(2 * var(--lead)) 0 0; padding-top: 20px; border-top: 2px solid var(--color-text); }
.art-body .ep h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 0; border: 0; text-transform: none;
  font-size: clamp(20px, 2vw, 27px); letter-spacing: -.01em; max-width: none; }
.art-body .ep h2 code { padding: 0; background: none; border: 0; font-size: .86em; font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
.art-body .ep h3 { margin: 26px 0 10px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700); }
.art-body .ep .lede { margin: 0 0 12px; font-size: 19px; line-height: 1.5; color: var(--color-text); }
.art-body h3[id^="obj-"] { margin-top: 40px; font-family: var(--mono); font-size: 18px; letter-spacing: 0; }
.verb { flex: none; padding: 6px 9px 5px; font: 700 12px/1 var(--mono); letter-spacing: .08em; background: var(--color-text); color: var(--color-bg); }
.verb-post { background: var(--color-accent); }
.verb-put, .verb-patch { background: var(--color-accent-700); }
.verb-delete { background: transparent; color: var(--color-accent-700); box-shadow: inset 0 0 0 2px var(--color-accent-700); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 999px) {
  .hc-doc { grid-template-columns: minmax(0, 1fr); padding-top: 0; border-top: 0; }
  .hc-toc { position: sticky; top: 64px; z-index: 20; display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0;
    margin: 0 calc(-1 * var(--edge)) var(--lead); background: var(--color-bg); border-block: 2px solid var(--color-text); scrollbar-width: none; }
  .hc-toc::-webkit-scrollbar { display: none; }
  .toc-group { display: contents; }
  .toc-group a:not(.kicker) { display: none; }
  .toc-group a.kicker { flex: none; margin: 0; padding: 13px 16px; border-bottom: 0; border-left: 2px solid var(--color-divider); font-weight: 700; color: var(--color-text); white-space: nowrap; }
  .toc-group:first-child a.kicker { border-left: 0; }
  .toc-group a.kicker:hover, .toc-group a.kicker.on { background: var(--color-text); color: var(--color-bg); }
}
@media (max-width: 900px) {
  .art-foot, .hub-foot, .about { grid-template-columns: minmax(0, 1fr); }
  .head-cta { justify-content: flex-start; }
  .post { grid-template-columns: clamp(44px, 11vw, 72px) minmax(0, 1fr); grid-template-areas: "n k" "n t" "n d" "n m"; }
  .post-m { justify-self: start; margin-top: 4px; }
  .gl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .doc-h { font-size: min(10.4vw, 46px); max-width: none; }
  .doc-h.m { font-size: min(9vw, 40px); }
  .doc-h.l { font-size: min(7.6vw, 32px); line-height: 1; }
  .doc-h.g { font-size: min(8.6vw, 40px); }
  .hub-h .hl, .hub-h.s .hl, .hc-h .hl { font-size: 12.4vw; padding-left: 0; text-align: left; }
  .hub-h.s .hl { font-size: 10.4vw; }
  .art-body { font-size: 16.5px; }
  .art-body ol.how > li { padding-left: 46px; }
  .art-body ol.how > li::before { font-size: 19px; }
  .art-body pre { margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); border-left: 0; border-top: 4px solid var(--color-accent); }
  .post { padding: 22px 12px 24px; column-gap: 14px; }
  .entry { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; }
  .close-h .hl { font-size: 11vw; }
  .close-h .hl.i1 { padding-left: 6vw; }
  .close .row .btn { width: 100%; justify-content: center; }
  table.rec th { width: 104px; }
  .search { padding: 0 10px; }
  .search .count { display: none; }
}

/* ── Print: the article alone (help sheets get saved as PDFs) ─────────────── */
@media print {
  .site-nav, .prog, .cur, .skip-link, .crumbs, .toc, .hc-toc, .search, .letters, .related, .close, .site-foot, .actions, .head-cta, .cb-launch, #mf-chat { display: none !important; }
  body { background: #fff; }
  .rv, .rise { opacity: 1 !important; transform: none !important; animation: none !important; }
  .art-head { border-bottom-width: 1px; }
  .art-grid, .hc-doc { display: block; padding-top: 18px; }
  .art-body, .art-body :is(p, ul, ol, dl, h2, h3, h4) { max-width: none; color: #222; }
  .art-body pre { white-space: pre-wrap; }
  .art-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
