/* The site's own additions to the November 2026 design export (tokens.css, interactions.css, site.css): the pieces
   the export leaves to the stack (privacy choices bound to the consent bootstrap, the Get Started pop-up, form
   messages, Studio rich text, blog card artwork, the article newsletter block). Values come from tokens.css only.
   Rules sit under .yn-root where they meet the export's scoped layout classes. */

/* ---------- Privacy choices. The <head> bootstrap sets data-consent-mode and data-consent-pending on <html>. ---------- */
html[data-consent-mode="opt-out"] [data-consent-for]:not([data-consent-for~="opt-out"]),
html[data-consent-mode="opt-in"] [data-consent-for]:not([data-consent-for~="opt-in"]),
html[data-consent-mode="gpc"] [data-consent-for]:not([data-consent-for~="gpc"]) { display: none !important; }
html:not([data-consent-pending]) .consent-banner { display: none !important; }
.yn-root .consent-link { padding: 0 4px; min-height: 36px; background: none; border: 0; color: var(--dark-text); font: 600 var(--type-cta-sm)/1.2 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-gpc { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--radius-md); background: var(--mint); color: var(--care-ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.consent-gpc svg { flex: none; }

/* Native <dialog>s (privacy choices, Get Started) as the export's modal: a scrim and a paper sheet. */
.yn-dialog { width: min(520px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.yn-dialog::backdrop { background: rgba(27, 27, 44, .48); }
.yn-dialog > div { max-height: calc(100dvh - 32px); }
html:has(.yn-dialog[open]) { overflow: hidden; }
.yn-root .yn-btn-icon.yn-modal-close:hover { background: var(--iris); color: #fff; border-color: var(--iris); }

/* The design's switch (44×26 pill, iris when on) on a native checkbox. */
.yn-switch-input { appearance: none; flex: 0 0 auto; position: relative; width: 44px; height: 26px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-quiet); cursor: pointer; transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease; }
.yn-switch-input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(27, 27, 44, .18); transition: left var(--dur-ui) var(--ease-out); }
.yn-switch-input:checked { background: var(--iris); border-color: var(--iris); }
.yn-switch-input:checked::after { left: 21px; }
.yn-switch-input:disabled { opacity: .45; cursor: not-allowed; }
.yn-switch-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ---------- Get Started pop-up (components/GetStarted.tsx, js/get-started.js) ---------- */
.gs-sheet { position: relative; overflow-y: auto; box-sizing: border-box; padding: 32px 32px 28px; border-radius: var(--radius-xl); background: var(--paper); box-shadow: 0 30px 80px rgba(27, 27, 44, .28); }
.gs-form, .gs-step { display: flex; flex-direction: column; gap: 22px; }
.gs-head { display: flex; flex-direction: column; gap: 10px; }
.gs-eyebrow, .gs-head h2 { padding-right: 44px; }
.gs-eyebrow { font-size: 12px; font-weight: 600; color: var(--iris-deep); }
.gs-head h2, .gs-success h2 { margin: 0; font-size: var(--type-card-title); line-height: 1.2; font-weight: 500; letter-spacing: var(--track-heading); }
.gs-success h2 span { color: var(--iris); }
.gs-head h2:focus, .gs-success h2:focus { outline: none; }
.gs-head p, .gs-success p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.gs-progress { display: flex; gap: 6px; padding-top: 4px; }
.gs-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background-color var(--dur-color) ease; }
.gs-bar.is-done { background: var(--iris); }
.gs-fields { display: flex; flex-direction: column; gap: 14px; }
.gs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gs-field > label, .gs-field > legend { display: flex; justify-content: space-between; gap: 12px; padding: 0; font-size: 12px; font-weight: 600; color: var(--ink); }
.gs-field > legend { width: 100%; margin-bottom: 6px; }
.yn-field-hint { font-weight: 500; color: var(--muted); }
.gs-field .yn-field { box-sizing: border-box; width: 100%; min-height: var(--control-h); padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: 14px; }
.gs-field select.yn-field { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D5F70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 12px; }
.gs-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gs-radio { display: flex; align-items: center; gap: 10px; min-height: var(--control-h); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--white); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease; }
.gs-radio input { margin: 0; accent-color: var(--iris); }
.gs-radio:has(input[aria-invalid="true"]) { border-color: var(--error); }
.yn-field-msg:empty { display: none; }
.yn-root .yn-field-msg[data-error="true"], .gs-field .yn-field-msg { font-size: 11px; line-height: 1.5; color: var(--error); }
.gs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.yn-root .gs-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--control-h); padding: 0 var(--control-pad-x); border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--button-bg); color: var(--button-fg); font: 600 var(--type-cta)/1.2 var(--font-sans); cursor: pointer; }
.yn-root .gs-back { padding: 0; background: none; border: 0; color: var(--ink); font: 600 var(--type-cta)/1.4 var(--font-sans); cursor: pointer; }
.gs-trust { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--care-ink); }
.gs-status:empty { display: none; }
.gs-status { margin: 0; font-size: 12px; line-height: 1.6; color: var(--error); }
.gs-legal { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.yn-root .gs-legal a { color: var(--ink); text-underline-offset: 3px; }
.gs-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.gs-success-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); }
@media (max-width: 640px) { .gs-sheet { padding: 28px 20px 24px; border-radius: var(--radius-tabbar); } }

