/* Shared type tokens (owner decision "option B", 2026-11): the same values as the education website.
   Font: Calibri, then Carlito (metric-compatible, SIL OFL; used when installed, not bundled to keep pages light), then Segoe UI / Arial,
   with Thai, Chinese and Korean fallbacks. Calibri runs small, so body is 16px with line-height 1.55.
   Headings: main page titles stay white; section headings bright yellow bold 21px with a dot; subheadings light yellow bold with a sky dot.
   Light theme uses dark amber so contrast passes WCAG AA (checked by test/type-tokens.test.mjs). Loaded LAST on every page. */
:root {
  --xag-font-stack: Calibri, Carlito, "Segoe UI", Arial, "Noto Sans Thai", "Leelawadee UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --xag-font-display: var(--xag-font-stack); /* xag-theme.css is a pinned copy of the education file: override here, do not edit it */
  --xag-font-text: var(--xag-font-stack);
  --font-display: var(--xag-font-stack);
  --font-text: var(--xag-font-stack);
  --xag-body-size: 1rem;
  --xag-body-line: 1.55;
  --xag-h-section: #fbbf24;
  --xag-h-section-size: 1.3125rem;
  --xag-h-sub: #fde68a;
  --xag-h-sub-size: 1.125rem;
  --xag-h-dot: #38bdf8;
}
html[data-theme="light"] {
  --xag-h-section: #78350f;
  --xag-h-sub: #92400e;
  --xag-h-dot: #0369a1;
}
html[data-home-theme="v2"][data-theme="dark"] { --font-display: var(--xag-font-stack); --font-text: var(--xag-font-stack); }

html body { font-size: var(--xag-body-size); line-height: var(--xag-body-line); }
html body :is(p, li, td, th, dd, label) { line-height: var(--xag-body-line); }

/* main page titles stay white (ink) */
html .pro h1, html .pr h1, html .legal h1 { color: var(--ink); }

/* section headings */
html :is(.pro, .pr, .legal) h2,
html :is(.ask-title, .welcome-title, .cform-title, .edu-recruit-title, .sw-title, .ps-title, .more-tools) {
  color: var(--xag-h-section); font-weight: 700; font-size: var(--xag-h-section-size); line-height: 1.3; letter-spacing: 0;
}
html :is(.pro, .pr, .legal) h2::before,
html :is(.ask-title, .welcome-title, .cform-title, .edu-recruit-title, .sw-title, .ps-title)::before {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-inline-end: 0.5em; vertical-align: 0.05em;
  border-radius: 50%; background: currentColor;
}

/* subheadings */
html :is(.pro, .pr, .legal) h3,
html :is(.principle h3, .focus-title, .family strong, .card-name, .focus-pick strong, .pro-table caption) {
  color: var(--xag-h-sub); font-weight: 700; font-size: var(--xag-h-sub-size); line-height: 1.3; letter-spacing: 0;
}
html :is(.pro, .pr, .legal) h3::before,
html :is(.principle h3, .focus-title, .family strong, .card-name, .focus-pick strong)::before {
  content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-inline-end: 0.5em; vertical-align: 0.08em;
  border-radius: 50%; background: var(--xag-h-dot);
}
html :is(.pro, .pr, .legal) :is(h2, h3), html :is(.focus-title, .card-name) { text-wrap: balance; overflow-wrap: break-word; }

/* ---- Calibri for every control (buttons, fields and injected widgets inherit; the browser default would be system-ui) ---- */
html :is(button, input, select, textarea, optgroup, .xag-as-btn, .xag-as-panel, .xag-as-panel *) { font-family: var(--xag-font-stack); }

/* ---- Pill shape (owner standard, --xag-btn-radius 999px): every button and button-like link; menu rows, form fields and text links keep their shape ---- */
:root { --xag-btn-radius: 999px; --xag-card-radius: 28px; }
html :is(.skip, .flag, .pr-btn, .pr-btn-alt, .btn-box, .btn, .hero-cta, .cards-more-link, .door-all, .chip-btn, .home-btn, .pro-btn, a[role="button"], input[type="submit"], input[type="button"]) {
  border-radius: var(--xag-btn-radius);
}
html .flag { padding-inline: 6px; }
html .float-link { border-radius: var(--xag-btn-radius) 0 0 var(--xag-btn-radius); }
html .paid-link { border-radius: var(--xag-btn-radius); padding-inline: 1.5rem; }
/* big clickable cards: too tall for a true pill, so a generous round corner from the same token family */
html :is(.card-link, .q-panel, .family, .door) { border-radius: var(--xag-card-radius); }
html .card-link .card-shot { border-radius: var(--xag-card-radius) var(--xag-card-radius) 0 0; }

/* ---- AA contrast for the green Live badge (dark green text on light green; the home theme v2 rule had turned the fill navy: 1.35:1) ---- */
html .chip.chip-live,
html[data-home-theme="v2"][data-theme="dark"] .card-link .chip.chip-live { color: #04210f; background: #7ee2b8; border-color: #7ee2b8; }

/* ---- no hangers: short link buttons stay on one line ---- */
html :is(.home-btn, .back-btn, .strip-link, .cards-more-link, .hero-cta) { white-space: nowrap; }

/* ---- standard bullets and disclaimers section (same look as the education site: round marker, 24px indent, one idea per bullet) ---- */
.xag-bullets { list-style: none; margin: 0; padding: 0 0 0 24px; }
.xag-bullets li { position: relative; margin: 0 0 8px; }
.xag-bullets li::before { content: ""; position: absolute; left: -16px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--xag-bullet-c, var(--xag-h-dot)); }
.xag-disclaimers { max-width: 1320px; margin: 32px auto 16px; padding: 0 var(--gutter, 16px); text-align: left; }
.xag-disclaimers h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--xag-h-sub); }
.xag-disclaimers h2::before { content: none; }
.xag-disclaimers svg { flex: none; color: var(--xag-h-dot); }
.xag-disclaimers .xag-bullets { font-size: .9rem; opacity: .92; }
