@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sand: #f4ead9;
  --sand-deep: #e8d5b8;
  --paper: #faf4ea;
  --ink: #2a2118;
  --muted: #6b5e4e;
  --clay: #9a3d22;
  --clay-dark: #6d2c16;
  --mesa: #c45c32;
  --olive: #3d2a1c;
  --olive-soft: #efe4d2;
  --line: #e0d2bc;
  --gold: #c4924a;
  --alert: #f4e4d4;
  --max: 1180px;
  --font-display: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  --font-text: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-underline-offset: 0.28em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.card:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 0.75rem;
  z-index: 40;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.7rem 1.1rem;
  padding: 0.65rem 5vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

img.logo {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: 10rem;
}

.menu-toggle,
.menu-close {
  appearance: none;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  min-height: 2.35rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.menu-close {
  margin-top: 1.1rem;
  justify-content: center;
  width: 100%;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(42, 33, 24, 0.35);
}

.nav-grouped,
.nav-main {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-label { display: none; }
.nav-trigger,
.nav-top,
.nav-main > a {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  background: transparent;
  min-height: 2.3rem;
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
}
.nav-trigger::after {
  content: "";
  width: 0.32em;
  height: 0.32em;
  margin-left: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.08em);
  opacity: 0.45;
}
.nav-item.is-open .nav-trigger::after {
  transform: rotate(-135deg) translateY(0.04em);
  opacity: 0.8;
}
.nav-trigger:hover,
.nav-top:hover,
.nav-main > a:hover { color: var(--clay); }
.nav-item.is-current .nav-trigger,
.nav-item.is-open .nav-trigger,
.nav-top[aria-current="page"],
.nav-main > a[aria-current="page"] {
  background: var(--sand);
  color: var(--clay-dark);
}
.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 16.5rem;
  padding: 0.55rem 0.4rem 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--clay);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(42, 33, 24, 0.14);
  z-index: 40;
}
.nav-item.is-open .nav-panel { display: grid; gap: 0.1rem; }
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  background: var(--sand);
  color: var(--clay-dark);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0 0 1.4rem;
  max-width: var(--max);
}
.footer-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.footer-groups a {
  display: block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin: 0.25rem 0;
  font-size: 0.92rem;
}
.more-langs { font-weight: 650; }

.lang-switch {
  display: flex;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
@media (min-width: 901px) {
  .nav-main + .lang-switch { margin-left: 0; }
  .menu-close { display: none !important; }
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  min-height: 2rem;
  padding: 0 0.4rem;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.lang-switch a[aria-current="true"] {
  background: var(--clay);
  color: #fff8ef;
}
.lang-switch a:not([aria-current="true"]):hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  background: var(--sand);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.2rem 5vw 2.4rem;
}
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 650;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 600;
}
h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}
h3 {
  margin: 0.4rem 0;
  font-size: 1.25rem;
}
.lead {
  max-width: 36rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
}
.hero-meta {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-meta strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.hero-image {
  position: relative;
  min-height: 16rem;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #ac704b;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.photo-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: #3d2a1ce6;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}
.button:hover { background: var(--clay-dark); }
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.button.secondary:hover { background: var(--ink); color: var(--sand); }
.button.ghost {
  background: transparent;
  color: var(--clay-dark);
  padding-inline: 0.2rem;
  text-decoration: underline;
}

/* Practical strip & notice */
.facts {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1rem 5vw;
  background: var(--olive);
  color: #f3eadb;
}
.facts-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.facts ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts li {
  margin: 0;
  padding: 0;
  border-left: 1px solid #6b4d38;
  padding-left: 1rem;
}
.facts strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4b896;
  font-weight: 650;
}
.facts a {
  color: #fff;
  font-weight: 650;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 5vw;
  background: var(--alert);
  border-bottom: 1px solid #e4c8ae;
  color: var(--ink);
  font-size: 0.95rem;
}
.notice p { margin: 0; flex: 1 1 16rem; color: var(--muted); }
.notice strong {
  color: var(--clay-dark);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.notice a { font-weight: 700; color: var(--clay-dark); }

/* Home sections */
.section { padding: 3.5rem 5vw 4rem; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: 1.75rem;
  max-width: var(--max);
}
.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.25rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(30, 36, 28, 0.04);
}
.card:hover { border-color: var(--mesa); }
.card-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--clay);
}
.card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}
.card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clay-dark);
}

/* Language gate & 404 */
.gate {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: calc(100vh - 4rem);
  background: var(--sand);
}
.gate-visual { position: relative; min-height: 18rem; width: 100%; overflow: hidden; background: #ac704b; }
.gate-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.gate-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 8vw;
}
.gate-copy h1 { margin: 0 0 1rem; }
img.logo-hero {
  height: auto;
  width: min(22rem, 100%);
  max-width: 100%;
}
.gate-copy .lead { color: var(--ink); }
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-error {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw;
  max-width: 40rem;
}