/* ---------- Forms on the page: status lines and the newsletter signups ---------- */
.yn-form-status:empty { display: none; }
.yn-root .yn-form-status { margin: 0; font-size: 12px; color: var(--error); }
.yn-root .yn-signup-status:empty { display: none; }
.yn-root .yn-signup-status[data-error] { color: #F6C6CC; }
.yn-root .yn-signup[data-tone="light"] .yn-signup-status { font-size: 12px; color: var(--care-ink); }
.yn-root .yn-signup[data-tone="light"] .yn-signup-status[data-error] { color: var(--error); }
.yn-social { display: flex; gap: 8px; }

/* The article newsletter block: the export's quiet card with a light signup row. */
.yn-root .yn-newsletter { gap: 10px; }
.yn-newsletter-form { display: flex; flex-direction: column; gap: 8px; width: 100%; padding-top: 6px; }
.yn-signup-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.yn-root .yn-signup-field { flex: 1 1 220px; box-sizing: border-box; min-height: var(--control-h); padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: 14px; }
.yn-root .yn-signup-button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h); padding: 0 var(--control-pad-x); border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--button-bg); color: var(--button-fg); font: 600 var(--type-cta)/1.2 var(--font-sans); cursor: pointer; }

/* ---------- Studio rich text (legal sections, article bodies), matching the export's document classes ---------- */
.yn-root .yn-doc > p, .yn-root .yn-doc > ul, .yn-root .yn-doc > ol, .yn-root .yn-doc > blockquote { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.yn-root .yn-doc > ul, .yn-root .yn-doc > ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.yn-root .yn-doc > h3 { margin: 8px 0 0; font-size: var(--type-step-title); line-height: 1.3; font-weight: 500; letter-spacing: var(--track-step); }
.yn-root .yn-doc > h4 { margin: 4px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; }
.yn-root .yn-doc > blockquote { padding: 18px 22px; border-radius: var(--radius-tabbar); background: var(--surface-quiet); color: var(--ink); }
.yn-root .yn-doc > blockquote p { margin: 0; }
.yn-root .yn-doc > hr { width: 100%; height: 0; margin: 8px 0; border: 0; }
.yn-root .yn-doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--iris-border); text-underline-offset: 3px; }
.yn-root .yn-doc a:hover { color: var(--iris-deep); }
.yn-root .yn-article > p, .yn-root .yn-article > ul, .yn-root .yn-article > ol { font-size: 15px; }
.yn-root .yn-faq-answer.yn-doc { display: flex; flex-direction: column; gap: 10px; }
.yn-root .yn-faq-answer.yn-doc > p { font-size: inherit; color: inherit; }
/* Article tables: the export's bordered, scrolling table. */
.yn-root .yn-doc .article-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.yn-root .yn-doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.yn-root .yn-doc caption { padding: 12px 16px 0; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); }
.yn-root .yn-doc th { padding: 12px 16px; text-align: left; background: var(--surface-quiet); font-weight: 600; }
.yn-root .yn-doc td { padding: 12px 16px; color: var(--muted); line-height: 1.6; vertical-align: top; }
.yn-root .yn-doc td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- Blog: category artwork on cards, and the plain-link pagination ---------- */
.yn-root .yn-card-image { display: block; height: 180px; }
.yn-root .yn-card-image[data-featured] { height: 280px; }
.yn-root ol.c-415wai { list-style: none; margin: 0; padding: 0; }
.yn-root .yn-page-link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--type-cta); font-weight: 600; color: var(--ink); text-decoration: none; }
/* The live category labels are longer than the export's, so with the header expanded (above 860px) the tabs take
   --space-8 side padding, underline inset to match, and the whole strip fits from 1024px with room for two-digit
   counts. Narrower screens keep the export's padding and scroll the strip (site.js centres the current tab). */
@media (min-width: 861px) {
  .yn-root .yn-tabs .c-a8j14q { padding: 0 var(--space-8); }
  .yn-root .yn-tabs .c-rsna7g { left: var(--space-4); right: var(--space-4); }
}

/* ---------- Landing pages: the sprite is symbols only ---------- */
.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The header wrapper (z-index 50) is the open phone menu's stacking context; lift it so the menu covers the consent card. */
.yn-root .c-yr4h50:has(#yn-mobile-menu:not([hidden])) { z-index: var(--z-mobile-menu); }

/* ---------- Responsive fixes to the export (audit 2026-11-07) ---------- */
/* Sidebars beside a document (contents, legal switcher, FAQ topics, FAQ band heading) stay sticky only while they sit
   beside it; once the columns stack (below ~860px) a sticky sidebar would paint over the text that follows. */
@media (max-width: 900px) {
  .yn-root .c-jl7wc4, .yn-root .c-33eu6, .yn-root .c-d01g5e { position: static; }
}
/* Vertical heroes: the three phones (568px together) need more than their 420px column, so between the stacked
   layout and the wide desktop the row stacks too, phones centred under the copy, instead of covering it. */
@media (max-width: 1120px) {
  .yn-root .c-10ej8s5 > .c-1piejgz, .yn-root .c-10ej8s5 > .c-1vnhdjf { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .yn-root .c-1vnhdjf .c-we55xi { width: min(200px, 60vw); }
}
/* Onboarding cards stacked (below 1060px): the step heading takes the full card width including its padding. */
@media (max-width: 1060px) { .yn-root .yn-step-head { box-sizing: border-box; } }
