/* ============================================================
   CS-NL Hubs — page-scoped stylesheet
   All rules live under .cs-hubs so they cannot bleed into the
   rest of the Django site chrome.
   ============================================================ */

.cs-hubs {
  /* ---------- Brand palette ---------- */
  --brand-navy:         #1B2D5B;
  --brand-navy-dark:    #0F1D40;
  --brand-navy-light:   #E8ECF5;
  --brand-orange:       #E87722;
  --brand-orange-dark:  #C45F11;
  --brand-orange-light: #FDF0E2;
  --brand-sand:         #F4EFE6;
  --brand-ink:          #0F1D40;

  /* ---------- Neutrals ---------- */
  --gray-darker:        #222222;
  --gray-dark:          #333333;
  --gray:               #555555;
  --gray-light:         #777777;
  --gray-lighter:       #eeeeee;
  --gray-50:            #f5f5f5;
  --border:             #dddddd;
  --border-strong:      #cccccc;

  /* ---------- Semantic ---------- */
  --fg-1:               var(--gray-darker);
  --fg-2:               var(--gray-dark);
  --fg-3:               var(--gray-light);
  --fg-link:            var(--brand-navy);
  --fg-link-hover:      var(--brand-orange-dark);

  /* ---------- Type ---------- */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ---------- Shadows ---------- */
  --shadow-md: 0 2px 4px rgba(0,0,0,.10);
  --shadow-lg: 0 6px 16px rgba(0,0,0,.12);

  /* ---------- Motion ---------- */
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 120ms;

  font-family: var(--font-sans);
  color: var(--fg-2);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.cs-hubs *, .cs-hubs *::before, .cs-hubs *::after { box-sizing: border-box; }
.cs-hubs img { max-width: 100%; display: block; }

/* ---------- Page-intro breadcrumb ---------- */
.cs-hubs .cs-page-crumb {
  background: #fff;
  padding: 14px 28px;
  font-size: 12px;
  color: var(--gray-light);
  border-bottom: 1px solid var(--gray-lighter);
}
.cs-hubs .cs-page-crumb .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.cs-hubs .cs-page-crumb a,
.cs-hubs .cs-page-crumb button {
  color: var(--gray-light); text-decoration: none;
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit;
}
.cs-hubs .cs-page-crumb a:hover,
.cs-hubs .cs-page-crumb button:hover { color: var(--brand-orange-dark); }
.cs-hubs .cs-page-crumb .sep { opacity: .5; }
.cs-hubs .cs-page-crumb .current { color: var(--brand-ink); font-weight: 600; }
@media (max-width: 700px) {
  .cs-hubs .cs-page-crumb { padding: 10px 18px; }
}

/* ---------- Overview hero ---------- */
.cs-hubs .ov-hero {
  background: var(--brand-sand);
  padding: 64px 28px 48px;
  border-bottom: 1px solid #e7decd;
  position: relative; overflow: hidden;
}
.cs-hubs .ov-hero .inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: center;
}
.cs-hubs .ov-hero .eyebrow {
  display: inline-block;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-orange-dark); font-weight: 700;
  background: var(--brand-orange-light); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.cs-hubs .ov-hero h1 {
  font-size: 48px; line-height: 1.1; color: var(--brand-ink);
  margin: 0 0 16px; font-weight: 400; letter-spacing: -.01em;
}
.cs-hubs .ov-hero h1 em { font-style: normal; color: var(--brand-orange-dark); }
.cs-hubs .ov-hero p.lead {
  font-size: 17px; line-height: 1.6; color: var(--gray-dark);
  max-width: 540px; margin: 0 0 28px;
}
.cs-hubs .ov-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-hubs .ov-hero .btn {
  font-size: 14px; font-weight: 600; padding: 11px 20px;
  border-radius: 4px; cursor: pointer; border: 1px solid;
  font-family: inherit; text-decoration: none; display: inline-block;
}
.cs-hubs .ov-hero .btn-primary {
  background: var(--brand-navy); color: #fff; border-color: var(--brand-navy-dark);
}
.cs-hubs .ov-hero .btn-primary:hover { background: var(--brand-navy-dark); color: #fff; }
.cs-hubs .ov-hero .btn-ghost {
  background: transparent; color: var(--brand-ink); border-color: var(--brand-ink);
}
.cs-hubs .ov-hero .btn-ghost:hover { background: var(--brand-ink); color: #fff; }

@media (max-width: 900px) {
  .cs-hubs .ov-hero { padding: 40px 18px 32px; }
  .cs-hubs .ov-hero .inner { grid-template-columns: 1fr; gap: 28px; }
  .cs-hubs .ov-hero h1 { font-size: 34px; }
  .cs-hubs .ov-hero p.lead { font-size: 15px; }
}

/* ---------- NL map ---------- */
.cs-hubs .nl-map {
  position: relative;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.08;
}
.cs-hubs .nl-map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cs-hubs .nl-map .nl-land { fill: #fff; stroke: var(--border-strong); stroke-width: 0.6; }
.cs-hubs .nl-map .nl-pin-target { cursor: pointer; outline: none; }
.cs-hubs .nl-map .nl-pin-ring {
  fill: none; stroke-width: 1.2; opacity: 0.4;
  transform-box: fill-box; transform-origin: center;
  animation: cshubs-pinpulse 2.2s ease-out infinite;
}
@keyframes cshubs-pinpulse {
  0%   { r: 3.2; opacity: 0.5; }
  100% { r: 8;   opacity: 0; }
}
.cs-hubs .nl-map .nl-pin-dot { stroke: #fff; stroke-width: 1.4; transition: r .15s ease; }
.cs-hubs .nl-map .nl-pin-target:hover .nl-pin-dot,
.cs-hubs .nl-map .nl-pin-target:focus-visible .nl-pin-dot { r: 5; }
.cs-hubs .nl-map .nl-pin-label {
  font-family: var(--font-sans);
  /* font-size and stroke-width are set as SVG attributes (user units) so
     they scale with the viewBox and aren't reinterpreted by browsers that
     treat CSS px on SVG text as actual screen pixels. */
  font-weight: 700;
  fill: var(--brand-ink);
  paint-order: stroke;
  stroke: #fff; stroke-linejoin: round;
}
.cs-hubs .nl-map .nl-pin-label.right { text-anchor: start; }
.cs-hubs .nl-map .nl-pin-label.left  { text-anchor: end; }
.cs-hubs .nl-map .nl-pin-target:hover .nl-pin-label,
.cs-hubs .nl-map .nl-pin-target:focus-visible .nl-pin-label { fill: var(--brand-orange-dark); }
.cs-hubs .nl-map .nl-sea-band {
  fill: none; stroke-dasharray: 3 4; stroke-width: 1.4; opacity: .8;
}

/* ---------- Stats strip ---------- */
.cs-hubs .cs-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-hubs .cs-stats .stat {
  text-align: center; padding: 28px 16px;
  border-right: 1px solid var(--border);
}
.cs-hubs .cs-stats .stat:last-child { border-right: none; }
.cs-hubs .cs-stats .num {
  font-size: 40px; font-weight: 700; color: var(--brand-navy);
  line-height: 1; margin-bottom: 8px;
}
.cs-hubs .cs-stats .lbl {
  font-size: 13px; font-weight: 700; color: var(--brand-ink);
  margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em;
}
.cs-hubs .cs-stats .sub {
  font-size: 12px; color: var(--gray-light); line-height: 1.4;
  max-width: 200px; margin: 0 auto;
}
@media (max-width: 700px) {
  .cs-hubs .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-hubs .cs-stats .stat:nth-child(2) { border-right: none; }
  .cs-hubs .cs-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cs-hubs .cs-stats .num { font-size: 30px; }
}

/* ---------- Section ---------- */
.cs-hubs .cs-section { padding: 64px 28px; }
.cs-hubs .cs-section.alt {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-hubs .cs-section .inner { max-width: 1200px; margin: 0 auto; }
.cs-hubs .cs-section .section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.cs-hubs .cs-section h2 {
  font-size: 30px; font-weight: 400; color: var(--brand-ink);
  margin: 0 0 8px; letter-spacing: -.01em;
}
.cs-hubs .cs-section .sub {
  font-size: 15px; color: var(--gray); max-width: 600px; margin: 0;
  line-height: 1.55;
}
.cs-hubs .cs-section .eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-orange-dark); font-weight: 700; margin-bottom: 10px;
}
@media (max-width: 700px) {
  .cs-hubs .cs-section { padding: 40px 18px; }
  .cs-hubs .cs-section h2 { font-size: 24px; }
}

/* ---------- Hub card ---------- */
.cs-hubs .hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.cs-hubs .hub-card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  text-align: left; padding: 0;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  font: inherit; color: inherit; text-decoration: none;
}
.cs-hubs .hub-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: var(--card-accent, var(--brand-navy));
  text-decoration: none;
}
.cs-hubs .hub-card .banner {
  height: 96px; position: relative;
  background: var(--card-accent, var(--brand-navy));
  overflow: hidden;
}
.cs-hubs .hub-card .banner .pattern { position: absolute; inset: 0; opacity: .22; }
.cs-hubs .hub-card .banner .region-tag {
  position: absolute; bottom: 10px; left: 14px;
  background: rgba(255,255,255,.92); color: var(--brand-ink);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.cs-hubs .hub-card .body {
  padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1;
}
.cs-hubs .hub-card .org {
  font-size: 11px; color: var(--gray-light);
  text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; margin-bottom: 8px;
}
.cs-hubs .hub-card .name {
  font-size: 22px; font-weight: 700; color: var(--brand-ink);
  margin: 0 0 4px; line-height: 1.2; letter-spacing: -.01em;
}
.cs-hubs .hub-card .fullname {
  font-size: 12px; color: var(--gray-light); margin-bottom: 12px;
  line-height: 1.4; min-height: 32px;
}
.cs-hubs .hub-card .desc {
  font-size: 14px; color: var(--gray-dark); line-height: 1.55;
  margin-bottom: 16px; flex: 1;
}
.cs-hubs .hub-card .meta-line {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--gray-lighter);
  font-size: 12px; color: var(--gray-light);
}
.cs-hubs .hub-card .meta-line .arrow {
  color: var(--card-accent, var(--brand-navy));
  font-weight: 600; font-size: 13px;
  transition: transform .15s ease;
}
.cs-hubs .hub-card:hover .meta-line .arrow { transform: translateX(4px); }

/* ---------- Themes grid ---------- */
.cs-hubs .themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cs-hubs .theme {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  padding: 24px;
}
.cs-hubs .theme .icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brand-navy-light); color: var(--brand-navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cs-hubs .theme h4 {
  font-size: 17px; font-weight: 700; color: var(--brand-ink);
  margin: 0 0 8px;
}
.cs-hubs .theme p { font-size: 13px; color: var(--gray); line-height: 1.55; margin: 0; }
@media (max-width: 800px) { .cs-hubs .themes { grid-template-columns: 1fr; } }

/* ---------- Hub detail hero ---------- */
.cs-hubs .detail-hero {
  position: relative; overflow: hidden;
  padding: 56px 28px 48px;
  background: var(--hub-accent, var(--brand-navy));
  color: #fff;
}
.cs-hubs .detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18) 0, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(0,0,0,.14) 0, transparent 35%);
  pointer-events: none;
}
.cs-hubs .detail-hero .pattern { position: absolute; inset: 0; opacity: .12; pointer-events: none; }
.cs-hubs .detail-hero .inner { max-width: 1200px; margin: 0 auto; position: relative; }
.cs-hubs .detail-hero .layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center;
}
.cs-hubs .detail-hero .region-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  color: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 18px;
}
.cs-hubs .detail-hero h1 {
  font-size: 56px; line-height: 1.05; margin: 0 0 14px;
  font-weight: 400; color: #fff; letter-spacing: -.015em;
}
.cs-hubs .detail-hero .fullname {
  font-size: 17px; opacity: .9; margin: 0 0 24px;
  line-height: 1.45; max-width: 560px; font-weight: 400;
}
.cs-hubs .detail-hero .tagline {
  font-size: 19px; line-height: 1.5; opacity: .95; margin: 0 0 28px;
  max-width: 560px; font-style: italic;
  border-left: 3px solid rgba(255,255,255,.6); padding-left: 16px;
}
.cs-hubs .detail-hero .quick-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 22px; border-radius: 6px;
  backdrop-filter: blur(6px);
}
.cs-hubs .detail-hero .quick-meta .item { font-size: 13px; }
.cs-hubs .detail-hero .quick-meta .lbl {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  opacity: .75; margin-bottom: 4px;
}
.cs-hubs .detail-hero .quick-meta .val {
  font-weight: 600; color: #fff; line-height: 1.35;
}

