/* ChatAdwokat.pl shared styles. Plain CSS, no build step. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see assets/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Fraunces"; /* ds-allow-hardcode: @font-face family name declaration */
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; /* ds-allow-hardcode: @font-face family name declaration */
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; /* ds-allow-hardcode: @font-face family name declaration */
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; /* ds-allow-hardcode: @font-face family name declaration */
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f0e6;
  --paper-raised: #fdfbf6;
  --line: #ddd5c6;
  --line-strong: #1f3a2f;
  --line-input: #8a8f86;   /* form field border: 3.2:1 on paper-raised */
  --ink: #1b2a23;
  --ink-muted: #56625b;
  --forest: #1f4537;
  --forest-raised: #24503f;
  --forest-line: #3f6a59;
  --on-forest: #f5f0e6;
  --on-forest-muted: #c9d6cf;
  --accent: #c8432a;        /* button fill: white text 4.9:1 */
  --accent-hover: #a9361f;
  --accent-text: #b63c24;   /* accent as text on paper: 5.3:1 */
  --accent-on-forest: #f2a58f;
  --placeholder-bg: #fff6f2;

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
  --white: #ffffff;
  --tag-bg: #ece5d6;
  --bubble-bg: #f0ebe0;
  --state-ok: #9fd3b4;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --stroke: 2px;
  --rule: 3px;
  --icon-offset: 6px;
  --nudge: 2px;
  --blur: 8px;
  --dur: 0.15s;
  --dur-slow: 0.2s;
  --shadow-menu: 0 12px 24px -16px rgba(27, 42, 35, 0.35);
  --shadow-card: 0 24px 48px -32px rgba(27, 42, 35, 0.4);
  --focus-forest: 0 0 0 var(--stroke) var(--forest), 0 0 0 calc(var(--stroke) * 2) var(--accent-on-forest);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem); }
h3 { font-size: 1.3125rem; line-height: 1.25; font-weight: 450; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
/* Links to legal acts open a large PDF: say so in the link (also read by screen readers). */
a[href$=".pdf"]::after { content: " (PDF)"; font-size: 0.85em; color: var(--ink-muted); }
:focus-visible { outline: var(--stroke) solid transparent; outline-offset: var(--stroke); box-shadow: var(--focus); border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--forest); color: var(--on-forest); padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-forest); }

/* ---------- Shared pieces ---------- */
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.875rem;
}
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--ink-muted); line-height: 1.6; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.75rem 1.375rem;
  background: var(--accent); color: var(--white); border: 0; border-radius: var(--radius);
  font: 600 0.9375rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) ease;
}
.btn:hover { background: var(--accent-hover); color: var(--white); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn .arrow { transition: transform var(--dur) ease; }
.btn:hover .arrow { transform: translateX(var(--nudge)); }
.disclaimer {
  border-left: var(--rule) solid var(--accent); padding-left: 0.75rem;
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section__head { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head .lead { margin-top: 0.75rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(var(--blur))) {
  .site-header { background: rgba(245, 240, 230, 0.85); backdrop-filter: blur(var(--blur)); }
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.wordmark {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 450; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em; margin-right: auto; white-space: nowrap;
}
.wordmark span { color: var(--accent-text); }
.wordmark:hover { color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem; color: var(--ink); text-decoration: none; font-size: 0.9375rem;
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--accent-text); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-raised); color: var(--ink); cursor: pointer;
}
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
  display: block; width: 1.125rem; height: var(--stroke); background: currentColor; border-radius: var(--stroke); position: relative;
  transition: transform var(--dur-slow) ease, background-color var(--dur-slow) ease;
}
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: calc(var(--icon-offset) * -1); }
.menu-toggle__icon::after { top: var(--icon-offset); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(var(--icon-offset)) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(calc(var(--icon-offset) * -1)) rotate(-45deg); }

