/* =====================================================================
   LineUp · shared site styles
   Used by the server-rendered pages (news, topics, docs, legal) AND the React app (navbar, footer),
   so every page looks like one product.
   ===================================================================== */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 200; font-display: swap; src: url('/fonts/outfit-latin-200-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/dm-mono-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #070808; --bg-2: #0c0d0d; --surface: #0d0e0e; --surface-2: #121313;
  --line: rgba(255, 255, 255, 0.06); --line-2: rgba(255, 255, 255, 0.1);
  --text: #eeede9; --text-2: #b9b8b2; --muted: #7d7c77; --dim: #4d4c49;
  --heat: #f6a23a; --heat-soft: rgba(246, 162, 58, 0.14);
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', monospace;
  --sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1280px; --gut: 40px;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base (server-rendered pages only) */
.site { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site a { color: inherit; text-decoration: none; }
.site ::selection { background: rgba(246, 162, 58, .3); }
.s-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.s-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #000; padding: 8px 14px; border-radius: 8px; }
.s-skip:focus { left: 12px; }

/* ---------------------------------------------------------------- navbar (shared with the React app) */
.snav { position: sticky; top: 0; z-index: 60; background: rgba(7, 8, 8, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line); font-family: var(--sans); }
.snav.float { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .4s, border-color .4s; }
.snav.float.scrolled { background: rgba(7, 8, 8, .72); border-bottom-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.snav-in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.snav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; justify-self: start; }
.snav-brand .mark { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.snav-brand .mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 14px 2px rgba(246, 162, 58, .55); }
.snav-brand b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.snav-brand b em { font-style: normal; color: var(--heat); margin-left: 1px; }
.snav-links { display: flex; align-items: center; gap: 2px; }
.snav-links > a, .snav-dd > summary { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  text-decoration: none; cursor: pointer; transition: color .2s, background .2s; list-style: none; user-select: none; }
.snav-dd > summary::-webkit-details-marker { display: none; }
.snav-links > a:hover, .snav-dd > summary:hover, .snav-dd[open] > summary { color: var(--text); background: rgba(255, 255, 255, .05); }
.snav-links > a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.snav-dd { position: static; }
.snav-dd svg { transition: transform .3s var(--ease); }
.snav-dd[open] svg { transform: rotate(180deg); }
.snav-mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(980px, 92vw); padding: 26px 28px 22px; border-radius: 22px;
  background: rgba(14, 15, 15, .97); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(24px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; animation: snav-pop .22s var(--ease); }
@keyframes snav-pop { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }
.snav-col span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.snav-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s, transform .2s var(--ease); }
.snav-col a:hover { color: var(--text); transform: translateX(3px); }
.snav-col a small { display: block; font-size: 12px; color: var(--dim); margin-top: 1px; }
.snav-mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.snav-mega-foot a { color: var(--heat); text-decoration: none; }
.snav-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.snav-cta { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 999px; background: var(--text); color: #0a0a0a !important; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background .25s, box-shadow .25s; white-space: nowrap; }
.snav-cta:hover { background: #fff; box-shadow: 0 8px 28px -8px rgba(246, 162, 58, .55); }
.snav-cta.is-sub { background: transparent; color: var(--text) !important; border: 1px solid var(--line-2); }
.snav-cta.is-sub:hover { background: var(--surface); box-shadow: none; }
.snav-burger { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; place-items: center; }
.snav-sheet { display: none; }

/* ---------------------------------------------------------------- footer (shared) */
.sfoot { border-top: 1px solid var(--line); margin-top: 120px; padding: 64px 0 30px; font-family: var(--sans); position: relative; z-index: 1; background: var(--bg); }
.sfoot-top { display: grid; grid-template-columns: 1.3fr 3fr; gap: 40px; }
.sfoot-brand p { margin: 16px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 300px; }
.sfoot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sfoot-cols span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.sfoot-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.sfoot-cols a:hover { color: var(--text); }
.sfoot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ---------------------------------------------------------------- page header + breadcrumbs */
.s-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 46px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.s-crumbs a { color: var(--muted); text-decoration: none; }
.s-crumbs a:hover { color: var(--text); }
.s-crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--dim); }
.s-head { padding: 34px 0 44px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.s-kick { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.s-kick i { width: 7px; height: 7px; background: var(--heat); box-shadow: 0 0 10px rgba(246, 162, 58, .6); }
.s-head h1 { margin: 18px 0 16px; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; font-weight: 300; letter-spacing: -0.045em; max-width: 960px; }
.s-head .s-lead { margin: 0; max-width: 720px; font-size: 18px; line-height: 1.6; color: var(--text-2); font-weight: 300; }
.s-head .s-meta { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- prose pages (docs, legal, company) */
.s-doc { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; align-items: start; }
.s-toc { position: sticky; top: 96px; font-size: 13.5px; }
.s-toc span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.s-toc a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--line-2); color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.s-toc a:hover { color: var(--text); border-left-color: var(--heat); }
.prose { font-size: 16.5px; line-height: 1.8; color: var(--text-2); }
.prose h2 { margin: 52px 0 14px; font-size: 27px; line-height: 1.25; font-weight: 500; letter-spacing: -0.025em; color: var(--text); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 8px; font-size: 19px; font-weight: 500; color: var(--text); scroll-margin-top: 90px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--heat); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); border-bottom: 1px solid rgba(246, 162, 58, .5); text-decoration: none; transition: border-color .2s, color .2s; }
.prose a:hover { color: var(--heat); border-color: var(--heat); }
.prose code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--heat); }
.callout { margin: 22px 0; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); font-size: 15px; }
.callout b { color: var(--text); font-weight: 500; }
.s-table { width: 100%; overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
.s-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.s-table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.s-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.s-table tr:last-child td { border-bottom: 0; }
.s-table td:first-child { color: var(--text); }
.faq-list { border-top: 1px solid var(--line-2); margin: 16px 0 0; }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-size: 18px; color: var(--text); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--heat); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 0 22px; color: var(--text-2); }

