@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

:root {
  /* Homepage chrome palette — locked site-wide (all page types) */
  --fam-ink: #10202b;
  --fam-muted: #52616a;
  --fam-border: #dfe5e8;
  --fam-bg: #f7f9fa;
  --fam-soft: #eef3f5;
  --fam-accent: #1a4a6e;
  --fam-header-bg: #ffffff;
  --fam-header-border: #dfe5e8;
  --fam-logo: #102d42;
  --fam-logo-accent: #1a4a6e;
  --fam-nav: #17384d;
  --fam-footer-bg: #10202b;
  --fam-footer-text: #e6e6e6;
  --fam-footer-link: #ffffff;
  --fam-sidebar-widget-bg: #ffffff;
  --fam-sidebar-title: #102d42;
  --fam-sidebar-count-bg: #e8eff3;
  --fam-sidebar-count: #29495d;
  --fam-sidebar-link: #0b3d5c;
  --fam-sidebar-rule: #edf1f3;
}

body {
  margin: 0;
  font-family: "Manrope Variable", sans-serif;
  color: var(--fam-ink);
  background: var(--fam-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: #0b3d5c; }
a:hover, a:focus { color: #000; }

/* Masthead — NSB pattern (color-locked; wins over page-type theme vars) */
.nsb-masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--fam-header-bg) !important;
  border-bottom: 1px solid var(--fam-header-border) !important;
  box-shadow: 0 1px 0 rgba(16, 32, 43, 0.03);
  color: var(--fam-ink);
}
.nsb-masthead-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nsb-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fam-logo) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.nsb-logo span {
  color: var(--fam-logo-accent) !important;
}
.nsb-logo:hover { color: #000 !important; }
.nsb-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.nsb-desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  font-size: 13px;
  font-weight: 650;
}
.nsb-desktop-nav > a {
  color: var(--fam-nav) !important;
  text-decoration: none !important;
  padding: 6px 0;
}
.nsb-desktop-nav > a:hover,
.nsb-desktop-nav > a:visited {
  color: var(--fam-nav) !important;
}
.nsb-desktop-nav > a:hover {
  color: var(--fam-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.nsb-more-menu,
.nsb-search-control,
.nsb-mobile-menu {
  position: relative;
}
.nsb-more-menu summary,
.nsb-search-control summary,
.nsb-mobile-menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--fam-nav) !important;
  font-weight: 650;
  font-size: 13px;
  padding: 6px 0;
}
.nsb-more-menu summary::-webkit-details-marker,
.nsb-search-control summary::-webkit-details-marker,
.nsb-mobile-menu summary::-webkit-details-marker { display: none; }
.nsb-more-panel,
.nsb-search-panel,
.nsb-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #dfe5e8;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 32, 45, 0.12);
  padding: 12px;
  z-index: 50;
}
.nsb-more-panel a,
.nsb-mobile-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #17384d !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}
.nsb-more-panel a:hover,
.nsb-mobile-panel a:hover {
  background: #eef3f5;
  color: #102d42 !important;
}
.nsb-search-panel label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #102d42;
}
.nsb-search-panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6dfe4;
  border-radius: 8px;
  font: inherit;
  background: #f7f9fa;
}
.nsb-search-panel small {
  display: block;
  margin: 8px 0;
  color: #66747c;
  font-size: 12px;
}
.nsb-search-panel a,
.nsb-mobile-archive {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1a4a6e !important;
}
.nsb-mobile-menu { display: none; }
.nsb-menu-icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #17384d;
  box-shadow: 0 5px 0 #17384d, 0 -5px 0 #17384d;
  margin-right: 8px;
  vertical-align: middle;
}
.nsb-mobile-panel {
  min-width: min(88vw, 320px);
}
.nsb-mobile-panel-head {
  padding: 6px 10px 12px;
  border-bottom: 1px solid #edf1f3;
  margin-bottom: 8px;
  color: #102d42;
  font-size: 13px;
}

/* Footer — NSB dark (color-locked) */
.site-footer.dark {
  background: var(--fam-footer-bg) !important;
  color: var(--fam-footer-text) !important;
  margin-top: 48px;
  padding: 28px 0 36px;
}
.site-footer.dark .container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}
.site-footer.dark .breadcrumbs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  color: var(--fam-footer-text) !important;
  font-size: 13px;
  font-weight: 600;
}
.site-footer.dark .copyright p {
  margin: 0 0 12px;
  color: var(--fam-footer-text) !important;
  font-size: 14px;
}
.nsb-legal-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.nsb-legal-nav a,
.nsb-legal-nav button {
  color: var(--fam-footer-link) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.nsb-legal-nav a:visited {
  color: var(--fam-footer-link) !important;
}
.nsb-legal-nav a:hover,
.nsb-legal-nav button:hover {
  text-decoration: underline !important;
}
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1a4a6e;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(26, 74, 110, 0.28);
}