@media (max-width: 47.99rem) {
  .site-header__inner { min-height: 3.75rem; gap: 0.5rem; }
  .wordmark { font-size: 1.3125rem; }
  /* Without JS the nav stays visible as a wrapped row; with JS it becomes a toggled panel. */
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { flex-wrap: wrap; }
  .js .site-header__inner { flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; order: 2; }
  .site-header .btn { order: 1; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; width: auto;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-menu);
  }
  .js .site-nav[hidden] { display: none; }
  .js .site-nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .js .site-nav a { padding: 0.875rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .js .site-nav li:last-child a { border-bottom: 0; }
}
@media (min-width: 48rem) {
  .site-nav { margin-right: 0.75rem; }
  .site-nav[hidden] { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 1.25rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.hero__note { font-size: 0.875rem; color: var(--ink-muted); }
.hero .disclaimer { margin-top: 1.75rem; }
@media (max-width: 47.99rem) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Example conversation ---------- */
.sample {
  margin: 0;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.sample__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--line);
}
.sample__title { margin: 0; font: 700 0.75rem/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.sample__tag {
  font-size: 0.75rem; color: var(--ink-muted); background: var(--tag-bg); border-radius: var(--radius-pill); padding: 0.2rem 0.65rem;
}
.sample__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; }
.msg { max-width: 88%; border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.9375rem; line-height: 1.5; }
.msg__who { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.msg--user { align-self: flex-end; background: var(--forest); color: var(--on-forest); border-bottom-right-radius: 0.25rem; }
.msg--bot { align-self: flex-start; background: var(--bubble-bg); }
.msg--bot ol { margin: 0; padding-left: 1.25rem; }
.msg--source {
  max-width: 100%; align-self: stretch; background: var(--paper-raised);
  border: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-muted);
}
.msg--bot p + p { margin-top: 0.5rem; }
.msg--source strong { color: var(--accent-text); }
.sample__foot {
  padding: 0.875rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-muted);
}

/* ---------- Topics ---------- */
.topics { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.topic-card {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem; height: 100%;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color var(--dur) ease;
}
.topic-card:hover { border-color: var(--accent); }
.topic-card p { color: var(--ink-muted); font-size: 0.9375rem; flex: 1; }
.topic-card a { font-weight: 600; font-size: 0.9375rem; }
/* Whole card is clickable via the link's pseudo-element; link text stays descriptive. */
.topic-card a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.topic-card:focus-within { box-shadow: var(--focus); }
.topic-card a:focus-visible { box-shadow: none; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 2.5rem 0 0; border-top: 1px solid var(--line-strong);
  display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--font-serif); font-size: 2.75rem; line-height: 1; color: var(--accent-text); margin-bottom: 1.25rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-muted); font-size: 0.9375rem; max-width: 22rem; }

/* ---------- Sources (forest) ---------- */
.section--forest { background: var(--forest); color: var(--on-forest); border-top: 0; }
.section--forest .eyebrow { color: var(--accent-on-forest); }
.sources__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .sources__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.sources__quote {
  margin: 1.75rem 0 0; padding-left: 1.25rem; border-left: var(--rule) solid var(--accent);
  font-family: var(--font-serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.4;
}
.states { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; }
.state {
  background: var(--forest-raised); border: 1px solid var(--forest-line); border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
}
.state h3 { display: flex; align-items: center; gap: 0.625rem; font-size: 1.125rem; margin-bottom: 0.375rem; }
.state p { color: var(--on-forest-muted); font-size: 0.875rem; }
/* Status is carried by the heading text; the marker shape is a secondary cue. */
.state__marker { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.state--ok .state__marker { background: var(--state-ok); }
.state--fail .state__marker { background: transparent; border: var(--stroke) solid var(--accent-on-forest); }
.state--query .state__marker { background: var(--on-forest); border-radius: var(--nudge); }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .about__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.about__grid .lead { margin-top: 1rem; max-width: 30rem; font-size: 1rem; }
.placeholder-card {
  border: 1px dashed var(--ink-muted); border-radius: var(--radius); background: var(--paper-raised);
  padding: 1.25rem 1.5rem; font-size: 0.875rem; color: var(--ink-muted);
}
.placeholder-card + .placeholder-card { margin-top: 1rem; }
.placeholder-card strong { display: block; color: var(--ink); margin-bottom: 0.25rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--font-sans); font-size: 1.375rem; line-height: 1; color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent-text); }
.faq__answer { padding-bottom: 1.375rem; color: var(--ink-muted); font-size: 0.9375rem; }
.faq__answer p + p { margin-top: 0.75rem; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 20ch; margin-inline: auto; }
.final-cta .lead { margin-top: 1rem; font-size: 1rem; }
.final-cta .btn { margin-top: 2rem; }
.final-cta__note { margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; }
@media (max-width: 47.99rem) { .final-cta .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--on-forest); padding-block: 3.5rem 2.5rem; }
.site-footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--forest-line);
}
.site-footer .wordmark { color: var(--on-forest); margin-right: 0; }
.site-footer .wordmark span { color: var(--accent-on-forest); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer ul a { display: inline-block; padding-block: 0.375rem; color: var(--on-forest); font-size: 0.875rem; }
.site-footer a:not(.wordmark):hover { color: var(--accent-on-forest); }
.site-footer :focus-visible { box-shadow: var(--focus-forest); }
.site-footer__legal { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--on-forest-muted); max-width: 48rem; }
.site-footer__legal a { color: var(--on-forest); }
@media (max-width: 47.99rem) {
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .site-footer ul { flex-direction: column; }
}

