/* Secondary public pages: /about /trust /support /privacy /terms /join /protect.
   Same identity as the homepage (docs/IDENTITY.md): SF Pro/Inter, pure white,
   green as light, near-black ink. ui.css + identity.css supply the type and shared
   tokens; everything a document page needs lives here, scoped to body.pg so it
   never reaches the app or the homepage. Loaded after ui.css on purpose. */

:root {
  --pg-ground: #FFFFFF;
  --pg-band: #F5F5F7;
  --pg-paper: #FFFFFF;
  --pg-ink: #1D1D1F;
  --pg-body: #424245;
  --pg-mute: #6E6E73;
  --pg-rule: #E5E5EA;
  --pg-green: #0B7A3E;
  --pg-green-deep: #075C2E;
  --pg-tint: #F5F5F7;
  --pg-warn: #965A00;
  --pg-warn-tint: #FFF6E5;
  --pg-gutter: max(64px, calc((100vw - 1320px) / 2)); /* = the homepage header's padding-inline */
  --pg-measure: 40rem;
  --pg-wide: 72rem;
}

/* ── language: paired content, one visible ─────────────────────────────── */
html[lang="es"] [data-l="en"],
html:not([lang="es"]) [data-l="es"] { display: none !important; }

/* ── ground ─────────────────────────────────────────────────────────────── */
html:has(body.pg) { scroll-padding-top: calc(var(--pg-head) + 24px); color-scheme: light; }
body.pg { margin: 0; background: var(--pg-ground); color: var(--pg-body); font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg :is(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin: 0; }
.pg img, .pg svg { max-width: 100%; }
.pg a { color: var(--pg-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pg a:hover { color: var(--pg-green-deep); text-decoration-thickness: 2px; }
.pg :is(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--pg-ink); outline-offset: 3px; border-radius: 4px; box-shadow: none; }
.pg .skip-link { color: var(--pg-green); font-weight: 600; text-decoration: none; box-shadow: 0 0 0 1px var(--pg-rule); }
.pg strong, .pg b { font-weight: 600; color: var(--pg-ink); }
.pg code { font-family: inherit; font-weight: 600; font-size: 0.95em; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; background: var(--pg-paper); border: 1px solid var(--pg-rule);
  border-radius: 6px; padding: 2px 7px; color: var(--pg-ink); user-select: all; overflow-wrap: anywhere; }

/* ── site header: mirrors the homepage .apphead (measured, not approximated) ── */
.pg-head { position: sticky; top: 0; z-index: 30; background: var(--pg-ground); border-bottom: 1px solid var(--pg-rule); }
.pg-head-in { height: 87px; padding-inline: max(64px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; gap: 16px; }
.pg-brand { display: flex; align-items: center; gap: 11px; min-height: 44px; min-width: 44px; color: var(--pg-ink) !important; text-decoration: none !important; flex: 0 0 auto; }
.pg-brand img { width: 36px; height: 36px; flex: 0 0 auto; }
.pg-brand b { font: 700 18px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--pg-ink); white-space: nowrap; }
.pg-brand b span { color: inherit; }
.pg-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pg-nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 10px 12px; color: var(--pg-body);
  font: 500 14px/1.35 var(--sans); text-decoration: none; border-radius: 980px; white-space: nowrap; }
.pg-nav a:hover { color: var(--pg-ink); text-decoration: none; }
.pg-nav a::after { content: ""; position: absolute; left: 12px; bottom: 0; width: 25px; height: 2px; background: transparent; }
.pg-nav a:hover::after { background: var(--pg-mute); }
.pg-nav a[aria-current="page"] { color: var(--pg-ink); }
.pg-nav a[aria-current="page"]::after { background: transparent; }
.pg-headsp { flex: 0 1 0%; }
.pg .pg-langbtn { appearance: none; flex: 0 0 auto; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 980px;
  background: transparent; color: var(--pg-body); font: 500 14px/1.35 var(--sans); letter-spacing: 0; cursor: pointer; }
.pg .pg-langbtn:hover { color: var(--pg-ink); background: transparent; }
.pg .pg-acct { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 980px; text-decoration: none; color: #075C2E; }
.pg .pg-acct:hover { text-decoration: none; }
.pg .pg-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: #F5F5F7; color: #075C2E; font: 600 13px/1 var(--sans); }
.pg .pg-acct:hover .pg-avatar { box-shadow: 0 0 0 2px var(--pg-ground), 0 0 0 3px #075C2E; }
.pg .pg-avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root { --pg-head: 88px; }
@media (max-width: 1199px) { .pg-head-in { padding-inline: 32px; gap: 12px; } }
@media (max-width: 820px) {
  :root { --pg-head: 113px; }
  .pg-head-in { height: auto; min-height: 112px; flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; padding-bottom: 0; }
  .pg-brand img { width: 30px; height: 30px; }
  .pg-brand b { font-size: 16px; }
  .pg-headsp { flex: 1 1 0%; }
  .pg-nav { order: 10; flex: 1 0 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; gap: 0; padding: 4px 0 8px; }
  .pg-nav a { font-size: 13px; padding: 10px 4px; }
  .pg-nav a::after { left: calc(50% - 12.5px); }
}
@media (max-width: 767px) { .pg-head-in { padding-inline: 20px; } }
@media (max-width: 600px) {
  .pg-nav { grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 12px; }
  .pg-nav a { padding-inline: 4px; }
}
@media (max-width: 360px) { .pg-head-in { padding-inline: 16px; } }

/* ── document column ────────────────────────────────────────────────────── */
.pg .pg-main { display: block; max-width: calc(var(--pg-measure) + 2 * var(--pg-gutter)); margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--pg-gutter) clamp(64px, 9vw, 120px); outline: none; }
.pg .pg-main .pg-kicker { margin: 0 0 14px; color: var(--pg-mute); font: 600 0.9375rem/1.3 var(--sans); letter-spacing: 0; }
.pg .pg-main h1 { margin: 0 0 20px; color: var(--pg-ink); font: 700 clamp(2.5rem, 1.6rem + 3.2vw, 4rem)/1.04 var(--id-display, var(--sans)); letter-spacing: -0.04em;
  letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.pg .pg-main h2 { margin: 2.6em 0 0.6em; color: var(--pg-ink); font: 700 clamp(1.375rem, 1.2rem + 0.6vw, 1.5rem)/1.25 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.pg .pg-main h3 { margin: 2em 0 0.45em; color: var(--pg-ink); font: 700 1.125rem/1.35 var(--sans); letter-spacing: -0.01em; }
.pg .pg-main h2 + h3 { margin-top: 0.8em; }
.pg .pg-main :is(p, li) { color: var(--pg-body); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.pg .pg-main p + p, .pg .pg-main p + ul, .pg .pg-main ul + p, .pg .pg-main p + ol, .pg .pg-main ol + p { margin-top: 1em; }
.pg .pg-main :is(ul, ol):not(.pg-plain) { padding-left: 1.35em; }
.pg .pg-main li { margin: 0; }
.pg .pg-main li + li { margin-top: 0.6em; }
.pg .pg-main li::marker { color: var(--pg-mute); }
.pg .pg-lede { font-size: 1.1875rem !important; line-height: 1.55 !important; color: var(--pg-body); }
.pg .pg-meta { color: var(--pg-mute) !important; font-size: 0.9375rem !important; margin-bottom: 28px; }
.pg .pg-small { color: var(--pg-mute) !important; font-size: 0.9375rem !important; }
.pg .pg-plain { list-style: none; padding: 0; }

/* Primary action: one per page. */
.pg .pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 980px; background: var(--pg-ink); color: #fff !important; font: 500 1.0625rem/1.2 var(--sans);
  text-decoration: none !important; text-align: center; cursor: pointer; transition: background-color 160ms ease; }
.pg .pg-btn:hover { background: #000; color: #fff; }
.pg .pg-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pg .pg-btn-quiet { background: var(--pg-paper); color: var(--pg-ink) !important; box-shadow: inset 0 0 0 1px var(--pg-rule); min-height: 48px; }
.pg .pg-btn-quiet:hover { background: var(--pg-paper); box-shadow: inset 0 0 0 1px var(--pg-ink); color: var(--pg-ink) !important; }
.pg .pg-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.pg .pg-textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Panels: a white sheet on the warm ground, hairline edge. */
.pg .pg-card { background: var(--pg-paper); border: 1px solid var(--pg-rule); border-radius: 12px; padding: clamp(20px, 3.5vw, 28px); margin-top: 32px; }
.pg .pg-card > :first-child { margin-top: 0 !important; }
.pg .pg-card h2, .pg .pg-card h3 { margin-top: 1.4em; }
.pg .pg-card.is-note { background: var(--pg-warn-tint); border-color: color-mix(in srgb, var(--pg-warn) 22%, transparent); }
.pg .pg-card.is-note h2 { color: var(--pg-ink); }
.pg .pg-card.is-tint { background: var(--pg-tint); border-color: color-mix(in srgb, var(--pg-green) 20%, transparent); }
.pg .pg-card.is-tint h2 { font-size: 1.125rem; }

/* Facts list: short label, then the sentence. */
.pg .pg-facts { list-style: none; padding: 0 !important; margin-top: 24px; border-top: 1px solid var(--pg-rule); }
.pg .pg-facts > li { margin: 0 !important; padding: 18px 0; border-bottom: 1px solid var(--pg-rule); }
.pg .pg-facts > li > b { display: block; margin-bottom: 4px; font-size: 1.0625rem; }
.pg .pg-facts > li > p { margin: 0; }
.pg .pg-facts > li > p + p { margin-top: 0.6em; }
.pg .pg-facts .pg-textlink { margin-top: 4px; }

/* Numbered steps. */
.pg .pg-steps { list-style: none; padding: 0 !important; margin: 0; counter-reset: s; }
.pg .pg-steps > li { position: relative; padding: 0 0 24px 52px; counter-increment: s; margin: 0 !important; }
.pg .pg-steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pg-tint); color: var(--pg-green); font: 700 1rem/34px var(--sans); text-align: center; }
.pg .pg-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 2px; background: var(--pg-rule); }
.pg .pg-steps > li > b { display: block; margin-bottom: 2px; }
.pg .pg-steps > li > p { margin: 0; }
.pg .pg-steps .pg-btn { margin-top: 14px; }

/* "In short" summary and the Spanish guide on legal pages. */
.pg .pg-summary { margin-top: 28px; padding: clamp(20px, 3.5vw, 28px); background: var(--pg-paper); border: 1px solid var(--pg-rule); border-radius: 12px; }
.pg .pg-summary h2 { margin: 0 0 12px !important; font-size: 1.125rem !important; }
.pg .pg-summary ul { margin: 0; }
.pg .pg-summary .pg-lang-note { margin: 0 0 16px; padding: 12px 14px; background: var(--pg-warn-tint); border-radius: 8px; color: var(--pg-ink); font-size: 0.9375rem; }

/* Legal pages: a contents list beside the text on wide screens. */
.pg .pg-main.pg-doc { max-width: calc(var(--pg-measure) + 2 * var(--pg-gutter)); }
.pg .pg-toc { margin-top: 28px; padding: 18px 20px 14px; border: 1px solid var(--pg-rule); border-radius: 12px; background: var(--pg-paper); }
.pg .pg-toc h2 { margin: 0 0 6px !important; font-size: 0.9375rem !important; font-weight: 600 !important; color: var(--pg-mute) !important; letter-spacing: 0; }
.pg .pg-toc ol { list-style: none; padding: 0 !important; margin: 0; columns: 2 15rem; column-gap: 24px; }
.pg .pg-toc li { margin: 0 !important; break-inside: avoid; }
.pg .pg-toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--pg-ink); text-decoration: none; font-size: 1rem; line-height: 1.3; }
.pg .pg-toc a:hover { color: var(--pg-green); text-decoration: underline; }
.pg .pg-doc .pg-legal > section:first-child > h2 { margin-top: 1.8em; }
@media (min-width: 1024px) {
  .pg .pg-main.pg-doc { max-width: calc(var(--pg-measure) + 15rem + 4rem + 2 * var(--pg-gutter)); display: grid;
    grid-template-columns: minmax(12rem, 15rem) minmax(0, var(--pg-measure)); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; justify-content: center; }
  .pg .pg-doc > .pg-doc-head { grid-column: 2; grid-row: 1; }
  .pg .pg-doc > .pg-summary { grid-column: 2; grid-row: 2; }
  .pg .pg-doc > .pg-legal { grid-column: 2; grid-row: 3; }
  .pg .pg-doc > .pg-toc { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: calc(var(--pg-head) + 24px); margin-top: 6px;
    padding: 0; border: 0; background: transparent; max-height: calc(100vh - var(--pg-head) - 48px); overflow: auto; }
  .pg .pg-doc > .pg-toc ol { columns: auto; border-left: 1px solid var(--pg-rule); }
  .pg .pg-doc > .pg-toc a { padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--pg-body); font-size: 0.9375rem; min-height: 44px; }
  .pg .pg-doc > .pg-toc a:hover { border-left-color: var(--pg-ink); color: var(--pg-ink); text-decoration: none; }
}

