/* ==========================================================================
   Base, layout and shared components
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  overflow-x: clip;
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--c-bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(176, 130, 70, .10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(34, 102, 95, .07), transparent 60%);
  background-attachment: fixed;
  color: var(--c-ink); font-family: var(--font-sans); font-size: var(--fs-md); line-height: 1.55;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-strong); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: .005em; margin: 0 0 .5em; color: var(--c-ink); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--c-surface-2); padding: .08em .35em; border-radius: 4px; }
:not(pre) > code { overflow-wrap: anywhere; }
kbd { border: 1px solid var(--c-line); border-bottom-width: 2px; padding: 0 .4em; border-radius: 4px; background: var(--c-surface); font-size: .8em; }
pre { background: var(--c-midnight); color: var(--c-on-midnight); padding: 1em 1.2em; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; font-size: .88rem; }
pre code { background: none; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-6) 0; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--c-ink); color: var(--c-surface); padding: .6em 1em; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: 12px; color: var(--c-surface); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--c-midnight) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  color: var(--c-on-midnight); border-bottom: 1px solid rgba(201, 161, 74, .35);
}
.site-header .wrap { max-width: 1520px; display: flex; align-items: center; gap: var(--sp-4); height: 100%; }
.brand { flex: none; display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { max-width: 19rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-on-midnight-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: var(--c-on-midnight-soft); text-decoration: none; font-size: .86rem; padding: .45rem .6rem; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { color: var(--c-on-midnight); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #f3d79b; background: rgba(201, 161, 74, .14); }
.nav-more { position: relative; }
.nav-more > button { white-space: nowrap; background: none; border: 0; color: var(--c-on-midnight-soft); padding: .45rem .6rem; border-radius: 6px; cursor: pointer; font-size: .86rem; }
.nav-more > button:hover, .nav-more > button[aria-expanded="true"] { color: var(--c-on-midnight); background: rgba(255,255,255,.06); }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: var(--c-midnight-2); border: 1px solid rgba(201,161,74,.3);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .4rem; display: grid;
}
.nav-menu a { padding: .55rem .75rem; }
.header-tools { display: flex; align-items: center; gap: .35rem; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 36px; min-width: 36px; padding: 0 .55rem;
  border: 1px solid rgba(239, 229, 207, .22); background: transparent; color: var(--c-on-midnight); border-radius: 8px; cursor: pointer; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.tool-btn:hover { background: rgba(255, 255, 255, .08); }
.tool-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }
/* Compact navigation: app.js sets .is-compact whenever the inline menu does not fit (measured, so it adapts to TR/EN label lengths). */
.site-header.is-compact .nav-toggle { display: inline-flex; }
.site-header.is-compact .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--c-midnight); flex-direction: column; align-items: stretch; padding: .75rem 1rem 1.25rem; gap: 0; border-bottom: 1px solid rgba(201,161,74,.35); max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none; }
.site-header.is-compact .nav.open { display: flex; }
.site-header.is-compact .nav a { padding: .75rem .5rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
.site-header.is-compact .nav-more > button { display: none; }
.site-header.is-compact .nav-menu { position: static; display: grid !important; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
.site-header.is-compact .header-tools { margin-left: auto; }
@media (max-width: 520px) {
  .site-header .wrap { gap: var(--sp-2); }
  .brand { flex: 1 1 auto; gap: .5rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 1.02rem; white-space: normal; line-height: 1.1; }
  .header-tools { flex: none; gap: .25rem; }
  .tool-btn { min-width: 34px; padding: 0 .4rem; }
  .tool-btn .lbl { display: none; }
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.wrap-prose { max-width: calc(var(--maxw-prose) + 64px); }
main { flex: 1; outline: none; }
.page { padding-top: var(--sp-6); padding-bottom: var(--sp-8); animation: page-in .35s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.section { margin: var(--sp-7) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; border-bottom: 1px solid var(--c-line); padding-bottom: .5rem; margin-bottom: var(--sp-5); }
.section-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-7); align-items: start; }
.cols > aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0, 1fr); } .cols > aside { position: static; } }
.grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--sp-4); }
.grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-midnight); color: var(--c-on-midnight-soft); padding: var(--sp-7) 0 var(--sp-6); font-size: .88rem; border-top: 1px solid rgba(201,161,74,.35); }
.site-footer a { color: var(--c-on-midnight); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--sp-6); }
.footer-grid h4 { color: var(--c-on-midnight); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Typographic components ---------- */
.eyebrow { font-family: var(--font-sans); font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 .6rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.eyebrow .sep { color: var(--c-line); }
.page-head { margin-bottom: var(--sp-6); position: relative; }
.page-title { font-size: var(--fs-3xl); margin-bottom: .25em; }
.page-lede { font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--c-ink-soft); max-width: 70ch; line-height: 1.6; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.prose { font-family: var(--font-serif); font-size: 1.08rem; line-height: var(--lh-prose); max-width: var(--maxw-prose); hyphens: auto; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--c-accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose pre { font-size: .86rem; hyphens: none; }
.prose blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 3px solid var(--c-gold); color: var(--c-ink-soft); font-style: italic; }
.lead-dropcap > p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.2em; line-height: .82; padding: .06em .1em 0 0; color: var(--c-accent); font-weight: 600;
}
.breadcrumbs { font-size: .8rem; color: var(--c-muted); margin-bottom: var(--sp-4); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; }

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--c-line);
  background: var(--c-surface); color: var(--c-ink); text-decoration: none; cursor: pointer; font-weight: 600; font-size: .9rem; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--c-accent); color: var(--c-ink); background: var(--c-surface-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.btn-primary:hover { background: var(--c-accent-strong); border-color: var(--c-accent-strong); color: var(--c-accent-ink); }
.btn-ghost { background: transparent; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; line-height: 1.5;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink-soft); text-decoration: none; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
a.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
button.chip { cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--c-ink); color: var(--c-surface); border-color: var(--c-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--c-accent)); }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.badge-established { color: var(--c-success); }
.badge-debated { color: var(--c-warn); }
.badge-needs-verification { color: var(--c-danger); }
.badge-verified-online { color: var(--c-success); }
.badge-bibliographic { color: var(--c-teal); }
.badge-kind { color: var(--c-muted); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius);
  padding: var(--sp-5); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--c-line); color: inherit; }
