/* Public website, theme B (owner's choice 18 Oct 2026, mock approved 20 Oct 2026).
   The one token file for the public site: every public colour and font comes from these --ph-* tokens.
   White ground, warm reddish near-black for dark surfaces (never navy or bluish), one red accent (the single primary button per screen, the hero payoff line, step numbers).
   Never the product's --al-* tokens; scripts/siteChromeStatic.mjs reads it for the law pages' header and footer. */
:root {
  --ph-white: #FFFFFF;
  --ph-mist: #FAF7F6;
  --ph-dark: #1C1414;
  --ph-dark-raised: #2A1D1D;
  --ph-dark-line: #3A2727;
  --ph-dark-border: #4D3434;
  --ph-red: #D1242F;
  --ph-red-hover: #B51D27;
  --ph-deep: #A3141E;
  --ph-deep-hover: #7F0F17;
  --ph-pink: #F5B3B7;
  --ph-ink: #1E1A1A;
  --ph-body: #463E3D;
  --ph-muted: #6B6261;
  --ph-faint: #A69B99;
  --ph-on-dark: #E3D7D5;
  --ph-line: #E9E4E2;
  --ph-line-soft: #F2EEED;
  --ph-line-strong: #CEC5C3;
  --ph-button-line: #D9D1CF;
  --ph-dot: #DDD5D3;
  --ph-green: #147A63;
  --ph-amber: #B26A00;
  --ph-blue: #2F5C9E;
  --ph-tag: #F4EFED;
  --ph-shadow: rgba(40, 18, 18, .10);
  --ph-shadow-strong: rgba(40, 18, 18, .14);
  --ph-header-glass: rgba(255, 255, 255, .97);
  /* Home page, direction A (D-307): the pale red icon tile, the red ring on a chosen tab or chip, the red button's shadow and the hero glow. */
  --ph-red-tint: #FCEBEC;
  --ph-red-ring: rgba(209, 36, 47, .10);
  --ph-red-shadow: rgba(209, 36, 47, .22);
  --ph-hero-glow: radial-gradient(closest-side, rgba(209, 36, 47, .16), rgba(246, 179, 91, .10) 55%, transparent 75%);
  /* The dark band and footer: warm near-black with a soft red glow (owner, 20 Oct: reddish, never bluish dark shades). */
  --ph-dark-glow: radial-gradient(900px 420px at 85% -20%, rgba(209, 36, 47, .22), transparent 60%), radial-gradient(700px 380px at 0% 120%, rgba(209, 36, 47, .12), transparent 55%);
  --ph-display: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --ph-text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ph-mono: ui-monospace, Menlo, monospace;
  --ph-law-serif: 'Libertinus Serif', Georgia, serif;
  --ph-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147A63' stroke-width='2.2'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

/* Public website, theme B: the shared building blocks (D-303). Colours and fonts only from siteTokens.css.
   Calm and spacious: colour only on small marks (eyebrows, step numbers, ticks, status dots); numbers in plain ink.
   Pages compose these through the components in siteTheme.tsx; later batches read them, they do not restyle them. */


.ph-site { background: var(--ph-white); color: var(--ph-ink); font-family: var(--ph-text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ph-site a { color: var(--ph-deep); }
.ph-site a:hover { color: var(--ph-deep-hover); }
.ph-site :focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 2px; border-radius: 4px; }
.ph-site h1, .ph-site h2, .ph-site h3 { text-wrap: balance; }

.ph-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.ph-eb { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ph-deep); }
.ph-h1 { margin: 0; font-family: var(--ph-display); font-weight: 800; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.035em; color: var(--ph-ink); }
.ph-h1.ph-sm { font-size: clamp(34px, 3.8vw, 52px); }
.ph-h2 { margin: 0; font-family: var(--ph-display); font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.13; letter-spacing: -.028em; color: var(--ph-ink); }
.ph-h2.ph-band-title { font-size: clamp(26px, 2.6vw, 34px); }
.ph-h3 { margin: 0; font-family: var(--ph-display); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -.005em; color: var(--ph-ink); }
.ph-lead { margin: 22px 0 0; font-size: 19px; line-height: 1.6; color: var(--ph-body); max-width: 560px; }
.ph-p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ph-body); }
.ph-small { font-size: 13px; color: var(--ph-muted); }
.ph-red { color: var(--ph-red); }
.ph-sec { padding-block: 104px; }
.ph-sec.ph-tight { padding-block: 72px; }
.ph-sec.ph-top0 { padding-top: 0; }
.ph-sec.ph-bottom0 { padding-bottom: 0; }
.ph-sec.ph-ruled { border-top: 1px solid var(--ph-line); }
.ph-band { background: var(--ph-mist); border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }
.ph-split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.ph-split > * { flex: 1 1 440px; min-width: 0; }
.ph-split.ph-reverse { flex-wrap: wrap-reverse; }
.ph-g2, .ph-g3, .ph-g4 { display: grid; gap: 20px; }
.ph-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ph-card { display: block; background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: 16px; padding: 28px; }
a.ph-card { text-decoration: none; color: var(--ph-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ph-site a.ph-card, .ph-site a.ph-card:hover { color: var(--ph-ink); }
a.ph-card:hover { border-color: var(--ph-line-strong); box-shadow: 0 14px 34px var(--ph-shadow); transform: translateY(-2px); }
.ph-go { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ph-deep); }
a.ph-card:hover .ph-go { text-decoration: underline; }
.ph-num { margin: 0 0 14px; font-family: var(--ph-display); font-weight: 700; font-size: 15px; color: var(--ph-red); }

.ph-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: var(--ph-text); font-size: 16px; font-weight: 600; line-height: 1.2; padding: 15px 24px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ph-site .ph-btn-red, .ph-btn-red { background: var(--ph-red); color: var(--ph-white); }
.ph-site .ph-btn-red:hover, .ph-btn-red:hover { background: var(--ph-red-hover); color: var(--ph-white); }
.ph-site .ph-btn-line, .ph-btn-line { background: var(--ph-white); color: var(--ph-ink); border-color: var(--ph-button-line); }
.ph-site .ph-btn-line:hover, .ph-btn-line:hover { border-color: var(--ph-ink); background: var(--ph-mist); color: var(--ph-ink); }
.ph-site .ph-btn-dark, .ph-btn-dark { background: var(--ph-dark); color: var(--ph-white); }
.ph-site .ph-btn-dark:hover, .ph-btn-dark:hover { background: var(--ph-dark-raised); color: var(--ph-white); }
.ph-lnk { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ph-deep); }
.ph-lnk:hover { text-decoration: underline; }
.ph-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; }

