:root {
  /* Luxembourg flag (exact) */
  --flag-red:   #CE1126;
  --flag-white: #FFFFFF;
  --flag-blue:  #00A3E0;

  /* Lothringer brand palette */
  --navy-dark:  #050D50;
  --navy:       #004489;
  --blue:       #3399CC;
  --cyan:       #66CCFF;
  --orange:     #F7AA14;
  --orange-dim: #C98A00;

  /* Derived semantic aliases */
  --red:        #CE1126;
  --red-deep:   #A50E1F;
  --dark:       #050D50;
  --mid:        #004489;
  --muted:      #5A7A9A;
  --light:      #F0F5FA;
  --white:      #FFFFFF;
  --border:     #C8DCF0;
  --border-dark:#7AAED0;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 12px rgba(5,13,80,0.10);
  --shadow-lg: 0 8px 32px rgba(5,13,80,0.18);

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w:     860px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.site-main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  width: 100%;
}
.site-main--wide { max-width: 1080px; }
@media (max-width: 600px) {
  .site-main { padding: 1.5rem 1rem 4rem; }
}
.site-header {
  background: var(--navy-dark);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
/* Luxembourg tricolor stripe */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--flag-red)   0%    33.33%,
    var(--flag-white) 33.33% 66.66%,
    var(--flag-blue)  66.66% 100%
  );
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-flag   { width: 1.6rem; height: auto; border-radius: 2px; flex-shrink: 0; }
.logo strong { color: var(--orange); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 0 0.15rem;
}
.site-nav a:hover { color: var(--cyan); }
.site-nav .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.site-nav .btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(102,204,255,0.08);
}
.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.1rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--cyan); }
.nav-sep {
  display: block;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.nav-username {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 600;
}
.btn-ghost-nav {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  font-family: var(--font-body);
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
}
.btn-ghost-nav:hover { color: var(--cyan); border-color: var(--cyan); }
/* ── Hamburger (CSS-only) ── */
.nav-check  { display: none; }
.nav-toggle { display: none; }
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,0.55);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    user-select: none;
    transition: border-color 0.2s, color 0.2s;
  }
  .nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

  .site-nav {
    display: none !important;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 99;
  }
  .nav-check:checked ~ .site-nav { display: flex !important; }

  .site-nav .nav-username {
    display: block;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .nav-sep { display: none; }

  .site-nav a,
  .site-nav .btn-ghost-nav { width: 100%; text-align: center; justify-content: center; }

  .site-nav form { display: block !important; width: 100%; }
  .site-nav form .btn { width: 100%; justify-content: center; }
}
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.38);
  text-align: center;
  padding: 1.4rem 1.4rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border-top: 3px solid var(--orange);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.footer-brand__link {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-brand__link:hover { opacity: 1; }
.footer-brand__logo  { height: 28px; width: auto; }
.footer-brand__copy  { color: rgba(255,255,255,0.38); font-size: 0.78rem; letter-spacing: 0.04em; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--border-dark); color: var(--mid); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-dim); background: rgba(247,170,20,0.07); }
.btn-success { background: #1a7a3a; color: var(--white); }
.btn-danger  { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.38rem 0.9rem; font-size: 0.8rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-hint { font-size: 0.75rem; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-field input {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--navy-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51,153,204,0.15);
}
.form-select {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--navy-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51,153,204,0.15);
}
/* ── Password reveal ── */
.pw-wrap {
  position: relative;
  display: flex;
}
.pw-wrap input {
  flex: 1;
  padding-right: 2.6rem;
}
.pw-toggle {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0;
}
.pw-toggle:hover { color: var(--navy); }
.form-error {
  background: #fdf0f1;
  color: var(--red-deep);
  border: 1px solid rgba(206,17,38,0.25);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.form-success {
  background: #edf7f1;
  color: #155c2c;
  border: 1px solid rgba(26,122,58,0.25);
  border-left: 4px solid #1a7a3a;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.form-submit { width: 100%; justify-content: center; margin-top: 0.25rem; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.form-actions .form-submit { flex: 1; margin-top: 0; }
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,13,80,0.65);
  backdrop-filter: blur(3px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.is-open { display: flex; }
body.modal-open { overflow: hidden; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(5,13,80,0.35);
  position: relative;
  border-top: 5px solid var(--orange);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.modal__close {
  position: absolute;
  top: 0.9rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.modal__close:hover { color: var(--navy-dark); background: var(--light); }
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  padding: 1.4rem 1.75rem 0;
}
.modal-tab {
  background: none;
  border: none;
  padding: 0.5rem 0.1rem;
  margin-right: 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.02em;
}
.modal-tab.active { color: var(--navy-dark); border-bottom-color: var(--orange); }
.modal-tab:hover:not(.active) { color: var(--navy); }
.modal-pane  { padding: 1.75rem; }
.modal__title   { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 0.25rem; color: var(--navy-dark); }
.modal__sub     { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.modal__body    { font-size: 0.925rem; color: var(--muted); line-height: 1.6; margin: 0.75rem 0 1.5rem; }
.modal__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
.modal__switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--navy); }
.page-header { margin-bottom: 2rem; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}
.breadcrumb:hover { border-color: var(--orange); color: var(--orange); background: rgba(247,170,20,0.06); }
.lesson-title    { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 0.35rem; color: var(--navy-dark); }
.lesson-subtitle { color: var(--muted); font-size: 1rem; }
.unit-hero       { display: flex; align-items: center; gap: 1rem; }
.unit-hero__icon  { font-size: 2.8rem; }
.unit-hero__title { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; margin-bottom: 0.25rem; color: var(--navy-dark); }
.unit-hero__desc  { color: var(--muted); font-size: 0.95rem; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 48px; height: 2px;
  background: var(--orange);
}
@media (max-width: 600px) {
  .unit-hero { flex-wrap: wrap; }
}
.hero {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(51,153,204,0.25);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(206,17,38,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(247,170,20,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner    { flex: 1; position: relative; z-index: 1; }
.hero-eyebrow  { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); font-weight: 700; margin-bottom: 0.75rem; }
.hero-title    { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-subtitle { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 480px; margin-bottom: 2rem; line-height: 1.75; }
.hero-deco     { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; opacity: 0.12; font-family: var(--font-head); font-style: italic; font-size: 2rem; color: var(--cyan); white-space: nowrap; user-select: none; }
.hero--compact { padding: 1.4rem 2rem; margin-bottom: 1.5rem; }
.hero--compact .hero-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; justify-content: center; }
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}
.hero-actions .btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white); }
.hero-actions .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(102,204,255,0.08); }
.hero-complete-badge {
  display: inline-block;
  background: rgba(247,170,20,0.15);
  color: var(--orange);
  border: 1.5px solid rgba(247,170,20,0.4);
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .hero { flex-direction: column; padding: 2rem 1.25rem; gap: 1rem; }
  .hero-deco { flex-direction: row; opacity: 0.08; font-size: 1.1rem; }
  .hero--compact { padding: 1rem 1.25rem; }
}
/* ── Unit cards ── */
.units-grid { display: flex; flex-direction: column; gap: 0.85rem; }
.unit-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.unit-card:hover { border-left-color: var(--red); border-color: var(--border-dark); box-shadow: var(--shadow-lg); transform: translateX(3px); }
.unit-card--locked { opacity: 0.45; pointer-events: none; }
.unit-card__icon  { font-size: 2rem; flex-shrink: 0; }
.unit-card__body  { flex: 1; }
.unit-card__title { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.2rem; color: var(--navy-dark); }
.unit-card__desc  { color: var(--muted); font-size: 0.875rem; }
.unit-card__meta  { display: inline-block; margin-top: 0.4rem; font-size: 0.72rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.unit-card__arrow { font-size: 1.1rem; color: var(--border-dark); flex-shrink: 0; transition: color 0.2s; }
.unit-card:hover .unit-card__arrow { color: var(--orange); }
.unit-card--completed { border-left-color: #1a7a3a; }
.unit-card--completed .unit-card__arrow { color: #1a7a3a; font-weight: 700; }
.unit-card--more-locked { cursor: default; pointer-events: none; border-style: dashed; border-color: var(--border-dark); border-left-color: var(--border-dark); background: var(--light); opacity: 0.75; }
.unit-card--more-locked .unit-card__title { color: var(--muted); }
/* ── Flag images ── */
.btn-flag      { width: 1.2rem; height: auto; border-radius: 2px; vertical-align: middle; margin-right: 0.1rem; }
.feature-flag  { width: 2.5rem; height: auto; border-radius: 3px; }
/* ── Centered section ── */
.content-section--center { text-align: center; }
/* ── Learn page: "up next" strip ── */
.learn-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.learn-next__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  flex-shrink: 0;
}
.learn-next__title {
  flex: 1;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  min-width: 120px;
}
.learn-next .btn { flex-shrink: 0; }
/* ── Overall progress ── */
.overall-progress {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.overall-progress__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.overall-progress__label  { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); }
.overall-progress__fraction { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.overall-progress__track {
  height: 10px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.overall-progress__fill {
  height: 100%;
  background: linear-gradient(to right, var(--navy), var(--blue));
  border-radius: 99px;
  transition: width 0.6s ease;
  min-width: 0;
}
.overall-progress__stats { display: flex; border-top: 1px solid var(--border); padding-top: 1rem; }
.progress-stat { flex: 1; text-align: center; border-right: 1px solid var(--border); }
.progress-stat:last-child { border-right: none; }
.progress-stat__value { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy-dark); line-height: 1; margin-bottom: 0.25rem; }
.progress-stat__label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
/* ── How it works ── */
.how-it-works { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.how-it-works__summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; cursor: pointer; list-style: none; user-select: none; gap: 0.75rem; }
.how-it-works__summary::-webkit-details-marker { display: none; }
.how-it-works__summary:hover { background: var(--light); border-radius: var(--radius-lg); }
.how-it-works__title { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy-dark); margin: 0; }
.how-it-works__chevron { color: var(--muted); font-size: 0.85rem; transition: transform 0.2s ease; flex-shrink: 0; }
details[open] .how-it-works__chevron { transform: rotate(90deg); }
.how-it-works__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; border-top: 1px solid var(--border); padding: 1.25rem 1.5rem 1.5rem; }
.hiw-step { display: flex; gap: 0.85rem; align-items: flex-start; }
.hiw-step__num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-dark); color: var(--orange); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.hiw-step__title { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--navy-dark); }
.hiw-step__desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
/* ── Feature cards (landing) ── */
.features-section { margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.feature-card { background: var(--white); border: 1.5px solid var(--border); border-top: 3px solid var(--orange); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-card__header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.feature-card__icon  { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.feature-card__icon img.feature-flag { height: 1.6rem; width: auto; display: block; }
.feature-card__title { font-family: var(--font-head); font-size: 1.05rem; margin: 0; color: var(--navy-dark); }
.feature-card__desc  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
/* ── Unit preview grid (landing) ── */
.units-grid--preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.unit-card--preview { cursor: default; pointer-events: none; padding: 0.75rem 1rem; gap: 0.6rem; border-left-width: 1.5px; }
.unit-card--preview .unit-card__icon  { font-size: 1.2rem; }
.unit-card--preview .unit-card__title { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; margin: 0; }
/* ── CTA banner (landing) ── */
.cta-banner { background: var(--navy-dark); border-radius: var(--radius-lg); margin-top: 3rem; overflow: hidden; position: relative; border: 1px solid rgba(51,153,204,0.2); box-shadow: var(--shadow-lg); }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(206,17,38,0.15) 0%, transparent 50%, rgba(0,163,224,0.12) 100%); pointer-events: none; }
.cta-banner__inner { position: relative; z-index: 1; padding: 3rem 2.5rem; text-align: center; }
.cta-banner__title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.cta-banner__sub   { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .units-grid--preview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .how-it-works__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .units-grid--preview { grid-template-columns: repeat(2, 1fr); }
  .unit-card--preview .unit-card__title { word-break: break-word; hyphens: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-banner__inner { padding: 2rem 1.25rem; }
  .overall-progress__stats { flex-direction: column; }
  .progress-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
  .progress-stat:last-child { border-bottom: none; }
}
@media (max-width: 500px) {
  .units-grid--preview { grid-template-columns: 1fr; }
  .how-it-works__steps { grid-template-columns: 1fr; }
}
.lessons-list { display: flex; flex-direction: column; gap: 0.85rem; }
.lesson-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.lesson-row:hover { box-shadow: var(--shadow-lg); }
.lesson-row__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--navy);
}
.lesson-row__body  { flex: 1; }
.lesson-row__title { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.15rem; color: var(--navy-dark); }
.lesson-row__sub   { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.lesson-row__stats { display: flex; gap: 1rem; }
.lesson-row__stats span { font-size: 0.72rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.lesson-row__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.lesson-row--locked { opacity: 0.6; background: #f7f9fc; }
.lesson-row__locked-msg { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; font-style: italic; }
.lesson-row--completed .lesson-row__num { background: #1a7a3a; border-color: #1a7a3a; color: var(--white); }
@media (max-width: 600px) {
  .lesson-row { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
  .lesson-row__actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
/* ── Content sections ── */
.content-section { margin-bottom: 2.5rem; }
.section-heading { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; color: var(--navy); }
.section-hint    { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
/* ── Study flashcards ── */
.flashcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.flashcard { height: 148px; perspective: 800px; cursor: pointer; }
.flashcard__inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1); border-radius: var(--radius); }
.flashcard[data-flipped="true"] .flashcard__inner { transform: rotateY(180deg); }
.flashcard__front,
.flashcard__back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.flashcard__front { background: var(--white); border: 1.5px solid var(--border); border-top: 3px solid var(--orange); box-shadow: var(--shadow); }
.flashcard__back  { background: var(--navy-dark); border: 1.5px solid rgba(51,153,204,0.4); transform: rotateY(180deg); }
.flashcard__word       { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--navy-dark); }
.flashcard__pron       { font-size: 0.74rem; color: var(--muted); margin-top: 0.3rem; font-style: italic; }
.flashcard__english    { font-family: var(--font-head); font-size: 1.1rem; color: var(--orange); font-weight: 700; }
.flashcard__example    { font-size: 0.72rem; color: var(--white); margin-top: 0.5rem; line-height: 1.4; }
.flashcard__example-en { font-size: 0.68rem; color: var(--white); margin-top: 0.2rem; }
/* ── Phrases table ── */
.phrases-table { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.phrase-row { display: grid; grid-template-columns: 1fr 1fr; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--white); transition: background 0.15s; }
.phrase-row:last-child { border-bottom: none; }
.phrase-row:hover { background: #EBF4FA; }
.phrase-row:nth-child(even) { background: #F4F9FD; }
.phrase-row:nth-child(even):hover { background: #E3EFF8; }
.phrase-ltz  { font-family: var(--font-head); font-size: 1rem; color: var(--navy-dark); }
.phrase-en   { font-size: 0.9rem; color: var(--mid); }
.phrase-note { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; font-style: italic; }
/* ── Grammar card ── */
.grammar-card { background: var(--white); border: 1.5px solid var(--border); border-left: 5px solid var(--orange); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.grammar-card__title { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--navy); }
.grammar-card__text  { color: var(--mid); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1rem; }
.grammar-card__example { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.grammar-card__ex-ltz { font-family: var(--font-head); font-size: 1rem; color: var(--navy-dark); }
.grammar-card__ex-en  { font-size: 0.85rem; color: var(--muted); font-style: italic; }
/* ── Lesson nav ── */
.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--border);
}
@media (max-width: 600px) {
  .flashcard-grid { grid-template-columns: repeat(2, 1fr); }
  .phrase-row { grid-template-columns: 1fr; }
  .lesson-nav { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .lesson-nav .btn { width: 100%; justify-content: center; }
}
.revision-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 0.5rem; }
.revision-header__meta  { display: flex; align-items: center; gap: 1rem; }
.revision-header__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.revision-counter { font-size: 0.85rem; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; }
.revision-stage { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; padding-bottom: 3rem; }
.revision-card { width: 100%; max-width: 560px; height: 300px; perspective: 1000px; cursor: pointer; }
.revision-card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 18px; }
.revision-card__inner.is-flipped { transform: rotateY(180deg); }
.revision-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 2.5rem;
  text-align: center;
}
.revision-card__front { background: var(--navy); color: var(--white); box-shadow: 0 8px 32px rgba(5,13,80,0.22); }
.revision-card__back  { background: var(--orange); color: var(--navy); transform: rotateY(180deg); box-shadow: 0 8px 32px rgba(247,170,20,0.3); }
.revision-card__type        { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; }
.revision-card__word        { font-family: var(--font-head); font-size: 2.125rem; font-weight: 700; line-height: 1.15; margin: 0; }
.revision-card__pron        { font-size: 1.025rem; opacity: 0.7; margin: 0; }
.revision-card__hint        { font-size: 0.905rem; opacity: 0.45; margin: 0.5rem 0 0; }
.revision-card__translation { font-family: var(--font-head); font-size: 1.925rem; font-weight: 700; line-height: 1.2; margin: 0; }
.revision-card__example     { font-size: 1.075rem; font-style: italic; opacity: 0.8; margin: 0.3rem 0 0; }
.revision-card__example-en  { font-size: 0.975rem; opacity: 0.65; margin: 0; }
.revision-controls { display: flex; gap: 1rem; align-items: center; }
@media (max-width: 600px) {
  .revision-card { height: 240px; }
  .revision-card__face { padding: 1.5rem 1.25rem; }
  .revision-controls { flex-wrap: wrap; justify-content: center; }
}
.quiz-app     { max-width: 640px; margin: 0 auto; }
.quiz-loading { text-align: center; color: var(--muted); padding: 3rem; }
.quiz-progress { margin-bottom: 2rem; }
.quiz-progress__bar-track { height: 7px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 0.4rem; }
.quiz-progress__bar-fill  { height: 100%; background: linear-gradient(to right, var(--red-deep), var(--red)); border-radius: 99px; transition: width 0.4s ease; }
.quiz-progress__label     { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.quiz-question-card { background: var(--white); border: 1.5px solid var(--border); border-top: 4px solid var(--orange); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.quiz-question-type { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); font-weight: 700; margin-bottom: 0.75rem; }
.quiz-question-text { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 1.5rem; line-height: 1.4; color: var(--navy-dark); }
.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-option  { padding: 0.75rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; font-size: 0.95rem; text-align: left; transition: all 0.15s; font-family: var(--font-body); color: var(--navy-dark); }
.quiz-option:hover:not(:disabled) { border-color: var(--blue); background: #EBF4FA; }
.quiz-option.correct { border-color: #1a7a3a; background: #edf7f1; color: #155c2c; font-weight: 600; }
.quiz-option.wrong   { border-color: var(--red); background: #fdf0f1; color: var(--red-deep); }
.quiz-fill-input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: var(--font-body); background: var(--white); color: var(--navy-dark); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.quiz-fill-input:focus   { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,153,204,0.15); }
.quiz-fill-input.correct { border-color: #1a7a3a; background: #edf7f1; }
.quiz-fill-input.wrong   { border-color: var(--red); background: #fdf0f1; }
.quiz-feedback { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; border-left: 4px solid transparent; }
.quiz-feedback.correct { background: #edf7f1; color: #155c2c; border-left-color: #1a7a3a; }
.quiz-feedback.wrong   { background: #fdf0f1; color: var(--red-deep); border-left-color: var(--red); }
.quiz-controls { display: flex; justify-content: flex-end; margin-top: 1rem; }
.quiz-results { text-align: center; background: var(--white); border: 1.5px solid var(--border); border-top: 5px solid var(--orange); border-radius: var(--radius-lg); padding: 3rem 2rem; box-shadow: var(--shadow-lg); }
.quiz-results__score { font-family: var(--font-head); font-size: 4.5rem; color: var(--navy-dark); line-height: 1; margin-bottom: 0.5rem; }
.quiz-results__label { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }
.quiz-results__btns  { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.quiz-results__msg   { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--navy); }
.quiz-unlock-banner { background: #edf7f1; color: #155c2c; border: 1px solid rgba(26,122,58,0.3); border-left: 4px solid #1a7a3a; border-radius: var(--radius); padding: 0.75rem 1rem; font-weight: 700; font-size: 0.95rem; margin-bottom: 1.25rem; }
.quiz-unlock-banner--unit { background: rgba(247,170,20,0.1); color: var(--orange-dim); border-color: rgba(247,170,20,0.4); border-left-color: var(--orange); }
.quiz-retry-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; font-style: italic; }
@media (max-width: 600px) {
  .quiz-question-card { padding: 1.25rem; }
  .quiz-results { padding: 2rem 1.25rem; }
  .quiz-results__score { font-size: 3rem; }
  .quiz-results__btns { flex-direction: column; align-items: stretch; }
  .quiz-results__btns .btn { width: 100%; justify-content: center; }
}
.quiz-history-wrap { overflow-x: auto; }
.quiz-history {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.quiz-history thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}
.quiz-history tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.quiz-history tbody tr:last-child { border-bottom: none; }
.quiz-history tbody tr:hover { background: var(--light); }
.quiz-history td {
  padding: 0.6rem 0.75rem;
  color: var(--navy-dark);
  white-space: nowrap;
}
.quiz-history__score { font-weight: 700; font-family: var(--font-head); }
.quiz-history__row--pass .quiz-history__score { color: #1a7a3a; }
.quiz-history__row--fail .quiz-history__score  { color: var(--red); }
/* ── Grammar pages ──────────────────────────────────────────────────────── */
.grammar-section { margin-bottom: 2.5rem; }
.grammar-section__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
/* Conjugation tables */
.conj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
/* When conj-grid is used inside how-it-works__steps, reset its padding/border */
.how-it-works__steps.conj-grid {
  border-top: none;
  padding: 1.25rem 1.5rem 1.5rem;
}
/* Single-column prose layout for grammar sections */
.how-it-works__steps--block {
  display: block;
  padding: 1.25rem 1.5rem 1.5rem;
}
.how-it-works__steps--block .how-it-works__intro {
  margin: 0 0 0.75rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text);
}
@media (max-width: 700px) {
  .conj-grid { grid-template-columns: 1fr; }
}
.conj-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.conj-card__head {
  background: var(--navy-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.conj-card__verb  { font-family: var(--font-head); font-size: 1.05rem; }
.conj-card__gloss { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.conj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.conj-table tr { border-bottom: 1px solid var(--border); }
.conj-table tr:last-child { border-bottom: none; }
.conj-table td { padding: 0.45rem 1rem; }
.conj-table td:first-child { color: var(--muted); width: 38%; }
.conj-table td:last-child  { font-family: var(--font-head); color: var(--navy-dark); font-weight: 600; }
.conj-note {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--light);
  font-style: italic;
  line-height: 1.5;
}
/* Compact verb card — present table + past/future footer */
.conj-card--compact .conj-card__head { background: var(--navy); }
.conj-extra {
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.conj-extra tr { border-bottom: 1px solid var(--border); }
.conj-extra tr:last-child { border-bottom: none; }
.conj-extra td { padding: 0.4rem 1rem; }
.conj-extra td:first-child { color: var(--muted); width: 38%; font-style: italic; }
.conj-extra td:last-child  { font-family: var(--font-head); color: var(--navy-dark); font-weight: 600; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.stat-card { background: var(--white); border: 1.5px solid var(--border); border-top: 3px solid var(--navy); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); text-align: center; }
.stat-card--accent { border-top-color: var(--orange); }
.stat-card__value  { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--navy-dark); line-height: 1; margin-bottom: 0.4rem; }
.stat-card__label  { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--muted); }
.admin-unit-section { margin-bottom: 2.5rem; }
.admin-unit-header  { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.75rem; }
.admin-unit-header__icon  { font-size: 2rem; flex-shrink: 0; }
.admin-unit-header__title { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy-dark); margin-bottom: 0.1rem; }
.admin-unit-header__desc  { font-size: 0.85rem; color: var(--muted); }
.admin-table-wrap { border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9rem; }
.admin-table thead { background: var(--navy-dark); color: var(--white); }
.admin-table thead th { padding: 0.75rem 1.25rem; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.admin-table tbody tr { border-bottom: 1px solid var(--border); background: var(--white); transition: background 0.15s; }
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:nth-child(even) { background: #F4F9FD; }
.admin-table tbody tr:hover { background: #EBF4FA; }
.admin-table td { padding: 0.75rem 1.25rem; color: var(--dark); }
.admin-table__username { font-weight: 600; color: var(--navy-dark); }
.admin-table__date     { color: var(--muted); font-size: 0.82rem; }
.admin-table__actions  { text-align: right; white-space: nowrap; }
.role-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.role-badge--standard { background: #EBF4FA; color: var(--blue); }
.role-badge--admin    { background: rgba(247,170,20,0.15); color: var(--orange-dim); }
.admin-table__progress { min-width: 160px; }
.user-progress         { display: flex; flex-direction: column; gap: 0.25rem; }
.user-progress__bar    { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.user-progress__fill   { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.3s; }
.user-progress__label  { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
}
/* ── Culture pages ──────────────────────────────────────────────── */
.culture-intro {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.7;
}
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.culture-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.culture-card__header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.culture-card__icon  { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.culture-card__icon--flag { font-size: unset; width: 2rem; height: auto; border-radius: 3px; display: block; }
.culture-card__title { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy-dark); margin: 0; }
.culture-card__body  { font-size: 0.9rem; color: var(--dark); line-height: 1.6; }
.culture-card__body p { margin: 0 0 0.5rem; }
.culture-card__body p:last-child { margin-bottom: 0; }
.culture-card--accent { border-top: 3px solid var(--orange); }
.culture-card--navy   { border-top: 3px solid var(--navy); }
/* Vocab table */
.culture-vocab {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.culture-vocab__row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
  gap: 1rem;
}
.culture-vocab__row:last-child { border-bottom: none; }
.culture-vocab__row:nth-child(even) { background: #F4F9FD; }
.culture-vocab__row--header {
  background: var(--navy-dark) !important;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--white);
  border-bottom: none;
}
.culture-vocab__ltz  { font-weight: 600; color: var(--navy-dark); }
.culture-vocab__en   { color: var(--dark); }
.culture-vocab__note { font-size: 0.85rem; color: var(--muted); font-style: italic; }
/* Language use bars */
.lang-split {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.lang-split__title { font-family: var(--font-head); font-size: 1rem; color: var(--navy-dark); margin-bottom: 1rem; }
.lang-bar { margin-bottom: 1rem; }
.lang-bar:last-child { margin-bottom: 0; }
.lang-bar__label  { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.3rem; }
.lang-bar__name   { font-weight: 600; color: var(--dark); }
.lang-bar__pct    { color: var(--muted); }
.lang-bar__track  { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.lang-bar__fill   { height: 100%; border-radius: 5px; }
.lang-bar__fill--ltz { background: var(--navy); }
.lang-bar__fill--fr  { background: var(--blue); }
.lang-bar__fill--de  { background: var(--orange); }
/* Map / region list */
.region-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.region-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.region-card__name { font-family: var(--font-head); font-size: 1rem; color: var(--navy-dark); margin-bottom: 0.4rem; }
.region-card__alt  { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.region-card__desc { font-size: 0.88rem; color: var(--dark); line-height: 1.5; }
/* Bottom culture navigation */
.culture-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  margin-top: 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.culture-nav__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex: 1;
  min-width: 140px;
}
.culture-nav__item:hover { background: #EBF4FA; color: var(--navy-dark); }
.culture-nav__item--active { background: var(--navy); color: var(--white) !important; font-weight: 600; }
.culture-nav__item--active:hover { background: var(--navy-dark); }
.culture-nav__icon  { font-size: 1.2rem; flex-shrink: 0; }
.culture-nav__label { line-height: 1.3; }
@media (max-width: 600px) {
  .culture-vocab__row { grid-template-columns: 1fr 1fr; }
  .culture-vocab__note { display: none; }
  .culture-nav__item { min-width: 120px; font-size: 0.82rem; padding: 0.5rem 0.75rem; }
  .culture-intro { padding: 1rem 1.25rem; }
}
.error-page        { text-align: center; padding: 5rem 1rem; }
.error-page__code  { font-family: var(--font-head); font-size: 6rem; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.error-page__title { font-family: var(--font-head); font-size: 2rem; margin-bottom: 0.5rem; }
.error-page__sub   { color: var(--muted); margin-bottom: 2rem; }