@media (max-width: 900px) {
  .cs-hubs .detail-hero { padding: 36px 18px 32px; }
  .cs-hubs .detail-hero .layout { grid-template-columns: 1fr; gap: 24px; }
  .cs-hubs .detail-hero h1 { font-size: 38px; }
  .cs-hubs .detail-hero .fullname { font-size: 15px; }
  .cs-hubs .detail-hero .tagline { font-size: 16px; }
}

/* ---------- Detail body ---------- */
.cs-hubs .detail-body {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 28px;
  display: grid; grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .cs-hubs .detail-body { grid-template-columns: 1fr; gap: 32px; padding: 40px 18px; }
}
.cs-hubs .detail-body .prose h2 {
  font-size: 24px; font-weight: 400; color: var(--brand-ink);
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-lighter);
  letter-spacing: -.005em;
}
.cs-hubs .detail-body .prose h2 .num {
  display: inline-block; width: 28px;
  color: var(--hub-accent, var(--brand-navy));
  font-weight: 700; font-size: 16px;
  vertical-align: middle;
}
.cs-hubs .detail-body .prose p {
  font-size: 16px; line-height: 1.7; color: var(--gray-dark);
  margin: 0 0 18px; max-width: 68ch;
}
.cs-hubs .detail-body .prose section { margin-bottom: 48px; }
.cs-hubs .detail-body .prose ul { list-style: none; padding: 0; margin: 0; }
.cs-hubs .detail-body .prose ul li {
  position: relative; padding: 12px 0 12px 32px;
  font-size: 15px; line-height: 1.6; color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-lighter);
}
.cs-hubs .detail-body .prose ul li:last-child { border-bottom: none; }
.cs-hubs .detail-body .prose ul li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 16px; height: 2px;
  background: var(--hub-accent, var(--brand-navy));
}

