/* Judland — site styles
   The layout follows the Judland flag: a Nordic cross whose vertical bar
   continues down every page as a thin red spine. */

@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-opsz-normal.woff2") format("woff2-variations"); font-weight: 200 900; font-style: normal; font-display: swap; 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: "Literata"; src: url("/assets/fonts/literata-latin-ext-opsz-normal.woff2") format("woff2-variations"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Literata"; src: url("/assets/fonts/literata-latin-opsz-italic.woff2") format("woff2-variations"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F3F4F1;
  --white: #FFFFFF;
  --alt: #E9ECEB;
  --ink: #1D2229;
  --ink-2: #4B525C;
  --line: #CDD1CC;
  --sky: #A9C6E2;
  --red: #A8283B;
  --gold: #8A6A2B;
  --focus: #2F5E8C;
  --ph: #FFF0B8;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* The grid: canton | gap | spine | gap | content */
  --pad: clamp(20px, 4vw, 56px);
  --c1: clamp(190px, 23vw, 300px);
  --g1: clamp(28px, 3vw, 48px);
  --sw: 4px;
  --g2: clamp(28px, 3.4vw, 56px);
  --spine-x: calc(var(--pad) + var(--c1) + var(--g1));
  --cx: calc(var(--spine-x) + var(--sw) / 2);
  --bw: clamp(44px, 5vw, 68px);      /* width of the cross band in the hero */
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
sub { font-size: 0.7em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.6rem/1 var(--serif); letter-spacing: -0.015em; }
.wordmark img { width: 26px; height: auto; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--gold); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--red); }
.menu-toggle { display: none; font: 600 0.95rem var(--sans); background: none; border: 1px solid var(--ink); border-radius: 4px; padding: 8px 14px; color: var(--ink); cursor: pointer; }

/* ---------- grid rows with the spine ---------- */
.row {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: var(--c1) var(--g1) var(--sw) var(--g2) minmax(0, 1fr);
}
.c1 { grid-column: 1; min-width: 0; }
.c5 { grid-column: 5; min-width: 0; }

.band .row, .site-footer .row {
  background-image: linear-gradient(var(--red), var(--red));
  background-size: var(--sw) 100%;
  background-position: var(--spine-x) 0;
  background-repeat: no-repeat;
}
.band .row { padding-block: clamp(56px, 7vw, 104px); }
.band + .band .row { padding-top: clamp(28px, 3.5vw, 52px); }
.band.alt { background: var(--alt); }
.band.alt + .band:not(.alt) .row, .band:not(.alt) + .band.alt .row { padding-top: clamp(56px, 7vw, 104px); }
.band h2 { padding-top: 2px; }

