/* aleman5000.com — tokens from the app theme (Color.kt, Type.kt) */
:root {
  --paper: #FAF8F3;
  --ink: #1C1B18;
  --muted: #4A4739;
  --line: #EDE9DF;
  --line-strong: #D6D0C2;
  --cobalt: #2D4FDE;
  --cobalt-soft: #DDE3FF;
  --cobalt-deep: #00174E;
  --cobalt-light: #AEBDFF;
  --der: #2D4FDE;
  --die: #D62B4C;
  --das: #17835A;
  --der-soft: #DDE3FF;
  --die-soft: #FFDCE2;
  --das-soft: #C7F0DC;
  --der-light: #8FA5FF;
  --die-light: #FF7A93;
  --das-light: #57D6A0;
  --yellow-soft: #FFE9AE;
  --yellow-deep: #2D1F00;
  --night: #1C1B18;
  --night-panel: #1D1D23;
  --night-line: #46464F;
  --night-text: #EAE7DF;
  --night-muted: #C8C5BB;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Roboto, system-ui, sans-serif;
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-deep); }
h1, h2, h3 { margin: 0; font-family: var(--display); }
p { margin: 0; }
i.bar { display: block; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.der { color: var(--der); } .die { color: var(--die); } .das { color: var(--das); }

/* ---------- Brand + header ---------- */
.brand { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; }
.brand b { font: 800 13px/1 var(--display); letter-spacing: .24em; color: var(--cobalt); }
.brand span { display: flex; gap: 4px; }
.brand span i { width: 22px; height: 4px; border-radius: 2px; }
.brand span i:nth-child(1) { background: var(--der); }
.brand span i:nth-child(2) { background: var(--die); }
.brand span i:nth-child(3) { background: var(--das); }
.brand--night b { color: var(--cobalt-light); font-size: 12px; }
.brand--night span i:nth-child(1) { background: var(--der-light); }
.brand--night span i:nth-child(2) { background: var(--die-light); }
.brand--night span i:nth-child(3) { background: var(--das-light); }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.site-nav { display: flex; align-items: center; gap: 28px; font: 400 14px/1 var(--body); color: var(--muted); }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.site-nav .btn { padding: 11px 20px; font-size: 14px; }

/* ---------- Buttons + chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 100px; border: 0; background: var(--cobalt); color: #fff; font: 500 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; background: #2340c4; }
.btn .material-icons { font-size: 20px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); padding: 16px 24px; font-size: 15px; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--light { background: var(--cobalt-light); color: var(--cobalt-deep); }
.btn--light:hover { background: #c3cfff; color: var(--cobalt-deep); }
.site-nav .btn, .site-nav .btn:hover { color: #fff; }

.chip { display: inline-flex; padding: 7px 14px; border-radius: 100px; font: 500 12px/1 var(--body); }
.chip--cobalt { background: var(--cobalt-soft); color: var(--cobalt-deep); }

.eyebrow { font: 500 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.kicker { font: 800 14px/1 var(--display); }

.h-section { font: 800 44px/1.04 var(--display); letter-spacing: -.02em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- Landing hero (1a) ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; padding-top: 56px; }
.hero__copy { padding-bottom: 64px; }
.hero h1 { margin-top: 22px; font: 800 76px/.96 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero .lede { margin-top: 24px; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hero__phones { position: relative; height: 620px; align-self: end; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); }
.hero__phones .phone-slot:nth-child(1) { position: absolute; left: 250px; top: 70px; --s: .78; opacity: .96; }
.hero__phones .phone-slot:nth-child(2) { position: absolute; left: 40px; top: 10px; --s: .86; }

/* ---------- Levels ---------- */
.levels { padding-block: 80px 72px; border-top: 1px solid var(--line); }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.split-head .h-section { max-width: 14ch; }
.split-head p { max-width: 46ch; color: var(--muted); }
.level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.level { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 21px 21px 23px; display: flex; flex-direction: column; gap: 6px; }
.level--first { border: 2px solid var(--cobalt); padding: 20px 20px 22px; }
.level__name { font: 800 15px/1 var(--display); color: var(--cobalt); }
.level__range, .level__es { font-size: 13px; line-height: 1.4; color: var(--muted); }
.level__es { font-size: 14px; }
.level__word { margin-top: 28px; font: 800 26px/1.1 var(--display); }

/* ---------- Daily goal ---------- */
.goal { background: var(--cobalt-soft); color: var(--cobalt-deep); }
.goal .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; padding-block: 80px; }
.goal h2 { margin-top: 14px; }
.goal p { margin-top: 18px; max-width: 40ch; }
.goal-card { background: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 22px; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 23, 78, .1); }
.goal-card__head { display: flex; align-items: flex-end; gap: 16px; }
.goal-card__title { font: 700 28px/1.1 var(--display); }
.goal-card__sub { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.goal-card__count { font: 800 48px/1 var(--display); letter-spacing: -.02em; color: var(--cobalt); }
.goal-card__count small { font-size: 28px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tile { height: 84px; border-radius: 16px; background: var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0 4px; }
.tile b { font: 700 13px/1 var(--body); }
.tile span { font: 700 20px/1.1 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile--der { background: var(--der-soft); } .tile--der b { color: var(--der); }
.tile--die { background: var(--die-soft); } .tile--die b { color: var(--die); }
.tile--das { background: var(--das-soft); } .tile--das b { color: var(--das); }
.tile--next { background: none; border: 3px dashed var(--cobalt); font: 700 22px/1 var(--display); }
.per-day { display: flex; align-items: center; gap: 10px; }
.per-day > span:first-child { flex: 1; font: 500 15px/1 var(--body); color: var(--muted); }
.pill { min-width: 60px; height: 40px; border-radius: 20px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font: 700 17px/1 var(--display); }
.pill--on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 72px 80px; }
.features .material-icons { font-size: 28px; color: var(--cobalt); }
.features h3 { margin-top: 14px; font: 700 22px/1.2 var(--display); }
.features p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); }
.site-footer .wrap { padding-block: 64px 32px; }
.site-footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.site-footer__cta h2 { font: 800 52px/1 var(--display); letter-spacing: -.025em; max-width: 16ch; }
.cta-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-stack small { font-size: 12px; line-height: 1; color: var(--night-muted); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--night-line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; font: 400 13px/1 var(--body); color: var(--night-muted); }
.site-footer nav a { color: inherit; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }

.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 44px; }
.cta-band h2 { font: 800 32px/1.1 var(--display); letter-spacing: -.02em; }
.cta-band--cobalt { background: var(--cobalt-soft); color: var(--cobalt-deep); }
.cta-band--night { background: var(--night); color: var(--night-text); }

/* ---------- Page heads (1d, 1e) ---------- */
.page-head { padding-block: 56px 40px; }
.page-head h1 { font: 800 64px/1 var(--display); letter-spacing: -.03em; max-width: 16ch; }
.page-head .lede { margin-top: 22px; max-width: 60ch; }

/* ---------- Tipos de pregunta (1d) ---------- */
.group-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font: 500 14px/1 var(--body); }
.group-chips a { padding: 9px 14px; border-radius: 100px; text-decoration: none; }
.qblock .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; padding-block: 56px; }
.qblock--line { border-top: 1px solid var(--line); }
.qblock--line .wrap { padding-block: 48px; }
.qblock--night { background: var(--night); color: var(--night-text); }
.qblock--night .wrap { grid-template-columns: minmax(0, 1fr) 440px; }
.qblock--yellow { background: var(--yellow-soft); color: var(--yellow-deep); }
.qblock--yellow .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
.qblock--green { background: var(--das-soft); color: #00291A; }
.qblock .kicker + * { margin-top: 22px; }
.qblock h2 { font: 800 40px/1.08 var(--display); letter-spacing: -.02em; }
.qblock .kicker, .grammar .kicker { font: 800 14px/1 var(--display); letter-spacing: 0; }
.qblock--night .kicker + h2 { margin-top: 16px; }
.qblock--night p { margin-top: 14px; max-width: 44ch; color: var(--night-muted); }
.qcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.qblock--green .qcard { background: var(--paper); border: 0; }
.qcard h3 { font: 700 20px/1.2 var(--display); }
.qcard p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.qnote { margin-top: 18px; font-size: 14px; }
.qblock--line .qnote { color: var(--muted); }
.qlist { display: flex; flex-direction: column; gap: 16px; }
.qlist h3 { font: 700 20px/1.2 var(--display); }
.qlist p { margin-top: 6px; max-width: 46ch; font-size: 15px; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; font: 700 14px/1 var(--display); }
.xp-chips span { padding: 9px 13px; border-radius: 100px; background: #fff; }
/* Phones are cropped below their last answer; the fade makes the cut read as intentional. */
.phone-crop { overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); }
.phone-crop--560 { height: 690px; } .phone-crop--520 { height: 520px; } .phone-crop--540 { height: 540px; } .phone-crop--500 { height: 610px; }
.phone-row { display: flex; gap: 20px; }
.grammar { padding-block: 56px 64px; border-top: 1px solid var(--line); }
.grammar .qcards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.grammar .qcard h3 { font-size: 19px; }
.grammar .qcard p { font-size: 14px; }
.grammar .phone-row { justify-content: space-around; margin-top: 40px; }

/* der/die/das demo */
.demo { background: var(--night-panel); border: 1px solid var(--night-line); border-radius: 22px; padding: 28px; }
.demo__q { font: 500 14px/1 var(--body); color: var(--cobalt-light); }
.demo__word { margin: 14px 0 22px; font: 800 48px/1 var(--display); }
.demo__btns { display: flex; gap: 10px; }
.demo__btns button { flex: 1; height: 60px; border-radius: 16px; font: 700 22px/1 var(--display); cursor: pointer; background: transparent; border: 1px solid var(--night-line); }
.demo__btns button[data-a="der"] { color: var(--der-light); }
.demo__btns button[data-a="die"] { color: var(--die-light); }
.demo__btns button[data-a="das"] { color: var(--das-light); }
.demo__btns button:not(:disabled):hover { border-color: var(--night-muted); }
.demo__btns button:disabled { cursor: default; }
.demo__btns button.is-correct { border: 2px solid #7BD98A; background: rgba(123, 217, 138, .16); }
.demo__btns button.is-wrong { border: 2px solid var(--die-light); color: var(--die-light); }
.demo__btns button.is-dim { border-color: #2A2A31; color: #6A6A72; }
.demo__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; min-height: 40px; }
.demo__foot span { font-size: 14px; line-height: 1.5; color: var(--night-muted); }
.demo__foot button { flex: none; padding: 11px 18px; border-radius: 100px; border: 0; background: var(--cobalt-light); color: var(--cobalt-deep); font: 500 14px/1 var(--body); cursor: pointer; }

/* ---------- Palabras hub (1e) ---------- */
.hub-tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; }
.search { flex: 1; max-width: 420px; min-width: 240px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; }
.search:focus-within { border-color: var(--cobalt); }
.search .material-icons { font-size: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 16px/1 var(--body); color: var(--ink); }
.seg { display: flex; height: 44px; border: 1px solid var(--line-strong); border-radius: 100px; overflow: hidden; max-width: 100%; }
.seg button { border: 0; padding: 0 16px; font: 500 14px/1 var(--body); cursor: pointer; background: transparent; color: var(--ink); white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--das-soft); color: #00291A; }
.hub-summary { font-size: 14px; line-height: 1; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 72px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; align-items: flex-end; gap: 16px; }
.cat:hover { border-color: var(--cobalt); box-shadow: 0 2px 10px rgba(45, 79, 222, .12); }
.cat__body { flex: 1; min-width: 0; }
.cat__label { font: 700 18px/1.25 var(--display); }
.cat__count { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cat__bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.cat__bars i { display: block; width: 7px; border-radius: 2px; background: var(--cobalt); }
.cat__bars i.off { background: var(--line); }
.cat-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); }

