/* =========================================================
   The Harvey Sarnat NNCC Fellowship — design system
   Clean clinical / academic · "role model" edition
   ========================================================= */

:root {
  --navy:      #0c2a4d;
  --navy-700:  #143a66;
  --navy-100:  #dbe6f2;
  --navy-50:   #eef3f9;
  --teal:      #0f8a8a;
  --teal-600:  #0c7373;
  --teal-50:   #e6f4f4;
  --gold:      #c8932f;
  --gold-50:   #fbf4e6;
  --ink:       #1d2733;
  --muted:     #54616e;
  --line:      #e3e8ee;
  --bg:        #ffffff;
  --bg-soft:   #f5f8fc;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(12,42,77,.04), 0 10px 28px rgba(12,42,77,.06);
  --shadow-lg: 0 22px 60px rgba(12,42,77,.15);
  --maxw:      1140px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif:"Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink);
  background: var(--bg); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; font-weight: 600; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; margin-left:auto; margin-right:auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; display: grid; place-items: center; font-weight: 700;
  font-family: var(--font-sans); font-size: 13px; letter-spacing: .5px;
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text b { color: var(--navy); font-size: 15px; }
.brand .brand-text span { color: var(--muted); font-size: 11.5px; font-family: var(--font-sans); letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); font-size: 14.5px; font-weight: 500; padding: 9px 13px; border-radius: 8px; }
.nav a:hover { background: var(--navy-50); text-decoration: none; }
.nav a.active { color: var(--navy); background: var(--teal-50); font-weight: 600; }
.nav a.btn { color: #fff; margin-left: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  font-family: var(--font-sans);
}
.btn:hover { background: var(--teal-600); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,138,138,.28); }
.btn.outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.outline:hover { border-color: var(--teal); color: var(--teal-600); box-shadow: none; }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: #eef3f9; }
.btn.ghost-light { background: rgba(255,255,255,.1); color:#fff; border:1.5px solid rgba(255,255,255,.35); }
.btn.ghost-light:hover { background: rgba(255,255,255,.18); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(15,138,138,.55), transparent 60%),
    radial-gradient(900px 600px at -5% 110%, rgba(20,58,102,.7), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 55%, #0a233f 100%);
}
.hero::after {
  content:""; position:absolute; inset:0; opacity:.06; pointer-events:none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px; color:#fff;
}
.hero .container { position: relative; z-index: 1; padding: 80px 24px 86px; }
.hero.sm .container { padding: 56px 24px 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: #bfe6e6;
  background: rgba(255,255,255,.08); padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.25rem); margin: 22px 0 0; max-width: 20ch; }
