/* Medquara — shared styles */
:root {
  --navy: #0f2447;
  --navy-2: #1a3566;
  --ink: #14213d;
  --muted: #55627d;
  --paper: #f3f6fb;
  --white: #ffffff;
  --line: #d8e0ee;
  --teal: #0c7f82;
  --teal-soft: #d9f0ef;
  --amber: #f2b23a;
  --trace: #86e6da;
  --radius: 10px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy);
  padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 246, 251, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--navy); }
.brand-logo { height: 64px; width: auto; }
.foot-logo { height: 76px; width: auto; margin-bottom: 14px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.97rem; padding: 8px 12px; border-radius: 6px; }
.nav-link:hover { background: var(--white); color: var(--navy); }
.nav-link.is-active { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.nav-cta { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 8px; border: 2px solid transparent;
  background: var(--navy); color: var(--white); line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--navy-2); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: 0.93rem; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #ffc55a; color: var(--navy); }
.btn-line-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-line-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #dbe5f7; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a:not(.btn) { color: var(--trace); }
.kicker { font-weight: 600; color: var(--teal); margin: 0 0 14px; font-size: 1rem; }
.section-navy .kicker { color: var(--trace); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.section-navy .lede { color: #b9c8e4; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr 1fr; align-items: center; }
.split > *, .hero-grid > * { min-width: 0; }
.split-top { align-items: start; }
.split-contact { grid-template-columns: 1.3fr 0.7fr; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { margin-bottom: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 90px; }
.facts dt { font-size: 0.85rem; color: var(--muted); margin: 0; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--navy); }


/* Plain lists with structure */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(150px, 0.35fr) 1fr; gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; font-size: 1.12rem; }
.rows p { margin: 0; color: var(--muted); }
.section-navy .rows, .section-navy .rows li { border-color: rgba(255,255,255,0.16); }
.section-navy .rows p { color: #b9c8e4; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 7px 0 7px 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 9px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg) scale(0.85); transform-origin: left top; }
.section-navy .ticks li::before { border-color: var(--trace); }
.ticks-2 { columns: 2; column-gap: 40px; }
.ticks-2 li { break-inside: avoid; }

/* Price block */
.price-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.price-box .tag { color: var(--teal); font-weight: 600; margin: 0 0 6px; }
.price { font-family: var(--display); font-weight: 800; font-size: 3.2rem; color: var(--navy); line-height: 1; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); font-family: var(--body); margin-left: 6px; }
.price-meta { margin: 22px 0; border-top: 1px solid var(--line); }
.price-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.price-meta dt { color: var(--muted); }
.price-meta dd { margin: 0; font-weight: 600; text-align: right; }
.small-print { font-size: 0.9rem; color: var(--muted); }

/* Week sequence */
.weeks { list-style: none; padding: 0; margin: 0; counter-reset: week; }
.week { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 0 0 36px; position: relative; text-decoration: none; color: inherit; }
.week::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 6px; width: 2px; background: var(--line); }
.week:last-child::before { display: none; }
.week-n { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; }
.week h3 { margin: 4px 0 4px; }
.week p { margin: 0 0 6px; color: var(--muted); }
.week .outcome { color: var(--teal); font-weight: 600; font-size: 0.97rem; }
a.week:hover h3 { color: var(--teal); }

/* Code */

/* Band power */
.cap { font-size: 0.85rem; color: #8ea4cc; margin-top: 10px; }

/* Pathways list */
.pathways { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.pathways li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }

/* Certificate */
.cert { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.cert-in { border: 2px solid var(--navy); padding: 34px 24px; text-align: center; outline: 1px solid var(--amber); outline-offset: -8px; }
.cert-brand { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--navy); margin: 0 auto 4px; }
.cert-title { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--navy); margin: 0 auto 14px; }
.cert-line { margin: 0 auto 4px; font-size: 0.92rem; color: var(--muted); max-width: none; }
.cert-name { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--navy); border-bottom: 1px solid var(--line); display: inline-block; padding: 2px 28px; margin: 4px auto 10px; }

/* Sequence (showcase) */
.steps { list-style: none; padding: 0; margin: 0 0 1.4em; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 10px 0; align-items: center; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--trace); color: var(--trace); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }

/* Audience */
.audience { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 48px; }
.audience li { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 20px; color: var(--muted); }
.faq .ans p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: #dbe5f7; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { color: #b9c8e4; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--white); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 20ch; margin-bottom: 0.4em; }
.page-hero .lede { margin: 0; }

/* Program detail */
.week-detail { display: grid; grid-template-columns: 0.4fr 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.week-detail:last-of-type { border-bottom: 0; }
.week-label { font-family: var(--display); font-weight: 700; color: var(--teal); font-size: 1.05rem; margin: 0 0 6px; }
.week-detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.outcome-box { background: var(--teal-soft); border-radius: var(--radius); padding: 16px 20px; margin-top: 22px; color: var(--navy); font-weight: 600; max-width: 62ch; }
.note { background: var(--white); border-left: 4px solid var(--amber); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 68ch; font-size: 0.97rem; color: var(--muted); }
.note p:last-child { margin: 0; }

/* Text pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { max-width: none; }

/* Forms */
.form { display: grid; gap: 20px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field input[type="time"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #b9c4d9; border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.check label { font-weight: 400; margin: 0; color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.contact-side { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.contact-side h3 { margin-bottom: 8px; }

/* Footer */
.site-footer { background: #0a1a36; color: #b9c8e4; padding: 56px 0 28px; font-size: 0.97rem; }
.site-footer a { color: #dbe5f7; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { font-size: 1rem; color: var(--white); margin: 0 0 12px; font-family: var(--body); letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; }
.foot-brand { color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin: 0 0 8px; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.86rem; color: #8ea4cc; }
.legal p { max-width: 90ch; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .split, .split-contact, .week-detail { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
    .ticks-2, .audience { columns: 1; }
  .rows li { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 84px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav-link { padding: 12px 10px; }
  .nav-link.is-active { box-shadow: none; background: var(--white); }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: 56px 1fr; gap: 14px; }
  .week::before { left: 27px; }
  .price-box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.glance { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.97rem; }
.glance th, .glance td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.glance thead th { font-size: 0.88rem; color: var(--muted); font-weight: 600; background: var(--paper); }
.glance tbody th { font-family: var(--display); font-size: 1.2rem; color: var(--navy); width: 64px; }
.glance tbody tr:last-child th, .glance tbody tr:last-child td { border-bottom: 0; }
.parent-rows li { grid-template-columns: minmax(180px, 0.32fr) 1fr; }
.parent-rows p { color: var(--ink); }

/* Early-bird pricing */
.badge { display: inline-block; background: var(--amber); color: var(--navy); font-weight: 700; font-size: 0.9rem; border-radius: 999px; padding: 4px 14px; margin: 14px 0 0; }
.was-line { margin: 0 0 4px; color: var(--muted); font-size: 0.97rem; }
.was-line s, .was { text-decoration-thickness: 2px; color: var(--muted); font-weight: 500; }
.facts .was { font-size: 1rem; margin-left: 4px; }

/* Hero journey card */
.journey { background: var(--navy); color: #dbe5f7; border-radius: 18px; padding: 26px 28px 24px; box-shadow: 0 30px 60px -28px rgba(15, 36, 71, 0.6); position: relative; overflow: hidden; }
.journey::before { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(134,230,218,0.22), rgba(134,230,218,0) 70%); pointer-events: none; }
.journey-head { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--trace); margin-bottom: 18px; }
.journey-list, .model-steps { list-style: none; margin: 0; padding: 0; }
.journey-list li, .model-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; position: relative; padding-bottom: 20px; }
.journey-list li:last-child, .model-steps li:last-child { padding-bottom: 0; }
.journey-list li:not(:last-child)::before, .model-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2px; background: rgba(134,230,218,0.3); }
.j-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.05rem; background: var(--trace); color: var(--navy); }
.journey-list li:nth-child(2) .j-n { background: var(--amber); }
.journey h3, .model-steps h3 { font-size: 1.08rem; color: #fff; margin: 2px 0 2px; }
.journey p, .model-steps p { margin: 0; font-size: 0.95rem; color: #b9c8e4; max-width: none; }
.journey-foot { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.92rem !important; color: #dbe5f7 !important; }
.journey-list li { animation: jrise .6s ease both; }
.journey-list li:nth-child(2) { animation-delay: .12s; } .journey-list li:nth-child(3) { animation-delay: .24s; } .journey-list li:nth-child(4) { animation-delay: .36s; }
@keyframes jrise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .journey-list li { animation: none; } }

/* Week 2 brain-model card */
.model-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: 28px; }
.model-title { margin: 0 0 18px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--trace); }
.built-with { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.9rem; color: #b9c8e4; }
.mne-pill { background: #fff; border-radius: 10px; padding: 8px 14px; display: inline-flex; }
.mne-pill img { height: 34px; width: auto; }
.built-with-light { margin: 18px 0 8px; padding: 0; border: 0; color: var(--muted); justify-content: flex-start; }
.built-with-light .mne-pill { border: 1px solid var(--line); }

/* Team page */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 36px 28px; }
.member { display: flex; flex-direction: column; }
.headshot { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #e6ecf6; border: 1px solid var(--line); margin-bottom: 18px; }
.headshot img, .headshot svg { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.member h3 { font-size: 1.2rem; margin: 0 0 2px; }
.member .role { margin: 0 0 10px; font-size: 0.92rem; font-weight: 600; color: var(--teal); max-width: none; }
.member .bio { margin: 0; font-size: 0.95rem; color: var(--muted); max-width: none; }
.member.is-placeholder h3 { color: var(--muted); }
.member.is-placeholder .role, .member.is-placeholder .bio { color: #8793ab; }

.btn-stack { display: flex; flex-direction: column; gap: 12px; }
.btn-stack .btn { width: 100%; text-align: center; }
.member h3 + .bio { margin-top: 8px; }

/* Collaboration band */
.collab-section { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.collab { background: var(--navy); border-radius: 18px; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); }
.collab h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.5em; max-width: 24ch; }
.collab p { color: #b9c8e4; margin: 0; max-width: 52ch; }
.collab .kicker { color: var(--trace); margin-bottom: 0.8em; }
.collab-logo { width: 100%; max-width: 440px; height: auto; justify-self: center; }
.collab-compact { padding: clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 40px); }
.collab-compact .collab-logo { max-width: 300px; }
@media (max-width: 860px) { .collab { grid-template-columns: 1fr; } .collab-logo { max-width: 340px; } }

.bio-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bio-clamp.is-open { display: block; }
.bio-toggle { background: none; border: 0; padding: 0; margin-top: 10px; align-self: flex-start; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bio-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

/* Team page: stacked profiles (photo + name left, professional summary right) */
.team-list { display: flex; flex-direction: column; }
.profile { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 5vw, 64px); padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.profile:first-child { border-top: 0; padding-top: 8px; }
.profile .headshot { margin-bottom: 18px; }
.member-name { font-size: 1.45rem; margin: 0 0 4px; }
.profile .role { margin: 0; font-size: 0.98rem; font-weight: 600; color: var(--teal); max-width: none; }
.profile-label { margin: 6px 0 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); max-width: none; }
.profile .bio { margin: 0; font-size: 1.05rem; line-height: 1.75; color: var(--ink); max-width: 62ch; }
.profile.is-placeholder { padding: 28px 0; }
.profile.is-placeholder .headshot { max-width: 140px; margin-bottom: 12px; }
.profile.is-placeholder .member-name { font-size: 1.1rem; color: var(--muted); }
.profile.is-placeholder .role, .profile.is-placeholder .bio, .profile.is-placeholder .profile-label { color: #8793ab; }
.profile.is-placeholder { grid-template-columns: minmax(140px, 300px) 1fr; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; } .profile .headshot { max-width: 260px; } }
@media (max-width: 720px) { .profile.is-placeholder { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; } .profile.is-placeholder .headshot { max-width: 120px; } }

.bio-more { margin-top: 10px; align-self: flex-start; font-size: 0.92rem; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.bio-more:focus-visible, .back-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.back-link { color: inherit; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.profile .bio + .bio { margin-top: 1em; }

.form-label { margin: 4px 0 -4px; font-weight: 600; color: var(--navy); max-width: none; }

[hidden] { display: none !important; }
.form-msg { background: #fdecea; color: #7a1f14; border-radius: 8px; padding: 12px 14px; margin: 0; max-width: none; }