/* ---------- Phone mockup (AppScreen) ---------- */
.phone-slot { --s: 1; zoom: var(--s); flex: none; }
.phone { width: 380px; height: 800px; padding: 10px; border-radius: 48px; background: #1C1B18; box-shadow: 0 40px 80px -40px rgba(28, 27, 24, .55), inset 0 0 0 1.5px #3a3933; }
.phone__screen { position: relative; width: 360px; height: 780px; border-radius: 38px; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--body); display: flex; flex-direction: column; line-height: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero h1 { font-size: 60px; }
  .hero__phones .phone-slot:nth-child(1) { left: 200px; }
  .hero__phones .phone-slot:nth-child(2) { left: 0; }
  .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grammar .qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qblock--yellow .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__copy { padding-bottom: 0; }
  .hero h1 { font-size: 48px; }
  .hero__phones { height: 460px; }
  .hero__phones .phone-slot:nth-child(1) { left: 50%; margin-left: -20px; top: 60px; --s: .6; }
  .hero__phones .phone-slot:nth-child(2) { left: 50%; margin-left: -200px; top: 10px; --s: .66; }
  .h-section, .qblock h2 { font-size: 34px; }
  .split-head, .site-footer__cta, .cta-band .wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
  .levels { padding-block: 56px; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .goal-card { padding: 22px; border-radius: 22px; }
  .tile { height: 64px; border-radius: 12px; }
  .tile span { font-size: 15px; }
  .tile b { font-size: 11px; }
  .features { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .site-footer__cta h2 { font-size: 38px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 42px; }
  .qblock .wrap, .qblock--night .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .qblock .phone-crop { justify-self: center; }
  .phone-row { overflow-x: auto; max-width: 100%; }
  .grammar .phone-row { justify-content: flex-start; }
  .cat-grid { grid-template-columns: 1fr; }
  .seg { overflow-x: auto; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 40px; }
  .hero__phones { height: 400px; }
  .hero__phones .phone-slot:nth-child(1) { display: none; }
  .hero__phones .phone-slot:nth-child(2) { margin-left: -125px; }
  .level-grid, .qcards, .grammar .qcards { grid-template-columns: 1fr; }
  .tiles { gap: 6px; }
  .per-day { flex-wrap: wrap; }
  .per-day > span:first-child { flex-basis: 100%; }
  .demo { padding: 20px; }
  .demo__word { font-size: 38px; }
  .site-nav .btn { padding: 10px 14px; font-size: 13px; }
}

/* ---------- Content pages (tools/build.py): categories, guide, legal ---------- */
[hidden] { display: none !important; }
.crumbs { padding-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: inherit; }
.page-head .chip + h1 { margin-top: 22px; }
.page-head__jump { margin-top: 18px; font-size: 15px; }
.page-head__meta { margin-top: 14px; font-size: 13px; color: var(--muted); }

.prose-block { padding-block: 8px 48px; }
.prose-block > h2 { font: 800 32px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.prose-block > p { max-width: 70ch; color: var(--muted); }
.prose-block h3 { margin: 32px 0 12px; font: 700 20px/1.25 var(--display); }
.prose-block h3 span { font: 400 14px/1 var(--body); color: var(--muted); }
.prose-block .small, .doc .small { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.prose-block > .scroll, .prose-block > .two { margin-top: 18px; }
.art { font-weight: 700; }
.art.der { color: var(--der); } .art.die { color: var(--die); } .art.das { color: var(--das); }

.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.scroll table { width: 100%; border-collapse: collapse; font-size: 15px; }
.scroll th { position: sticky; top: 0; background: #fff; text-align: left; font: 500 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line-strong); }
.scroll td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.scroll tbody tr:first-child td { border-top: 0; }
.scroll td small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.scroll .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.words { min-width: 560px; }
.words td:first-child b { font: 700 17px/1.3 var(--display); }
.words td:last-child { width: 1%; white-space: nowrap; }
.words--rules td:last-child, .words--rules td { white-space: normal; width: auto; }
.cefr { display: inline-block !important; margin-top: 6px !important; padding: 2px 7px; border-radius: 100px; background: var(--line); font: 500 11px/1.4 var(--body) !important; color: var(--muted); }
.tbl { width: 100%; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card-k { font: 700 16px/1.3 var(--display); margin-bottom: 6px; }
.card p + p { font-size: 15px; color: var(--muted); }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.faq__item h3 { margin: 0; font: 700 18px/1.3 var(--display); }
.faq__item p { margin-top: 8px; font-size: 15px; color: var(--muted); }

a.cat { color: inherit; text-decoration: none; }
.cat__label, .cat__count { display: block; }
.cat-grid--related { padding-bottom: 0; }
.cat-grid--related .cat { align-items: flex-start; }
.cat-grid + .small { margin-top: 18px; }

.art-split { display: flex; height: 56px; border-radius: 16px; overflow: hidden; font: 500 15px/1 var(--body); }
.art-split span { display: flex; align-items: center; gap: 6px; padding: 0 16px; white-space: nowrap; min-width: 0; }
.art-split b { font: 800 18px/1 var(--display); }
.art-split__der { background: var(--der-soft); color: var(--der); }
.art-split__die { background: var(--die-soft); color: var(--die); }
.art-split__das { background: var(--das-soft); color: var(--das); }

.doc { padding-bottom: 72px; }
.doc > * { max-width: 820px; }
.doc h2 { margin: 40px 0 12px; font: 800 26px/1.15 var(--display); }
.doc h3 { margin: 24px 0 8px; font: 700 18px/1.3 var(--display); }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .two { margin-bottom: 8px; }
.doc .scroll { margin-top: 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 14px 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; color: var(--muted); }

.home-faq { padding-block: 72px 80px; border-top: 1px solid var(--line); }
.home-faq .h-section { margin-bottom: 28px; }

@media (max-width: 860px) {
  .prose-block > h2 { font-size: 26px; }
  .two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd + dt { margin-top: 10px; }
  .art-split span { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 560px) {
  .words:not(.words--rules) { min-width: 0; }
  .words:not(.words--rules) th:last-child, .words:not(.words--rules) td:last-child { display: none; }
  .scroll td, .scroll th { padding: 10px 12px; }
}

/* ---------- Guides (tools/guides.py) ---------- */
.fig { margin: 24px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.note { margin: 18px 0; padding: 18px 20px; border-radius: 16px; background: var(--cobalt-soft); color: var(--cobalt-deep); }
.doc .note p { color: var(--cobalt-deep); }
.doc .note .card-k { margin-bottom: 4px; }
.doc .two { margin-top: 14px; }
.doc .card p + p { color: var(--muted); }
.sources li { font-size: 14px; }
.scroll tr.ours td { background: var(--cobalt-soft); }
.doc > .scroll { max-width: none; }

/* Phones: rules-style tables become one card per row, labelled from data-label (build.py). */
@media (max-width: 560px) {
  .words--rules { min-width: 0; }
  .words--rules thead { display: none; }
  .words--rules, .words--rules tbody, .words--rules tr, .words--rules td { display: block; width: auto; }
  .words--rules tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .words--rules tr:first-child { border-top: 0; }
  .scroll .words--rules td { padding: 2px 0; border: 0; text-align: left; }
  .words--rules td:first-child { font-weight: 500; }
  .words--rules td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-size: 13px; color: var(--muted); }
  .words--rules td:first-child small { display: inline; margin-left: 6px; }

  .art-split { height: 64px; }
  .art-split span { flex-direction: column; justify-content: center; gap: 2px; padding: 0 4px; font-size: 12px; }
  .art-split b { font-size: 16px; }

  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 6px; }
  .seg__word { display: none; }
}
