/* ============================================================================
   Panda Express Menu — design system
   pandaexpresmenuu.us
   ----------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Topbar
   5.  Header & navigation
   6.  Mobile drawer
   7.  Buttons & chips
   8.  Search overlay
   9.  Hero
   10. Sections & section headers
   11. Article cards
   12. Compact / list cards
   13. Category strip
   14. Newsletter
   15. FAQ accordion
   16. Footer
   17. Breadcrumbs
   18. Article page
   19. Prose (article body typography)
   20. Static / legal pages
   21. Forms
   22. Cookie banner
   23. Utilities, motion & responsive
   ========================================================================== */

/* ------------------------------------------------------------------ 1. TOKENS */
:root {
  /* colour */
  --ink: #15171c;
  --ink-2: #363b44;
  --ink-3: #565d69;
  --muted: #7b828e;
  --line: #e7e4de;
  --line-2: #f1efea;
  --paper: #ffffff;
  --surface: #faf8f5;
  --surface-2: #f3f0ea;
  --surface-3: #ebe7df;

  --brand: #d93025;
  --brand-dark: #a8231a;
  --brand-light: #f2542d;
  --brand-tint: #fdf2f0;
  --brand-ring: rgba(217, 48, 37, 0.18);

  --green: #2f8f5b;
  --green-tint: #eef7f1;
  --amber: #b7791f;
  --amber-tint: #fdf6e7;

  /* type */
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(21, 23, 28, 0.05);
  --shadow-sm: 0 2px 8px rgba(21, 23, 28, 0.06);
  --shadow-md: 0 8px 26px rgba(21, 23, 28, 0.09);
  --shadow-lg: 0 18px 50px rgba(21, 23, 28, 0.14);

  --container: 1200px;
  --header-h: 70px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------- 2. RESET & BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, picture, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-7) 0;
}

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----------------------------------------------------- 3. LAYOUT PRIMITIVES */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.container--narrow { max-width: 780px; }
.container--tight { max-width: 980px; }

main { display: block; }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: var(--sp-4); }

/* ---------------------------------------------------------------- 4. TOPBAR */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 40px;
}
.topbar__left,
.topbar__right { display: flex; align-items: center; gap: var(--sp-4); }
.topbar a { color: rgba(255, 255, 255, 0.78); }
.topbar a:hover { color: #fff; }
.topbar__divider {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.22);
}
.topbar__socials { display: flex; align-items: center; gap: 12px; }
.topbar__socials svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 860px) {
  .topbar__left span:nth-child(3),
  .topbar__divider { display: none; }
}
@media (max-width: 640px) {
  .topbar__left { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ------------------------------------------------------- 5. HEADER & NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--brand-light), var(--brand-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(217, 48, 37, 0.28);
  flex-shrink: 0;
}
.brand__mark svg { width: 24px; height: 24px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--brand); background: var(--brand-tint); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.icon-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}
.icon-btn svg { width: 18px; height: 18px; }

.burger { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand__mark svg { width: 21px; height: 21px; }
  .brand__name { font-size: 17px; }
  .brand__sub { display: none; }
}

/* ------------------------------------------------------- 6. MOBILE DRAWER */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 28, 0.5);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 88vw);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--sp-5);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.drawer__title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.drawer__link {
  padding: 13px 14px;
  border-radius: var(--r-md);
  font-size: 16.5px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
}
.drawer__link:hover { background: var(--surface-2); color: var(--brand); }
.drawer__link small {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.drawer__foot {
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.drawer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: var(--sp-3);
  font-size: 13px;
}

/* ---------------------------------------------------- 7. BUTTONS & CHIPS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn svg { width: 17px; height: 17px; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 48, 37, 0.25);
}
.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 48, 37, 0.3);
}

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid transparent;
  transition: all 0.18s var(--ease);
}
a.chip:hover { background: var(--brand); color: #fff; }
.chip--neutral { background: var(--surface-2); color: var(--ink-3); }
.chip--light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ------------------------------------------------------ 8. SEARCH OVERLAY */
.searchbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
}
.searchbox.is-open { display: block; }
.searchbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 28, 0.58);
  backdrop-filter: blur(3px);
  animation: fade 0.2s var(--ease);
}
.searchbox__panel {
  position: relative;
  max-width: 720px;
  margin: 12vh auto 0;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop 0.24s var(--ease);
  width: calc(100% - 32px);
}
.searchbox__field {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.searchbox__field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.searchbox__field input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
}
.searchbox__field input::placeholder { color: var(--muted); }
.searchbox__kbd {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}
.searchbox__results {
  max-height: 52vh;
  overflow-y: auto;
  padding: var(--sp-2);
}
.searchbox__hint {
  padding: 26px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}