.hero.sm h1 { font-size: clamp(1.7rem,3.4vw,2.5rem); max-width: 24ch; }
.hero .sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d7e3f0; max-width: 64ch; margin: 18px 0 0; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 34px; }
.hero-badges .stat b { display:block; font-family: var(--font-serif); font-size: 1.8rem; color:#fff; }
.hero-badges .stat span { font-family: var(--font-sans); font-size: 13px; color:#bcd0e4; }

/* breadcrumb under sm hero */
.crumb { font-family: var(--font-sans); font-size: 13px; color:#bcd0e4; margin-bottom: 4px; }
.crumb a { color:#bcd0e4; } .crumb a:hover{ color:#fff; }

/* ---------- Sections ---------- */
section.block { padding: 66px 0; }
section.block.tight { padding: 46px 0; }
section.block.soft { background: var(--bg-soft); }
section.block.navy { background: var(--navy); color:#e7eef6; }
section.block.navy h2, section.block.navy h3 { color:#fff; }
.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .kicker { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal-600); }
.section-head h2 { font-size: clamp(1.6rem, 2.9vw, 2.15rem); margin: 10px 0 0; }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 1.06rem; }
.section-head.navy .kicker { color: #7fd4d4; }
.section-head.navy p { color:#b9cbe0; }

.prose { max-width: 820px; margin: 0 auto; }
.prose.wide { max-width: 940px; }
.prose p { margin: 0 0 18px; color: #2c3947; }
.prose h3 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose h4 { font-size: 1.12rem; margin: 26px 0 10px; color: var(--navy-700); font-family: var(--font-sans); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: #2c3947; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--navy); }
.lead { font-size: 1.16rem; color: var(--muted); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3deea; }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); margin-bottom: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin: 0 0 8px; }
.card h4 { font-size: 1.05rem; margin: 0 0 8px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .num { font-family: var(--font-serif); color: var(--teal); font-weight: 700; font-size: 1.05rem; }

/* numbered "major task" cards */
.task-card { position: relative; padding-left: 70px; }
.task-card .tnum {
  position: absolute; left: 22px; top: 24px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); color:#fff; display:grid; place-items:center;
  font-family: var(--font-serif); font-weight:700; font-size: 1.05rem;
}

/* role cards (CanMEDS) */
.role-card { border-top: 3px solid var(--teal); }
.role-card .role-tag { font-family: var(--font-serif); color: var(--teal-600); font-weight: 700; font-size: 1.15rem; }
.role-card.expert { border-top-color: var(--gold); }
.role-card.expert .role-tag { color: var(--gold); }

/* callouts */
.callout { border-left: 4px solid var(--teal); background: var(--teal-50); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy-700); font-size: 1.04rem; margin: 24px 0; }
.callout.gold { border-left-color: var(--gold); background: var(--gold-50); color: #6b4e15; }
.callout.navy { border-left-color:#7fd4d4; background: rgba(255,255,255,.06); color:#dbe9f5; }

/* accreditation pills */
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: .92rem; font-weight: 500; color: var(--navy-700); box-shadow: var(--shadow); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- Stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-band.three { grid-template-columns: repeat(3,1fr); }
.stat-band .s b { font-family: var(--font-serif); color: var(--teal-600); font-size: 2.5rem; display:block; line-height:1; }
.stat-band.navy .s b { color:#7fd4d4; }
.stat-band .s span { color: var(--muted); font-size: .95rem; }
.stat-band.navy .s span { color:#b9cbe0; }

/* ---------- Timeline (rotation blocks) ---------- */
.timeline { position: relative; margin: 8px 0; }
.timeline::before { content:""; position:absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 22px 56px; }
.tl-item .tl-dot { position:absolute; left: 8px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background:#fff; border: 3px solid var(--teal); }
.tl-item .tl-blocks { display:inline-block; background: var(--navy); color:#fff; font-family: var(--font-sans); font-weight:700; font-size:.8rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.tl-item h4 { margin: 2px 0 4px; font-family: var(--font-serif); color: var(--navy); font-size: 1.15rem; }
.tl-item p { margin:0; color: var(--muted); font-size: .96rem; }

/* graded supervision bars */
.supervision { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.sup { border:1px solid var(--line); border-radius: var(--radius); padding: 22px; background:#fff; box-shadow: var(--shadow); }
.sup .stage { font-family: var(--font-sans); font-weight:700; letter-spacing:.5px; text-transform:uppercase; font-size:.78rem; color: var(--teal-600); }
.sup h4 { margin:6px 0 10px; font-size:1.1rem; }
.sup .meter { height:8px; border-radius:999px; background: var(--navy-50); overflow:hidden; margin-bottom:12px; }
.sup .meter i { display:block; height:100%; background: linear-gradient(90deg,var(--teal),var(--navy)); }
.sup p { margin:0; color:var(--muted); font-size:.95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .96rem; }
thead th { background: var(--navy); color: #fff; text-align: left; font-family: var(--font-sans); font-weight: 600; padding: 14px 18px; font-size: .9rem; }
tbody td { padding: 13px 18px; border-top: 1px solid var(--line); color: #2c3947; vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--bg-soft); }
tbody td:first-child { font-weight: 600; color: var(--navy); }
.table-wrap.compact td, .table-wrap.compact th { padding: 10px 14px; font-size:.9rem; }
.tag { display:inline-block; background: var(--teal-50); color: var(--teal-600); font-weight:600; font-size:.8rem; padding:2px 9px; border-radius:999px; white-space:nowrap; }

/* ---------- People cards ---------- */
.people { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.person { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.person .av { width:52px; height:52px; border-radius:50%; background: linear-gradient(135deg,var(--navy),var(--teal)); color:#fff; display:grid; place-items:center; font-family:var(--font-serif); font-weight:700; font-size:1.1rem; margin-bottom:14px; }
.person b { display:block; color: var(--navy); font-family: var(--font-serif); font-size:1.08rem; }
.person .role { color: var(--teal-600); font-weight:600; font-size:.9rem; margin:3px 0 6px; }
.person .site { color: var(--muted); font-size:.85rem; }

/* committee / policy cards */
.lined-list { list-style:none; padding:0; margin:0; }
.lined-list li { padding: 11px 0; border-top:1px solid var(--line); color:#2c3947; font-size:.97rem; display:flex; gap:10px; }
.lined-list li:first-child { border-top:0; }
.lined-list li svg { width:18px; height:18px; color: var(--teal); flex:none; margin-top:3px; }

/* feature image rows */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.feature.reverse .feature-media { order: -1; }
.feature-media .frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background:#fff; }
.profile { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.profile .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

/* chips / media links */
.media-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .9rem; font-weight: 500; color: var(--navy-700); transition: border-color .2s, color .2s, box-shadow .2s; }
.chip:hover { border-color: var(--teal); color: var(--teal-600); text-decoration: none; box-shadow: var(--shadow); }
.chip svg { width: 16px; height: 16px; color: var(--teal); }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s, border-color .2s; }
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d3deea; text-decoration: none; }
.tool .ti { width: 40px; height: 40px; flex:none; border-radius: 10px; background: var(--navy); color:#fff; display:grid; place-items:center; }
.tool .ti svg { width: 20px; height: 20px; }
.tool b { color: var(--navy); font-size: .98rem; display:block; }
.tool span { color: var(--muted); font-size: .85rem; }

/* quick-link section cards (home) */
.navcards { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.navcard { display:block; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow); transition: transform .15s, box-shadow .2s, border-color .2s; }
.navcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color:#d3deea; text-decoration:none; }
.navcard .ico { width:46px; height:46px; border-radius:12px; background: var(--navy-50); color: var(--navy); display:grid; place-items:center; margin-bottom:14px; }
.navcard h3 { font-size:1.15rem; margin:0 0 6px; }
.navcard p { color: var(--muted); font-size:.95rem; margin:0 0 12px; }
.navcard .more { color: var(--teal-600); font-weight:600; font-size:.9rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--navy), var(--teal-600)); color: #fff; border-radius: 22px; padding: 54px; text-align: center; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; font-size: 1.95rem; margin: 0 0 12px; }
.cta p { color: #d7e9e9; margin: 0 auto 26px; max-width: 58ch; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c6d4e4; padding: 58px 0 30px; }
.footer a { color: #d7e3f0; }
.footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: .9rem; letter-spacing: .5px; margin: 0 0 16px; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 9px 0; font-size: .94rem; }
.footer .foot-brand b { color: #fff; font-family: var(--font-serif); font-size: 1.15rem; }
.footer .foot-brand p { color: #9fb4cc; font-size: .9rem; margin: 10px 0 0; max-width: 40ch; }
.footer .bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #8ea6c2; }

:target { scroll-margin-top: 90px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 18px; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav.open a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-media { order: 0; }
  .profile { grid-template-columns: 1fr; }
  .profile .photo { max-width: 240px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .tool-grid, .navcards, .people, .supervision { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-band, .stat-band.three { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { padding: 38px 24px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .footer .cols { grid-template-columns: 1fr; }
  .stat-band, .stat-band.three { grid-template-columns: 1fr; }
}
