/* SANARA — shared styles
   Colours: ONLY the ten brand colours below. Do not add others.
   Fonts: Cormorant Garamond (display) + Inter (text/UI). Swap the two --font-* variables to change typography site-wide. */

:root {
  --cream: #FFFDF9;
  --purple-dark: #4A4466;
  --purple: #605A7E;
  --purple-light: #DED9EC;
  --green: #8ECAAE;
  --green-light: #DBF0E4;
  --green-dark: #275C3F;
  --gold: #BF9B4A;
  --gold-light: #F3E7CA;
  --gold-dark: #6E541A;

  --font-display: "Cormorant Garamond", "Times New Roman", Times, Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --gutter: 24px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--purple-dark);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--purple-dark); color: var(--cream);
  padding: 8px 14px; z-index: 100; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--purple-dark);
}
h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.65rem; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
.lede { font-size: 1.2rem; color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 600 0.95rem/1 var(--font-text); text-decoration: none;
  padding: 14px 22px; border-radius: var(--radius); border: 2px solid var(--purple);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--purple); color: var(--cream); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--cream); }
.btn-outline { background: transparent; color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--cream); }
.btn-green { background: var(--green-dark); border-color: var(--green-dark); color: var(--cream); }
.btn-green:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--purple-dark); border-color: var(--cream); }
.btn-light:hover { background: var(--green-light); border-color: var(--green-light); color: var(--purple-dark); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: var(--purple-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--purple-light); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--purple-dark); margin-right: auto; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: 0.04em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--purple-dark); font-size: 0.93rem; font-weight: 500; padding: 8px 9px; border-radius: var(--radius); white-space: nowrap;
}
.nav a:hover { background: var(--purple-light); color: var(--purple-dark); }
.nav a[aria-current="page"] { color: var(--purple); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-select {
  font: 500 0.88rem var(--font-text); color: var(--purple-dark); background: var(--cream); border: 1px solid var(--purple);
  border-radius: var(--radius); padding: 9px 8px;
}
.header-tools .btn { padding: 11px 16px; font-size: 0.9rem; white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--purple); color: var(--purple); border-radius: var(--radius);
  font: 600 0.9rem var(--font-text); padding: 9px 13px; cursor: pointer;
}

@media (max-width: 1160px) {
  .nav-toggle { display: inline-block; }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--purple-light);
    padding: 12px var(--gutter) 22px; flex-direction: column; align-items: stretch; gap: 14px;
  }
  .nav-panel.open { display: flex; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); padding-left: 14px; }
  .header-tools { flex-wrap: wrap; }
}
@media (min-width: 1161px) {
  .nav-panel { display: flex; align-items: center; gap: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--purple-light); }