/* ---------------------------------------------------------------- cards (news index, topics, trending) */
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text-2); transition: border-color .3s, background .3s, transform .4s var(--ease); min-width: 0; }
.s-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
.s-card .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.s-card .k b { color: var(--heat); font-weight: 400; }
.s-card h2, .s-card h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.s-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-card .m { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.s-card.big { grid-column: span 2; }
.s-card.big h2 { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; }
.s-sec { margin: 64px 0 0; }
.s-sec > h2 { margin: 0 0 22px; font-size: 26px; font-weight: 400; letter-spacing: -0.025em; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.s-sec > h2 a { font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none; }
.s-sec > h2 a:hover { color: var(--heat); }
.s-rows { border-top: 1px solid var(--line-2); }
.s-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background .2s; }
.s-row:hover { background: rgba(255, 255, 255, .02); }
.s-row .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.s-row b { display: block; font-weight: 500; font-size: 17px; color: var(--text); }
.s-row em { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-row .r { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.s-row .r b { font-size: 15px; color: var(--heat); font-weight: 400; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chips a { height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; color: var(--text-2); border: 1px solid var(--line-2);
  text-decoration: none; transition: all .2s; }
.s-chips a:hover { color: var(--text); border-color: rgba(246, 162, 58, .5); }
.s-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--text); color: #0a0a0a !important; font-weight: 500;
  text-decoration: none; border: 0; cursor: pointer; font: inherit; transition: background .2s, box-shadow .2s; }
.s-btn:hover { background: #fff; box-shadow: 0 8px 28px -8px rgba(246, 162, 58, .55); }
.s-btn.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- article */
.art > article { min-width: 0; }
.art-head { padding-top: 22px; }
.art { display: grid; grid-template-columns: minmax(0, 740px) 260px; gap: 72px; justify-content: space-between; align-items: start; }
.art-head h1 { margin: 18px 0 18px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; font-weight: 400; letter-spacing: -0.04em; }
.art-dek { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text-2); font-weight: 300; }
.art-by { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 24px 0 0; padding: 18px 0; border-block: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.art-by b { color: var(--text); font-weight: 400; }
.art-take { margin: 32px 0 8px; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.art-take span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--heat); }
.art-take ul { margin: 12px 0 0; padding-left: 20px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.art-take li { margin: 6px 0; }
.art-take li::marker { color: var(--heat); }
.art-body { font-size: 17.5px; line-height: 1.8; color: var(--text-2); }
.art-body h2 { margin: 52px 0 16px; font-size: 28px; line-height: 1.25; font-weight: 500; letter-spacing: -0.025em; color: var(--text); scroll-margin-top: 90px; }
.art-body p { margin: 0 0 18px; }
.art-body ul { padding-left: 22px; margin: 0 0 20px; }
.art-body li { margin: 7px 0; }
.art-body li::marker { color: var(--heat); }
.art-body a { color: var(--text); border-bottom: 1px solid rgba(246, 162, 58, .5); text-decoration: none; }
.art-body a:hover { color: var(--heat); }
.art-q { margin: 12px 0; padding: 16px 20px; border-left: 2px solid var(--heat); background: var(--surface); border-radius: 0 14px 14px 0; }
.art-q p { margin: 0; font-size: 16.5px; color: var(--text); font-style: italic; }
.art-q cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.art-q cite a { border: 0; color: var(--muted); }
.art-x { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.art-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.art-side .s-toc { position: static; }
.art-box { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.art-box b { display: block; font-size: 16px; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.art-box .stat { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.art-box .stat em { font-style: normal; color: var(--text); }
.art-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* subscribe strip used on server pages */
.s-sub { margin: 80px 0 0; padding: 44px; border-radius: 26px; border: 1px solid var(--line-2); text-align: center;
  background: radial-gradient(80% 120% at 50% 130%, rgba(243, 110, 35, .18), transparent 60%), var(--bg-2); }
.s-sub h2 { margin: 12px 0 8px; font-size: 32px; font-weight: 400; letter-spacing: -0.03em; }
.s-sub p { margin: 0 0 22px; color: var(--muted); }
.s-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; padding: 6px 6px 6px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.s-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.s-form button { height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--text); color: #0a0a0a; font: inherit; font-weight: 500; cursor: pointer; }
.s-form-msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  :root { --gut: 28px; }
  .snav-mega { grid-template-columns: repeat(3, 1fr); }
  .sfoot-top { grid-template-columns: 1fr; }
  .s-doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .s-toc { display: none; }
  .art { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .art-side { display: none; }
  .s-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --gut: 18px; }
  .snav-in { grid-template-columns: auto 1fr; }
  .snav-links { display: none; }
  .snav-burger { display: grid; }
  .snav-cta { height: 34px; padding: 0 14px; font-size: 13px; }
  /* open menu: a solid panel over the whole screen. The header's frosted glass (backdrop-filter) is switched off while
     open: inside a backdrop-filter layer the panel's own background does not fully cover the page */
  .snav.open, .snav.float.open { background: #0a0b0b; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }
  .snav.open .snav-sheet { display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain;
    background: #0a0b0b; padding: 12px var(--gut) 40px; z-index: 61; }
  .snav-sheet > a { display: block; padding: 14px 0; font-size: 18px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
  .snav-sheet .snav-col { margin-top: 22px; }
  .snav-sheet .snav-col a { font-size: 15px; }
  .sfoot-cols { grid-template-columns: 1fr 1fr; }
  .s-grid { grid-template-columns: 1fr; }
  .s-card.big { grid-column: auto; }
  .s-row { grid-template-columns: 30px minmax(0, 1fr); }
  .s-row .r { grid-column: 2; text-align: left; }
  .art-body { font-size: 16.5px; }
  .s-sub { padding: 30px 18px; }
}
@media (prefers-reduced-motion: reduce) { .snav-mega, .s-card, .snav-col a { animation: none; transition: none; } }

/* keyboard focus: always visible (accessibility statement) */
:focus-visible { outline: 2px solid #f6a23a; outline-offset: 2px; border-radius: 4px; }
input:focus-visible, button:focus-visible { outline-offset: 1px; }
.s-doc > .prose { min-width: 0; }
.s-table.kv table { min-width: 0; }

/* =====================================================================
   Responsive polish: phones, tablets, foldables
   - gutters respect notches (env(safe-area-inset-*)), tap targets >= 44px on touch
   - long words / URLs never push the page sideways
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.s-wrap, .snav-in { padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
.prose, .art-body, .art-dek, .s-head h1, .s-head .s-lead, .s-card, .s-row b, .callout, .art-take, .art-q, .faq-list { overflow-wrap: break-word; }
.prose a, .art-body a, .prose code, .art-q cite, .art-note a, .s-form-msg { overflow-wrap: anywhere; }
.snav { --snav-h: 64px; }
/* open mobile menu: lock the page behind it */
html:has(.snav.open) { overflow: hidden; }

/* tables scroll inside their own frame, with soft edge shadows that hint there is more */
.s-table { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  background:
    linear-gradient(90deg, var(--bg) 30%, rgba(7, 8, 8, 0)) left center / 28px 100% no-repeat local,
    linear-gradient(270deg, var(--bg) 30%, rgba(7, 8, 8, 0)) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .55), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .55), transparent) right center / 12px 100% no-repeat scroll; }
.s-table td { vertical-align: top; }

@media (max-width: 860px) {
  .snav-in { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .snav-burger { width: 44px; height: 44px; border-radius: 12px; }
  .snav-cta { height: 40px; padding: 0 16px; }
  .snav.open .snav-sheet { top: var(--snav-h); padding: 8px max(var(--gut), env(safe-area-inset-right)) max(40px, calc(env(safe-area-inset-bottom) + 24px)) max(var(--gut), env(safe-area-inset-left));
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-content: start; animation: snav-sheet .28s var(--ease); }
  .snav-sheet > a { grid-column: 1 / -1; padding: 15px 0; display: flex; align-items: center; min-height: 54px; }
  .snav-sheet .snav-col { margin-top: 26px; min-width: 0; }
  .snav-sheet .snav-col a { padding: 10px 0; line-height: 1.4; }
  .snav-sheet .snav-col a:hover { transform: none; }
  .sfoot { margin-top: 88px; padding: 52px 0 max(28px, env(safe-area-inset-bottom)); }
  .sfoot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .sfoot-cols a { padding: 8px 0; line-height: 1.4; }
  .sfoot-bot { margin-top: 36px; }
  .s-crumbs { margin-top: 28px; }
  .s-head { padding: 24px 0 32px; margin-bottom: 32px; }
  .s-head .s-lead, .art-dek { font-size: 17px; }
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .s-card.big { grid-column: 1 / -1; }
  .s-card { padding: 22px; }
  .s-sec { margin-top: 52px; }
  .s-sec > h2 { font-size: 23px; flex-wrap: wrap; }
  /* chip rows scroll sideways with momentum instead of wrapping into a wall */
  .s-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut); scroll-padding-inline: var(--gut); }
  .s-chips::-webkit-scrollbar { display: none; }
  .s-chips a { flex: none; height: 40px; white-space: nowrap; }
  .s-row { gap: 4px 14px; padding: 16px 2px; }
  .s-row .r b { display: inline; margin-right: 8px; }
  .faq-list summary { font-size: 16.5px; padding: 18px 0; min-height: 56px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; margin-top: 40px; }
  .art-body h2 { font-size: 24px; margin-top: 40px; }
  .art-take, .callout { padding: 18px; }
  .s-table th, .s-table td { padding: 10px 12px; }
  .s-table table { font-size: 13.5px; }
}
@media (max-width: 600px) {
  .s-grid { grid-template-columns: minmax(0, 1fr); }
  .sfoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-sub { margin-top: 56px; border-radius: 22px; }
  .s-sub h2 { font-size: 26px; }
}
@media (max-width: 480px) {
  .snav.open .snav-sheet { grid-template-columns: minmax(0, 1fr); }
  .snav-sheet .snav-col { margin-top: 22px; }
  .s-head h1 { font-size: clamp(31px, 9.4vw, 40px); }
  .art-head h1 { font-size: clamp(30px, 9vw, 40px); }
  .s-form { flex-wrap: wrap; border-radius: 22px; padding: 6px; }
  .s-form input { height: 44px; padding: 0 12px; flex-basis: 100%; }
  .s-form button { width: 100%; height: 46px; }
  .s-card { padding: 20px; border-radius: 18px; }
  .s-card.big h2 { font-size: 25px; }
}
/* short landscape phones: a slimmer sticky header */
@media (max-width: 1100px) and (max-height: 500px) and (orientation: landscape) {
  .snav { --snav-h: 56px; }
  .snav-in { padding-top: 6px; padding-bottom: 6px; }
}
@keyframes snav-sheet { from { opacity: 0; transform: translateY(-6px); } }
@media (hover: none) {
  .s-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* single-column articles and docs keep a comfortable reading measure on tablets */
@media (max-width: 1100px) {
  .art > article, .s-doc > .prose { max-width: 780px; }
}