.cs-hubs .wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-top: 12px;
}
.cs-hubs .wp-grid .wp {
  background: var(--hub-accent-tint, var(--brand-navy-light));
  border: 1px solid var(--hub-accent, var(--brand-navy));
  border-radius: 6px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.cs-hubs .wp-grid .wp .nbr {
  font-size: 11px; font-weight: 700;
  color: var(--hub-accent-dark, var(--brand-navy-dark));
  text-transform: uppercase; letter-spacing: .08em;
}
.cs-hubs .wp-grid .wp .ttl {
  font-size: 14px; font-weight: 600; color: var(--brand-ink); line-height: 1.35;
}
.cs-hubs .wp-intro {
  margin-bottom: 8px; font-weight: 600; color: var(--brand-ink);
}

/* ---------- Detail sidebar ---------- */
.cs-hubs .detail-side .panel {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 22px; margin-bottom: 18px;
}
.cs-hubs .detail-side h6 {
  font-size: 11px; text-transform: uppercase; color: var(--gray-light);
  letter-spacing: .08em; margin: 0 0 14px; font-weight: 700;
}
.cs-hubs .detail-side .panel-coord {
  font-size: 14px; color: var(--brand-ink); font-weight: 600; line-height: 1.4;
}
.cs-hubs .detail-side .row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 0; border-bottom: 1px solid var(--gray-lighter);
}
.cs-hubs .detail-side .row:last-child { border-bottom: none; }
.cs-hubs .detail-side .row .k {
  font-size: 11px; color: var(--gray-light);
  text-transform: uppercase; letter-spacing: .04em;
}
.cs-hubs .detail-side .row .v {
  font-size: 14px; color: var(--brand-ink); font-weight: 500; line-height: 1.4;
}
.cs-hubs .detail-side .partners-list { list-style: none; padding: 0; margin: 0; }
.cs-hubs .detail-side .partners-list li {
  font-size: 13px; color: var(--gray-dark); line-height: 1.4;
  padding: 8px 0 8px 18px; position: relative;
  border-bottom: 1px solid var(--gray-lighter);
}
.cs-hubs .detail-side .partners-list li:last-child { border-bottom: none; }
.cs-hubs .detail-side .partners-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--hub-accent, var(--brand-navy));
  border-radius: 50%;
}
.cs-hubs .detail-side .contact-block {
  padding: 12px 0; border-bottom: 1px solid var(--gray-lighter);
}
.cs-hubs .detail-side .contact-block:last-child { border-bottom: none; }
.cs-hubs .detail-side .contact-block .nm {
  font-size: 14px; font-weight: 600; color: var(--brand-ink);
}
.cs-hubs .detail-side .contact-block a { font-size: 13px; color: var(--fg-link); }
.cs-hubs .detail-side .contact-block a:hover { color: var(--fg-link-hover); }

/* ---------- Bottom prev/next nav ---------- */
.cs-hubs .hub-foot-nav {
  background: var(--gray-50);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 28px;
}
.cs-hubs .hub-foot-nav .inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.cs-hubs .hub-foot-nav a {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 18px 22px; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none; color: inherit;
}
.cs-hubs .hub-foot-nav a:hover {
  border-color: var(--brand-navy); box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cs-hubs .hub-foot-nav .dir {
  font-size: 11px; color: var(--gray-light);
  text-transform: uppercase; letter-spacing: .06em;
}
.cs-hubs .hub-foot-nav .hub-name {
  font-size: 18px; font-weight: 700; color: var(--brand-ink);
}
.cs-hubs .hub-foot-nav .next { text-align: right; align-items: flex-end; }
@media (max-width: 700px) {
  .cs-hubs .hub-foot-nav .inner { grid-template-columns: 1fr; }
  .cs-hubs .hub-foot-nav .next { text-align: left; align-items: flex-start; }
}

/* ---------- About-page prose ---------- */
.cs-hubs .about-prose p {
  font-size: 16px; line-height: 1.7; color: var(--gray-dark); margin: 0 0 18px;
}