.search-result {
  display: flex;
  gap: var(--sp-4);
  padding: 12px;
  border-radius: var(--r-md);
  align-items: center;
}
.search-result:hover { background: var(--surface); }
.search-result img {
  width: 78px;
  height: 56px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.search-result__title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.search-result__meta { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ 9. HERO */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(10, 11, 14, 0.94) 0%,
      rgba(10, 11, 14, 0.82) 42%,
      rgba(10, 11, 14, 0.5) 100%
    ),
    linear-gradient(0deg, rgba(10, 11, 14, 0.7), transparent 55%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-8);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) 0;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--sp-4);
}
.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand-light);
  border-radius: 2px;
}
.hero__title {
  font-size: clamp(34px, 5.1vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.hero__title a { color: #fff; }
.hero__title a:hover { color: #fff; opacity: 0.85; }
.hero__dek {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
  margin-bottom: var(--sp-5);
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: var(--sp-6);
}
.hero__side-head {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}
.hero-mini {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-mini__num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-light);
  line-height: 1;
  flex-shrink: 0;
  width: 26px;
}
.hero-mini__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.hero-mini__title a { color: #fff; }
.hero-mini__title a:hover { color: rgba(255, 255, 255, 0.75); }
.hero-mini__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 5px;
  letter-spacing: 0.03em;
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero__side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 0;
    padding-top: var(--sp-5);
  }
}

/* --------------------------------------------- 10. SECTIONS & HEADERS */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--ink);
}
.section-head__text { max-width: 62ch; }
.section-head__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.section-head__title {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
}
.section-head__desc {
  color: var(--ink-3);
  font-size: 15.5px;
  margin: 8px 0 0;
  line-height: 1.55;
}
.section-head__action { flex-shrink: 0; }
@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------ 11. CARDS */
.grid { display: grid; gap: var(--sp-6); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid { gap: var(--sp-6); }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  backdrop-filter: blur(4px);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}
.card__tag:hover { background: var(--brand); color: #fff; }

.card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title {
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }
.card__dek {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.58;
  margin-bottom: var(--sp-4);
  flex: 1;
}
.card__dek--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.meta__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}
.meta--top {
  margin-bottom: var(--sp-3);
  padding-bottom: 0;
}
.card__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-2);
}

.avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.avatar__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-light), var(--brand-dark));
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.avatar--lg .avatar__circle { width: 44px; height: 44px; font-size: 15px; }
.avatar__name { font-weight: 600; color: var(--ink-2); font-size: 13px; }

/* ------------------------------------------------- 12. COMPACT LIST CARD */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--sp-7);
}
@media (max-width: 780px) {
  .article-list { grid-template-columns: minmax(0, 1fr); }
}
.list-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.list-item img {
  width: 108px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.list-item__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.list-item__title a { color: var(--ink); }
.list-item__title a:hover { color: var(--brand); }
.list-item__meta { font-size: 12px; color: var(--muted); }
@media (max-width: 420px) {
  .list-item img { width: 84px; height: 64px; }
}

/* --------------------------------------------------- 13. CATEGORY STRIP */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } }

.cat-card {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.22s var(--ease);
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cat-accent, var(--brand));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s var(--ease);
}
.cat-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cat-card:hover::before { transform: scaleY(1); }
.cat-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.cat-card__desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  flex: 1;
}
.cat-card__count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--brand));
}