/* Article / static pages */
.fam-article-wrap,
.fam-static-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 40px;
  align-items: start;
}
.fam-article {
  background: #fff;
  border: 1px solid #dfe5e8;
  border-radius: 14px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 4px 18px rgba(17, 32, 45, 0.045);
}
.fam-article-header .nsb-cat { margin-bottom: 14px; }
.fam-article-header h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #10202b;
}
.fam-article-header .nsb-meta {
  margin-bottom: 22px;
  color: #66747c;
  font-size: 13px;
  font-weight: 600;
}
.fam-featured {
  margin: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe5e8;
  aspect-ratio: 16 / 10;
}
.fam-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fam-content {
  font-size: 17px;
  line-height: 1.7;
  color: #243640;
}
.fam-content p { margin: 0 0 1.1em; }
.fam-content h2, .fam-content h3 {
  color: #10202b;
  letter-spacing: -0.02em;
  margin: 1.4em 0 0.55em;
}
.fam-content a { color: #0b3d5c; }
.fam-content img {
  margin: 1em auto;
  border-radius: 10px;
}
.fam-content table {
  margin: 1em auto;
  border-collapse: collapse;
}
.fam-content .tr-caption-container {
  margin: 1.2em auto !important;
}
.fam-labels {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #edf1f3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fam-labels a {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3f5;
  color: #17384d !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
}
.fam-labels a:hover { background: #dfe8ee; }

.archive-heading {
  margin: 0 0 22px;
}
.archive-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  color: #102d42;
}
.archive-heading p {
  margin: 0;
  color: #66747c;
  font-size: 15px;
}

@media (max-width: 1040px) {
  .fam-article-wrap,
  .fam-static-wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .nsb-desktop-nav { display: none; }
  .nsb-mobile-menu { display: block; }
  .nsb-masthead-inner { width: min(100% - 28px, 1240px); }
  .fam-article-wrap,
  .fam-static-wrap { width: min(100% - 28px, 1240px); }
  .site-footer.dark .container { width: min(100% - 28px, 1240px); }
}


/* Image restoration: no empty media boxes */
.nsb-card:not(:has(.nsb-card-media)) .nsb-card-body { padding-top: 18px; }
.nsb-hero--text { min-height: 0 !important; background: #102d42; }
.nsb-hero--text .nsb-hero-body { width: min(100%, 720px); padding: clamp(28px, 4vw, 48px); }
.nsb-hero--text .nsb-hero-media { display: none; }
.nsb-card-media img, .nsb-hero-media img, .fam-featured img { background: #dfe5e8; }

/* ============================================================
   CHROME COLOR LOCK — header / footer / sidebar
   Forces homepage palette on every page type (post, static,
   category, archive). Overrides body.nsb-home-only sidebar rules
   and undefined --nsb-* vars on fam-page bodies.
   ============================================================ */
.nsb-sidebar {
  color: var(--fam-ink);
}
.nsb-sidebar .widget,
body.nsb-home .nsb-sidebar .widget,
body.fam-page .nsb-sidebar .widget,
body.single .nsb-sidebar .widget,
body.archive .nsb-sidebar .widget,
body.page .nsb-sidebar .widget {
  background: var(--fam-sidebar-widget-bg) !important;
  border: 1px solid var(--fam-border) !important;
  border-radius: 14px !important;
  padding: 22px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 18px rgba(17, 32, 45, 0.045) !important;
}
.nsb-sidebar .widget-title,
body.nsb-home .nsb-sidebar .widget-title,
body.fam-page .nsb-sidebar .widget-title,
body.single .nsb-sidebar .widget-title,
body.archive .nsb-sidebar .widget-title,
body.page .nsb-sidebar .widget-title {
  margin: 0 0 16px !important;
  padding: 0 0 11px !important;
  border-bottom: 1px solid var(--fam-border) !important;
  color: var(--fam-sidebar-title) !important;
  background: transparent !important;
  font-size: 12px !important;
  font-family: "Manrope Variable", sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
}
.nsb-sidebar a,
.nsb-sidebar a:visited,
body.nsb-home .nsb-sidebar a,
body.nsb-home .nsb-sidebar a:visited,
body.fam-page .nsb-sidebar a,
body.single .nsb-sidebar a {
  color: var(--fam-sidebar-link) !important;
}
.nsb-sidebar a:hover,
body.nsb-home .nsb-sidebar a:hover {
  color: #000000 !important;
}
.nsb-sidebar li,
body.nsb-home .nsb-sidebar li {
  border-bottom: 1px solid var(--fam-sidebar-rule) !important;
  color: var(--fam-ink);
}
.nsb-sidebar li:last-child,
body.nsb-home .nsb-sidebar li:last-child {
  border-bottom: 0 !important;
}
.nsb-sidebar .count,
body.nsb-home .nsb-sidebar .count {
  background: var(--fam-sidebar-count-bg) !important;
  color: var(--fam-sidebar-count) !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
}
.nsb-recent-date {
  color: var(--fam-muted) !important;
}
.nsb-menu-icon {
  background: var(--fam-nav) !important;
  box-shadow: 0 5px 0 var(--fam-nav), 0 -5px 0 var(--fam-nav) !important;
}
.nsb-more-panel,
.nsb-search-panel,
.nsb-mobile-panel {
  background: #ffffff !important;
  border-color: var(--fam-border) !important;
}
.nsb-more-panel a,
.nsb-mobile-panel a {
  color: var(--fam-nav) !important;
}
.nsb-more-panel a:hover,
.nsb-mobile-panel a:hover {
  background: var(--fam-soft) !important;
  color: var(--fam-logo) !important;
}