.ph-tk { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; font-size: 16px; line-height: 1.55; color: var(--ph-body); }
.ph-tk li { position: relative; padding-left: 28px; }
.ph-tk li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--ph-tick) no-repeat center / 18px; }
.ph-tk b { color: var(--ph-ink); }
.ph-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 13px; font-weight: 500; color: var(--ph-body); }
.ph-ticks span { display: inline-flex; align-items: center; gap: 7px; }
.ph-ticks span::before { content: ""; width: 15px; height: 15px; background: var(--ph-tick) no-repeat center / 15px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ph-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ph-line); color: var(--ph-ink); }
.ph-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ph-red); }

/* Sample product pictures: always labelled as samples. */
.ph-cap { margin: 10px 2px 0; font-size: 12px; color: var(--ph-muted); }
.ph-shot { background: var(--ph-white); border: 1px solid var(--ph-line); border-radius: 18px; box-shadow: 0 24px 60px var(--ph-shadow); overflow: hidden; }
.ph-shot.ph-pad { padding: 22px; }
.ph-shot-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ph-mist); border-bottom: 1px solid var(--ph-line); }
.ph-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ph-dot); }
.ph-shot-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ph-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--ph-line-soft); color: var(--ph-ink); }
.ph-row:last-child { border-bottom: 0; }
.ph-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--ph-body); white-space: nowrap; }
.ph-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ph-muted); }
.ph-dot.ph-ok::before { background: var(--ph-green); }
.ph-dot.ph-wait::before { background: var(--ph-amber); }
.ph-dot.ph-info::before { background: var(--ph-blue); }
.ph-tag { display: inline-block; font-size: 11.5px; padding: 4px 8px; border-radius: 6px; background: var(--ph-tag); color: var(--ph-body); }
.ph-tag.ph-action { background: var(--ph-white); border: 1px solid var(--ph-button-line); padding: 7px 12px; font-size: 13px; font-weight: 600; }
.ph-mini { border: 1px solid var(--ph-line); border-radius: 12px; padding: 14px; }
.ph-mini.ph-soft { background: var(--ph-mist); }
.ph-lab { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ph-muted); }

