/* Local fonts start */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-ext-400.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-400.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-latin-ext-400.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-latin-400.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext-400.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin-400.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext-400.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-latin-400.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/source-serif-4-latin-ext-600.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/source-serif-4-latin-600.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/source-serif-4-latin-ext-600.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/source-serif-4-latin-600.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;
}
/* Local fonts end */

:root {
  --navy: #0E1F38;
  --navy-2: #13294d;
  --fjord: #1B4A75;
  --gold: #E6B450;
  --frost: #C9D8E6;
  --snow: #F7F9FB;
  --ink: #16202E;
  --muted: #5d6b7d;
  --line: #e2e8f0;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fjord); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
img, svg { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.18; font-weight: 700; overflow-wrap: break-word; }
p { overflow-wrap: break-word; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--navy); padding: 10px 14px; z-index: 100; border: 2px solid var(--gold); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fjord); display: inline-block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { color: var(--navy); border-color: var(--frost); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

/* Header matching nordicdiplomacy.org */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); text-decoration: none; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta { margin-left: 6px; }
.nav-links .btn { padding: 10px 22px; font-size: 14px; font-weight: 600; color: var(--navy); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  width: 36px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 1px; }

.announcement { background: var(--navy); color: #fff; font-size: 13px; }
.ann-row { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.announcement strong { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.announcement button { margin-left: auto; background: none; border: 0; color: #fff; padding: 4px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* B2 Bulletin Masthead & Section Tabs */
.mast {
  text-align: center;
  padding: 40px 24px 0;
  background: var(--snow);
  border-bottom: 1px solid var(--line);
}
.mast.mast-compact { padding: 0 24px; }
.mast-emblem { width: 52px; height: 52px; margin: 0 auto 12px; }
.mast h1 { font-size: 46px; letter-spacing: -.02em; }
.mast p { color: var(--muted); margin-top: 6px; font-size: 17px; }
.tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  overflow-x: auto;
}
.mast-compact .tabs { margin-top: 0; }
.tabs a {
  color: var(--ink);
  padding: 12px 0 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs a:hover { text-decoration: none; color: var(--navy); }
.tabs a.on { border-color: var(--gold); color: var(--navy); font-weight: 600; }
.tabs a.search { color: var(--fjord); }

/* B2 Bulletin Two-Column Layout */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
}
.section-intro { padding-top: 28px; }
.section-intro h2 { font-size: 32px; }
.day {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 36px 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.entry:last-of-type { border-bottom: 0; }
.time { font-size: 13px; color: var(--muted); font-weight: 500; padding-top: 3px; }
.entry h2 { font-size: 25px; line-height: 1.22; margin: 6px 0 8px; }
.entry.top h2 { font-size: 34px; }
.entry h2 a { color: var(--navy); }
.entry p { color: #37445a; font-size: 16px; }
.entry.top p { font-size: 18px; }
.by { font-size: 13px; color: var(--muted); margin-top: 10px; }
.by-sep { margin: 0 6px; }
.by-main { color: var(--fjord); font-weight: 500; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fjord);
}
.tag.ndi {
  color: var(--navy);
  background: rgba(230, 180, 80, .24);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Sticky From NDI Rail */
.rail { padding-top: 36px; }
.from {
  position: sticky;
  top: 96px;
  background: var(--navy);
  color: #cdd8e6;
  border-radius: var(--radius);
  padding: 26px 26px 20px;
}
.from .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.from .hd img { width: 28px; height: 28px; }
.from .hd b { color: #fff; font-family: var(--serif); font-size: 20px; }
.from .sub { font-size: 13px; color: #9fb0c4; margin-bottom: 10px; line-height: 1.5; }
.from a.it {
  display: block;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
}
.from a.it:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.from a.it strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}
.from a.it small {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.from .from-empty { font-size: 14px; color: #9fb0c4; padding: 12px 0; }
.from .all {
  display: block;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}
.from .all.main-link { color: #cdd8e6; font-weight: 500; font-size: 13px; }

/* Cross-site bridge boxes */
.site-bridge {
  margin-top: 40px;
  padding: 26px 28px;
  background: var(--snow);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-bridge h2 { font-size: 24px; margin-top: 6px; }
.site-bridge p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.bridge-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Article & Policy Pages */
.article-wrap {
  width: calc(100% - 48px);
  max-width: 740px;
  margin: 44px auto 64px;
}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--fjord); }
.article-wrap h1 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 10px; line-height: 1.12; }
.standfirst { font-family: var(--serif); font-size: 21px; line-height: 1.48; color: var(--navy); margin-top: 18px; }
.article-meta {
  border-block: 1px solid var(--line);
  padding-block: 14px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.article-hero { margin: 28px 0; }
.art { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--snow); }
.article-hero figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.article-body { font-size: 18px; line-height: 1.78; color: #243242; margin-top: 26px; }
.article-body p { margin: 18px 0; }
.article-body h2 { font-size: 28px; margin-top: 34px; }
.article-body h3 { font-size: 22px; margin-top: 26px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  font: 600 24px/1.4 var(--serif);
  color: var(--navy);
}
.article-body a { color: var(--fjord); text-decoration: underline; text-underline-offset: 3px; }
.article-body .news-image { margin: 28px 0; }
.article-body .news-image img { width: 100%; height: auto; border-radius: 6px; }
.article-body .news-image figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.article-body .ndi-logo { margin: 28px 0; }
.article-body .ndi-logo img { max-width: 240px; }
.article-body .font-serif { font-family: var(--serif); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--snow); color: var(--navy); }

.article-bridge {
  margin: 38px 0;
  padding: 22px 24px;
  background: var(--snow);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
}
.article-bridge p { font-size: 15px; color: #37445a; margin: 8px 0 16px; }
.article-bridge p strong { color: var(--navy); }

.related { margin: 44px 0 0; }
.section-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section-heading h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rel-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rel-card h3 { font-size: 21px; margin: 8px 0; }
.rel-card h3 a { color: var(--navy); }
.rel-card p { font-size: 14px; color: #475569; margin-bottom: 10px; }
.rel-card .meta { font-size: 12px; color: var(--muted); }

/* Search & Listing */
.listing-page { min-height: 55vh; padding: 36px 24px 64px; }
.intro { margin-bottom: 22px; }
.intro h1 { font-size: 38px; }
.search-form { max-width: 640px; margin-bottom: 32px; }
.search-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; border: 1px solid #a7b8c7; border-radius: 8px; padding: 11px 14px; color: var(--ink); background: #fff; }
.search-row button { border: 0; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 600; padding: 11px 22px; }
.search-heading { font-size: 24px; margin-bottom: 10px; }
.empty-state { padding: 28px 0; font-size: 15px; color: var(--muted); }
.error-page, .policy-page { min-height: 45vh; }
[hidden] { display: none !important; }

/* Footer matching nordicdiplomacy.org */
.site-footer { background: var(--navy); color: #cdd8e6; padding: 54px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #9fb0c4; font-size: 14px; margin: 0 0 8px; }
.footer-brand .footer-slogan { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 16px; margin-bottom: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 9px; }
.footer-cols a { color: #cdd8e6; font-size: 15px; }
.footer-cols a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8295ab;
}
.footer-bottom a { color: #cdd8e6; }
.footer-bottom a:hover { color: var(--gold); text-decoration: none; }

/* Responsive */
@media (max-width: 1060px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--snow);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
    gap: 14px;
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .layout { grid-template-columns: 1fr; gap: 0; }
  .rail { order: -1; padding-top: 24px; }
  .from { position: static; }
  .mast { padding-top: 28px; }
  .mast h1 { font-size: 36px; }
  .tabs { justify-content: flex-start; gap: 20px; padding: 0 4px; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .entry h2 { font-size: 22px; }
  .entry.top h2 { font-size: 27px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-cols { gap: 32px; }
}
@media (max-width: 600px) {
  .container, .layout, .listing-page { padding-inline: 18px; }
  .article-wrap { width: calc(100% - 36px); margin-top: 28px; }
  .article-body { font-size: 17px; }
  .search-row { flex-direction: column; }
  .site-bridge { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