.section-mint { background: var(--green-light); }
.section-gold { background: var(--gold-light); }
.section-deep { background: var(--purple-dark); color: var(--cream); }
.section-green { background: var(--green-dark); color: var(--cream); }
.section-green h2, .section-green h3 { color: var(--cream); }
.section-green .btn-light:hover { background: var(--green-light); border-color: var(--green-light); }
.section-deep h2, .section-deep h3 { color: var(--cream); }
.section-deep a { color: var(--green); }
.section-deep .btn-light { color: var(--purple-dark); }
.section-head { margin-bottom: 38px; }
.section-head p { color: var(--purple); }
.page-head { padding: 70px 0 54px; background: var(--purple-light); border-bottom: 1px solid var(--purple); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 0.3em; }
.page-head p { font-size: 1.2rem; color: var(--purple-dark); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { margin-bottom: 0.35em; max-width: 14ch; }
.hero .lede { max-width: 56ch; font-size: 1.25rem; }
.hero-photo { border-radius: var(--radius); border-bottom: 6px solid var(--green); }
.pulse { margin-top: 48px; width: 100%; height: auto; overflow: visible; }
.trace { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.trace-purple { stroke: var(--purple); animation: draw 2.8s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
.trace-green { stroke: var(--green); animation: draw 2.8s cubic-bezier(.65, 0, .35, 1) .9s forwards; }
.pulse .mark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: mark-in .7s cubic-bezier(.16, 1, .3, 1) 3.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mark-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .trace { animation: none; stroke-dashoffset: 0; }
  .pulse .mark { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Photos ---------- */
.photo { width: 100%; height: auto; border-radius: var(--radius); border-bottom: 6px solid var(--green); }
.photo-gold { border-bottom-color: var(--gold); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 56px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

.problem { border-top: 4px solid var(--green); padding-top: 18px; }
.problem h3 { font-size: 1.85rem; }
.problem p { color: var(--purple); }
.section-tint .problem p { color: var(--purple-dark); }

.card {
  display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--purple-light); border-top: 4px solid var(--purple);
  border-radius: var(--radius); padding: 26px 24px 28px; text-decoration: none; color: var(--purple-dark);
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--purple); font-size: 0.98rem; }
a.card:hover { border-top-color: var(--green); background: var(--green-light); }
.card .more { margin-top: auto; padding-top: 18px; color: var(--purple); font-weight: 600; font-size: .92rem; }

/* ---------- Placeholder frames ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, var(--purple-light) 12px, var(--purple-light) 24px);
  border: 2px dashed var(--purple); border-radius: var(--radius); color: var(--purple-dark);
  font-weight: 500; font-size: .95rem; padding: 24px; min-height: 280px;
}
.ph span { background: var(--cream); padding: 8px 14px; border-radius: var(--radius); }
.todo { background: var(--gold-light); color: var(--gold-dark); border-bottom: 2px dotted var(--gold); padding: 0 4px; border-radius: 2px; }

/* ---------- Programs ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--green-dark); border-bottom: 3px solid var(--green-dark);
  transform: rotate(-45deg) scale(.9);
}
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
@media (max-width: 960px) { .modules { grid-template-columns: 1fr; } }
.module { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--purple); border-left: 4px solid var(--green); padding: 22px 22px 20px; border-radius: var(--radius); }
.module h3 { font-size: 1.5rem; }
.module p { font-size: .95rem; color: var(--purple-dark); margin: 0 0 14px; }
.module .pdf-link { margin-top: auto; font-weight: 600; font-size: .92rem; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 28px 0 8px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--cream); border: 1px solid var(--purple-light); border-radius: var(--radius); padding: 22px; margin: 0; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: var(--purple); color: var(--cream); border-radius: 50%; font: 600 1.15rem var(--font-display); margin-bottom: 12px;
}
.steps strong { display: block; font: 600 1.5rem/1.1 var(--font-display); color: var(--purple-dark); margin-bottom: 6px; }

.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 10px 0 34px; }
@media (max-width: 960px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric { border-bottom: 4px solid var(--gold); padding: 8px 0 14px; }
.metric .num { font: 600 3.6rem/1 var(--font-display); color: var(--purple-dark); }
.metric .label { font-size: .95rem; color: var(--purple); margin-top: 6px; }

/* ---------- Map ---------- */
.map-wrap { position: relative; background: var(--cream); border: 1px solid var(--purple-light); border-radius: var(--radius); overflow: hidden; }
.map-wrap svg { width: 100%; height: auto; }
.map-land { fill: var(--purple-light); stroke: none; }
.map-active { fill: var(--green); stroke: var(--cream); stroke-width: .6; }
.map-planned { fill: var(--gold-light); stroke: var(--gold); stroke-width: .8; }
.map-borders { fill: none; stroke: var(--cream); stroke-width: 1; }
.pin {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--green-dark); border: 2px solid var(--cream); box-shadow: 0 0 0 1.5px var(--green-dark);
  transition: transform .15s;
}
.pin.planned { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold-dark); }
.pin:hover, .pin[aria-pressed="true"] { transform: scale(1.7); z-index: 3; }
.pin[aria-pressed="true"]::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--purple-dark); }
.map-title { font: 600 1.35rem var(--font-display); color: var(--purple-dark); margin: 0 0 8px; }
.maps { display: grid; gap: 28px; }
.us-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .us-row { grid-template-columns: 1fr; gap: 24px; } }
.map-info { margin: 0 0 18px; padding: 18px 22px; background: var(--green-light); border-left: 4px solid var(--green-dark); border-radius: var(--radius); min-height: 92px; }
.map-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.map-info p { margin: 0; }
.map-info a { font-weight: 600; }
.chips-head { font: 600 1.15rem var(--font-display); margin: 0 0 8px; color: var(--purple-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chip {
  font: 500 .85rem var(--font-text); padding: 6px 11px; border-radius: 99px; cursor: pointer;
  background: var(--green-light); color: var(--green-dark); border: 1.5px solid var(--green-dark);
}
.chip.planned { background: var(--gold-light); color: var(--gold-dark); border-color: var(--gold-dark); }
.chip:hover, .chip[aria-pressed="true"] { background: var(--purple-dark); color: var(--cream); border-color: var(--purple-dark); }
.legend { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 18px; font-size: .92rem; color: var(--purple-dark); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--green-dark); vertical-align: -2px; margin-right: 7px; }
.legend i.p { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold-dark); }