/* --------------------------------------------------------- 14. NEWSLETTER */
.newsletter {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 58px);
  position: relative;
  overflow: hidden;
}
.newsletter::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 48, 37, 0.5), transparent 68%);
  pointer-events: none;
}
.newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 820px) {
  .newsletter__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
}
.newsletter__title {
  font-size: clamp(24px, 3.1vw, 34px);
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.newsletter__text {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15.5px;
  margin: 0;
  line-height: 1.6;
}
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: all 0.18s var(--ease);
}
.newsletter__form input::placeholder { color: rgba(255, 255, 255, 0.44); }
.newsletter__form input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.13);
}
.newsletter__note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 12px 0 0;
}
.newsletter__msg {
  font-size: 13.5px;
  margin: 10px 0 0;
  min-height: 18px;
  color: #7ee2a8;
}
.newsletter__msg.is-error { color: #ff9b8f; }
@media (max-width: 520px) {
  .newsletter__form { flex-direction: column; }
}

/* ------------------------------------------------------------ 15. FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 22px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.18s var(--ease);
}
.faq__q:hover { color: var(--brand); }
.faq__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.24s var(--ease);
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.24s var(--ease);
}
.faq__icon::before { width: 11px; height: 1.6px; }
.faq__icon::after { width: 1.6px; height: 11px; }
.faq__item.is-open .faq__icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: rotate(90deg);
}
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.34s var(--ease);
}
.faq__a-inner {
  padding: 0 4px 24px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.68;
  max-width: 82ch;
}

/* ------------------------------------------------------------- 16. FOOTER */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
  font-size: 14.5px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: rgba(255, 255, 255, 0.5); }
.footer__about {
  margin-top: var(--sp-4);
  max-width: 42ch;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-5);
}
.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.18s var(--ease);
}
.footer__social:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

.footer__heading {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__list { display: flex; flex-direction: column; gap: 11px; }
.footer__list a { color: rgba(255, 255, 255, 0.66); }
.footer__list a:hover { color: #fff; }

.footer__bottom {
  padding-top: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer__legal a { color: rgba(255, 255, 255, 0.62); }
.footer__legal a:hover { color: #fff; }

.footer__disclaimer {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.44);
  max-width: 100ch;
}

/* -------------------------------------------------------- 17. BREADCRUMBS */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding: var(--sp-4) 0;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs__sep { opacity: 0.5; }
.crumbs__current { color: var(--ink-2); font-weight: 500; }

/* ------------------------------------------------------ 18. ARTICLE PAGE */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-dark));
  z-index: 100;
  transition: width 0.1s linear;
}

.article-hero {
  padding: var(--sp-5) 0 var(--sp-7);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.article-hero__head { max-width: 900px; margin-inline: auto; text-align: center; }
.article-hero__title {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 14px 0 var(--sp-4);
}
.article-hero__dek {
  font-size: clamp(16.5px, 1.6vw, 20px);
  color: var(--ink-3);
  line-height: 1.58;
  max-width: 68ch;
  margin: 0 auto var(--sp-5);
}
.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  max-width: 640px;
  margin: 0 auto;
}
.article-hero__figure {
  margin: var(--sp-6) auto 0;
  max-width: 1040px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-hero__caption {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-8) 0;
}
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  border-left: 2px solid var(--line);
  padding-left: var(--sp-5);
  max-height: calc(100vh - var(--header-h) - 60px);
  overflow-y: auto;
}
.toc__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.toc__list { display: flex; flex-direction: column; gap: 2px; }
.toc__link {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-3);
  padding: 6px 0 6px 12px;
  margin-left: -12px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  padding-left: 14px;
  transition: all 0.2s var(--ease);
}
.toc__link:hover { color: var(--ink); }
.toc__link.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}
.toc__link--h3 { padding-left: 26px; font-size: 12.5px; }
@media (max-width: 1000px) {
  .toc {
    position: static;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    max-height: none;
    background: var(--surface);
  }
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.share__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.share__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.share__btn svg { width: 16px; height: 16px; fill: currentColor; }

.author-box {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  margin: var(--sp-7) 0;
  align-items: flex-start;
}
.author-box .avatar__circle { width: 56px; height: 56px; font-size: 18px; }
.author-box__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 2px;
}
.author-box__role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}
.author-box__bio { font-size: 15px; color: var(--ink-3); margin: 0; line-height: 1.62; }
@media (max-width: 560px) {
  .author-box { flex-direction: column; gap: var(--sp-4); }
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.tag-row__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- 19. PROSE */
.prose {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 74ch;
}
.prose > * + * { margin-top: 1.25em; }

.prose .lede {
  font-size: 20px;
  line-height: 1.62;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 1.6em;
}
.prose .lede::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.82;
  font-weight: 600;
  padding: 0.06em 0.1em 0 0;
  color: var(--brand);
}

