/* =========================================================
   PROXIMATE COMMUNITIES — shared styles for every page
   Brand colors and fonts live in the :root block below.
   ========================================================= */

:root {
  --navy: #2E4F86;
  --navy-dark: #233d69;
  --charcoal: #333840;
  --light-blue: #AFC0E4;
  --pale-blue: #DCE4F3;
  --stone: #EAE6DF;
  --white: #FFFFFF;
  --muted: #5d636d;
  --line: #e4e7ec;

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-quote: "Cormorant Garamond", Georgia, serif;

  --max: 1160px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-weight: 600; font-size: 19px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Small uppercase label above headings */
.label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
  display: block;
}

.lead { font-size: 19px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--navy); color: var(--white); border: 1.5px solid var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--pale-blue); }
.btn-light { background: var(--white); color: var(--navy); border: 1.5px solid var(--white); }
.btn-light:hover { background: var(--pale-blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.wordmark .main {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  letter-spacing: 0.08em; color: var(--navy);
}
.wordmark .sub {
  font-family: var(--font-head); font-weight: 600; font-size: 9.5px;
  letter-spacing: 0.42em; color: var(--charcoal); margin-top: 5px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a:not(.btn) {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted);
}
.nav-links a:not(.btn):hover { color: var(--navy); }
.nav-links .btn { padding: 10px 18px; font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.bg-stone { background: var(--stone); }
.bg-pale { background: #F3F6FB; }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .label { color: var(--light-blue); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 0; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 900px; margin: 0 auto 22px; }
.hero .lead { max-width: 640px; margin: 0 auto 36px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.service-line {
  margin-top: 36px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.service-line span { padding: 0 16px; border-left: 1px solid var(--light-blue); }
.service-line span:first-child { border-left: 0; }
.hero-art { margin-top: 48px; }
.hero-art img { width: 100%; max-width: 1240px; margin: 0 auto; }

/* ---------- Problem diagram ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: var(--white);
}
.compare-card svg { width: 100%; height: auto; margin-bottom: 18px; }
.compare-card h3 { margin-bottom: 6px; }
.compare-card p { color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block; font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px;
  margin-bottom: 14px;
}
.tag-grey { background: var(--stone); color: var(--muted); }
.tag-blue { background: var(--pale-blue); color: var(--navy); }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.point { border-top: 2px solid var(--navy); padding-top: 16px; }
.point p { font-weight: 500; }

/* ---------- Vision ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 28px; }
.checklist li { padding-left: 26px; position: relative; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 2px; background: var(--navy);
}

/* ---------- Four marks + 4 Ps ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mark-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; }
.mark-card .num {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--light-blue);
  letter-spacing: 0.1em; margin-bottom: 18px; display: block;
}
.mark-card h3 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.mark-card p { color: var(--muted); font-size: 15px; }

.four-ps {
  margin-top: 40px; display: grid; grid-template-columns: auto repeat(4, 1fr);
  align-items: stretch; border: 1px solid #d6d1c8; border-radius: var(--radius); overflow: hidden;
  background: var(--white);
}
.four-ps .title {
  background: var(--navy); color: var(--white); padding: 22px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; display: flex; align-items: center;
}
.four-ps .p {
  padding: 22px; text-align: center; border-left: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--charcoal);
}

/* ---------- Pathways ---------- */
.pathways { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.pathway {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: var(--white);
}
.pathway svg { width: 100%; height: 120px; margin-bottom: 20px; }
.pathway h3 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.pathway p { color: var(--muted); font-size: 15px; }
.arrow { display: flex; align-items: center; color: var(--light-blue); font-size: 24px; }
.not-sure {
  margin-top: 28px; text-align: center; color: var(--muted); font-size: 16px;
}
.not-sure strong { color: var(--charcoal); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 20px 0 0; position: relative; }
.step .dot {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--light-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--white);
  background: var(--navy); position: relative; z-index: 1; margin-bottom: 20px;
}
.step::before {
  content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px;
  background: rgba(175, 192, 228, 0.5);
}
.step:last-child::before { display: none; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }

/* ---------- Network ---------- */
.network { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.network-card {
  border-radius: var(--radius); padding: 44px 40px; display: flex; flex-direction: column;
}
.network-card.communities { background: var(--pale-blue); }
.network-card.pros { background: var(--stone); }
.network-card h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin-bottom: 14px; text-wrap: balance; }
.network-card p { color: var(--muted); margin-bottom: 18px; }
.network-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.network-card li { padding: 7px 0; border-bottom: 1px solid rgba(46, 79, 134, 0.12); font-size: 15px; }
.network-card .btn { align-self: flex-start; }

/* ---------- Resources ---------- */
.resource {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column;
}
.resource h3 { font-size: 17px; margin-bottom: 8px; }
.resource p { color: var(--muted); font-size: 15px; flex-grow: 1; margin-bottom: 18px; }
.soon {
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
}

/* ---------- Quote ---------- */
.quote { text-align: center; }
.quote blockquote {
  font-family: var(--font-quote); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.25; color: var(--navy);
  max-width: 860px; margin: 0 auto;
}

/* ---------- Join ---------- */
.join { text-align: center; }
.join h2 { color: var(--white); margin-bottom: 18px; }
.join p { color: rgba(255, 255, 255, 0.82); max-width: 620px; margin: 0 auto 32px; font-size: 18px; }
.join .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.join .note { margin-top: 22px; font-size: 14px; color: var(--light-blue); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Tablets ---------- */
@media (max-width: 980px) {
  .nav-links li.hide-md { display: none; }
  .split, .compare, .network { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .pathways { grid-template-columns: 1fr; }
  .arrow { justify-content: center; transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding: 0; }
  .step .dot { grid-row: span 2; margin: 0; }
  .step::before { top: 44px; bottom: -28px; left: 22px; right: auto; width: 1px; height: auto; }
  .four-ps { grid-template-columns: 1fr 1fr; }
  .four-ps .title { grid-column: 1 / -1; justify-content: center; }
  .four-ps .p:nth-child(2), .four-ps .p:nth-child(4) { border-left: 0; }
  .four-ps .p { border-top: 1px solid var(--line); }
}

/* ---------- Phones ---------- */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .nav-links li:not(:last-child) { display: none; }
  .wordmark .main { font-size: 19px; }
  .points, .grid-4, .checklist { grid-template-columns: 1fr; }
  .service-line span { padding: 0 10px; }
  .network-card { padding: 32px 26px; }
}

/* Placeholder buttons shown before sign-up opens */
.btn.is-disabled { opacity: 0.55; cursor: default; pointer-events: none; }

/* =========================================================
   JOIN PAGE — multi-step intake form
   ========================================================= */
[hidden] { display: none !important; }

.join-page { background: #F3F6FB; }
.form-shell { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.form-intro { text-align: center; margin-bottom: 36px; }
.form-intro h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 14px; }
.form-intro .lead { font-size: 17px; max-width: 600px; margin: 0 auto; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: 0 1px 2px rgba(51, 56, 64, 0.04);
}
.progress { height: 4px; background: var(--pale-blue); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 25%; background: var(--navy); transition: width 0.3s; }
.step-count {
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 12px 0 28px;
}

.form-step { border: 0; }
.form-step legend {
  font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--charcoal);
  margin-bottom: 24px; padding: 0;
}

.field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px;
  font-size: 15px; font-weight: 600; color: var(--charcoal); flex: 1;
}
.field.narrow { max-width: 340px; }
.field-row { display: flex; gap: 16px; }
.optional { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--charcoal);
  border: 1.5px solid #cfd5df; border-radius: 6px; padding: 12px 14px; background: var(--white);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus,
.choice input:focus-visible + .choice-body, .pill input:focus-visible + span, .scale input:focus-visible + span {
  outline: 2px solid var(--light-blue); outline-offset: 1px; border-color: var(--navy);
}

.q { font-size: 15px; font-weight: 600; margin: 4px 0 10px; }

/* Big choice cards (step 1) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  border: 1.5px solid #cfd5df; border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.choice-body strong { font-family: var(--font-head); font-size: 17px; color: var(--navy); }
.choice-body span { color: var(--muted); font-size: 15px; }
.choice:hover .choice-body { border-color: var(--navy); }
.choice input:checked + .choice-body { border-color: var(--navy); background: var(--pale-blue); }

/* Pill-style options */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; border: 1.5px solid #cfd5df; border-radius: 999px; padding: 9px 16px;
  font-size: 15px; transition: all 0.2s;
}
.pill:hover span { border-color: var(--navy); }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Readiness scale */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1.5px solid #cfd5df; border-radius: 6px; overflow: hidden; }
.scale label { cursor: pointer; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale span {
  display: block; text-align: center; padding: 12px 4px; font-size: 14px; font-weight: 500;
  border-left: 1px solid #cfd5df; transition: background 0.2s;
}
.scale label:first-child span { border-left: 0; }
.scale label:hover span { background: #F3F6FB; }
.scale input:checked + span { background: var(--navy); color: var(--white); }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 0 24px; }

/* Consent */
.consent { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; margin-bottom: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }

.form-error { background: #fbeeee; color: #8a2a2a; border-radius: 6px; padding: 12px 14px; font-size: 14.5px; margin-top: 12px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form-nav #nextBtn, .form-nav #submitBtn { margin-left: auto; }
.form-nav button { cursor: pointer; font-family: var(--font-head); background-color: var(--white); }
.form-nav .btn-primary { background-color: var(--navy); }
.form-nav .btn-primary:hover { background-color: var(--navy-dark); }
.form-nav .btn-outline:hover { background-color: var(--pale-blue); }
.form-nav button:disabled { opacity: 0.6; cursor: wait; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding: 24px 0; }
.thanks h2 { margin-bottom: 14px; }
.thanks .lead { max-width: 520px; margin: 0 auto 28px; font-size: 17px; }

@media (max-width: 620px) {
  .form-card { padding: 26px 20px; }
  .choice-grid, .field-row { grid-template-columns: 1fr; flex-direction: column; gap: 0; }
  .choice-grid { gap: 12px; }
  .scale span { font-size: 12px; padding: 12px 2px; }
}

/* Problem section stats */
.point .stat {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 40px;
  color: var(--navy); line-height: 1; margin: 18px 0 6px;
}
.point .stat-note { display: block; font-size: 14.5px; color: var(--muted); }
.turn {
  margin-top: 48px; text-align: center; font-family: var(--font-quote); font-style: italic;
  font-weight: 500; font-size: clamp(24px, 3vw, 32px); color: var(--navy);
}
.sources { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); }
.sources a { color: var(--muted); }

/* Longer quote: slightly smaller type and an attribution line */
.quote blockquote { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; max-width: 900px; }
.quote-cite {
  margin-top: 22px; font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal);
}
.quote-cite span { color: var(--muted); font-weight: 600; letter-spacing: 0.08em; text-transform: none; font-family: var(--font-body); font-size: 13px; }

/* Map & connections opt-ins on the join form */
.map-optins { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.optin-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--charcoal); margin-bottom: 12px; }
.optin-nested { margin-left: 30px; transition: opacity 0.2s; }
.optin-nested.is-off { opacity: 0.45; }
.optin-nested .field { margin-top: 4px; font-size: 14.5px; }
.pill input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }

/* Contact page + footer link */
.form-note { font-size: 14px; color: var(--muted); margin: -4px 0 8px; }
.form-note a, .footer-link { color: var(--navy); font-weight: 500; }

/* =========================================================
   Lead magnet (gated resource) pages
   ========================================================= */
.lm-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.lm-info h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.lm-info .lead { font-size: 18px; max-width: 620px; }
.lm-preview { margin: 32px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 14px; box-shadow: 0 8px 28px rgba(46, 79, 134, 0.08); }
.lm-preview img { width: 100%; height: auto; }
.lm-sub { font-size: 20px; margin-bottom: 12px; }
.lm-list { list-style: none; display: grid; gap: 10px; }
.lm-list li { padding-left: 24px; position: relative; font-size: 16px; }
.lm-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--navy); }
.lm-card { position: sticky; top: 96px; padding: 32px 28px; }
.lm-card h2 { font-size: 24px; margin-bottom: 4px; }
.lm-card-sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.lm-btn { width: 100%; text-align: center; cursor: pointer; margin-top: 8px; }
.lm-btn:disabled { opacity: 0.6; cursor: wait; }
.lm-fine { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.lm-done h2 { font-size: 26px; margin-bottom: 8px; }
.lm-done p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.lm-next { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.lm-next p { margin-bottom: 6px; color: var(--charcoal); }
.lm-next a { color: var(--navy); font-weight: 600; }

/* Featured resource on the home page */
.feature-resource {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px;
}
.feature-resource img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.feature-resource h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 6px 0 12px; }
.feature-resource p { color: var(--muted); margin-bottom: 22px; }

@media (max-width: 900px) {
  .lm-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .lm-card { position: static; }
  .feature-resource { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}

/* Portrait previews and clickable resource cards */
.lm-preview-portrait { max-width: 460px; }
a.resource-live { text-decoration: none; color: inherit; border-color: var(--light-blue); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
a.resource-live:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(46, 79, 134, 0.10); }

/* Shared pop-up (home page downloads) */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(51,56,64,0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { position: relative; background: var(--white); border-radius: var(--radius); padding: 32px 28px 26px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; }
.modal-box h2 { font-size: 24px; margin-bottom: 4px; }
.modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 24px; line-height: 1; padding: 4px 8px; border-radius: 4px; }
.modal-close:hover { background: #F3F6FB; color: var(--charcoal); }
@media (max-width: 620px) { .modal-box .field-row { flex-direction: column; gap: 0; } }

/* Resource card kicker + Substack embed */
.res-kicker { display: block; font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.substack-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); margin: 8px 0 4px; }
.substack-frame iframe { display: block; width: 100%; border: 0; background: var(--white); }
.lm-fine a { color: var(--navy); font-weight: 600; }

/* Network map promo (home page) */
.map-promo { background: var(--white); border-top: 1px solid var(--line); }
.map-split { grid-template-columns: 1fr 1.15fr; }
.map-features { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; }
.map-features li { padding-left: 26px; position: relative; font-size: 16px; }
.map-features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--navy); background: var(--white); }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map-illustration { position: relative; display: block; background: #F3F6FB; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: box-shadow 0.2s, border-color 0.2s; }
.map-illustration:hover { border-color: var(--light-blue); box-shadow: 0 8px 28px rgba(46, 79, 134, 0.10); }
.map-illustration img { width: 100%; height: auto; }
.map-chip { position: absolute; right: 16px; bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--navy); }
@media (max-width: 980px) { .map-split { grid-template-columns: 1fr; } }
