/* ==========================================================================
   iSchool Inclusion Institute (i3) -- redesigned front end
   Design system namespace: d3  (seed 834440493 -> s%26 = 3 -> "d")
   Self-hosted Bulma (vendor/bulma.min.css) + this customization layer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Bulma variable overrides (nothing here should look like stock Bulma)
   -------------------------------------------------------------------------- */
:root {
  --bulma-primary-h: 145;
  --bulma-primary-s: 61%;
  --bulma-primary-l: 30%;
  --bulma-link: var(--d3-green);
  --bulma-link-h: 145;
  --bulma-link-s: 61%;
  --bulma-link-l: 30%;
  --bulma-family-primary: var(--d3-font);
  --bulma-family-secondary: var(--d3-font);
  --bulma-body-family: var(--d3-font);
  --bulma-body-background-color: var(--d3-cream);
  --bulma-body-color: var(--d3-ink);
  --bulma-radius: 8px;
  --bulma-radius-small: 4px;
  --bulma-text-strong: var(--d3-ink);
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  --d3-font: Verdana, Geneva, Tahoma, "DejaVu Sans", sans-serif;

  --d3-green: #1e7a45;
  --d3-green-deep: #14512e;
  --d3-green-ink: #0e3a21;
  --d3-green-soft: #e8f1e9;

  --d3-gold: #a57f17;
  --d3-gold-deep: #7c5f0f;
  --d3-gold-soft: #f5edd6;

  --d3-navy: #16235c;
  --d3-navy-deep: #0e1740;

  --d3-crimson: #a3123a;

  --d3-cream: #faf7ef;
  --d3-paper: #ffffff;
  --d3-ink: #23211c;
  --d3-muted: #5c5a52;
  --d3-line: #e1e4db;
  --d3-line-strong: #c9cfc2;

  --d3-r-sm: 4px;
  --d3-r-md: 8px;
  --d3-r-lg: 14px;

  --d3-shadow-sm: 0 1px 2px rgba(16, 26, 20, 0.06);
  --d3-shadow-md: 0 6px 18px rgba(16, 26, 20, 0.10), 0 1px 3px rgba(16, 26, 20, 0.08);
  --d3-shadow-lg: 0 18px 42px rgba(16, 26, 20, 0.16);

  --d3-space: 4px;
  --d3-maxw: 1160px;
  --d3-rule: 64px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--d3-cream);
  color: var(--d3-ink);
  font-family: var(--d3-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.d3-nav-open { overflow: hidden; }

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

a { color: var(--d3-green-deep); text-decoration: none; }
a:hover { color: var(--d3-gold-deep); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--d3-font);
  color: var(--d3-green-ink);
  line-height: 1.22;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.42rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05rem; }

strong, b { color: var(--d3-ink); }

.d3-container {
  width: 100%;
  max-width: var(--d3-maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.d3-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--d3-green-ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--d3-r-md) 0;
}
.d3-skip:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--d3-gold);
  outline-offset: 2px;
}

.d3-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. Utility strip
   -------------------------------------------------------------------------- */
