/* Embassy of the Kingdom of the Netherlands in Kazakhstan — site template */
:root {
  --orange: #ff7700;       /* header bgcolor */
  --orange-2: #fa7300;     /* footer bgcolor */
  --navy: #1e325e;         /* top strip bgcolor */
  --yellow: #ffd126;       /* accent band bgcolor */
  --blue: #0061d8;         /* page headings */
  --line: #a0a0a0;         /* table borders */
  --bg: #ffffff;           /* page background */
  --soft: #fff4e8;
  --text: #1f2430;
  --muted: #5b6272;
  --radius: 10px;
  --wrap: 1200px;
  --font: "Segoe UI", Tahoma, "PT Sans", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar a { color: #fff; text-decoration: none; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: .04em; opacity: .75; }
.lang a:hover { opacity: 1; background: rgba(255,255,255,.12); color: #fff; }
.lang a[aria-current] { background: var(--orange); opacity: 1; }
.topbar-links { display: flex; align-items: center; gap: 16px; min-width: 0; }
.city-switch { font-weight: 600; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 2px 12px; }
.city-switch:hover { background: #fff; color: var(--navy) !important; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; }
.icon-link svg { width: 16px; height: 16px; }

.brand-bar { background: var(--orange); color: #fff; }
.brand-in { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: clamp(17px, 2.3vw, 26px); font-weight: 700; }
.brand-text small { font-size: clamp(13px, 1.5vw, 16px); opacity: .92; }
/* Dutch flag mark */
.brand-mark { display: flex; flex-direction: column; width: 48px; height: 36px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 2px #fff; flex: none; }
.brand-mark i { flex: 1; }
.brand-mark i:nth-child(1) { background: #ae1c28; }
.brand-mark i:nth-child(2) { background: #fff; }
.brand-mark i:nth-child(3) { background: #21468b; }
.brand-mark.big { width: 84px; height: 60px; margin: 0 auto 24px; box-shadow: 0 0 0 3px #fff; }
.accent-strip { height: 6px; background: var(--yellow); }

.burger { display: none; align-items: center; gap: 8px; background: rgba(0,0,0,.12); border: 0; color: #fff; padding: 10px 14px; border-radius: 8px; cursor: pointer; font: 600 15px var(--font); flex-direction: row; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.burger span + span { margin-top: 0; }
.burger > span { position: relative; }
.burger em { font-style: normal; }
.burger .bars { display: none; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 56px; flex: 1; }

/* ---------- side navigation ---------- */
.sidenav-head { display: none; }
.nav-list, .nav-list ul, .side-links ul { list-style: none; margin: 0; padding: 0; }
.nav-list { border-top: 3px solid var(--orange); background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 1px 0 var(--line); }
.nav-item { position: relative; border-bottom: 1px solid #e6e6e6; }
.nav-row { display: flex; align-items: stretch; }
.nav-row > a { flex: 1; display: block; padding: 11px 14px; color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15px; line-height: 1.35; border-left: 3px solid transparent; }
.nav-row > a:hover, .nav-row > a[aria-current] { background: var(--soft); border-left-color: var(--orange); color: var(--navy); }
.sub-toggle { flex: none; width: 44px; border: 0; background: transparent; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.sub-toggle:hover { color: var(--orange); }
.sub-toggle svg { transition: transform .2s; width: 18px; height: 18px; }
.sub { background: #fff; }
.sub a { display: block; padding: 8px 14px 8px 30px; font-size: 14px; color: var(--text); text-decoration: none; line-height: 1.4; position: relative; }
.sub a::before { content: ""; position: absolute; left: 16px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.sub a:hover, .sub a[aria-current] { color: var(--orange); background: var(--soft); }
.sub a[aria-current] { font-weight: 600; }

@media (min-width: 992px) {
  /* desktop: submenu flies out to the right on hover/focus (like the original Spry menu) */
  .sidenav { position: sticky; top: 16px; align-self: start; }
  .has-sub > .sub {
    position: absolute; left: 100%; top: -3px; width: 300px; z-index: 20;
    border-top: 3px solid var(--orange); box-shadow: 0 12px 32px rgba(30,50,94,.18); border-radius: 0 var(--radius) var(--radius) var(--radius);
    opacity: 0; visibility: hidden; transform: translateX(-6px); transition: .15s ease;
  }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-flyout > .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover > .nav-row > a { background: var(--soft); border-left-color: var(--orange); }
  .sub-toggle svg { transform: none; }
  .sub li + li { border-top: 1px solid #f0f0f0; }
}

.side-links { margin-top: 28px; }
.side-links h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.side-links li + li { margin-top: 8px; }
.side-links a { display: block; padding: 10px 14px; border: 1px solid #e3e3e3; border-left: 4px solid var(--orange); border-radius: 8px; text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.35; background: #fff; }
.side-links a:hover { border-color: var(--orange); background: var(--soft); }

/* ---------- content ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--orange); padding-bottom: 12px; margin-bottom: 24px; }
.page-head h1 { margin: 0; color: var(--blue); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; font-weight: 700; }
.page-tools { display: flex; gap: 6px; flex: none; }
.page-tools a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--orange); }
.page-tools a:hover { background: var(--orange); color: #fff; }
.page-tools svg { width: 18px; height: 18px; }

.prose { max-width: 860px; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--orange); }
.prose strong { color: #111; }
.prose .warn { color: #c62828; }
.prose hr { border: 0; border-top: 1px solid #ddd; margin: 2em 0; }
.prose img { border-radius: 6px; display: inline-block; vertical-align: middle; margin: 4px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid #e3e3e3; border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td, .prose th { border-bottom: 1px solid #ececec; padding: 10px 12px; vertical-align: top; text-align: left; }
.prose tr:first-child td { background: var(--soft); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose td p { margin: 0 0 .4em; }
.prose td p:last-child { margin: 0; }

/* news */
.news-list { list-style: none !important; padding: 0 !important; margin: 0 0 1.5em !important; }
.news-list li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--orange); margin: 0; }
.news-list time { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.news-list a { color: var(--text); text-decoration: none; }
.news-list a:hover { color: var(--orange); text-decoration: underline; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--orange); color: #fff !important; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--navy); }
.more { text-align: right; }
.news-back { margin: 0 0 8px; }
.news-back a { text-decoration: none; font-weight: 600; }
.news-meta { color: var(--muted); font-size: 14px; }
.news-meta time { font-weight: 700; color: var(--navy); }

/* ---------- footer ---------- */
.site-footer { background: var(--orange-2); color: #fff; border-top: 6px solid var(--navy); }
.footer-in { padding-top: 20px; padding-bottom: 20px; font-size: 14px; text-align: center; }
.footer-in p { margin: 0; }
.site-footer a { color: #fff; }

/* ---------- home ---------- */
.home { background: var(--bg); }
.home-main { flex: 1; }
.home-hero { background: var(--orange); color: #fff; text-align: center; padding: 64px 16px 72px; border-bottom: 6px solid var(--yellow); }
.home-hero h1 { max-width: 820px; margin: 0 auto 12px; font-size: clamp(22px, 3.4vw, 36px); line-height: 1.25; }
.home-sub { max-width: 760px; margin: 0 auto 32px; font-size: clamp(17px, 2.2vw, 22px); opacity: .95; }
.home-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--orange) !important; }
.btn-light:hover { background: var(--yellow); color: var(--navy) !important; }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: #fff; color: var(--navy) !important; }
.home-cities { max-width: 960px; margin: -36px auto 56px; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.city-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 10px 30px rgba(30,50,94,.14); border-top: 5px solid var(--navy); }
.city-tag { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.city-card h2 { margin: 8px 0 4px; font-size: 24px; }
.city-card h2 a, .city-card p a { text-decoration: none; color: var(--navy); }
.city-card p { margin: 0 0 20px; font-size: 18px; }
.city-card a:hover { color: var(--orange); }
.city-langs { display: flex; gap: 8px; }
.city-langs a { padding: 6px 16px; border-radius: 999px; background: var(--soft); color: var(--orange); font-weight: 700; text-decoration: none; }
.city-langs a:hover { background: var(--orange); color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 991px) {
  .burger { display: inline-flex; }
  .burger > span { display: none; }
  .burger::before { content: ""; width: 18px; height: 12px; background: linear-gradient(#fff 0 0) top/100% 2px no-repeat, linear-gradient(#fff 0 0) center/100% 2px no-repeat, linear-gradient(#fff 0 0) bottom/100% 2px no-repeat; }
  .brand-in { min-height: 76px; }
  .brand-mark { width: 38px; height: 28px; }
  .layout { grid-template-columns: 1fr; padding-top: 20px; gap: 0; }
  .sidenav {
    position: fixed; inset: 0 auto 0 0; width: min(88vw, 360px); background: #fff; z-index: 60;
    overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; padding-bottom: 24px;
  }
  .nav-open .sidenav { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidenav-head { display: flex; align-items: center; justify-content: space-between; background: var(--orange); color: #fff; padding: 12px 16px; font-weight: 700; position: sticky; top: 0; z-index: 2; }
  .sidenav-close { background: transparent; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
  .nav-list { border-top: 0; border-radius: 0; box-shadow: none; }
  .nav-row > a { padding: 14px 16px; }
  .sub { display: none; background: #fafafa; }
  .is-open > .sub { display: block; }
  .is-open > .nav-row .sub-toggle svg { transform: rotate(90deg); }
  .sub-toggle { width: 52px; border-left: 1px solid #eee; }
  .side-links { padding: 0 16px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(15,25,50,.5); z-index: 50; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .icon-link span { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 15px; }
  .brand { gap: 10px; }
  .burger em { display: none; }
  .burger { padding: 12px; }
  .page-head { flex-direction: column-reverse; gap: 8px; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .home-cities { grid-template-columns: 1fr; }
  .home-hero { padding: 44px 16px 64px; }
  .more { text-align: left; }
}
@media print {
  .site-header, .sidenav, .site-footer, .page-tools { display: none; }
  .layout { display: block; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-head:has(h1.sr-only) { justify-content: flex-end; }
