/* The Career Table: a kitchen table on a screen. Warm white paper, linen and oak, a clay accent and six theme colours
   that run from the cards to the PDFs. Fraunces for headings, Inter for reading; both self-hosted. Scripts other than
   Latin use the visitor's own system fonts. Everything reads without JavaScript; with it, the deck deals one card at a time. */
@font-face { font-family: 'Inter Variable'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces Variable'; src: url('/assets/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --clay: #B5482A; --clay-ink: #8E3519; --clay-soft: #FBEAE3; --butter: #F5C451; --butter-soft: #FCEFD0;
  --oak: #EADBC4; --linen: #FBF7F1; --paper: #FFFFFF;
  --ink: #1D2540; --ink-2: #3E4459; --muted: #5F6274; --line: #EDE4D6; --line-2: #D9CBB6; --field: #7C7468;
  --navy: #01216E;
  --blue: var(--clay); --blue-ink: var(--ink); --blue-deep: var(--clay-ink); --sky: var(--clay-soft); --sun: var(--butter); --coral: #2E6B57;
  --cream: var(--linen); --grid: var(--line); --ring: rgba(181, 72, 42, .28);
  --maxw: 1240px; --r: 18px;
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --disp: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --shadow: 0 1px 2px rgba(29, 37, 64, .06), 0 22px 44px -26px rgba(60, 40, 20, .38);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17.5px/1.62 var(--sans); overflow-x: clip; }
::selection { background: var(--butter); color: var(--ink); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--clay-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, .h3 { font-family: var(--disp); color: var(--ink); font-weight: 600; text-wrap: balance; margin: 0 0 .45em; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
h1 { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.04; letter-spacing: -.025em; }
h1 em { font-style: italic; color: var(--clay); }
h2 { font-size: clamp(27px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.018em; }
h3, .h3 { font-size: 21px; line-height: 1.28; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.lead { font-size: clamp(19px, 1.6vw, 21.5px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.small { font-size: 15px; }
.muted { color: var(--muted); }
.eyebrow { font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin: 0 0 14px; }
.sec { padding: clamp(52px, 7vw, 96px) 0; }
.sec-tight { padding-top: clamp(28px, 4vw, 44px); }
.sec-linen { background: var(--linen); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 30px; }
.sec-head p { color: var(--ink-2); font-size: 18.5px; margin: 0; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.sec-linen .panel { background: #fff; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-ext { width: 14px; height: 14px; margin-left: 4px; vertical-align: -1px; }
.arr { display: inline-block; transition: transform .3s var(--ease); }
a:hover > .arr, button:hover > .arr { transform: translateX(4px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html:not(.js) .js-only { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 16px var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* ---------- page head ---------- */
.phead { background: linear-gradient(180deg, var(--linen), #fff); border-bottom: 1px solid var(--line); padding: 34px 0 40px; }
.phead h1 { font-size: clamp(36px, 4.6vw, 58px); margin-top: 12px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14.5px; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.langs ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { margin: 0; }
.langs a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.langs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 520px at 85% 30%, var(--linen) 0, #fff 70%); padding: clamp(40px, 6vw, 84px) 0 clamp(52px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.hero-note span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--butter); margin-right: 9px; vertical-align: 1px; }
.hero-deck { position: relative; }

/* ---------- the deck ---------- */
.deck-filters { display: grid; gap: 18px; margin-bottom: 26px; }
.flabel { font: 700 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  font: 600 15px var(--sans); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; text-align: start; }
.chip small { font-weight: 500; color: var(--muted); font-size: 13px; }
.chip i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); flex: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small { color: #E7E2DA; }
.chip-theme[aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.chip-theme[aria-pressed="true"] i { background: #fff; }
html:not(.js) .deck-filters, html:not(.js) .deck-ctl, html:not(.js) .table-top { display: none; }
.table-top { position: relative; display: grid; place-items: center; padding: 34px 20px 40px; border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 0, #F6EBDB 0, var(--oak) 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -18px 40px -30px rgba(80, 50, 20, .35); }
.table-top::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(176deg, rgba(160, 120, 80, .08) 0 2px, transparent 2px 26px); }
.pile { position: absolute; width: min(400px, 78%); aspect-ratio: 5 / 6.4; }
.pile span { position: absolute; inset: 0; border-radius: 22px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.pile span:nth-child(1) { transform: rotate(-7deg) translate(-14px, 8px); background: var(--butter-soft); }
.pile span:nth-child(2) { transform: rotate(5deg) translate(12px, 4px); background: var(--clay-soft); }
.pile span:nth-child(3) { transform: rotate(-2deg); background: var(--linen); }
.face { position: relative; width: min(400px, 78%); aspect-ratio: 5 / 6.4; background: #fff; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: 0 2px 3px rgba(29, 37, 64, .08), 0 30px 50px -30px rgba(60, 40, 20, .55);
  display: flex; flex-direction: column; padding: 0 28px 24px; overflow: hidden; --c: var(--clay); outline: none; }
.face-stripe { height: 14px; margin: 0 -28px 22px; background: var(--c); }
.face-theme { font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 0 0 14px; }
.face-q { font-family: var(--disp); font-size: clamp(22px, 2.4vw, 29px); line-height: 1.28; color: var(--ink); margin: 0; flex: 1; overflow-wrap: anywhere; }
.face-every { align-self: flex-start; background: var(--butter-soft); color: #6B4A00; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 700; margin: 14px 0 8px; }
.face-ages { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.face.deal { animation: deal .55s var(--ease); }
@keyframes deal { from { transform: translateY(26px) rotate(-6deg) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.deck-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.deck-count { width: 100%; text-align: center; margin: 4px 0 0; color: var(--muted); min-height: 1.5em; }
.deck-tip { max-width: 560px; margin: 16px auto 0; background: var(--linen); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--clay)); border-radius: 12px; padding: 12px 16px; font-size: 15.5px; color: var(--ink-2); }
.deck-tip b { color: var(--ink); }
.deck-compact .table-top { padding: 30px 14px 34px; }
.deck-compact .face { width: min(360px, 82%); }
.deck-compact .pile { width: min(360px, 82%); }
.deck-compact .deck-ctl .btn-ghost[data-prev] { display: none; }

/* the full list: always there without JavaScript, filtered with it */
.all-cards > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.all-cards > summary::-webkit-details-marker { display: none; }
.all-cards > summary h2 { margin: 0; }
.all-cards > summary::after { content: "+"; font: 600 28px var(--sans); color: var(--clay); margin-left: auto; }
.all-cards[open] > summary::after { content: "\2212"; }
.clist-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; margin-top: 22px; }
.clist-theme { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 16px; padding: 20px 22px 8px; }
.clist-theme h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.clist-theme h3 i { width: 13px; height: 13px; border-radius: 4px; background: var(--c); }
.clist { margin: 12px 0 10px; padding-inline-start: 1.3em; }
.clist li { margin-bottom: 12px; line-height: 1.45; }
.clist li small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.every { display: inline-block; background: var(--butter-soft); color: #6B4A00; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; font-weight: 700; vertical-align: 1px; }

/* ---------- home blocks ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--linen); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--clay); color: #fff; font: 700 17px var(--sans); margin-bottom: 14px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0 24px 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.theme-tile:hover { transform: translateY(-4px) rotate(-.4deg); color: var(--ink); }
.tt-stripe { height: 10px; margin: 0 -24px 20px; background: var(--c); }
.theme-tile h3 { color: var(--c); font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.theme-tile p { font-family: var(--disp); font-size: 21px; line-height: 1.32; flex: 1; }
.tt-go { font-weight: 700; font-size: 15px; color: var(--clay-ink); }
.age-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.age-tile { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-2); text-decoration: none; color: var(--ink); background: #fff; }
.age-tile:hover { border-color: var(--clay); color: var(--ink); }
.age-tile span { color: var(--muted); font-size: 14.5px; }
.lang-pills { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-pills li { margin: 0; padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-weight: 600; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-cards-col { grid-template-columns: 1fr; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.link-card b { font-family: var(--disp); font-size: 21px; font-weight: 600; line-height: 1.25; }
.link-card span { color: var(--ink-2); font-size: 16px; }
.link-card small { color: var(--clay-ink); font-weight: 600; font-size: 14px; margin-top: auto; }
.link-card:hover { border-color: var(--clay); color: var(--ink); }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fact { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel .facts { grid-template-columns: 1fr; }
.panel .fact { border: 0; padding: 0; background: none; }
.fact strong { display: block; font-family: var(--disp); font-size: 27px; font-weight: 600; color: var(--clay); line-height: 1.15; margin-bottom: 8px; }
.fact p { font-size: 16px; color: var(--ink-2); margin-bottom: 10px; }
.fact figcaption { font-size: 13.5px; color: var(--muted); }

/* ---------- downloads, guide ---------- */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.downloads-stack { grid-template-columns: 1fr; margin-top: 22px; }
.dl { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line-2); text-decoration: none; color: var(--ink); }
.dl:hover { border-color: var(--clay); color: var(--ink); }
.dl .ico { width: 26px; height: 26px; color: var(--clay); margin-top: 2px; }
.dl b { display: block; }
.dl small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 3px; }
.guide-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 100px; background: var(--linen); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.toc ol { margin: 0; padding-inline-start: 1.2em; font-size: 15.5px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose > :first-child, .gsec:first-child h2, .gsec:first-child h3 { margin-top: 0; }
.gsec { padding-top: 6px; }
.gsec + .gsec { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 26px; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 9px; border-left: 2.5px solid var(--clay); border-bottom: 2.5px solid var(--clay); transform: rotate(-45deg); }
.help { margin: 34px 0; background: var(--butter-soft); border: 1px solid #F0DCA4; border-radius: 16px; padding: 20px 22px; }
.help h2 { margin-top: 0; }
.help p { margin: 0; }
.sources { font-size: 15px; }
.summary { background: var(--linen); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 30px; }

/* ---------- languages ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.langs-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 640px; }
.langs-table th, .langs-table td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.langs-table thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--linen); }
.langs-table tbody tr:last-child th, .langs-table tbody tr:last-child td { border-bottom: 0; }
.native { font-size: 19px; font-weight: 600; margin-inline-end: 6px; }
.langs-table small { color: var(--muted); }

/* ---------- schools ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.offer { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--clay); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.offer p { margin: 0; color: var(--ink-2); font-size: 16px; }
.outline { padding-inline-start: 1.3em; }
.outline li { margin-bottom: 12px; }

/* ---------- forms ---------- */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.form-panel h2 { font-size: 28px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: 15.5px; margin-bottom: 16px; }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.opt { font-weight: 400; color: var(--muted); }
.fld input, .fld select, .fld textarea { font: 400 16px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; }
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--ring); border-color: var(--clay); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); margin: 4px 0 18px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--clay); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.msg.ok { color: #1D6B48; }
.msg.err { color: #A3261A; }

/* ---------- FAQ, policy ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 40px 16px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--clay); font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }
.policy h2 { font-size: 24px; margin-top: 1.6em; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }

/* ---------- other languages: system fonts that carry the script, and right to left ---------- */
:lang(zh-Hans) { font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', system-ui, sans-serif; }
:lang(zh-Hant) { font-family: 'Microsoft JhengHei', 'PingFang TC', 'PingFang HK', 'Noto Sans TC', 'Noto Sans CJK TC', system-ui, sans-serif; }
:lang(ar) { font-family: 'Noto Naskh Arabic', 'Segoe UI', 'Geeza Pro', Tahoma, system-ui, sans-serif; }
:lang(pa) { font-family: 'Nirmala UI', Raavi, 'Noto Sans Gurmukhi', 'Mukta Mahee', system-ui, sans-serif; }
:lang(vi) { font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) .face-q, :lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3, :lang(zh-Hant) .face-q,
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .face-q, :lang(pa) h1, :lang(pa) h2, :lang(pa) h3, :lang(pa) .face-q,
:lang(vi) h1, :lang(vi) h2, :lang(vi) h3, :lang(vi) .face-q { font-family: inherit; font-weight: 700; letter-spacing: 0; }
:lang(ar) .face-q, :lang(pa) .face-q { line-height: 1.6; }
:lang(ar) .face-theme, :lang(ar) .flabel, :lang(pa) .face-theme, :lang(zh-Hans) .face-theme, :lang(zh-Hant) .face-theme { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .ticks li::before { transform: rotate(-45deg) scaleX(-1); }
[dir="rtl"] .deck-tip { border-left: 1px solid var(--line); border-right: 5px solid var(--c, var(--clay)); }
[dir="rtl"] .all-cards > summary::after { margin-left: 0; margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .guide-grid { grid-template-columns: 1fr; }
  .theme-grid, .link-cards { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 17px; }
  .theme-grid, .link-cards, .steps, .offer-grid, .downloads, .fld-2, .age-grid { grid-template-columns: 1fr; }
  .clist-wrap { grid-template-columns: 1fr; }
  .table-top { padding: 24px 10px 28px; border-radius: 20px; }
  .face, .pile, .deck-compact .face, .deck-compact .pile { width: 88%; aspect-ratio: 5 / 5.8; }
  .face { padding: 0 20px 18px; }
  .face-stripe { margin: 0 -20px 18px; }
  .deck-ctl .btn { flex: 1 1 auto; }
  .panel, .form-panel { padding: 22px; }
  .chip { padding: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .deck-filters, .deck-ctl, .table-top, .hero-deck, .downloads, .toc, .btns { display: none !important; }
  .all-cards[open] > summary::after, .all-cards > summary::after { content: none; }
  body { font-size: 12pt; }
  .sec { padding: 12pt 0; }
}