/* Steps, supporting band, trust strip, judgement note, CTA band, questions. */
.ph-step { border-top: 2px solid var(--ph-line); padding-top: 18px; }
.ph-step.ph-first { border-top-color: var(--ph-ink); }
.ph-ruled-item { border-top: 1px solid var(--ph-line); padding-top: 22px; }
.ph-band-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.ph-band-row > :first-child { flex: 1 1 300px; min-width: 0; }
.ph-band-row > :last-child { flex: 2 1 560px; min-width: 0; gap: 28px 40px; }
.ph-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ph-judge { background: var(--ph-mist); border: 1px solid var(--ph-line); border-radius: 18px; padding: 44px; display: flex; flex-wrap: wrap; gap: 40px; }
.ph-judge > * { flex: 1 1 340px; min-width: 0; }
.ph-judge ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; color: var(--ph-body); }
.ph-cta { padding-block: 88px; background: var(--ph-mist); border-top: 1px solid var(--ph-line); }
.ph-cta .ph-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.ph-start-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 40px; }
details.ph-faq { border-top: 1px solid var(--ph-line); }
details.ph-faq:last-child { border-bottom: 1px solid var(--ph-line); }
details.ph-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 17px; color: var(--ph-ink); }
details.ph-faq summary::-webkit-details-marker { display: none; }
details.ph-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--ph-muted); }
details.ph-faq[open] summary::after { content: "\2212"; }
details.ph-faq summary:hover { color: var(--ph-deep); }
details.ph-faq .ph-p { margin: 0 0 20px; max-width: 640px; }
.ph-related { display: flex; flex-wrap: wrap; gap: 12px 28px; }

@media (max-width: 860px) {
  .ph-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .ph-h1 { font-size: 38px; }
  .ph-h1.ph-sm { font-size: 34px; }
  .ph-h2 { font-size: 28px; }
  .ph-h2.ph-band-title { font-size: 26px; }
  .ph-sec { padding-block: 56px; }
  .ph-sec.ph-tight { padding-block: 44px; }
  .ph-sec.ph-top0 { padding-top: 0; }
  .ph-sec.ph-bottom0 { padding-bottom: 0; }
  .ph-split { gap: 36px; }
  .ph-g2, .ph-g3, .ph-g4 { grid-template-columns: minmax(0, 1fr); }
  .ph-g4.ph-keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-lead { font-size: 17px; }
  .ph-card { padding: 22px; }
  .ph-btns.ph-stack { flex-direction: column; }
  .ph-btns.ph-stack .ph-btn { width: 100%; }
  .ph-judge { padding: 26px; gap: 20px; }
  .ph-cta { padding-block: 52px; }
  .ph-shot .ph-g2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ph-site * { transition: none !important; scroll-behavior: auto !important; } }

/* Public header and footer, theme B (D-303). Colours and fonts only from the --ph-* tokens (siteTokens.css).
   The header is fixed and --ph-header-h tall, as before, so pages keep their own top spacing; theme B heroes add it. */
:root { --ph-header-h: 73px; }
@media (max-width: 860px) { :root { --ph-header-h: 65px; } }

.public-v5 { min-height: 100vh; background: var(--ph-white); color: var(--ph-ink); font-family: var(--ph-text); }
.public-v5 main { outline: none; overflow: clip; }
.public-v5 [id] { scroll-margin-top: calc(var(--ph-header-h) + 8px); }
.ph-skip-link { position: fixed; z-index: 2001; top: 10px; left: 12px; padding: 10px 14px; border-radius: 8px; color: var(--ph-white); background: var(--ph-dark); font-size: 13px; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .15s ease; }
.ph-skip-link:focus { transform: translateY(0); color: var(--ph-white); }

