/* NewToFrankfurt — warm modern expat guide */
:root {
  --bg: #faf6f1;
  --bg-alt: #f3ebe3;
  --surface: #ffffff;
  --ink: #2a2420;
  --ink-muted: #5c534c;
  --accent: #c45c3e;
  --accent-soft: rgba(196, 92, 62, 0.12);
  --accent-hover: #a84a30;
  --gold: #c9a227;
  --line: rgba(42, 36, 32, 0.08);
  --shadow: 0 4px 24px rgba(42, 36, 32, 0.06);
  --shadow-hover: 0 12px 40px rgba(42, 36, 32, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html[lang="zh-Hans"] body {
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html[lang="ar"] body {
  font-family: "DM Sans", "Segoe UI", "Arabic UI Text", "Tahoma", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 246, 241, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), #e0785a);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(196, 92, 62, 0.35);
}

.logo-accent {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.lang-btn {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background 0.2s var(--ease), color 0.2s, transform 0.15s;
}

.lang-btn:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.lang-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-btn:active {
  transform: scale(0.96);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 85%;
  background:
    radial-gradient(ellipse 70% 55% at 70% 0%, rgba(196, 92, 62, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 30%, rgba(201, 162, 39, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #d66b4d);
  color: #fff;
  box-shadow: 0 8px 28px rgba(196, 92, 62, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(196, 92, 62, 0.45);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  border-color: rgba(196, 92, 62, 0.35);
  color: var(--accent);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-tag-contrast {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 92, 62, 0.15);
}

.card-feature {
  grid-column: span 1;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  filter: grayscale(0.1);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.card-text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 1.5rem;
}

.checklist {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--ink-muted);
}

.checklist li {
  margin-bottom: 0.5rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.note {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

html[dir="rtl"] .note {
  border-left: none;
  border-right: 4px solid var(--accent);
}

/* Apps strip */
.app-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.app-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  min-width: 160px;
  flex: 1 1 180px;
}

.app-name {
  font-weight: 700;
  color: var(--ink);
}

.app-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Emergency */
.emergency {
  background: linear-gradient(160deg, #3d3530 0%, #2a2420 45%, #3a2f2a 100%);
  color: #f5f0eb;
}

.emergency .section-title,
.emergency .section-desc {
  color: #e8e0d8;
}

.emergency .section-desc {
  opacity: 0.9;
}

.emergency-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.emergency-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.emergency-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.emergency-card.is-static:hover {
  transform: translateY(-4px);
}

.emergency-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.emergency-label {
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.45;
}

.emergency-foot {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 70ch;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 60ch;
}

.footer-year {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.18s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.3s; }

/* Health guide card + app link chip */
.card-grid-health {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-health-guide {
  grid-column: 1 / -1;
}

.card-health-guide-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.card-health-guide-text .card-title {
  margin-top: 0;
}

.btn-inline {
  margin-top: 0.85rem;
}

.app-chip-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}

.app-chip-link:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 92, 62, 0.15);
}

.nav-link-current > a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 520px) {
  .card-health-guide-inner {
    flex-direction: column;
  }
}

/* Article page */
.article-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.article-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.article-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.article-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.article-hero .article-lead + .article-lead {
  margin-top: 0.75rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  font-weight: 500;
}

.breadcrumb span {
  color: var(--ink);
}

.article-page-wrap {
  padding-top: 0.5rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.article-layout {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.article-prose {
  min-width: 0;
}

@media (min-width: 900px) {
  .article-layout {
    /* ~72–75% prose, ~25–28% sidebar */
    grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr);
    column-gap: clamp(1.25rem, 3vw, 2rem);
  }

  .article-prose {
    grid-column: 1;
  }

  .article-aside {
    grid-column: 2;
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
    max-width: 280px;
    width: 100%;
    justify-self: end;
  }
}

@media (max-width: 899px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-aside {
    max-width: min(20rem, 100%);
  }
}

/* Compact emergency reference (secondary sidebar / mobile strip) */
.quick-emergency {
  padding: 0.55rem 0.65rem 0.6rem;
  background: linear-gradient(165deg, #3a332f 0%, #2a2420 100%);
  color: #ebe4dd;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.quick-emergency-title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.quick-emergency-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.quick-emergency-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.2rem;
  margin: 0;
  padding: 0.15rem 0;
  font-size: 0.72rem;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-emergency-rows li:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.qer-key {
  font-weight: 700;
  color: #fff;
  font-size: 0.74rem;
  flex: 0 0 auto;
}

.qer-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  flex: 0 0 auto;
}

.qer-desc {
  color: rgba(235, 228, 221, 0.78);
  font-size: 0.68rem;
  font-weight: 400;
  flex: 1 1 8rem;
  min-width: 0;
}

.quick-emergency-foot {
  margin: 0.45rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  line-height: 1.35;
  opacity: 0.85;
}

.quick-emergency-foot a {
  color: #e8b89a;
  font-weight: 500;
}

.quick-emergency-foot a:hover {
  color: #fff;
}

.quick-emergency a {
  color: #e8b89a;
}

.quick-emergency a:hover {
  color: #fff;
}

.article-block {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.article-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

.article-block p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.article-block p:last-child {
  margin-bottom: 0;
}

.article-block ul,
.article-block ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
  color: var(--ink-muted);
}

.article-block li {
  margin-bottom: 0.4rem;
}

.article-block li:last-child {
  margin-bottom: 0;
}

.article-callout {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

html[dir="rtl"] .article-callout {
  border-left: none;
  border-right: 4px solid var(--accent);
}

.article-overview-box {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.45;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
}

.article-overview-box ul {
  margin: 0.45rem 0 0;
  padding-inline-start: 1.1rem;
}

.article-overview-box li {
  margin-bottom: 0.28rem;
}

.article-overview-box li:last-child {
  margin-bottom: 0;
}

.article-callout--warn {
  border-left-color: #b91c1c;
  background: rgba(185, 28, 28, 0.07);
}

html[dir="rtl"] .article-callout--warn {
  border-left: none;
  border-right: 4px solid #b91c1c;
}

/* Bürgeramt location cards (article) */
.buergeramt-list {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin: 1rem 0 0;
}

@media (min-width: 640px) {
  .buergeramt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.buergeramt-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
}

.buergeramt-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink);
}

.buergeramt-card .buergeramt-addr {
  margin: 0 0 0.5rem;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.buergeramt-card .buergeramt-phone {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.buergeramt-card .buergeramt-maps {
  display: inline-block;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
}

.buergeramt-card .buergeramt-note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.phrase-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phrase-list li {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.phrase-list li span[lang="de"] {
  display: block;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.vocab-dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.5rem 1.25rem;
  margin: 0;
  font-size: 0.92rem;
}

.vocab-dl dt {
  margin: 0;
  padding: 0.55rem 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.vocab-dl dd {
  margin: 0;
  padding: 0.55rem 0;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 560px) {
  .vocab-dl {
    grid-template-columns: 1fr;
  }

  .vocab-dl dd {
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.35rem;
    padding-bottom: 0.75rem;
  }

  .vocab-dl dt {
    border-bottom: none;
    padding-bottom: 0.15rem;
  }
}

.article-back {
  margin-top: 2rem;
}

/* Tablet / phone */
@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(250, 246, 241, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .lang-switcher {
    order: 3;
    margin-inline-start: auto;
  }

  .logo {
    order: 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 4;
    width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1120px, 100% - 1.5rem);
  }

  .lang-btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.72rem;
  }

  .hero-stats {
    gap: 1rem 1.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