.card h3 { font-size: 1.3rem; margin: .1rem 0 .4rem; }
.card p { color: var(--c-ink-soft); font-size: .92rem; margin: 0; }
.card .card-foot { margin-top: auto; padding-top: var(--sp-4); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--c-muted); }
.card-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 650; }

/* ---------- Meta / definition lists ---------- */
.meta { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; font-size: .9rem; }
.meta dt { color: var(--c-muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; padding-top: .15rem; }
.meta dd { margin: 0; }
.panel { background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: var(--sp-4); }
.panel h3, .panel h4 { margin-top: 0; }
.panel-title { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 700; margin: 0 0 .75rem; }

/* ---------- Callouts ---------- */
.callout { border: 1px solid var(--c-line); border-left: 4px solid var(--c-teal); background: var(--c-surface); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); margin: var(--sp-5) 0; font-size: .95rem; }
.callout h4 { margin: 0 0 .35rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.callout p:last-child { margin: 0; }
.callout-dispute { border-left-color: var(--c-warn); background: color-mix(in srgb, var(--c-gold-soft) 45%, var(--c-surface)); }
.callout-verify { border-left-color: var(--c-danger); }
.callout-note { border-left-color: var(--c-accent); }

/* ---------- Figures & diagrams ---------- */
.figure { margin: var(--sp-5) 0; background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.figure-media { background: var(--dg-bg); display: flex; justify-content: center; align-items: center; position: relative; }
.figure-media svg { width: 100%; height: auto; display: block; }
.figure-media img { display: block; max-height: 560px; width: auto; margin: 0 auto; }
.figure figcaption { padding: .8rem 1rem; font-size: .86rem; color: var(--c-ink-soft); border-top: 1px solid var(--c-line-soft); line-height: 1.5; }
.figure figcaption strong { color: var(--c-ink); }
.figure .fig-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.fig-tools button { background: color-mix(in srgb, var(--c-surface) 85%, transparent); border: 1px solid var(--c-line); border-radius: 6px; width: 32px; height: 32px; cursor: pointer; display: grid; place-items: center; color: var(--c-ink); }
.fig-label { display: inline-block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--c-teal); margin-right: .4rem; }
.fig-loading { padding: 3rem; color: var(--c-muted); font-size: .85rem; }
html[lang="en"] .dgm .l-en { display: inline; }
html[lang="en"] .dgm .l-tr { display: none; }

/* ---------- Citations ---------- */
.cite-ref { font-size: .72em; vertical-align: super; line-height: 0; margin-left: 1px; text-decoration: none; font-family: var(--font-sans); font-weight: 650; }
.sources-block { margin-top: var(--sp-6); border-top: 2px solid var(--c-ink); padding-top: var(--sp-4); }
.sources-block h2 { font-size: 1.2rem; font-family: var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.cite-list { padding-left: 1.4em; margin: 0; font-size: .88rem; line-height: 1.55; }
.cite-list li { margin-bottom: .55rem; }
.cite-list .badge { margin-left: .35rem; vertical-align: 1px; }

/* ---------- Related links ---------- */
.related-group { margin-bottom: var(--sp-4); }
.related-group h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .45rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.link-list a { text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list .sub { display: block; font-size: .76rem; color: var(--c-muted); }

/* ---------- Forms / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: end; background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 150px; flex: 1 1 160px; }
.field label, .field .lbl { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); font-weight: 700; }
.input, select.input {
  height: 40px; padding: 0 .75rem; border: 1px solid var(--c-line); background: var(--c-bg); border-radius: 8px; color: var(--c-ink); width: 100%;
}
.input:focus { border-color: var(--c-teal); outline: none; box-shadow: var(--focus-ring); }
.result-count { font-size: .85rem; color: var(--c-muted); margin: 0 0 var(--sp-4); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--c-line); margin-bottom: var(--sp-5); overflow-x: auto; scrollbar-width: thin; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: .7rem .9rem; cursor: pointer; color: var(--c-muted); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--c-ink); border-bottom-color: var(--c-accent); }
.tabs button:hover { color: var(--c-ink); }

/* ---------- Empty / loading / error ---------- */
.empty-state { text-align: center; padding: var(--sp-7) var(--sp-5); border: 1px dashed var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-muted); }
.empty-state svg { width: 64px; height: 64px; opacity: .6; margin-bottom: .5rem; }
.empty-state h3 { color: var(--c-ink); }
.loading-screen { display: grid; place-items: center; min-height: 60vh; color: var(--c-muted); text-align: center; }
.loading-screen .spinner { width: 46px; height: 46px; border: 3px solid var(--c-line); border-top-color: var(--c-accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Search dialog ---------- */
.search-dialog { width: min(760px, calc(100vw - 24px)); max-height: min(80vh, 760px); padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-2); }
.search-dialog::backdrop { background: rgba(8, 12, 22, .55); backdrop-filter: blur(3px); }
.search-box { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--c-line); }
.search-box svg { width: 20px; height: 20px; color: var(--c-muted); flex: none; }
.search-box input { flex: 1; border: 0; background: none; font-size: 1.1rem; outline: none; min-width: 0; }
.search-results { overflow-y: auto; max-height: calc(min(80vh, 760px) - 70px); padding: .4rem; }
.sr-item { display: grid; grid-template-columns: 92px 1fr; gap: .8rem; padding: .65rem .8rem; border-radius: 8px; text-decoration: none; color: inherit; }
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--c-surface-2); color: inherit; }
.sr-type { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; padding-top: .2rem; }
.sr-title { font-weight: 600; }
.sr-desc { font-size: .82rem; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-hint { padding: 1rem; color: var(--c-muted); font-size: .85rem; }
mark { background: color-mix(in srgb, var(--c-gold) 35%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- Lightbox ---------- */
.lightbox { width: min(1200px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-2); }
.lightbox::backdrop { background: rgba(5, 8, 15, .82); }
.lightbox-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; max-height: calc(100vh - 24px); }
.lightbox-media { background: var(--dg-bg); display: grid; place-items: center; overflow: auto; min-height: 300px; }
.lightbox-media img, .lightbox-media svg { max-width: 100%; max-height: calc(100vh - 40px); width: auto; }
.lightbox-media svg { width: 100%; }
.lightbox-meta { padding: var(--sp-5); overflow-y: auto; border-left: 1px solid var(--c-line); font-size: .88rem; }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
@media (max-width: 860px) { .lightbox-inner { grid-template-columns: minmax(0, 1fr); } .lightbox-meta { border-left: 0; border-top: 1px solid var(--c-line); } }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--c-ink); color: var(--c-surface); padding: .7rem 1.1rem; border-radius: 999px; font-size: .88rem; z-index: 300; box-shadow: var(--shadow-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