/* Header */
/* Header D, "Split" (D-314; owner, 20 Oct 2026: "D is good"): the logo on the left, the menu centred, Log in and the one
   red Book a demo on the right. Quiet labels with a deep-red hover and an ink underline for the current page; Resources
   opens a full-width panel of cards. Warm tones only, never navy. */
.ph-ico { display: inline-flex; line-height: 0; }
.ph-hdr { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--ph-header-h); background: var(--ph-header-glass); border-bottom: 1px solid var(--ph-line); font-family: var(--ph-text); }
.ph-hdr-in { max-width: 1280px; height: calc(var(--ph-header-h) - 1px); margin: 0 auto; padding-inline: max(28px, env(safe-area-inset-left, 0px)) max(28px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.ph-hdr a { text-decoration: none; }
.ph-logo { justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--ph-ink); flex: none; }
.ph-hdr .ph-logo, .ph-hdr .ph-logo:hover { color: var(--ph-ink); }
.ph-nav { display: flex; align-items: center; gap: 28px; }
.ph-hdr .ph-nav > a, .ph-resbtn { color: var(--ph-ink); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 0; font: 500 15px/1.4 var(--ph-text); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; transition: color .15s; }
.ph-hdr .ph-nav > a:hover, .ph-resbtn:hover, .ph-resbtn[aria-expanded="true"] { color: var(--ph-deep); }
.ph-hdr .ph-nav > a[aria-current="page"], .ph-resbtn.ph-cur { font-weight: 700; border-bottom-color: var(--ph-ink); }
.ph-resbtn .ph-ico svg { transition: transform .15s; }
.ph-resbtn[aria-expanded="true"] .ph-ico svg { transform: rotate(180deg); }
.ph-res { position: static; display: inline-flex; }
.ph-resmenu { position: absolute; left: 0; right: 0; top: 100%; background: var(--ph-white); border-bottom: 1px solid var(--ph-line); box-shadow: 0 20px 50px var(--ph-shadow-strong); padding: 22px 28px 18px; z-index: 30; }
.ph-rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
.ph-hdr a.ph-rc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; padding: 14px; border: 1px solid var(--ph-line); border-radius: 12px; color: var(--ph-ink); background: var(--ph-white); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ph-hdr a.ph-rc:hover { border-color: var(--ph-line-strong); box-shadow: 0 10px 24px var(--ph-shadow); transform: translateY(-1px); color: var(--ph-ink); }
.ph-res-ico { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ph-red-tint); color: var(--ph-red); }
.ph-rc b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ph-rc small { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--ph-muted); }
.ph-pop { max-width: 980px; margin: 14px auto 0; font-size: 13px; color: var(--ph-muted); }
.ph-hdr .ph-pop a { color: var(--ph-deep); font-weight: 600; }
.ph-hdr .ph-pop a:hover { color: var(--ph-deep-hover); }
.ph-hdr-right { justify-self: end; display: flex; align-items: center; gap: 8px; flex: none; }
.ph-hdr .ph-login { color: var(--ph-ink); font-size: 15px; font-weight: 500; padding: 11px 13px; border-radius: 10px; }
.ph-hdr .ph-login:hover { background: var(--ph-mist); color: var(--ph-ink); }
.ph-hdr .ph-btn { font-size: 15px; padding: 12px 18px; }
.ph-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; place-items: center; color: var(--ph-ink); cursor: pointer; }
.ph-burger:hover { background: var(--ph-mist); }
.ph-drawer { position: absolute; left: 0; right: 0; top: 100%; background: var(--ph-white); border-bottom: 1px solid var(--ph-line); box-shadow: 0 18px 36px var(--ph-shadow); max-height: calc(100vh - var(--ph-header-h)); overflow: auto; }
.ph-drawer-in { padding: 6px 16px 16px; display: flex; flex-direction: column; }
.ph-hdr a.ph-dr { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--ph-line-soft); font-size: 17px; font-weight: 600; color: var(--ph-ink); }
.ph-hdr a.ph-dr:hover, .ph-hdr a.ph-dr[aria-current="page"] { color: var(--ph-deep); }
.ph-sub { display: flex; flex-direction: column; padding: 14px 4px 4px; }
.ph-sub-title { margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ph-muted); }
.ph-sub .ph-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none; margin: 0; }
.ph-hdr .ph-sub a.ph-rc { align-items: center; padding: 10px; }
.ph-sub .ph-res-ico { grid-row: auto; width: 30px; height: 30px; }
.ph-sub .ph-rc small { display: none; }
.ph-sub .ph-rc b { font-size: 14px; }
.ph-ctas { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.ph-hdr .ph-ctas .ph-btn { font-size: 15px; padding: 12px 18px; }

@media (max-width: 1100px) {
  .ph-nav { gap: 18px; }
  .ph-hdr .ph-login { display: none; }
}
@media (max-width: 860px) {
  .ph-nav { display: none; }
  .ph-burger { display: grid; }
  .ph-hdr-in { display: flex; justify-content: space-between; gap: 10px; padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px)); }
  .ph-hdr .ph-btn { font-size: 13.5px; padding: 10px 12px; }
}
@media (min-width: 861px) { .ph-drawer { display: none; } }
@media (max-width: 420px) {
  .ph-hdr-in { gap: 6px; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
  .ph-logo svg { width: 28px; height: 28px; }
  .ph-hdr-right { gap: 2px; }
  .ph-hdr .ph-btn { font-size: 12.5px; padding: 9px 10px; }
  .ph-burger { width: 40px; height: 40px; }
}

/* Footer */
.ph-ftr { background: var(--ph-dark-glow), var(--ph-dark); color: var(--ph-on-dark); padding-block: 72px 32px; font-family: var(--ph-text); }
.ph-ftr-in { max-width: 1200px; margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px)); }
.ph-ftr-top { display: flex; flex-wrap: wrap; gap: 48px; }
.ph-ftr-brand { flex: 1 1 240px; min-width: 0; }
.ph-ftr-line { margin: 12px 0 0; font-size: 14px; line-height: 1.6; max-width: 280px; }
.ph-ftr-cols { flex: 3 1 620px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ph-ftr-cols > div { display: flex; flex-direction: column; gap: 12px; }
.ph-ftr h2 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ph-white); letter-spacing: 0; text-transform: none; }
footer.ph-ftr a, footer.ph-ftr button { color: var(--ph-on-dark); text-decoration: none; font: 400 14px/1.45 var(--ph-text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
footer.ph-ftr a:hover, footer.ph-ftr button:hover { color: var(--ph-white); text-decoration: underline; }
.ph-ftr a.ph-ftr-dl { display: inline-block; margin-top: 18px; color: var(--ph-white); font-weight: 600; border: 1px solid var(--ph-dark-border); border-radius: 10px; padding: 11px 16px; }
.ph-ftr a.ph-ftr-dl:hover { border-color: var(--ph-white); text-decoration: none; }
.ph-ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--ph-dark-line); font-size: 13px; }
.ph-ftr-copy { color: var(--ph-faint); }
.ph-ftr-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.ph-ftr-legal a, .ph-ftr-legal button { font-size: 13px; }
@media (max-width: 860px) {
  .ph-ftr { padding-block: 40px 28px; }
  .ph-ftr-in { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .ph-ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .ph-ftr-bot { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .public-v5 *, .public-v5 *::before, .public-v5 *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


.ph-hdr-space { height: var(--ph-header-h); }
.ph-resmenu[hidden], .ph-drawer[hidden] { display: none; }
:root { --stick: calc(var(--hdr) + var(--ph-header-h) + env(safe-area-inset-top, 0px)); }
.topbar { top: calc(var(--ph-header-h) + env(safe-area-inset-top, 0px)); }
@media (max-width: 1199px) { .toc-side, body.toc-hidden .toc-side { top: var(--ph-header-h); } }
/* Keep the library's own element styles (h2, a:hover) out of the site's header and footer. */
.ph-hdr, .ph-ftr { color-scheme: light; line-height: 1.5; }
footer.ph-ftr { margin-top: 56px; }
footer.ph-ftr h2 { font-family: var(--ph-text); font-size: 13px; font-weight: 600; line-height: 1.4; border: 0; padding: 0; margin: 0 0 4px; }

/* D-306 (owner: "make this wiki page full width", "the bar just below the menu looks very bad").
   One light look with the site: the library's own dark mode was bluish and sat under the light site header. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #ffffff; --fg: #202122; --muted: #54595d; --surface: #f8f9fa; --surface-head: #e2e8f3; --rule: #a2a9b1;
    --rule-soft: #c8ccd1; --link: #3366cc; --link-hover: #2a4b8d; --active-bg: #eaf0fb; --quote-rule: #c8ccd1;
    --ok-bg: #dbf3ec; --ok-fg: #0f5b45; --ok-row: #f2fbf8; --bad-bg: #fde6e4; --bad-fg: #8f1d14; --bad-row: #fff6f5;
    --open-bg: #fdf1d6; --open-fg: #6b4a00; --open-row: #fffbf1; --na-bg: #eaecf0; --na-fg: #44494d;
    --shadow: rgba(32, 33, 34, .18); color-scheme: light; } }
:root[data-theme="dark"] { --bg: #ffffff; --fg: #202122; --muted: #54595d; --surface: #f8f9fa; --surface-head: #e2e8f3; --rule: #a2a9b1;
    --rule-soft: #c8ccd1; --link: #3366cc; --link-hover: #2a4b8d; --active-bg: #eaf0fb; --quote-rule: #c8ccd1;
    --ok-bg: #dbf3ec; --ok-fg: #0f5b45; --ok-row: #f2fbf8; --bad-bg: #fde6e4; --bad-fg: #8f1d14; --bad-row: #fff6f5;
    --open-bg: #fdf1d6; --open-fg: #6b4a00; --open-row: #fffbf1; --na-bg: #eaecf0; --na-fg: #44494d;
    --shadow: rgba(32, 33, 34, .18); color-scheme: light; }
/* Full width: the three columns use the window with side padding; the article keeps a reading width inside its column. */
:root { --hdr: 46px; --law-pad: clamp(16px, 3vw, 56px); --law-toc: clamp(14.5rem, 15vw, 18rem); --law-rail: clamp(19.5rem, 21vw, 25rem); --law-gap: clamp(28px, 3vw, 56px); }
.topbar-in, .layout { max-width: none; padding-left: max(var(--law-pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--law-pad), env(safe-area-inset-right, 0px)); }
@media (min-width: 1200px) {
  .layout { grid-template-columns: var(--law-toc) minmax(0, 1fr) var(--law-rail); column-gap: var(--law-gap); }
  body.toc-hidden .layout { grid-template-columns: 0 minmax(0, 1fr) var(--law-rail); column-gap: 0; }
  .art-head, .art-body, .layout.index-layout .art-head, .layout.index-layout .art-body { max-width: 56rem; margin-left: auto; margin-right: auto; width: 100%; }
  body:not(.toc-hidden) .tabs { margin-left: calc(var(--law-toc) + var(--law-gap)); }
}
/* One header: the library's bar is now a slim tab strip in the site's look, without a second brand line. */
.topbar { background: var(--ph-white); border-bottom: 1px solid var(--ph-line); box-shadow: 0 6px 16px -14px var(--ph-shadow-strong); }
.topbar .wordmark { display: none; }
.topbar-in { height: var(--hdr); gap: 12px; }
.tabs { align-self: stretch; align-items: stretch; gap: 2px; font: 600 14px/1 var(--ph-text); }
.tabs a { display: inline-flex; align-items: center; padding: 0 12px; color: var(--ph-body); border-bottom: 2px solid transparent; text-decoration: none; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ph-ink); background: var(--ph-mist); text-decoration: none; }
.tabs a[aria-current] { color: var(--ph-ink); border-bottom: 2px solid var(--ph-red); }
.topbar .btn-toc { font: 600 13px/1.2 var(--ph-text); color: var(--ph-ink); background: var(--ph-white); border: 1px solid var(--ph-button-line); border-radius: 8px; padding: 7px 12px; }
.topbar .btn-toc:hover { background: var(--ph-tag); }
.topbar .btn-toc svg { color: var(--ph-deep); }