.d3-utility {
  background: var(--d3-green-ink);
  color: #d9e7dd;
  font-size: 0.78rem;
}
.d3-utility__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px;
  max-width: var(--d3-maxw);
  margin: 0 auto;
}
.d3-utility a { color: #eaf3ec; }
.d3-utility a:hover { color: #fff; }
.d3-utility__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.d3-utility__dot { color: var(--d3-gold); }

/* --------------------------------------------------------------------------
   5. Header + brand
   -------------------------------------------------------------------------- */
.d3-header {
  background: var(--d3-paper);
  border-bottom: 1px solid var(--d3-line);
}

.d3-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 22px;
  max-width: var(--d3-maxw);
  margin: 0 auto;
}
.d3-brand { min-width: 0; }

.d3-brand { display: flex; align-items: center; gap: 14px; }
.d3-brand:hover { text-decoration: none; }
.d3-brand__mark {
  flex: none;
  width: 56px; height: 56px;
  border-radius: var(--d3-r-md);
  background: linear-gradient(150deg, var(--d3-green) 0%, var(--d3-green-deep) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.06em;
  box-shadow: var(--d3-shadow-sm);
}
.d3-brand__mark sup { font-size: 0.6em; vertical-align: super; }
.d3-brand__text { display: flex; flex-direction: column; }
.d3-brand__name {
  font-weight: 700;
  color: var(--d3-green-ink);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.d3-brand__tag {
  color: var(--d3-muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.d3-header__cta { display: flex; align-items: center; gap: 10px; }

/* Buttons ------------------------------------------------------------------ */
.d3-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--d3-font);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--d3-r-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.d3-btn:hover { text-decoration: none; transform: translateY(-1px); }
.d3-btn--primary { background: var(--d3-green); color: #fff; }
.d3-btn--primary:hover { background: var(--d3-green-deep); color: #fff; box-shadow: var(--d3-shadow-md); }
.d3-btn--gold { background: var(--d3-gold); color: #201a08; }
.d3-btn--gold:hover { background: var(--d3-gold-deep); color: #fff; }
.d3-btn--outline { border-color: var(--d3-green); color: var(--d3-green-deep); background: transparent; }
.d3-btn--outline:hover { background: var(--d3-green); color: #fff; }
.d3-btn--ghost { color: var(--d3-green-deep); padding: 12px 6px; }
.d3-btn--ghost:hover { color: var(--d3-gold-deep); }

/* Light outline buttons on dark panels */
.d3-hero .d3-btn--outline,
.d3-pagehead .d3-btn--outline,
.d3-cta .d3-btn--outline { border-color: rgba(255,255,255,.6); color: #fff; }
.d3-hero .d3-btn--outline:hover,
.d3-pagehead .d3-btn--outline:hover { background: #fff; color: var(--d3-green-deep); }
.d3-cta .d3-btn--outline:hover { background: #fff; color: var(--d3-navy-deep); }
.d3-btn--sm { padding: 9px 15px; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   6. Primary navigation
   -------------------------------------------------------------------------- */
.d3-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--d3-green-deep);
  border-top: 3px solid var(--d3-gold);
  box-shadow: var(--d3-shadow-sm);
}
.d3-nav__inner { max-width: var(--d3-maxw); margin: 0 auto; padding: 0 22px; position: relative; }

.d3-nav__toggle {
  display: none;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--d3-font);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 0;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.d3-nav__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.d3-nav__bars span { width: 22px; height: 2px; background: #fff; display: block; }

.d3-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.d3-nav__item { position: relative; }

.d3-nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #eaf5ee;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 15px 16px;
  line-height: 1;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  font-family: var(--d3-font);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.d3-nav__link:hover, .d3-nav__link:focus-visible { color: #fff; text-decoration: none; border-bottom-color: var(--d3-gold); }
.d3-nav__item.is-active > .d3-nav__link { color: #fff; border-bottom-color: var(--d3-gold); }
.d3-nav__caret { font-size: 0.6rem; transition: transform .2s ease; }

.d3-nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--d3-paper);
  border: 1px solid var(--d3-line);
  border-top: 3px solid var(--d3-gold);
  border-radius: 0 0 var(--d3-r-md) var(--d3-r-md);
  box-shadow: var(--d3-shadow-lg);
  list-style: none;
  margin: 0;
  padding: 8px;
  display: none;
  z-index: 40;
}
.d3-nav__item:hover > .d3-nav__panel,
.d3-nav__item:focus-within > .d3-nav__panel,
.d3-nav__item.is-open > .d3-nav__panel { display: block; }
.d3-nav__caret { transform: rotate(0); }
.d3-nav__item:hover > .d3-nav__link .d3-nav__caret { transform: rotate(180deg); }

.d3-nav__sub {
  display: block;
  padding: 10px 14px;
  color: var(--d3-ink);
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: var(--d3-r-sm);
  text-decoration: none;
}
.d3-nav__sub:hover, .d3-nav__sub:focus-visible {
  background: var(--d3-green-soft);
  color: var(--d3-green-deep);
  text-decoration: none;
}
.d3-nav__sub small { display: block; color: var(--d3-muted); font-size: 0.72rem; }

/* --------------------------------------------------------------------------
   7. Page head (inner pages)
   -------------------------------------------------------------------------- */
.d3-pagehead {
  background: linear-gradient(120deg, var(--d3-green-ink) 0%, var(--d3-green-deep) 62%, var(--d3-green) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.d3-pagehead::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(165,127,23,.42), rgba(165,127,23,0) 70%);
}
.d3-pagehead__inner { position: relative; z-index: 1; padding: 46px 0 40px; }
.d3-pagehead h1 { color: #fff; margin-bottom: 10px; }
.d3-pagehead p { color: #dbeee1; max-width: 62ch; margin: 0; }

.d3-breadcrumb {
  font-size: 0.78rem;
  color: #bcd9c6;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.d3-breadcrumb a { color: #eaf5ee; }
.d3-breadcrumb a:hover { color: var(--d3-gold-soft); }
.d3-breadcrumb__sep { color: var(--d3-gold); }

.d3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--d3-gold-deep);
  margin-bottom: 12px;
}
.d3-pagehead .d3-eyebrow { color: var(--d3-gold-soft); }
.d3-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--d3-gold); display: inline-block; }

/* --------------------------------------------------------------------------
   8. Sections + prose
   -------------------------------------------------------------------------- */
.d3-section { padding: 60px 0; }
.d3-section--tight { padding: 40px 0; }
.d3-section--paper { background: var(--d3-paper); border-top: 1px solid var(--d3-line); border-bottom: 1px solid var(--d3-line); }
.d3-section__head { max-width: 68ch; margin-bottom: 34px; }
.d3-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.d3-section__title { position: relative; padding-bottom: 14px; }
.d3-section__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: var(--d3-rule); height: 3px;
  background: var(--d3-gold);
  border-radius: 2px;
}
.d3-section__head--center .d3-section__title::after { left: 50%; transform: translateX(-50%); }

.d3-prose { max-width: 74ch; font-size: 1.02rem; }
.d3-prose > h2 { margin-top: 2.1rem; padding-top: 0.2rem; }
.d3-prose > h3 { margin-top: 1.7rem; }
.d3-prose ul, .d3-prose ol { margin: 0 0 1.1rem 1.2rem; }
.d3-prose li { margin-bottom: 0.45rem; }
.d3-prose img { border-radius: var(--d3-r-md); margin: 1.4rem 0; box-shadow: var(--d3-shadow-sm); }
.d3-lead { font-size: 1.16rem; color: var(--d3-green-ink); line-height: 1.6; }

.d3-note {
  border-left: 4px solid var(--d3-gold);
  background: var(--d3-gold-soft);
  padding: 18px 22px;
  border-radius: 0 var(--d3-r-md) var(--d3-r-md) 0;
  margin: 1.6rem 0;
}
.d3-note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Cards, features, grids
   -------------------------------------------------------------------------- */
.d3-grid { display: grid; gap: 24px; }
.d3-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d3-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d3-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.d3-card {
  background: var(--d3-paper);
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-r-md);
  box-shadow: var(--d3-shadow-sm);
  padding: 26px 24px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.d3-card:hover { transform: translateY(-4px); box-shadow: var(--d3-shadow-md); border-color: var(--d3-line-strong); }
.d3-card h3 { margin-bottom: 10px; }
.d3-card p:last-child { margin-bottom: 0; }

.d3-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--d3-gold-deep);
  margin-bottom: 8px;
}

.d3-feature { display: flex; gap: 18px; align-items: flex-start; }
.d3-feature__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: var(--d3-r-md);
  background: var(--d3-green-soft);
  color: var(--d3-green-deep);
  display: grid; place-items: center;
}
.d3-feature__icon svg { width: 26px; height: 26px; }
.d3-feature h3 { margin-bottom: 6px; font-size: 1.08rem; }
.d3-feature p { margin: 0; font-size: 0.94rem; color: var(--d3-muted); }

/* People list (boards, committees, speakers, mentors) */
.d3-people { display: grid; gap: 16px; }
.d3-grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d3-person {
  background: var(--d3-paper);
  border: 1px solid var(--d3-line);
  border-left: 4px solid var(--d3-green);
  border-radius: var(--d3-r-sm);
  padding: 16px 18px;
  box-shadow: var(--d3-shadow-sm);
}
.d3-person__name { font-weight: 700; color: var(--d3-green-ink); font-size: 0.98rem; margin: 0 0 3px; }
.d3-person__role { font-size: 0.85rem; color: var(--d3-ink); margin: 0 0 2px; }
.d3-person__org { font-size: 0.8rem; color: var(--d3-muted); margin: 0; }

/* Timeline */
.d3-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.d3-timeline::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--d3-line-strong); }
.d3-timeline li { position: relative; padding: 0 0 26px 58px; }
.d3-timeline li:last-child { padding-bottom: 0; }
.d3-timeline__dot {
  position: absolute; left: 10px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--d3-gold); border: 3px solid var(--d3-cream);
  box-shadow: 0 0 0 2px var(--d3-gold);
}
.d3-timeline h3 { font-size: 1.05rem; margin-bottom: 4px; }
.d3-timeline p { margin: 0; color: var(--d3-muted); font-size: 0.94rem; }

/* Stats */
.d3-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.d3-stat { background: var(--d3-paper); border: 1px solid var(--d3-line); border-radius: var(--d3-r-md); padding: 22px; text-align: center; }
.d3-stat__num { font-size: 2rem; font-weight: 700; color: var(--d3-green); line-height: 1; }
.d3-stat__label { font-size: 0.82rem; color: var(--d3-muted); margin-top: 8px; }

/* Table */
.d3-table-wrap { overflow-x: auto; border: 1px solid var(--d3-line); border-radius: var(--d3-r-md); background: var(--d3-paper); }
table.d3-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 620px; }
table.d3-table caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--d3-green-ink); }
table.d3-table th, table.d3-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--d3-line); vertical-align: top; }
table.d3-table thead th { background: var(--d3-green-soft); color: var(--d3-green-ink); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
table.d3-table tbody tr:hover { background: var(--d3-cream); }

/* --------------------------------------------------------------------------
   10. Hero (home)
   -------------------------------------------------------------------------- */
.d3-hero {
  background: linear-gradient(160deg, var(--d3-green-ink) 0%, var(--d3-green-deep) 55%, #17603a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.d3-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  padding: 66px 0 70px;
}
.d3-hero h1 { color: #fff; margin-bottom: 18px; }
.d3-hero__lede { color: #dcefe2; font-size: 1.12rem; max-width: 46ch; }
.d3-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.d3-hero__media { position: relative; }
.d3-hero__media img { border-radius: var(--d3-r-lg); box-shadow: var(--d3-shadow-lg); border: 4px solid rgba(255,255,255,.14); }
.d3-hero__badge {
  position: absolute;
  left: -14px; bottom: -16px;
  background: var(--d3-gold);
  color: #201a08;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--d3-r-md);
  box-shadow: var(--d3-shadow-md);
  font-size: 0.82rem;
  max-width: 240px;
  line-height: 1.3;
}
.d3-hero__kicker {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* CTA band */
.d3-cta {
  background: linear-gradient(120deg, var(--d3-navy-deep), var(--d3-navy));
  color: #fff;
  border-radius: var(--d3-r-lg);
  padding: 46px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--d3-shadow-lg);
}
.d3-cta h2 { color: #fff; margin-bottom: 10px; }
.d3-cta p { color: #cdd6f0; margin: 0; }
.d3-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Partner ribbon */
.d3-partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.d3-partner {
  flex: 1 1 210px;
  background: var(--d3-paper);
  border: 1px solid var(--d3-line);
  border-radius: var(--d3-r-md);
  padding: 22px;
  text-align: center;
  box-shadow: var(--d3-shadow-sm);
}
.d3-partner strong { display: block; color: var(--d3-green-ink); }
.d3-partner span { font-size: 0.82rem; color: var(--d3-muted); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.d3-footer { background: var(--d3-green-ink); color: #c8dbd0; margin-top: 0; }
.d3-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 54px 0 34px;
}
.d3-footer h3 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.d3-footer ul { list-style: none; margin: 0; padding: 0; }
.d3-footer li { margin-bottom: 9px; font-size: 0.88rem; }
.d3-footer a { color: #c8dbd0; }
.d3-footer a:hover { color: #fff; }
.d3-footer__brand .d3-brand__name { color: #fff; }
.d3-footer__brand p { font-size: 0.88rem; max-width: 40ch; }
.d3-footer__supported {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 14px;
  font-size: 0.8rem;
}
.d3-footer__bar {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* Back to top */
.d3-totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  background: var(--d3-gold);
  color: #201a08;
  border: 0;
  border-radius: var(--d3-r-md);
  padding: 12px 16px;
  font-family: var(--d3-font);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--d3-shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.d3-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.d3-totop:hover { background: #fff; color: var(--d3-green-deep); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.d3-field { margin-bottom: 18px; }
.d3-field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 6px; color: var(--d3-green-ink); }
.d3-field .d3-req { color: var(--d3-crimson); }
.d3-input, .d3-textarea, .d3-select {
  width: 100%;
  font-family: var(--d3-font);
  font-size: 0.92rem;
  color: var(--d3-ink);
  background: var(--d3-paper);
  border: 1px solid var(--d3-line-strong);
  border-radius: var(--d3-r-sm);
  padding: 11px 13px;
}
.d3-input:focus, .d3-textarea:focus, .d3-select:focus { border-color: var(--d3-green); outline: 3px solid rgba(30,122,69,.18); }
.d3-textarea { min-height: 130px; resize: vertical; }
.d3-hint { font-size: 0.78rem; color: var(--d3-muted); margin-top: 5px; }
.d3-form-status { margin-top: 14px; font-size: 0.88rem; font-weight: 700; color: var(--d3-green-deep); }

/* --------------------------------------------------------------------------
   13. Motion (seed: subtle, respects reduced motion)
   -------------------------------------------------------------------------- */
.d3-js .d3-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.d3-js .d3-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d3-js .d3-reveal { opacity: 1; transform: none; transition: none; }
  .d3-card:hover, .d3-btn:hover { transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .d3-hero__grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0; }
  .d3-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d3-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d3-cta { grid-template-columns: 1fr; padding: 34px; }
  .d3-cta__actions { justify-content: flex-start; }

  /* Collapse the nav */
  .d3-nav__toggle { display: flex; }
  .d3-nav__list {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--d3-green-deep);
    border-top: 1px solid rgba(255,255,255,.14);
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 78vh;
    overflow-y: auto;
    box-shadow: var(--d3-shadow-lg);
  }
  .d3-nav__list.is-open { display: flex; }
  .d3-nav__item { border-bottom: 1px solid rgba(255,255,255,.1); }
  .d3-nav__link { padding: 15px 4px; justify-content: space-between; }
  .d3-nav__panel {
    position: static;
    display: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,.22);
    padding: 4px 4px 10px;
    min-width: 0;
  }
  .d3-nav__item.is-open > .d3-nav__panel { display: block; }
  .d3-nav__sub { color: #dcefe2; padding: 11px 12px; }
  .d3-nav__sub:hover, .d3-nav__sub:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
  .d3-nav__sub small { color: #9fc3ac; }
}

@media (max-width: 720px) {
  .d3-grid--2, .d3-grid--3, .d3-grid--4, .d3-grid--people { grid-template-columns: 1fr; }
  .d3-stats { grid-template-columns: 1fr; }
  .d3-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .d3-section { padding: 46px 0; }
  .d3-brand__tag { display: none; }
  .d3-brand__name { font-size: 1rem; }
  .d3-header__cta { margin-left: auto; }
  .d3-header__cta .d3-btn--gold { display: none; }
  .d3-hero__badge { position: static; margin-top: 16px; display: inline-block; }
  .d3-totop { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
  .d3-container, .d3-masthead, .d3-utility__inner, .d3-nav__inner { padding-left: 16px; padding-right: 16px; }
  .d3-brand__mark { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* Print */
@media print {
  .d3-header, .d3-footer, .d3-totop, .d3-utility, .d3-nav { display: none; }
  body { background: #fff; color: #000; }
}