/* ── /join ──────────────────────────────────────────────────────────────── */
.pg .pg-code { margin: 28px 0 0; padding: 22px clamp(18px, 4vw, 28px); background: var(--pg-paper); border: 1px solid var(--pg-rule); border-radius: 12px; }
.pg .pg-code-label { color: var(--pg-mute) !important; font-size: 0.9375rem !important; font-weight: 600; }
.pg .pg-code-value { margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 4px 0.6em; color: var(--pg-ink) !important;
  font: 700 clamp(1.875rem, 1.3rem + 2.6vw, 2.5rem)/1.15 var(--sans) !important; letter-spacing: 0.04em; font-variant-numeric: tabular-nums lining-nums; }
.pg .pg-code-where { margin-top: 14px !important; }
.pg .pg-path { display: inline; font-weight: 600; color: var(--pg-ink); }

/* ── /protect ───────────────────────────────────────────────────────────── */
.pg .pg-seg-label { margin: 40px 0 12px !important; color: var(--pg-ink) !important; font-weight: 600; }
.pg .pg-seg-label + .pg-small { margin: -6px 0 14px !important; }
.pg .pg-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.pg .pg-seg button { appearance: none; min-height: 52px; padding: 8px 6px; margin: 0; border: 1px solid var(--pg-rule); border-radius: 980px; background: var(--pg-paper);
  color: var(--pg-body); font: 600 0.9375rem/1.2 var(--sans); cursor: pointer; white-space: nowrap; flex: 1 1 0; min-width: max-content; padding-inline: 12px; }