/* ---------- Forms ---------- */
.involve { padding: 70px 0; border-bottom: 1px solid var(--purple-light); }
.involve:last-of-type { border-bottom: 0; }
.embed { margin-top: 26px; display: none; }
.embed.open { display: block; }
.embed iframe { width: 100%; height: 900px; border: 1px solid var(--purple); border-radius: var(--radius); background: var(--cream); }
.embed .fallback { font-size: .92rem; color: var(--purple); margin-top: 10px; }

.field { margin-bottom: 20px; }
label, legend { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; color: var(--purple-dark); }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--purple); border-radius: var(--radius); background: var(--cream); color: var(--purple-dark);
}
input:focus, textarea:focus { outline: 3px solid var(--green-dark); outline-offset: 1px; border-color: var(--purple-dark); }
textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- Self-check ---------- */
.selfcheck { background: var(--cream); border: 1px solid var(--purple); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 30px 30px 28px; }
.selfcheck fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--purple-light); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; font-weight: 500; }
.opt:hover { background: var(--purple-light); }
.opt input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple); flex: none; }
.result { margin-top: 22px; padding: 20px 22px; background: var(--green-light); border-left: 4px solid var(--green-dark); border-radius: var(--radius); }
.result[hidden] { display: none; }
.result h3 { font-size: 1.6rem; margin-bottom: 6px; }
.result p { margin-bottom: .6em; }
.result p:last-child { margin-bottom: 0; }

/* ---------- Resources ---------- */
.res-card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--purple); border-radius: var(--radius); padding: 24px; }
.res-card h3 { font-size: 1.6rem; }
.res-card p { color: var(--purple-dark); font-size: .96rem; }
.res-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- People ---------- */
.person { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; gap: 24px; } .person .photo { max-width: 340px; } }
.bio p { max-width: 70ch; }
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
@media (max-width: 960px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chapters { grid-template-columns: 1fr; gap: 40px; } }
.chapter { scroll-margin-top: 100px; }
.chapter:target .chapter-photo { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.chapter-photo { aspect-ratio: 1 / 1; background: var(--cream); border-radius: var(--radius); overflow: hidden; border-bottom: 5px solid var(--green); }
.chapter-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.chapter-photo.fit-whole img { object-fit: contain; object-position: center; }
.chapter h3 { font-size: 1.7rem; margin: 16px 0 8px; }
.chapter dl { margin: 0; }
.chapter .role-row { display: flex; flex-direction: column-reverse; padding: 8px 0; border-top: 1px solid var(--purple); }
.chapter dt { font-size: .86rem; color: var(--purple-dark); }
.chapter dd { margin: 0; font-weight: 600; font-size: 1.02rem; color: var(--purple-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-dark); color: var(--purple-light); padding: 60px 0 34px; font-size: .96rem; }
.site-footer a { color: var(--cream); text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-word { color: var(--cream); font-size: 1.7rem; }
.footer-brand .badge { background: var(--cream); border-radius: 50%; padding: 6px; width: 52px; height: 52px; display: grid; place-items: center; }
.footer-brand img { width: 40px; height: 40px; }
.site-footer h4 { font: 600 1.25rem var(--font-display); color: var(--cream); margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .disclaimer { border-top: 1px solid var(--purple); margin-top: 38px; padding-top: 22px; font-size: .88rem; color: var(--purple-light); max-width: none; }
.site-footer p { max-width: 60ch; }
.site-footer .todo { color: var(--gold-dark); }