/* ---------- Inner pages ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y); }
.page__content { max-width: 44rem; }
.page__content h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page__content > * + * { margin-top: 1.25rem; }
.page__content h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.breadcrumb ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.875rem; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "\2192"; margin-right: 0.5rem; }
.notice {
  border: 1px dashed var(--ink-muted); border-radius: var(--radius); background: var(--paper-raised);
  padding: 1.25rem 1.5rem; color: var(--ink-muted);
}

/* Very narrow phones (under 352px): keep wordmark, CTA and menu button on one row. */
@media (max-width: 21.99rem) {
  .site-header__inner { gap: 0.375rem; }
  .wordmark { font-size: 1.125rem; }
  .site-header .btn--sm { padding-inline: 0.625rem; font-size: 0.8125rem; }
}

/* Sample conversation: compact on stacked layouts. JS hides the steps and source behind a toggle. */
.sample__more { display: flex; flex-direction: column; gap: 0.875rem; }
.sample__more[hidden] { display: none; }
.sample__toggle {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 2.75rem; padding: 0.5rem 0; border: 0; background: none; cursor: pointer;
  font: 600 0.875rem/1.2 var(--font-sans); color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em;
}
.sample__toggle:hover { color: var(--accent-hover); }
@media (min-width: 60rem) {
  .sample__toggle { display: none; }
  .sample__more[hidden] { display: flex; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { font-size: 0.8125rem; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.875rem; min-height: 2.75rem;
  font: 400 1rem/1.5 var(--font-sans); color: var(--ink);
  background: var(--paper-raised); border: 1px solid var(--line-input); border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); }
.field .error { font-size: 0.8125rem; font-weight: 600; color: var(--accent-text); }
.field .error:empty { display: none; }
.form__privacy { font-size: 0.8125rem; color: var(--ink-muted); }
.form__actions .btn { min-width: 12rem; }
.form__status { font-weight: 600; font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status[data-state="error"] { color: var(--accent-text); }
.form__status[data-state="ok"] { color: var(--forest); }
@media (max-width: 47.99rem) { .form__actions .btn { width: 100%; } }

/* ---------- About: facts list ---------- */
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.facts li {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.9375rem; color: var(--ink-muted);
}
.facts strong { display: block; color: var(--ink); font-family: var(--font-serif); font-weight: 450; font-size: 1.0625rem; margin-bottom: 0.25rem; }
.about__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-weight: 600; }
.about__links a { display: inline-block; padding-block: 0.375rem; }
.page__content .facts { margin-top: 1.25rem; }
.page__content ul:not(.facts) { padding-left: 1.25rem; }
.page__content ul:not(.facts) li + li { margin-top: 0.5rem; }

/* ---------- Article pages ---------- */
.article h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.article__meta { font-size: 0.875rem; color: var(--ink-muted); }
.article > ol { padding-left: 1.5rem; }
.article > ol li + li { margin-top: 0.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
.table-wrap table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 0.75rem 0.875rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-weight: 600; background: var(--tag-bg); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody th { font-weight: 600; }
.article a { overflow-wrap: anywhere; }
@media (max-width: 39.99rem) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap tbody tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
  .table-wrap tbody tr + tr { margin-top: 0.75rem; }
  .table-wrap tbody th { background: var(--tag-bg); border-radius: var(--radius) var(--radius) 0 0; }
  .table-wrap td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 0.8125rem; color: var(--ink-muted); margin-bottom: 0.25rem; }
  .table-wrap tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr > :last-child { border-bottom: 0; }
}
.summary { background: var(--paper-raised); border: 1px solid var(--line); border-left: var(--rule) solid var(--forest); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.page__content .summary h2 { font-size: 1.25rem; margin-top: 0; }
.summary ul { margin-top: 0.75rem; }
.table-wrap caption { caption-side: top; text-align: left; padding: 0.75rem 0.875rem 0; font-weight: 600; }
@media (max-width: 39.99rem) { .table-wrap caption { padding: 0 0 0.75rem; } }