/* ---------- hero: the flag ---------- */
.hero { background: var(--sky); }
.hero .hero-top, .hero .hero-bottom {
  background-image: linear-gradient(90deg, var(--white) 0 18%, var(--red) 18% 82%, var(--white) 82% 100%);
  background-size: var(--bw) 100%;
  background-position: calc(var(--cx) - var(--bw) / 2) 0;
  background-repeat: no-repeat;
}
.hero-top { padding-top: clamp(48px, 7vw, 108px); padding-bottom: clamp(28px, 3.5vw, 48px); }
.hero-bottom { padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: clamp(48px, 6vw, 92px); }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem); font-weight: 600; line-height: 1.08; max-width: 20ch; letter-spacing: -0.02em; }
.hero-home h1 { font-size: clamp(2.3rem, 1.1rem + 4.2vw, 4.6rem); max-width: 17ch; }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.5; max-width: 40em; margin: 0; }
.hero .actions { margin-top: 28px; }
.hbar {
  height: var(--bw);
  background: linear-gradient(180deg, var(--white) 0 18%, var(--red) 18% 82%, var(--white) 82% 100%);
}
.hbar-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%; position: relative;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: calc(var(--bw) * 0.64) 100%;
  background-position: calc(var(--cx) - var(--bw) * 0.32) 0;
  background-repeat: no-repeat;
}
.hero-anchor {
  position: absolute; top: 50%; left: var(--cx);
  width: calc(var(--bw) * 1.35); transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 0 rgba(60, 20, 0, .25));
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn {
  display: inline-block; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-radius: 4px; padding: 14px 22px;
}
.btn:hover { background: #343B45; border-color: #343B45; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(29, 34, 41, .07); }
.btn[disabled] { opacity: .55; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }

/* ---------- text ---------- */
.big, .prose p.big { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem); line-height: 1.45; max-width: 34em; }
.prose { max-width: 38em; }
.prose p, .prose li { font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.prose p:last-child { margin-bottom: 0; }
.seq li::marker { font-family: var(--serif); font-weight: 600; color: var(--red); }
.ph { background: var(--ph); outline: 1px dashed #B99A2F; padding: 0 4px; font-family: var(--sans); font-size: .9em; }
.note { color: var(--ink-2); font-size: .98rem; }
.sub { margin: 48px 0 12px; }
.hint { color: var(--ink-2); font-size: .93rem; margin: 2px 0 8px; }

/* ---------- home ---------- */
.tree { margin-top: 36px; max-width: 640px; }
.t-root { display: inline-block; font: 600 1.15rem var(--serif); border: 2px solid var(--ink); padding: 10px 18px; background: var(--white); }
.t-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; position: relative; padding-top: 0; }
.t-kids::before { content: ""; position: absolute; top: -28px; left: 24px; width: 2px; height: 14px; background: var(--ink); }
.t-kids::after { content: ""; position: absolute; top: -14px; left: 24px; right: calc(50% - 33px); height: 2px; background: var(--ink); }
.t-node { position: relative; background: var(--white); border: 1px solid var(--line); padding: 14px 16px; }
.t-node::before { content: ""; position: absolute; top: -15px; left: 24px; width: 2px; height: 14px; background: var(--ink); }
.t-node strong { display: block; font: 600 1.1rem var(--serif); }
.t-node span { color: var(--ink-2); font-size: .95rem; }

.facts { margin: 0; display: grid; gap: 0; max-width: 680px; }
.facts div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 20px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 600 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.facts dd { margin: 0; color: var(--ink-2); }

/* ---------- logos ---------- */
.logo-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.logo-grid a { display: block; text-decoration: none; }
.logo-grid a:hover .tile { border-color: var(--gold); }
.logo-grid a:hover .g-name { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.tile { display: grid; place-items: center; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; padding: 13%; }
.tile.full img { object-fit: cover; padding: 0; }
.tile.none span { font: 600 1.15rem/1.15 var(--serif); text-align: center; padding: 12px; }
.g-name { display: block; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.g-year { display: block; color: var(--ink-2); font-size: .9rem; }

.co-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.co { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.co:last-child { border-bottom: 1px solid var(--line); }
.co h3 { margin-bottom: 4px; }
.co p { margin: 0 0 6px; max-width: 34em; }
.co-meta { color: var(--ink-2); font-size: .93rem; }
.tile.sm.none span { font-size: .9rem; }

/* ---------- industries ---------- */
.sticky { position: sticky; top: 96px; }
.ind-index-title { font: 600 1.1rem var(--serif); margin-bottom: 10px; }
.ind-index ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.ind-index li { margin: 0; }
.ind-index a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink-2); font-size: .97rem; }
.ind-index a:hover, .ind-index a.on { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
.industry { padding-bottom: 64px; }
.industry + .industry { padding-top: 8px; }
.industry > h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: 14px; }
.industry .note { margin-top: -4px; }

.crest { width: 100%; max-width: 280px; }

/* ---------- embassies ---------- */
.counter { font-family: var(--serif); font-size: 1.15rem; }
.counter span { font-size: 2.6rem; font-weight: 600; margin-right: .2em; }

/* ---------- press ---------- */
.press-item { max-width: 38em; padding: 4px 0 24px; }
.press-item .date { color: var(--ink-2); font-size: .93rem; margin-bottom: 6px; }
.press-item h3 { font-size: 1.5rem; margin-bottom: 8px; }
.press-item h3 a { text-decoration: none; }
.press-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.article h2 { font-size: 1.45rem; }

/* ---------- forms ---------- */
form { max-width: 760px; }
label, legend { font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid #A9AFA9; border-radius: 4px; padding: 12px 13px; margin-top: 6px;
}
textarea { resize: vertical; min-height: 6em; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 1px var(--red); }
.err { color: var(--red); font-size: .93rem; font-weight: 600; margin: 6px 0 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; }
.field { min-width: 0; }
.field.full, .org-fields { grid-column: 1 / -1; }
.org-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.org-fields[hidden] { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend { margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; line-height: 1.45; }
.choice input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.status { margin-top: 16px; font-weight: 600; }
.status.ok { color: #24603A; }
.status.bad { color: var(--red); }

.subscribe .inline { display: flex; gap: 10px; margin-top: 6px; max-width: 520px; }
.subscribe input { margin-top: 0; }
.subscribe .btn { flex: none; }

/* contact groups */
.groups legend { font: 600 1.25rem var(--serif); }
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 34px; }
.group-opt { position: relative; display: block; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 16px 16px 14px 48px; cursor: pointer; font-weight: 400; }
.group-opt input { position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; accent-color: var(--red); }
.group-opt .g-title { display: block; font-weight: 600; }
.group-opt .g-desc { display: block; color: var(--ink-2); font-size: .93rem; margin: 2px 0 6px; }
.group-opt .g-mail { display: block; font-size: .9rem; color: var(--gold); }
.group-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.send-to { margin: 24px 0 14px; color: var(--ink-2); }

/* partnership wizard */
.progress { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: s; }
.progress li { counter-increment: s; font-size: .85rem; color: var(--ink-2); border-top: 4px solid var(--line); padding-top: 8px; line-height: 1.3; }
.progress li::before { content: counter(s) ". "; font-weight: 600; }
.progress li.done { border-top-color: var(--ink); color: var(--ink); }
.progress li[aria-current="step"] { border-top-color: var(--red); color: var(--ink); font-weight: 600; }
.step legend { font: 600 1.6rem/1.2 var(--serif); margin-bottom: 6px; }
.step-no { display: block; font: 500 .95rem var(--sans); color: var(--ink-2); margin-bottom: 6px; }
.step-intro { color: var(--ink-2); margin-bottom: 26px; }
.wizard-nav { display: flex; gap: 12px; margin-top: 36px; }
.draft-note { background: var(--white); border-left: 4px solid var(--gold); padding: 12px 16px; }
.save-hint { margin-top: 18px; }
.done-box { background: var(--white); border-left: 4px solid var(--red); padding: 24px 26px; max-width: 640px; }
.done-box h3 { margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #E6E8E4; font-size: .95rem; }
.site-footer .row { padding-block: 56px 28px; background-image: linear-gradient(var(--red), var(--red)); }
.site-footer a { color: #E6E8E4; }
.foot-mark { display: flex; align-items: center; gap: 10px; font: 700 1.4rem var(--serif); color: var(--white); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.foot-links li { margin-bottom: 6px; }
.foot-note { grid-column: 1 / -1; color: #B9BEB8; margin: 0; }
.site-footer .foot-base { padding-block: 0 40px; }
.foot-base p { color: #B9BEB8; margin: 0; padding-top: 18px; border-top: 1px solid #3A414B; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-header nav ul { gap: 4px 16px; }
  .site-header nav a { font-size: .93rem; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-header.open nav { display: block; }
  .site-header nav ul { flex-direction: column; padding: 8px var(--pad) 20px; }
  .site-header nav a { display: block; font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-header nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--red); padding-left: 12px; }
}
@media (max-width: 820px) {
  :root { --pad: 18px; --c1: 0px; --g1: 0px; --g2: 20px; --bw: 36px; }
  .row { grid-template-columns: 0 0 var(--sw) var(--g2) minmax(0, 1fr); }
  .c1 { grid-column: 5; grid-row: 1; }
  .c5 { grid-row: 2; }
  .band .c1 h2 { margin-bottom: 20px; }
  .hero .hero-top, .hero .hero-bottom { background-position: calc(var(--cx) - var(--bw) / 2) 0; }
  .hero-top .c5, .hero-bottom .c5 { grid-row: 1; }
  .hero h1 { padding-left: 12px; }
  .hero .lede, .hero .actions { padding-left: 12px; }
  .hero-anchor { width: 46px; }
  .sticky { position: static; }
  .ind-index ul { columns: 2; column-gap: 20px; }
  .ind-index { margin-bottom: 8px; }
  .crest { max-width: 200px; margin-bottom: 8px; }
  .fields, .org-fields, .group-grid { grid-template-columns: 1fr; }
  .t-kids { grid-template-columns: 1fr; }
  .t-kids::after { display: none; }
  .t-node + .t-node::before { height: 18px; top: -19px; }
  .progress { grid-template-columns: repeat(6, 1fr); }
  .progress li span { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .co { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .subscribe .inline { flex-direction: column; }
  .site-footer .c1 { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Right-to-left support for the upcoming Arabic version */
[dir="rtl"] .row { direction: rtl; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.25em; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 6px; } }

/* The Judlandian Dream: set on the flag's blue */
.band.dream { background: var(--sky); }
.band.dream .row { padding-block: clamp(64px, 8vw, 120px); }
.band.dream + .band .row { padding-top: clamp(56px, 7vw, 104px); }
.dream h2 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); }
.dream.band .prose { max-width: 36em; }
.dream .prose p { font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.65; }
.dream .dream-close { font-weight: 600; }
