/* The site's own pages in the light v2 look (2026-10-13, from the Paper file "FIG Website · Pages"): Help, Contact, the blog,
   the legal pages and the "back to FIG" pages Stripe returns to. Built by scripts/pages.py; Home and site.css are the base. */

/* ---------- the top of a page: a big title, a line, something on the right (no eyebrow labels, user 2026-10-04) ---------- */
.pg-hero { padding: 150px 0 56px; }
.pg-hero-line { border-bottom: 1px solid var(--line); }
.pg-hero-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.pg-hero-text { display: grid; gap: 20px; max-width: 760px; }
.pg-h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: .98; font-weight: 800; letter-spacing: -0.055em; color: var(--ink); }
.pg-lead { max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; font-weight: 500; color: var(--muted); }
/* the topic and date of a post: a quiet line, not a label */
.pg-kick { font-size: 14px; font-weight: 600; color: #5B6680; } /* 4.5:1 on ice too */
.post-card .pg-kick { font-size: 14px; color: #5B6680; } /* the blog cards: site.css greys their spans (4.4:1); this reads at 5:1 */
.pg-sub { margin-bottom: 28px; }

/* pills: jump links, the legal documents, the blog's topics */
.pg-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-pills a, .pg-pills button { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.pg-pills a:hover, .pg-pills button:hover { border-color: var(--cobalt); }
/* Help: search the questions (js/help.js) */
.hs-search { margin-top: 18px; max-width: 560px; }
.hs-search input { width: 100%; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.hs-search input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(30, 94, 255, .18); }
.hs-none { margin: 12px 4px 0; font-size: 15px; color: var(--muted); }
.hs-none a { color: var(--cobalt); font-weight: 700; }
.pg-pills a:active, .pg-pills button:active { transform: scale(.96); }
.pg-pills [aria-current="page"], .pg-pills [aria-current="true"], .pg-pills [aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* "the short version" / "key points": a check list on ice */
.pg-short { display: grid; gap: 14px; padding: 30px 34px; border-radius: 24px; background: var(--ice); }
.pg-short h2 { font-size: 20px !important; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0 !important; }
.pg-short ul, .lg-doc .pg-short ul, .ps-body .pg-short ul { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.pg-short li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.55; font-weight: 600; color: var(--ink); margin: 0; }
.pg-short li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* the one dark moment on a page, and the cobalt block */
.pg-tight { padding-top: 0; }
.pg-dark, .pg-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; }
.pg-dark { background: var(--ink); color: #F4F6FB; }
.pg-cta { background: var(--cobalt); color: #fff; }
.pg-dark h2, .pg-cta h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; margin-bottom: 10px; }
.pg-dark p { max-width: 34em; color: #A3ADBF; font-size: 17px; line-height: 1.55; }
.pg-cta p { max-width: 34em; color: #fff; font-size: 17px; line-height: 1.55; }
.pg-dark-btns, .pg-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-soft { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { background: #fff; border-color: var(--cobalt); box-shadow: none; }

/* ---------- Help: diners on white, restaurants on ice ---------- */
.faq-head .side { margin-top: 14px; color: var(--muted); font-size: 17px; }
.help-shot { display: none; margin: 32px 0 0; }
.help-shot img { width: 100%; border-radius: 30px; border: 8px solid #0A1020; box-shadow: 0 30px 60px rgba(10, 16, 32, .18); background: #0A1020; }
.help-shot.phone { width: 200px; transform: rotate(-3deg); }
.help-shot.wide { width: 100%; transform: rotate(2deg); }
.help-shot.wide img { border-radius: 22px; border-width: 7px; }
@media (min-width: 980px) { .help-shot { display: block; } }
.section.ice .faq-list, .section.ice .qa { border-color: var(--ice-line); }

/* ---------- Contact: the form card on an ice band ---------- */
.ct-band { background: var(--ice); padding-bottom: 96px; }
.ct-grid { display: grid; gap: 40px; align-items: start; }
.ct-card { margin: 0; padding: clamp(22px, 3vw, 40px); border-radius: 32px; background: #fff; border: 1px solid var(--ice-line); box-shadow: 0 30px 80px rgba(30, 94, 255, .10); }
.ct-card .ct-field { color: var(--ink); }
.ct-card .btn { justify-self: stretch; min-height: 56px; font-size: 17px; }
/* sent: the form steps back and a note rises in its place */
.ct-card { position: relative; overflow: hidden; }
.ct-card > * { transition: opacity .35s, transform .45s var(--ease); }
.ct-card.sent > :not(.ct-done) { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.ct-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 32px; text-align: center; animation: ctIn .55s .1s var(--ease) both; }
.ct-done b { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.ct-done p { max-width: 24em; color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0; }
.ct-done .btn { justify-self: center !important; min-height: 48px !important; font-size: 15px !important; margin-top: 6px; }
.ct-done-tick { width: 76px; height: 76px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5' fill='none' stroke='%230A1020' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 40px no-repeat; animation: ctPop .6s .15s cubic-bezier(.25, 1, .5, 1) both; }
@keyframes ctIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes ctPop { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-done, .ct-done-tick { animation: none; } }
.ct-ways { display: grid; gap: 16px; }
.ct-way { display: grid; gap: 10px; align-content: start; padding: 30px; border-radius: 24px; background: var(--ice); border: 1px solid var(--ice-line); text-decoration: none; color: var(--ink); transition: border-color .25s, transform .3s var(--ease); }
a.ct-way:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.ct-way b { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.ct-way span { color: var(--muted); font-size: 17px; line-height: 1.55; }
.ct-way em { font-style: normal; font-weight: 800; color: var(--cobalt); }
.ct-way em.leaf { color: #087A42; }
@media (min-width: 900px) { .ct-grid { grid-template-columns: 1fr 560px; gap: 80px; } .ct-ways { grid-template-columns: 1fr 1fr; } }

/* ---------- Legal (user 2026-10-13/14): a band pinned at the top with the title as big as every other page's, the date and
   the documents; on a computer the contents column is pinned right under it (js/legal.js sets --lg-band to the band's height,
   so the column's resting and pinned places are the same line). Only the document scrolls; nothing moves by a pixel. ---------- */
.lg { padding-top: 64px; }
/* fixed, not sticky: it can't be pushed even by the footer at the end of a short page; the page starts under it */
.lg-band { position: fixed; top: 0; left: 0; right: 0; z-index: 6; background: var(--bg, #fff); border-bottom: 1px solid var(--line); }
.lg-band-in { position: relative; display: grid; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
/* no site navbar here (user 2026-10-14): one way back, at the top of the band, always in the same place */
.lg-back { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; margin-left: -8px;
  border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background .2s; }
.lg-back-arrow { font-size: 18px; line-height: 1; color: var(--cobalt); }
.lg-back:hover { background: var(--ice); }
.lg-back:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.lg-back .logo { width: 26px; height: 26px; }
.lg-title { display: grid; gap: 6px; min-width: 0; }
.lg-h1 { margin: 0; font-size: clamp(40px, 7.4vw, 60px); line-height: .98; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); }
.lg-upd { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.lg-band .pg-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.lg-band .pg-pills::-webkit-scrollbar { display: none; }
.lg-band .pg-pills a { flex-shrink: 0; }
.lg-toc-btn { position: relative; min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer; text-align: left; min-width: 0; }
.lg-toc-btn::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.lg-band.open .lg-toc-btn::after { transform: rotate(-135deg); margin-top: -2px; }
.lg-toc-btn:focus-visible, .lg-rail a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.lg-toc-lbl { flex-shrink: 0; }
.lg-toc-now { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: var(--muted); }
.lg-toc-now:not(:empty)::before { content: "· "; }
.lg-rail { display: none; }
.lg-rail b { display: none; }
.lg-band.open .lg-menu { display: grid; gap: 2px; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); max-height: min(60vh, 520px);
  overflow: auto; overscroll-behavior: contain; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(10, 16, 32, .16); }
.lg-rail a { min-height: 44px; display: flex; align-items: center; padding: 8px 14px; border-radius: 12px; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.lg-rail a:hover { background: var(--ice); color: var(--cobalt); }
.lg-rail a.on { background: var(--ice); color: #1550E6; font-weight: 700; }
.section.lg-top { padding-top: calc(var(--lg-band, 288px) + 28px); }
.lg-grid { display: grid; gap: 28px; }
.lg-sec { display: grid; gap: 14px; scroll-margin-top: 300px; }
.lg-sec:focus { outline: none; } /* focused after a jump so a screen reader reads on from there; no box drawn */
/* under 1024 px the documents and "On this page" share one row, so the pinned band takes less of the screen (28, 2026-10-14) */
@media (max-width: 1023px) {
  .lg-band-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  .lg-title { grid-column: 1 / -1; }
  /* the tabs scroll sideways next to the menu button: a soft fade at the edge says there's more */
  .lg-band .pg-pills { margin-right: 0; padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .lg-toc-btn { padding: 0 36px 0 14px; }
}
@media (max-width: 599px) { .lg-toc-now { display: none; } }
/* a phone on its side: only that row stays pinned (the active tab names the document) */
@media (max-height: 560px) and (max-width: 1023px) { .lg-title { display: none; } }
/* a short screen (a phone on its side, or zoomed in): the band stays small so the text keeps the room */
@media (max-height: 620px) and (max-width: 1023px) {
  .lg-band-in { gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .lg-h1 { font-size: 30px; }
  .lg-upd { display: none; }
  .lg-band .pg-pills a { height: 36px; padding: 0 14px; font-size: 14px; }
  .lg-sec { scroll-margin-top: 200px; }
}
@media (min-width: 1024px) {
  .section.lg-top { padding-top: calc(var(--lg-band, 240px) + 28px); }
  /* the title has the full width, so it stays on one line at 96 px; the documents sit on the row under the date */
  .lg-band-in { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding-top: 20px; padding-bottom: 22px; }
  .lg-h1 { white-space: nowrap; }
  .lg-h1 { font-size: clamp(56px, 6.7vw, 96px); }
  .lg-upd { font-size: 15px; }
  .lg-band .pg-pills { flex-wrap: wrap; justify-content: flex-start; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .lg-toc-btn, .lg-menu, .lg-band.open .lg-menu { display: none; }
  .lg-grid { grid-template-columns: 300px minmax(0, 760px); gap: 88px; align-items: start; }
  /* pinned exactly where it rests: right under the band */
  .lg-col { display: grid; gap: 2px; position: sticky; top: calc(var(--lg-band, 240px) + 28px); align-self: start;
    max-height: calc(100dvh - var(--lg-band, 240px) - 44px); overflow: auto; overscroll-behavior: contain; }
  .lg-col b { display: block; padding: 0 14px 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
  .lg-col a { min-height: 36px; padding: 5px 14px; } /* a mouse; touch screens keep 44 px (the coarse-pointer rule below) */
  .lg-sec { scroll-margin-top: calc(var(--lg-band, 240px) + 24px); }
}
.lg-doc { display: grid; gap: 44px; max-width: 760px; }
.lg-solo { margin: 0 auto; gap: 16px; }
.lg-doc h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.lg-doc p, .lg-doc li { font-size: 17px; line-height: 1.7; font-weight: 500; color: var(--muted); }
.lg-doc ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.lg-doc a:not(.btn) { color: var(--cobalt); font-weight: 700; }
.lg-bullet { position: relative; padding-left: 22px; }
.lg-bullet::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.lg-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: 24px; border: 1px solid var(--line); }
.lg-ask div { display: grid; gap: 4px; }
.lg-ask b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.lg-ask span { color: var(--dim); font-size: 15px; }

/* ---------- Blog: the newest post on ice, then photo rows ---------- */
.post-card.bl-feature, .post-card.bl-row { padding: 0; border: 0; border-radius: 0; background: none; transform: none; }
.bl-feature-band { padding: 80px 0; }
.bl-feature { display: grid; gap: 28px; align-items: center; text-decoration: none; color: var(--ink); }
.bl-pic { position: relative; display: block; border-radius: 32px; overflow: hidden; }
.bl-pic img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.bl-feature:hover .bl-pic img { transform: scale(1.03); }
.bl-pic i { position: absolute; left: 22px; top: 22px; padding: 8px 14px; border-radius: 999px; background: var(--volt); color: var(--ink); font-style: normal; font-weight: 800; font-size: 13px; }
.bl-text { display: grid; gap: 16px; }
.bl-text b { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.045em; color: var(--ink) !important; }
.bl-text p { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }
.bl-text em { font-style: normal; font-weight: 800; color: var(--cobalt); }
@media (min-width: 980px) { .bl-feature { grid-template-columns: 720px 1fr; gap: 56px; } }
.bl-rows { padding-top: 40px; }
.bl-list { display: grid; }
.bl-list > .bl-row:first-child { border-top: 1px solid var(--line); }
.bl-row { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 22px 0 !important; border-bottom: 1px solid var(--line) !important; text-decoration: none; color: var(--ink); }
.bl-row img { width: 112px; height: 84px; border-radius: 16px; object-fit: cover; transition: transform .4s var(--ease); }
.bl-row:hover img { transform: scale(1.04); }
.bl-row > span { display: grid; gap: 6px; min-width: 0; }
.bl-row b { font-size: clamp(18px, 2vw, 24px); line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; color: var(--ink) !important; transition: color .2s; }
.bl-row:hover b { color: var(--cobalt) !important; }
.bl-row b::after { content: "→"; display: inline-block; margin-left: 10px; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .35s var(--ease); }
.bl-row:hover b::after { opacity: 1; transform: none; }
/* the topic filter: what's left rises back in, one after another */
.bl-list > .post-card:not([hidden]) { animation: blIn .45s var(--ease) both; }
.bl-list > .post-card:nth-child(2) { animation-delay: .04s; } .bl-list > .post-card:nth-child(3) { animation-delay: .08s; }
.bl-list > .post-card:nth-child(4) { animation-delay: .12s; } .bl-list > .post-card:nth-child(n+5) { animation-delay: .16s; }
@keyframes blIn { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .bl-list > .post-card { animation: none !important; } }
.bl-row p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
@media (min-width: 720px) { .bl-row { grid-template-columns: 240px 1fr; gap: 32px; } .bl-row img { width: 240px; height: 168px; border-radius: 20px; } }
@media (max-width: 719px) { .bl-row p { display: none; } }

/* a post */
.ps-head { padding: 140px 0 48px; text-align: center; }
.ps-head .wrap { display: grid; justify-items: center; gap: 20px; max-width: 1000px; }
.ps-back { font-weight: 700; color: var(--cobalt); text-decoration: none; }
.ps-h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); }
.ps-dek { max-width: 40em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; font-weight: 500; color: var(--muted); }
.ps-head .post-by { margin: 0; gap: 20px; flex-wrap: wrap; justify-content: center; }
.ps-cover { width: 100%; height: auto; aspect-ratio: 15 / 7; object-fit: cover; border-radius: 32px; }
.ps-body { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; box-sizing: content-box; }
.ps-body > * + * { margin-top: 18px; }
.ps-body h2 { margin-top: 48px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); scroll-margin-top: 110px; }
.ps-body p, .ps-body li { font-size: 18px; line-height: 1.72; font-weight: 500; color: var(--muted); }
.ps-body ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.ps-body a:not(.btn) { color: var(--cobalt); font-weight: 700; }
.ps-body .pg-short { margin-top: 0; }
.ps-body .faq-list { margin-top: 20px; }

/* ---------- back to FIG (Stripe's return pages): one card over the faded map ---------- */
.st { display: flex; justify-content: center; padding: 150px var(--gutter) 120px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .3) 26%, rgba(255, 255, 255, .3) 74%, #fff 100%), url("/assets/map-fallback.webp") center / cover; }
.st-card { display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 640px; padding: clamp(32px, 5vw, 56px); border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(30, 94, 255, .12); text-align: center; }
.st-badge { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--volt); color: var(--ink); font-size: 40px; font-weight: 800; }
.st-badge.go { background: var(--cobalt); color: #fff; }
.st-h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); }
.st-lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.st-note { font-size: 15px; font-weight: 600; color: var(--dim); }
.st-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 6px; }
@media (max-width: 520px) { .st-btns .btn { flex: 1 1 100%; } }
@media (max-width: 600px) { .pg-short { padding: 22px; border-radius: 20px; } .ps-cover { aspect-ratio: 4 / 3; border-radius: 24px; } .pg-hero { padding-top: 120px; } }
/* /about's For diners / For restaurants lists on a phone: the term on its own line, its text full width under it (28, 2026-10-13) */
@media (max-width: 600px) { .ab-col ol { gap: 16px; } .ab-col li { grid-template-columns: 1fr; gap: 4px; } }
/* the legal pages' side links: 44 px to tap on touch screens */
@media (pointer: coarse), (max-width: 1099px) { .lg-rail a { min-height: 44px; display: flex; align-items: center; } }

/* ---- long posts (2026-10-14): what's in the post, tables, callouts, the author; the list's meta line ---- */
.bl-meta { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.ps-grid { display: block; }
.ps-toc { max-width: 760px; margin: 40px auto 0; padding: 0 var(--gutter); box-sizing: content-box; }
.ps-toc details { border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; background: #fff; }
.ps-toc summary { cursor: pointer; font-size: 16px; font-weight: 800; color: var(--ink); list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; } /* 44 px to tap (#204) */
.ps-toc summary::-webkit-details-marker { display: none; }
.ps-toc summary::after { content: "+"; float: right; color: var(--cobalt); font-weight: 800; }
.ps-toc details[open] summary::after { content: "−"; }
.ps-toc ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.ps-toc a { color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.ps-toc a:hover, .ps-toc a:focus-visible { color: var(--cobalt); }
.ps-grid .ps-body { padding-top: 40px; }
@media (min-width: 1100px) {
  .ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); gap: 0 40px; padding: 0 var(--gutter); }
  .ps-toc { grid-column: 1; margin: 72px 0 0; padding: 0; justify-self: end; width: 100%; max-width: 260px; position: sticky; top: 110px; align-self: start; }
  .ps-toc details { border: 0; padding: 0; background: none; }
  .ps-toc summary { pointer-events: none; font-size: 14px; color: var(--ink); }
  .ps-toc summary::after, .ps-toc details[open] summary::after { content: none; }
  .ps-grid .ps-body { grid-column: 2; padding: 72px 0 96px; max-width: none; }
}
.ps-table { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left / 40px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(10,16,32,.12), transparent) left / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(10,16,32,.12), transparent) right / 14px 100% no-repeat scroll; }
.ps-table:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.ps-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.ps-table th, .ps-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); line-height: 1.45; color: var(--ink); vertical-align: top; }
.ps-table th { font-weight: 800; background: var(--ice); }
.ps-table tr:last-child td { border-bottom: 0; }
/* a phone: each row is a card, each cell a "label / value" pair, the header kept for screen readers only (#203: nothing cut off) */
@media (max-width: 640px) {
  .ps-table { overflow: visible; border: 0; border-radius: 0; background: none; }
  .ps-table table, .ps-table tbody, .ps-table tr, .ps-table td { display: block; width: 100%; min-width: 0; }
  .ps-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ps-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
  .ps-table tr:last-child { margin-bottom: 0; }
  .ps-table td, .ps-table tr:last-child td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .ps-table td:last-child, .ps-table tr:last-child td:last-child { border-bottom: 0; }
  .ps-table td:first-child { background: var(--ice); font-weight: 800; }
  .ps-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
}
/* a soft tint, a hairline all round, the bold title as the lead-in (no side stripe: the user turned that look down) */
.callout { padding: 20px 24px; border-radius: 20px; background: var(--ice); border: 1px solid rgba(30, 94, 255, .18); }
.callout b { display: block; font-size: 17px; font-weight: 800; color: var(--cobalt); margin-bottom: 6px; }
.callout p { margin: 0; color: var(--ink) !important; font-size: 17px !important; }
.callout.example { background: #F3FBEA; border-color: rgba(20, 200, 107, .28); }
.callout.example b { color: #0B7A3E; }
.callout.math { background: #F6F4FF; border-color: rgba(110, 86, 255, .22); }
.callout.math b { color: #5B42E6; }
.callout.math p { font-variant-numeric: tabular-nums; }
.ps-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px !important; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; }
.ps-author img { width: 44px; height: 44px; flex-shrink: 0; }
.ps-author b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.ps-author p { margin: 4px 0 0; font-size: 15px !important; line-height: 1.55 !important; }
.ps-author a { color: var(--cobalt); font-weight: 700; }

/* the blog by group (FIX-LIST #145): a plain section per group, its anchor the group's slug; sub.js shows one at a time */
.bl-group { padding: 56px 0 8px; scroll-margin-top: 96px; }
.bl-feature-band + .bl-group { padding-top: 72px; }
.bl-gh { margin: 0; }
.bl-gd { margin: 10px 0 26px; max-width: 40em; color: var(--muted); font-size: 17px; line-height: 1.6; }
