/* landcodes.net - theme v1 (30-11-2026, "Codeboek")
   A reference book: warm paper, navy ink, the codes in JetBrains Mono on teal-tinted chips, tables that read like an
   index. Schibsted Grotesk for text (latin + latin-ext: Åland, Curaçao, Łódź in the ISO 3166-2 names). */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #15202B; --ink-2: #3D4954; --ink-3: #66717B; --paper: #F6F4EE; --card: #FFFFFF; --rule: #DDD8CC; --rule-2: #EBE7DE;
  --teal: #0B6E69; --teal-ink: #07514D; --teal-soft: #E3F1EE; --teal-line: #B7DAD3; --amber: #F2B134; --amber-soft: #FDF1D8;
  --night: #15202B; --night-2: #1E2C39;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px; --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
code, .code { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--ink-3); }

/* header ---------------------------------------------------------------------------------------- */
.top { background: var(--night); color: #fff; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: block; line-height: 0; }
.brand img { height: 32px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--night-2); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.menu-toggle { display: none; }
.top-rule { height: 4px; background: repeating-linear-gradient(90deg, var(--teal) 0 48px, var(--amber) 48px 56px); }
@media (max-width: 760px) {
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #fff; border: 1px solid #44525f; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 15px; }
  .menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__open, .menu-toggle[aria-expanded="false"] .menu-toggle__close { display: none; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--night); padding: 8px 16px 16px; z-index: 5; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .top__in { position: relative; flex-wrap: wrap; }
  .brand img { height: 28px; }
}

/* crumbs, body ------------------------------------------------------------------------------------ */
.crumbs-wrap { padding-top: 18px; font-size: 14px; color: var(--ink-3); }
main { padding-bottom: 48px; }
.body { max-width: 760px; }
.body h1 { margin-top: .6em; }
.body table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
.body th, .body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 760px; }

/* code chip ------------------------------------------------------------------------------------- */
.chip { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: .95em; line-height: 1.35; background: var(--teal-soft);
  color: var(--teal-ink); border: 1px solid var(--teal-line); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.chip--big { font-size: 22px; padding: 2px 10px; }
.none { color: var(--ink-3); font-style: italic; font-size: 15px; }

/* hero + search ------------------------------------------------------------------------------- */
.hero { padding: 36px 0 12px; }
.hero h1 { margin-bottom: .3em; }
.find { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; margin: 18px 0 8px; box-shadow: 0 1px 0 var(--rule-2); }
.find__label { display: block; font-weight: 700; margin-bottom: 8px; }
.find__row { display: flex; gap: 8px; }
.find input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.find button { font: inherit; font-weight: 700; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; cursor: pointer; }
.find button:hover { background: var(--teal-ink); }
.find__hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }
.find-out { margin: 10px 0 0; }
.find-out ul { list-style: none; margin: 0; padding: 0; }
.find-out li { padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.find-out li:last-child { border-bottom: 0; }
.find-out .what { display: block; font-size: 14px; color: var(--ink-3); }

/* tiles ----------------------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 8px; padding: 0; list-style: none; }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; }
.tile a { text-decoration: none; color: inherit; display: block; }
.tile small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tile b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.tile a:hover b { color: var(--teal); }

/* code tables (country page) ------------------------------------------------------------------- */
.answer { font-size: 19px; max-width: 780px; }
.terr { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--amber-soft); border: 1px solid #F0D9A6; border-radius: 99px; padding: 2px 10px; margin-bottom: 10px; }
.sheet { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; margin: 10px 0 6px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--rule-2); vertical-align: top; }
.sheet tr:first-child th, .sheet tr:first-child td { border-top: 0; }
.sheet thead th { background: var(--rule-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.sheet tbody th { font-weight: 600; width: 38%; }
.sheet tbody th a { color: var(--ink); text-decoration-color: var(--rule); }
.sheet tbody th a:hover { color: var(--teal); }
.sheet .vals { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.sheet .val { display: block; }
.sheet .val + .val { margin-top: 6px; }
.sheet .lbl { color: var(--ink-2); font-size: 15px; margin-left: 6px; }
.sheet .note { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.sheet tr.is-empty th { color: var(--ink-3); font-weight: 500; }
.sheet .num { font-family: var(--mono); white-space: nowrap; }
@media (max-width: 640px) {
  .sheet:not(.sheet--subs) tbody th, .sheet:not(.sheet--subs) tbody td { display: block; width: auto; }
  .sheet:not(.sheet--subs) tbody td { padding-top: 0; border-top: 0; }
  .sheet:not(.sheet--subs) thead { display: none; }
  .sheet--subs th, .sheet--subs td { padding: 8px 10px; font-size: 15px; }
}
.sheet--subs { max-height: 640px; overflow: auto; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; font-weight: 600; }

/* hubs ------------------------------------------------------------------------------------------ */
.letters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0; }
.letters a { display: inline-block; min-width: 36px; text-align: center; padding: 6px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--rule); font-weight: 700; text-decoration: none; color: var(--ink); }
.letters a:hover { border-color: var(--teal); color: var(--teal); }
.letter-h { font-family: var(--mono); font-size: 26px; margin: 28px 0 8px; color: var(--teal-ink); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 16px 0; }
.group { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; }
.group h2, .group h3 { margin-top: 0; font-size: 20px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule-2); }
.group li:first-child { border-top: 0; }
.group li a { font-weight: 600; text-decoration: none; color: var(--ink); }
.group li a:hover { color: var(--teal); }
.group li .chip { flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.sys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sys li { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.sys h3 { margin: 0 0 4px; }
.sys h3 a { color: var(--ink); text-decoration: none; }
.sys h3 a:hover { color: var(--teal); }
.sys p { margin: 0; color: var(--ink-2); font-size: 16px; }
.sys .meta { margin-top: 6px; font-size: 14px; color: var(--ink-3); }

/* system page --------------------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.facts div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; }
.facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; }
.nl-line { background: var(--amber-soft); border: 1px solid #F0D9A6; border-radius: var(--r); padding: 12px 14px; max-width: 780px; }
.filter { margin: 14px 0 6px; }
.filter input { font: inherit; padding: 10px 12px; border: 1px solid var(--ink-3); border-radius: 8px; width: 100%; max-width: 360px; }
.inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.btn { display: inline-block; background: var(--teal); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.btn:hover { background: var(--teal-ink); color: #fff; }
.btn-row { margin: 20px 0 0; }
.source { font-size: 14px; color: var(--ink-3); margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 12px; max-width: 860px; }

/* footer ---------------------------------------------------------------------------------------- */
.foot { background: var(--night); color: #CBD3DA; padding: 32px 0 24px; font-size: 15px; }
.foot a { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot__grid img { height: 28px; width: auto; margin-bottom: 10px; }
.foot__head { color: #fff; font-weight: 700; margin-bottom: 6px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 3px 0; }
.foot__small { margin-top: 24px; font-size: 13px; color: #9AA6B1; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }
