/* MBIA public site, October 2026. Colors match the TEDCO Expo banner and postcard. */
:root {
  --mint: #62C29F;
  --mint-deep: #12A578;
  --mint-text: #10795A;
  --mint-wash: #E9F7F1;
  --navy: #27283C;
  --navy-deep: #1B1C2B;
  --text: #22232F;
  --text-2: #565A6B;
  --line: #E5E6EB;
  --paper: #FFFFFF;
  --paper-2: #F5F5F8;
  --sans: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1120px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-text); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 64px; }
.brand span { font-size: .85rem; line-height: 1.25; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--mint-text); border-bottom: 2px solid var(--mint); }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1.2; border: 2px solid transparent; }
.btn-primary { background: var(--mint); color: var(--navy-deep); }
.btn-primary:hover { background: var(--mint-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.nav .btn { padding: 10px 18px; color: var(--navy-deep); }
.nav .btn:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: clamp(40px, 7vw, 80px) 0; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 40ch; color: #E4E5EC; }
.hero .rule { width: 72px; height: 4px; background: var(--mint); border-radius: 2px; margin: 0 0 20px; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.page-hero { padding: clamp(32px, 5vw, 56px) 0; }
.page-hero h1 { max-width: 20ch; }

/* Sections */
section { padding: clamp(40px, 6vw, 72px) 0; }
.alt { background: var(--paper-2); }
.mint { background: var(--mint-wash); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--mint-text); margin-bottom: 8px; }
.section-lede { max-width: 60ch; color: var(--text-2); }

/* Path cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card p { color: var(--text-2); flex: 1; }
.card a.go { font-weight: 700; text-decoration: none; }
.card a.go::after { content: " \2192"; }
.hero-paths { margin-top: -36px; position: relative; padding-top: 0; }

/* Map */
.map-block { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .map-block { grid-template-columns: 3fr 2fr; } }
.map-figure { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.map-figure figcaption { font-size: .9rem; color: var(--text-2); text-align: center; margin-top: 8px; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--mint); border-radius: 2px; }

.awardees { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 24px 0 0; }
.awardees li { background: var(--paper); border-left: 4px solid var(--mint); border-radius: 8px; padding: 14px 16px; }
.awardees strong { display: block; color: var(--navy); }
.awardees span { font-size: .9rem; color: var(--text-2); }

.member-group { margin-bottom: 36px; }
.member-group h3 { border-bottom: 2px solid var(--mint); padding-bottom: 6px; }
.member-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.member-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.member-list .name { font-weight: 600; color: var(--navy); }
.member-list a.name { color: var(--mint-text); }
.member-list .where { display: block; font-size: .88rem; color: var(--text-2); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 20px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }

.contact-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.contact-box h2 { color: #fff; }
.contact-box a { color: var(--mint); }
.contact-box .big { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; word-break: break-word; }

.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #C9CBD6; padding: 40px 0 24px; font-size: .92rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer img { width: 88px; margin-bottom: 8px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.foot-bottom { border-top: 1px solid #34364B; margin-top: 28px; padding-top: 16px; font-size: .82rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand span { display: none; }
  .hero-paths { margin-top: 0; padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- Header brand block (October 26 revision) ---------- */
.brand { align-items: stretch; gap: 14px; }
.brand img { width: auto; height: 64px; }
.brand-text { display: flex; flex-direction: column; justify-content: space-between; height: 64px; padding: 2px 0 1px; }
.brand-name { font-size: 1rem; line-height: 1.15; font-weight: 700; color: var(--navy); }
.brand-tag { font-size: .74rem; line-height: 1.2; font-weight: 500; color: var(--text-2); }
.site-header .wrap { min-height: 88px; }

/* ---------- Interactive member map (from the board draft site) ---------- */
.map-big { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 3vw, 32px); }
.mapwrap { position: relative; }
#md-map { min-height: 200px; }
.md-map { width: 100%; height: auto; display: block; overflow: visible; }
.md-map .county { fill: var(--mint-wash); stroke: #FFFFFF; stroke-width: 1.6; }
.md-map .county:hover { fill: #D6F0E5; }
.md-map .star-hit { fill: transparent; }
.md-map .star { cursor: pointer; }
.md-map .star path { fill: var(--navy); stroke: #fff; stroke-width: 1.2; transition: fill .12s; }
.md-map .star:hover path, .md-map .star.is-on path, .md-map .star:focus path { fill: var(--mint-deep); }
.md-map .star:focus { outline: none; }
.md-map .star:focus path { stroke: var(--navy); stroke-width: 2.4; }
.map-note { text-align: center; font-size: .9rem; color: var(--text-2); margin: 12px 0 0; }

.startip {
  position: absolute; z-index: 8; pointer-events: none; min-width: 220px; max-width: 290px;
  background: var(--paper); color: var(--text); border: 1px solid #CBCDD6; border-radius: 10px;
  padding: 12px 14px; box-shadow: 0 12px 34px rgba(39,40,60,.20); font-size: .9rem;
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .12s;
}
.startip.below { transform: translate(-50%, 14px); }
.startip.on { opacity: 1; }
.st-top { display: flex; gap: 10px; align-items: flex-start; }
.st-glyph { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 7px; background: var(--mint-wash); color: var(--mint-text); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.st-glyph.big { width: 48px; height: 48px; font-size: 1rem; border-radius: 10px; }
.st-top b { display: block; line-height: 1.25; color: var(--navy); }
.st-top span { font-size: .8rem; color: var(--text-2); }
.st-where { margin-top: 8px; font-size: .84rem; }
.st-go { margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--mint-text); }

.mmodal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(27,28,43,.55); display: grid; place-items: center; padding: 16px; }
.mmodal-wrap[hidden] { display: none; }
.mmodal { position: relative; background: var(--paper); border-radius: 14px; max-width: 520px; width: 100%; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.mmodal h3 { margin: 0 0 4px; font-size: 1.3rem; }
.mm-type { font-size: .9rem; color: var(--text-2); }
.mm-where { margin: 16px 0 10px; font-weight: 600; color: var(--navy); }
.mm-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--text-2); cursor: pointer; padding: 4px 8px; }
.mm-close:hover { color: var(--navy); }
body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .brand img { height: 52px; }
  .brand-text { height: 52px; }
  .brand-name { font-size: .88rem; }
  .brand-tag { font-size: .66rem; }
  .brand span { display: block; }
}

/* ---------- Team page ---------- */
.people { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mint-wash); }
.person h3 { margin: 0; }
.person .role { color: var(--mint-text); font-weight: 700; font-size: .9rem; margin: 2px 0 10px; }
.person p { font-size: .95rem; }
.person .li { font-weight: 700; font-size: .9rem; text-decoration: none; }
.mt { margin-top: 48px; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person img { width: 96px; height: 96px; } }

/* ---------- October 26 late revisions ---------- */
/* Header tagline: smaller and lighter (beats the older ".brand span" rule) */
.brand .brand-tag { font-size: .68rem; font-weight: 400; color: var(--text-2); letter-spacing: .01em; }
@media (max-width: 640px) { .brand .brand-tag { font-size: .6rem; } }

/* Team page: Executive Director spans the row; board tiles sit in an even grid */
.people.lead { grid-template-columns: 1fr; }
.person.wide { grid-template-columns: 120px 1fr; }
.people.board { grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 700px) { .people.board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people.board { grid-template-columns: repeat(3, 1fr); } }
.people.board .person { grid-template-columns: 1fr; gap: 12px; align-content: start; }
.people.board .person img { width: 96px; height: 96px; }
.people.board .person > div { display: flex; flex-direction: column; height: 100%; }
.people.board .person .li { margin-top: auto; padding-top: 8px; }

/* Header logo: top of the mark aligns with the cap height of "Maryland Business";
   bottom of the wordmark aligns with the baseline of the tagline. Measured in Chromium with Montserrat. */
.brand { align-items: flex-start; }
.brand img { height: 56.9px; margin-top: 3.6px; }
@media (max-width: 600px) { .brand img { height: 41.8px; margin-top: 4px; } }

/* Home hero heading: matches the desk card, two lines on wide screens, no single-word lines on phones */
.hero h1 { max-width: none; font-size: clamp(1.4rem, 7.2vw, 3.2rem); }

/* Home page "Who Is MBIA?": text left, static map image right, map links to the Members page */
.home-who { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .home-who { grid-template-columns: 1.15fr 1fr; } }
.home-map { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: box-shadow .15s ease, transform .15s ease; }
.home-map:hover, .home-map:focus-visible { box-shadow: 0 8px 24px rgba(39,40,60,.12); transform: translateY(-2px); }
.home-map img { width: 100%; height: auto; }
.home-map-note { display: block; text-align: center; font-size: .85rem; color: var(--text-2); margin-top: 8px; }
.home-who-text .actions { margin-top: 20px; }

/* Member pop-up on phones: tap outside to close, bigger close button, card scrolls if tall */
.mmodal-wrap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mmodal { cursor: auto; max-height: calc(100vh - 32px); overflow-y: auto; }
.mm-close { font-size: 2rem; padding: 8px 14px; top: 4px; right: 4px; }