.pg .pg-seg button:hover { border-color: var(--pg-ink); color: var(--pg-ink); background: var(--pg-paper); }
.pg .pg-seg button[aria-pressed="true"] { background: var(--pg-ink); border-color: var(--pg-ink); color: #fff; box-shadow: none; }
.pg .plat { display: none; }
.pg .plat.on { display: block; }
.pg #install { width: 100%; margin-top: 4px; }
.pg #platnote { text-align: center; margin: 12px 0 32px !important; }
.pg .pg-alt { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--pg-rule); }
.pg .pg-alt h3 { margin-top: 1.4em !important; }
.pg .pg-alt .pg-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pg-band); color: var(--pg-mute);
  font: 600 0.8125rem/1.5 var(--sans); vertical-align: 2px; }
.pg .pg-alt ol { margin-top: 0.6em; }

/* ── footer (mirrors the homepage's three columns) ──────────────────────── */
.pg-foot { background: var(--pg-ground); }
.pg-foot-in { margin: 0 var(--pg-gutter); padding: 36px 0 32px; border-top: 1px solid var(--pg-rule);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; }
.pg-foot-brand { margin: 0; align-self: start; min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--pg-ink); }
.pg-foot-brand img { width: 22px; height: 22px; }
.pg-foot-brand b { font: 700 1.0625rem/1 var(--sans); }
.pg-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pg-foot-cols > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pg .pg-foot-cols h2 { margin: 0 0 4px; font: 600 0.9375rem/1.4 var(--sans); color: var(--pg-mute); letter-spacing: 0; }
.pg .pg-foot-cols a { min-height: 44px; display: inline-flex; align-items: center; color: var(--pg-ink); font: 500 1rem/1.2 var(--sans); text-decoration: none; }
.pg .pg-foot-cols a:hover { text-decoration: underline; color: var(--pg-ink); }
.pg-foot .fline { grid-column: 1 / -1; margin: 8px 0 0; font-size: 0.9375rem; color: var(--pg-mute); }
@media (max-width: 960px) { .pg-foot-in { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pg-foot-cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .pg * { transition: none !important; } html:has(body.pg) { scroll-behavior: auto; } }
@media print { .pg-head, .pg-foot, .pg-toc, .skip-link { display: none !important; } }
.pg .pg-after { margin-top: 28px !important; }
.pg .pg-card > [data-l] > :first-child, .pg .pg-card > [data-l]:first-child + [data-l] > :first-child { margin-top: 0 !important; }
.pg .pg-doc .pg-legal { margin-top: 36px; }

/* No mid-word breaks: long words wrap whole; only URLs and codes may break. */
.pg .pg-main :is(h1, h2, h3, p, li, b, summary) { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.pg .pg-main :is(a[href^="http"], a[href^="mailto"], code) { overflow-wrap: anywhere; }

/* Disclosure for secondary groups (support: iPhone beta). */
.pg .pg-more { margin-top: 40px; border-top: 1px solid var(--pg-rule); border-bottom: 1px solid var(--pg-rule); }
.pg .pg-more summary { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 18px 40px 18px 0; cursor: pointer; list-style: none; position: relative; }
.pg .pg-more summary::-webkit-details-marker { display: none; }
.pg .pg-more summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--pg-ink); border-bottom: 2px solid var(--pg-ink); transform: rotate(45deg); transition: transform 160ms ease; }
.pg .pg-more[open] summary::after { transform: rotate(-135deg); top: 31px; }
.pg .pg-more-t { color: var(--pg-ink); font: 700 clamp(1.375rem, 1.2rem + 0.6vw, 1.5rem)/1.25 var(--sans); letter-spacing: -0.02em; }
.pg .pg-more-s { color: var(--pg-mute); font-size: 0.9375rem; line-height: 1.5; }
.pg .pg-more .pg-facts { margin-top: 0; }
.pg .pg-more .pg-facts > li:last-child { border-bottom: 0; }