.prose h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  margin-top: 2.1em;
  margin-bottom: 0.7em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
  margin-top: 12px;
}
.prose h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-top: 1.9em;
  margin-bottom: 0.55em;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--brand-dark); }

.prose strong { color: var(--ink); font-weight: 650; }

.prose ul, .prose ol { padding-left: 1.35em; margin: 1.25em 0; }
.prose li { margin-bottom: 0.6em; padding-left: 0.25em; }
.prose li:last-child { margin-bottom: 0; }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand); font-weight: 600; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--brand);
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.prose blockquote p { margin: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.9em 0;
  font-size: 15.5px;
  font-family: var(--font-sans);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: table;
}
.prose thead { background: var(--surface-2); }
.prose th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.55;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: #fcfbf9; }

.prose .callout {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border-left: 3px solid var(--ink-3);
  font-size: 16px;
  margin: 1.9em 0;
}
.prose .callout p { margin: 0; }
.prose .callout strong { color: var(--ink); }
.prose .callout--warn {
  background: #fdf3f1;
  border-left-color: var(--brand);
}
.prose .callout--warn strong { color: var(--brand-dark); }

.prose hr { margin: 2.4em 0; }

@media (max-width: 640px) {
  .prose { font-size: 16.5px; }
  .prose .lede { font-size: 18px; }
  /* horizontal scroll for wide tables on small screens */
  .prose .table-scroll,
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prose thead, .prose tbody, .prose tr { display: table; width: 100%; table-layout: fixed; }
}

/* -------------------------------------------------- 20. STATIC/LEGAL PAGES */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-7) 0 var(--sp-6);
}
.page-hero__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-3);
}
.page-hero__title {
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}
.page-hero__dek {
  font-size: 17.5px;
  color: var(--ink-3);
  max-width: 68ch;
  line-height: 1.6;
  margin: 0;
}
.page-hero__updated {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.page-body { padding: var(--sp-7) 0 var(--sp-8); }

.layout-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 940px) {
  .layout-side { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  background: var(--surface);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.side-card + .side-card { margin-top: var(--sp-4); }
.side-card__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.side-card__list { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.side-card__list a { color: var(--ink-2); }
.side-card__list a:hover { color: var(--brand); }
@media (max-width: 940px) {
  .side-card { position: static; }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.contact-card {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-card__value { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.contact-card__value a { color: var(--ink); }
.contact-card__value a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 21. FORMS */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field .req { color: var(--brand); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
  transition: all 0.18s var(--ease);
}
.field textarea { min-height: 156px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.field input::placeholder,
.field textarea::placeholder { color: #a8adb6; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__error { font-size: 12.5px; color: var(--brand); display: none; }
.field.has-error input,
.field.has-error textarea { border-color: var(--brand); }
.field.has-error .field__error { display: block; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: var(--sp-4);
}
.form-status {
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: 15px;
  margin-top: var(--sp-5);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: var(--green-tint);
  border: 1px solid #bfe3cd;
  color: #1f6b43;
}
.form-status.is-error {
  background: var(--brand-tint);
  border: 1px solid #f3c9c4;
  color: var(--brand-dark);
}

/* ------------------------------------------------------- 22. COOKIE BANNER */
.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  transform: translateY(140%);
  transition: transform 0.42s var(--ease);
}
.cookie.is-visible { transform: translateY(0); }
.cookie__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie__text {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
}
.cookie__text a { color: var(--brand); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: var(--sp-4); }
}

/* ------------------------------------------- 23. UTILITIES, MOTION, RESPONSIVE */
.empty-state {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  color: var(--muted);
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}
.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-4);
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line-2) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-md);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(-10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.28s var(--ease);
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

.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;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* print — keep articles readable on paper */
@media print {
  .topbar, .header, .footer, .drawer, .searchbox, .cookie, .to-top,
  .toc, .share, .newsletter, .progress { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .article-layout { grid-template-columns: 1fr; }
  .prose { max-width: none; }
}