/* Footer */
.site-footer {
  background: var(--olive);
  color: #f0e4d4;
  padding: 2.4rem 5vw 2rem;
}
.site-footer .brand { margin-bottom: 0.9rem; }
.site-footer .logo {
  height: 2.2rem;
  max-width: min(12rem, 85vw);
  background: #fefaf1;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
}
.site-footer p { margin: 0 0 1.1rem; max-width: 36rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin: 0 0 1.2rem;
}
.footer-links a { color: #fff; font-weight: 600; }
.site-footer small { color: #c4b09a; }

/* Articles */
.article-head {
  padding: 2.4rem 5vw 1.6rem;
  max-width: 72rem;
}
.article-head h1 { max-width: 18ch; }
.breadcrumbs {
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--ink); }
.meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 46rem);
  gap: 2.5rem 3.4rem;
  padding: 0 5vw 4.2rem;
  max-width: 72rem;
}

.toc {
  position: sticky;
  top: 0.75rem;
  align-self: start;
  padding-top: 0.2rem;
}
.toc strong {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}
.toc a {
  display: block;
  padding: 0.45rem 0;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.toc a:hover { color: var(--clay); }

.article-body section {
  scroll-margin-top: 1rem;
  margin-bottom: 2.3rem;
}
.article-body h2 { font-size: 1.7rem; }
.article-body p,
.article-body li { max-width: 70ch; }
.article-body li { margin-bottom: 0.55rem; }
.article-body .sources {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-size: 0.95rem;
}
.source-list a { overflow-wrap: anywhere; }

.callout {
  margin: 1.3rem 0;
  padding: 1rem 1.15rem;
  border-radius: 8px;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.callout-tip {
  background: var(--olive-soft);
  border-left: 3px solid var(--olive);
}
.callout-alert {
  background: var(--alert);
  border-left: 3px solid var(--clay);
}
.callout-rules {
  background: var(--olive);
  color: #f3eadb;
}
.callout-rules .callout-label { color: var(--gold); }
.callout-official {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}
.callout-rules a { color: #fff; }

.article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.article-body th,
.article-body td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0.6rem;
  vertical-align: top;
}
.table-wrap { overflow-x: auto; }

.article-body details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.article-body summary { font-weight: 650; cursor: pointer; }

.related {
  margin-top: 2rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.related h2 { font-size: 1.35rem; }
.related-list {
  display: grid;
  gap: 0.7rem;
}
.related-list a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--sand);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
}
.related-list a:hover { background: var(--sand-deep); }
.related-list span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body .button { margin: 0.4rem 0 0.2rem; }

@media (min-width: 1600px) {
  .site-header,
  .section,
  .notice,
  .facts,
  .site-footer,
  .hero-copy {
    padding-left: max(5vw, calc((100vw - 1440px) / 2));
    padding-right: max(5vw, calc((100vw - 1440px) / 2));
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0.5rem 5vw;
    gap: 0.5rem 0.7rem;
  }
  .menu-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 40;
    width: min(21.5rem, 88vw);
    margin: 0;
    padding: 1.15rem 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    overflow: auto;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 40px rgba(42, 33, 24, 0.16);
    transform: translateX(105%);
    transition: transform 0.22s ease;
  }
  body.nav-open .nav-main { transform: none; }
  .menu-close { display: inline-flex; }
  .nav-label {
    display: block;
    margin: 0.85rem 0 0.25rem;
    padding: 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay);
  }
  .nav-item:first-child .nav-label { margin-top: 0.2rem; }
  .nav-trigger { display: none; }
  .nav-panel {
    display: grid;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-top,
  .nav-main > a,
  .nav-panel a {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.7rem;
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .nav-top { margin-top: 0.85rem; }
}
  .footer-groups { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-image {
    order: -1;
    min-height: 12.5rem;
    height: min(38vh, 16rem);
  }
  .hero-copy { padding: 1.6rem 6vw 1.4rem; }
  .facts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .facts li {
    border-left: 0;
    padding-left: 0;
    padding-top: 0.55rem;
    border-top: 1px solid #6b4d38;
  }
  .section { padding: 2.4rem 6vw 3rem; }
  .section-heading { grid-template-columns: 1fr; gap: 0.4rem; }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
  }
  .toc strong { width: 100%; }
  .toc a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.86rem;
  }
  .gate { grid-template-columns: 1fr; }
  .gate-visual {
    min-height: 12rem;
    height: min(42vh, 18rem);
  }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  img.logo { height: 1.55rem; max-width: 8.2rem; }
  h1 { font-size: 2rem; }
  .article-head { padding-top: 1.4rem; }
  .article-head h1 { max-width: none; }
  .article-body h2 { font-size: 1.4rem; }
  .article-body { min-width: 0; }
  .hero-image { height: min(32vh, 14rem); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .button, .card { transition: color 0.16s, background 0.16s, border-color 0.16s; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-main { transition: none; }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .notice,
  .facts,
  .related,
  .button { display: none; }
  .article-layout { display: block; padding: 0; }
  .article-head { padding: 0; }
  body { background: white; color: black; font-size: 12pt; }
  .article-body a::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
  h2 { break-after: avoid; }
  section { break-inside: avoid; }
}