/* A single step needs no number. */
.pg .pg-steps > li:only-child { padding-left: 0; }
.pg .pg-steps > li:only-child::before { content: none; }
.pg .pg-safe-link { margin: 4px 0 24px !important; text-align: center; }
#platnote + .pg-safe-link { margin-top: -20px !important; }

/* Privacy: non-binding section summaries and a way back up. */
.pg .pg-sec-sum { margin: 0 0 1em !important; padding: 14px 18px; border-left: 0; background: var(--pg-band); border-radius: 14px; color: var(--pg-ink) !important; font-size: 1rem !important; }
.pg .pg-sec-sum b { font-weight: 700; }
.pg .pg-top { margin-top: 1.2em !important; }
.pg .pg-top a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: var(--pg-mute); }
.pg .pg-sum-note { margin: -4px 0 12px !important; }

/* Legal contents: a collapsible list below 900px, a sticky outline with a live marker above. */
.pg .pg-toc { padding: 0 !important; }
.pg .pg-toc-d > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px 20px; cursor: pointer; list-style: none; border-radius: 12px; }
.pg .pg-toc-d > summary::-webkit-details-marker { display: none; }
.pg .pg-toc-d > summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid var(--pg-ink); border-bottom: 2px solid var(--pg-ink); transform: rotate(45deg); transition: transform 160ms ease; }
.pg .pg-toc-d[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pg .pg-toc-d > summary h2 { margin: 0 !important; color: var(--pg-ink) !important; font-size: 1rem !important; }
.pg .pg-toc-d > ol { padding: 0 20px 12px !important; }
.pg .pg-toc a[aria-current="location"] { color: var(--pg-ink); font-weight: 600; }
@media (min-width: 1024px) {
  .pg .pg-doc > .pg-toc .pg-toc-d > summary { min-height: 0; padding: 0 0 6px; cursor: default; pointer-events: none; }
  .pg .pg-doc > .pg-toc .pg-toc-d > summary::after { content: none; }
  .pg .pg-doc > .pg-toc .pg-toc-d > summary h2 { color: var(--pg-mute) !important; font-size: 0.9375rem !important; font-weight: 600 !important; }
  .pg .pg-doc > .pg-toc .pg-toc-d > ol { padding: 0 !important; }
  .pg .pg-doc > .pg-toc a[aria-current="location"] { border-left-color: var(--pg-ink); color: var(--pg-ink); font-weight: 600; background: none; }
}

/* Support: the iPhone group reads as one more FAQ row. */
.pg .pg-more.is-row { margin-top: 0; border-top: 0; }
.pg .pg-more.is-row summary { padding: 18px 40px 18px 0; }
.pg .pg-more.is-row summary::after { top: 24px; }
.pg .pg-more.is-row[open] summary::after { top: 29px; }
.pg .pg-more.is-row .pg-more-t { font: 600 1.0625rem/1.4 var(--sans); letter-spacing: 0; }
.pg .pg-facts + .pg-more.is-row { margin-top: -1px; }
.pg .pg-more .pg-facts { border-top: 1px solid var(--pg-rule); }

/* Footer rows stay aligned across columns: a label that wraps to two lines still fits its 44px row. */
.pg .pg-foot-cols a { height: 44px; line-height: 1.15; }
.pg .pg-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pg .pg-ext { margin-left: 4px; font-size: 0.875em; color: var(--pg-mute); }

/* /join: the code, a copy action, a placeholder that can't be mistaken for a real code. */
.pg .pg-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.pg .pg-code-row .pg-code-value { margin-top: 0 !important; }
.pg .pg-code-value span { white-space: nowrap; overflow-wrap: normal; }
.pg .pg-copy { appearance: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 980px; background: var(--pg-paper); box-shadow: inset 0 0 0 1px var(--pg-rule);
  color: var(--pg-ink); font: 600 0.9375rem/1 var(--sans); cursor: pointer; }
.pg .pg-copy:hover { box-shadow: inset 0 0 0 1px var(--pg-ink); background: var(--pg-paper); color: var(--pg-ink); }
.pg .pg-copy[data-copied="1"] { box-shadow: inset 0 0 0 1px var(--pg-green); color: var(--pg-green); }
.pg .pg-copied { min-height: 0; margin: 6px 0 0 !important; color: var(--pg-green) !important; font-size: 0.9375rem !important; font-weight: 600; }
.pg .pg-copied:empty { margin: 0 !important; }
.pg .pg-placeholder { color: var(--pg-mute); font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; }
@media (max-width: 360px) { .pg .pg-code-value { font-size: 1.625rem !important; letter-spacing: 0.02em; } }

/* The homepage's example: a real message and Viper's real answer (home.css .msg / .hp-demo). */
.pg .pg-main .pg-demo { margin: 36px 0 8px; display: grid; gap: 14px; max-width: 32rem; }
.pg .pg-main .pg-demo :is(p, li) { margin: 0; text-wrap: pretty; }
.pg .pg-main .pg-demo .msg-from { margin: 0 0 8px 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--pg-mute); }
.pg .pg-main .pg-demo .msg-body { padding: 16px 20px; background: #E8E8ED; border-radius: 20px 20px 20px 6px; font-size: 1.125rem; line-height: 1.5; color: var(--pg-ink); overflow-wrap: anywhere; }
.pg .pg-main .pg-demo .hp-demo-tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #F5F5F7; color: #424245; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; }
.pg .pg-main .pg-demo .vr-verdict { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: #1D1D1F; }
.pg .pg-main .pg-demo .vr-sure { margin-top: 8px; font-size: 1.0625rem; line-height: 1.45; color: #424245; }
.pg .pg-main .pg-demo .vr-label { margin: 0 0 6px; font-size: 0.9375rem; font-weight: 700; color: #6E6E73; }
.pg .pg-main .pg-demo .vr-do .vr-label { color: #0B7A3E; }
.pg .pg-main .pg-demo .vr-why ul { list-style: none; padding: 0; margin: 6px 0 0; }
.pg .pg-main .pg-demo .vr-why li { padding: 11px 0 11px 20px; font-size: 1rem; line-height: 1.5; color: #424245; }
.pg .pg-main .pg-demo .vr-why li + li { margin-top: 0; }
.pg .pg-main .pg-demo .vr-step { margin-top: 4px; font-size: 1.125rem; line-height: 1.4; font-weight: 700; color: #1D1D1F; }

/* /join: copy is a fallback for another device; joining is free. */
.pg .pg-code-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 14px; }
.pg .pg-free { margin-top: 20px !important; color: var(--pg-ink) !important; font-weight: 600; }

/* Tablet (600–1023px): the nav is a flex row from the content edge with natural gaps (homepage rule). */
/* 601–1023px: mirrors the homepage (home.css: signed-out nav spreads across the row). */
@media (min-width: 601px) and (max-width: 1023px) {
  .pg-nav { display: flex; width: 100%; justify-content: space-between; gap: 8px; margin-left: 0; }
  .pg-nav a { flex: 0 0 auto; padding-inline: 10px; }
}
/* 821–1023px (one-row header): the nav spreads over the space left by the wordmark; the wordmark never shrinks. */
@media (min-width: 821px) and (max-width: 1023px) { .pg-nav { flex: 1 1 auto; width: auto; margin-left: 24px; } .pg-brand { flex: 0 0 auto; } }

.pg a[href^="tel:"] { white-space: nowrap; }
.pg .pg-main .pg-demo-sm { max-width: 26rem; margin-top: 28px; }
.pg .pg-main .pg-demo-sm .vr { padding-bottom: 22px; }

/* Device picker: three equal buttons on one row at every width; text scales down on narrow phones. */
.pg .pg-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg .pg-seg button { min-width: 0; padding-inline: 6px; font-size: clamp(0.75rem, 3.4vw, 0.9375rem); }
/* /trust example card: a visual sample of the "no known threat" mark (no verdict logic lives on this page). */
.pg .vr[data-tone="clear"] .vr-shape { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #0B7A3E 0 3px, transparent 3.5px); box-shadow: inset 0 0 0 2.5px #0B7A3E; }

/* /about: what Viper is and isn't, from claims made elsewhere on the site. */
.pg .pg-isnt { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 0; background: var(--pg-paper); border: 1px solid var(--pg-rule); border-radius: 12px; }
.pg .pg-isnt > div { padding: 20px clamp(18px, 3.5vw, 24px); }
.pg .pg-isnt > div + div { border-top: 1px solid var(--pg-rule); }
.pg .pg-main .pg-isnt-h { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.pg .pg-main .pg-isnt ul { margin: 0; padding-left: 1.2em; }
.pg .pg-main .pg-isnt li { font-size: 1rem; line-height: 1.5; }
.pg .pg-main .pg-isnt li + li { margin-top: 0.5em; }
@media (min-width: 640px) { .pg .pg-isnt { grid-template-columns: 1fr 1fr; } .pg .pg-isnt > div + div { border-top: 0; border-left: 1px solid var(--pg-rule); } }

/* /join without a code: enter it here. */
.pg .pg-main .pg-code-h { margin: 0 0 14px; font-size: 1.25rem; }
.pg .pg-join-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pg .pg-join-row input { flex: 1 1 12rem; min-width: 0; min-height: 54px; padding: 0 14px; border: 1px solid var(--pg-rule); border-radius: 8px; background: var(--pg-paper);
  color: var(--pg-ink); font: 700 1.25rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.pg .pg-join-row input::placeholder { color: #8E8E93; letter-spacing: 0.08em; }
.pg .pg-join-row input:focus { outline: 3px solid var(--pg-ink); outline-offset: 2px; border-color: var(--pg-ink); }
.pg .pg-join-row .pg-btn { flex: 0 0 auto; }
.pg .pg-join-err { margin: 8px 0 0 !important; color: #C4271D !important; font-size: 0.9375rem !important; font-weight: 600; }
.pg .pg-join-err:empty { margin: 0 !important; }
.pg .pg-join-form .pg-small { margin-top: 10px !important; }
.pg .pg-join-ask { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--pg-rule); }

/* Legal pages in Spanish: the section's Spanish name under the English heading. */
.pg .pg-main .pg-sec-es { margin: -0.4em 0 0.8em !important; color: var(--pg-mute) !important; font-size: 0.9375rem !important; font-weight: 600; }

/* /support: the iPhone beta questions as one ordinary FAQ row with its own short list. */
.pg .pg-main .pg-subfacts { list-style: none; padding: 0 !important; margin: 12px 0 0; border-left: 2px solid var(--pg-rule); }
.pg .pg-main .pg-subfacts > li { margin: 0 !important; padding: 8px 0 8px 16px; }
.pg .pg-main .pg-subfacts > li + li { margin-top: 0 !important; }
.pg .pg-main .pg-subfacts .pg-subq { display: block; font-size: 1rem; }
.pg .pg-main .pg-subfacts p { margin: 2px 0 0; font-size: 1rem; }

/* /protect: a two-line scope note, so the device picker comes early. */
.pg .pg-card.pg-scope { margin-top: 24px; padding: 16px 20px; }
.pg .pg-card.pg-scope p { font-size: 1rem; line-height: 1.5; }
.pg .pg-card.pg-scope p + p { margin-top: 0.5em; }
.pg .pg-scope + .pg-seg-label { margin-top: 28px !important; }
/* Windows sits behind a disclosure so Chrome stays the one obvious action. */
.pg .pg-alt .pg-win { margin-top: 20px; border-top: 1px solid var(--pg-rule); }
.pg .pg-alt .pg-win > :not(summary) { margin-top: 0; }
.pg .pg-alt .pg-win > p:first-of-type { margin-top: 0 !important; }
.pg .pg-alt .pg-win > :last-child { margin-bottom: 18px; }

/* Shared closing row: About, Trust, Join, Support. */
.pg .pg-close { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--pg-rule); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.pg .pg-close-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.pg .pg-close-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* /protect: one disclosure style for "On Windows" and "To turn it off later". */
.pg .pg-more.pg-disc { margin-top: 24px; border-top: 1px solid var(--pg-rule); border-bottom: 1px solid var(--pg-rule); }
.pg .pg-more.pg-disc summary { padding: 16px 40px 16px 0; }
.pg .pg-more.pg-disc summary::after { top: 22px; }
.pg .pg-more.pg-disc[open] summary::after { top: 27px; }
.pg .pg-more.pg-disc .pg-more-t { font: 600 1.0625rem/1.4 var(--sans); letter-spacing: 0; }
.pg .pg-alt .pg-disc.pg-win { margin-top: 20px; }
/* The safety pointer follows the steps. */
.pg .pg-safe-link { margin: 12px 0 0 !important; text-align: left; }

/* One separator before the shared closing row: drop the rule a facts list would add right above it. */
.pg .pg-facts:has(+ .pg-close) > li:last-child,
.pg .pg-main:has(> .pg-close) > [data-l] > .pg-facts:last-child > li:last-child { border-bottom: 0; }
/* /join: the main action lives in the code card. */
.pg .pg-code-go { margin-top: 16px; }
.pg .pg-code .pg-free { margin-top: 12px !important; }
.pg .pg-code-go + .pg-code-alt { margin-top: 12px; }
.pg #contents:focus { outline: none; }

/* One gutter for header, content and footer at every width (the homepage header's values). */
@media (max-width: 1199px) { :root { --pg-gutter: 32px; } }
/* Up to 1023px the gutter also equals the reading column's margin, so the logo, nav and footer line up with the text. */
@media (max-width: 1023px) { :root { --pg-gutter: max(32px, calc((100vw - 40rem) / 2)); } }
@media (max-width: 767px) { :root { --pg-gutter: max(20px, calc((100vw - 40rem) / 2)); } }
@media (max-width: 360px) { :root { --pg-gutter: 16px; } }
.pg-head-in { padding-inline: var(--pg-gutter) !important; }
/* /protect: iOS only offers the profile from Safari. */
.pg .pg-safari { margin: 0 0 10px !important; color: var(--pg-ink) !important; font-weight: 600; font-size: 1rem !important; }

/* Legal pages below 1024px: a slim sticky "On this page" bar under the header (in the flow, so it never covers text). */
.pg .pg-tocbar { position: sticky; top: var(--pg-head); z-index: 20; margin: calc(-1 * clamp(40px, 7vw, 88px) + 8px) calc(-1 * var(--pg-gutter)) 24px; padding: 0 var(--pg-gutter);
  background: var(--pg-ground); border-bottom: 1px solid var(--pg-rule); }
.pg .pg-tocbar-btn { appearance: none; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0; margin: 0; border: 0; background: transparent;
  color: var(--pg-ink); font: 600 0.9375rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.pg .pg-tocbar-btn::after { content: ""; flex: 0 0 auto; margin-left: auto; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--pg-ink); border-bottom: 2px solid var(--pg-ink); transform: rotate(45deg); }
.pg .pg-tocbar-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.pg .pg-tocbar-cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pg-mute); font-weight: 500; }
.pg .pg-tocbar-cur:not(:empty)::before { content: "· "; }
.pg .pg-tocbar-cur span { white-space: nowrap; }
.pg .pg-tocpop { position: absolute; left: var(--pg-gutter); right: var(--pg-gutter); top: 100%; max-height: min(60vh, 28rem); overflow: auto; overscroll-behavior: contain;
  background: var(--pg-paper); border: 1px solid var(--pg-rule); border-radius: 0 0 12px 12px; box-shadow: 0 18px 30px -18px rgba(17,21,17,.35); padding: 6px 16px 10px; }
.pg .pg-tocpop ol { list-style: none; margin: 0; padding: 0 !important; columns: auto !important; }
.pg .pg-tocpop li { margin: 0 !important; }
.pg .pg-tocpop a { display: flex; align-items: center; min-height: 44px; color: var(--pg-ink); text-decoration: none; font-size: 1rem; line-height: 1.3; }
.pg .pg-tocpop a:hover { color: var(--pg-green); text-decoration: underline; }
@media (min-width: 1024px) { .pg .pg-tocbar { display: none; } }

/* /protect: a secondary download button; the Optional tag stays with its heading. */
.pg .pg-dl { margin: 10px 0 12px; }
.pg .pg-alt .pg-tag { margin: 0 8px 0 0; }
@media (max-width: 1023px) { html:has(body.pg .pg-doc) { scroll-padding-top: calc(var(--pg-head) + 72px); } }
/* With the sticky bar, the inline contents toggle would be a second control: hide it below 1024px. */
@media (max-width: 1023px) { html[data-tocbar] .pg .pg-toc, html[data-tocbar] body.pg .pg-toc { display: none; } }
.pg .pg-noapw { margin-top: 8px !important; }
/* /protect: the Optional label sits above its heading. */
.pg .pg-tag-l { margin: 1.4em 0 4px !important; }
.pg .pg-tag-l + h3 { margin-top: 0 !important; }
.pg .pg-alt .pg-tag-l .pg-tag { margin: 0; }
/* /join: the code card's heading sits tight to the code. */
.pg .pg-main .pg-code > .pg-code-h + .pg-code-value { margin-top: 0 !important; }

/* Legal pages on phones and small tablets: the site header scrolls away; only the slim contents bar stays pinned. */
@media (max-width: 820px) {
  body.pg:has(.pg-doc) .pg-head { position: relative; }
  body.pg:has(.pg-doc) .pg-tocbar { top: 0; }
  html:has(body.pg .pg-doc) { scroll-padding-top: 72px !important; }
}

/* /join: what the organizer can see and do. */
.pg .pg-org { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pg-rule); }
.pg .pg-main .pg-org-h { margin: 0 0 8px !important; font-size: 1.0625rem; }
.pg .pg-main .pg-org ul { margin: 0; padding-left: 1.2em; }
.pg .pg-main .pg-org li { font-size: 1rem; line-height: 1.5; }
.pg .pg-main .pg-org li + li { margin-top: 0.45em; }
.pg .pg-main .pg-org p { margin-top: 10px; font-size: 1rem; color: var(--pg-ink); }
/* Closing row on narrow phones: the button, then the links on their own row with even gaps, so none is left alone. */
/* Below 600px: button, then the links stacked as one compact group (each link keeps a 44px tap height). */
@media (max-width: 599px) {
  .pg .pg-close { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pg .pg-close-links { flex-direction: column; gap: 0; }
  .pg .pg-close-links a { min-height: 44px; line-height: 1.2; }
}
/* Wide screens keep the contents sidebar in view, so the per-section "Back to contents" links are hidden there. */
@media (min-width: 1024px) { .pg .pg-doc .pg-top { display: none; } }
/* /protect: the optional block's two disclosures sit together. */
.pg .pg-alt .pg-disc.pg-win + .pg-disc.pg-win { margin-top: 0; border-top: 0; }
/* /join: "What joining means" follows the card. */
.pg .pg-joinmeans .pg-free { margin-top: 0 !important; }

/* Phone nav text matches the homepage (home.css): 15px up to 600px, 12.5px at 360px and below. */
@media (max-width: 600px) { .pg-nav a { font-size: 0.9375rem; } }
@media (max-width: 360px) { .pg-nav a { font-size: 12.5px; } }
/* /protect "Is this safe to install?": short labelled parts, Quad9 detail behind a disclosure. */
.pg .pg-main .pg-card .pg-safe-h { margin: 1.2em 0 0.3em !important; font-size: 1.0625rem; }
.pg .pg-card .pg-safe-more { margin: 10px 0 4px; }
.pg .pg-card .pg-safe-more summary { padding: 12px 40px 12px 0; }
.pg .pg-card .pg-safe-more summary::after { top: 18px; }
.pg .pg-card .pg-safe-more[open] summary::after { top: 23px; }
.pg .pg-card .pg-safe-more .pg-more-t { font-size: 1rem; }
.pg .pg-card .pg-safe-more > p { margin: 0 0 12px !important; }
.pg .pg-card .pg-safe-warn { margin-top: 1em; padding-top: 12px; border-top: 1px solid var(--pg-rule); }
/* Result cards: when a verdict wraps, the dot stays on its first line. */
.pg .vr-verdict { align-items: flex-start; }
.pg .vr-verdict .vr-shape { margin-top: max(2px, calc(0.6em - 8px)); }
/* Legal "In short" card on narrow phones: less side padding so lines keep a readable length. */
@media (max-width: 400px) {
  .pg .pg-summary { padding: 18px 14px; }
  .pg .pg-summary ul { padding-left: 1.1em !important; }
}
/* Header tabs: 15px from 821px, 16px at 601–820px, 15px at 361–600px, 12.5px at 360px and below (homepage, home.css Round 40). */
.pg-nav a { font-size: 15px; }
@media (min-width: 601px) and (max-width: 820px) { .pg-nav a { font-size: 16px; } }
@media (max-width: 600px) { .pg-nav a { font-size: 15px; } }
@media (max-width: 360px) { .pg-nav a { font-size: 12.5px; } }
