/* ==========================================================================
   Trauma & Grief Center
   Visual system mirrors mmhpi.org — palette and type lifted from the
   Meadows theme (assets/css/main-new.css) so this reads as continuity:
     navy #1d4363 · lime #dce336 · rust #c95c26 · grey #f7f7f7
     Playfair Display (display) + Mulish (body, formerly "Muli")
   ========================================================================== */

:root {
  --navy:     #1d4363;
  --navy-dk:  #193955;
  --blue:     #2c6696;
  --blue-lt:  #6388a8;
  --blue-pale:#839db4;
  --lime:     #dce336;
  --lime-dk:  #c3ca20;
  --rust:     #c95c26;
  --grey-bg:  #f7f7f7;
  --grey-2:   #ececec;
  --line:     #e3e7e9;
  --text:     #767676;
  --white:    #fff;

  --wrap: 1200px;
  --gut: clamp(1.25rem, 4vw, 3.5rem);

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Mulish", Arial, Helvetica, sans-serif;

  --shadow: 0 2px 4px rgba(29,67,99,.06), 0 12px 32px -16px rgba(29,67,99,.22);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .55em;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 820px; }

/* Signature MMHPI detail: a short lime rule introducing a block of copy */
.eyebrow {
  font-family: var(--f-body);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.1rem;
}
.rule-lime {
  width: 74px; height: 3px; background: var(--lime);
  border: 0; margin: 0 0 1.6rem;
}

.lede { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--navy); line-height: 1.7; }
.muted { color: var(--text); }
.small { font-size: .9rem; }

/* --- skip link ----------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

/* --- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 84px;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--f-body); font-weight: 800; font-size: .85rem; letter-spacing: .06em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--f-display); font-weight: 500; font-size: 1.28rem; color: var(--navy);
}
.brand-sub {
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-lt); margin-top: .25rem;
}

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  padding: .55rem .7rem;
  font-size: .88rem; font-weight: 700; color: var(--navy); text-decoration: none;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .28rem;
  height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: .55rem .8rem; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .1em;
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn-primary { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.btn-primary:hover { background: var(--lime-dk); border-color: var(--lime-dk); color: var(--navy); }
.btn-accent { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-accent:hover { background: var(--navy-dk); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: .6rem 1.15rem; font-size: .74rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- hero (split: copy left, photo bleeding off the right edge) ----------- */
.hero { background: var(--grey-bg); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: clamp(420px, 52vw, 620px);
}
.hero-copy { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.hero h1 { margin-bottom: 1.6rem; }
.hero-sub { max-width: 46ch; color: var(--navy); font-size: 1.06rem; }
.hero-media { align-self: stretch; position: relative; min-height: 320px; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
@media (min-width: 861px) {
  /* let the photo run to the right edge of the viewport, as on mmhpi.org */
  .hero-media { margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gut)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 280px; margin-inline: calc(var(--gut) * -1); }
  .hero-copy { padding-bottom: 0; }
}

/* --- quick links --------------------------------------------------------- */
.quicklinks { background: var(--white); border-bottom: 1px solid var(--line); }
.quicklinks-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.quicklink {
  padding: 1.9rem 1.75rem 1.9rem 0;
  text-decoration: none; color: var(--navy);
  display: flex; align-items: center; gap: .7rem;
  border-bottom: 3px solid transparent;
  transition: border-color .18s ease;
}
.quicklink:hover { border-bottom-color: var(--lime); color: var(--blue); }
.quicklink strong {
  font-family: var(--f-body); font-size: .84rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.quicklink::after { content: "\2192"; font-size: 1.05rem; color: var(--lime-dk); }

/* --- sections ------------------------------------------------------------ */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-grey { background: var(--grey-bg); }
.section-navy { background: var(--navy); color: #d3dde6; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--lime); }
.section-navy a { color: var(--lime); }
.section-navy a:hover { color: var(--white); }

.section-head { max-width: 70ch; margin-bottom: 3rem; }

/* --- split (text + photo) ------------------------------------------------ */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split-media-first .split-text { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media-first .split-text { order: 0; }
}
.split-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

/* --- cards --------------------------------------------------------------- */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  padding: 1.9rem 1.7rem;
}
.section-grey .card { box-shadow: var(--shadow); border-color: transparent; }
.card-num {
  font-family: var(--f-display); font-size: 1.6rem; color: var(--blue-pale);
  margin-bottom: .5rem; display: block; line-height: 1;
}
.card h3 { margin-bottom: .5rem; font-size: 1.24rem; }
.card p { font-size: .95rem; }

/* --- pull quote ---------------------------------------------------------- */
.pullquote {
  margin: 3rem 0 0; padding: 0 0 0 1.9rem;
  border-left: 4px solid var(--lime);
  font-family: var(--f-display); font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.45; color: var(--navy); max-width: 48ch; font-style: italic;
}
.section-navy .pullquote { color: var(--white); }

/* --- lists --------------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 10px; height: 10px; background: var(--lime);
}

/* --- chips --------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.chip {
  background: var(--white); border: 1px solid var(--line);
  padding: .5rem 1.05rem; font-size: .85rem; font-weight: 700; color: var(--navy);
}
.section-grey .chip { background: var(--white); }

/* --- team ---------------------------------------------------------------- */
.team-group { margin-bottom: 3rem; }
.team-group h3 {
  font-family: var(--f-body); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue-lt); font-weight: 800;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem;
}
.team-grid {
  display: grid; gap: 1.75rem 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.person { display: flex; flex-direction: column; }
.person-name {
  font-family: var(--f-display); font-size: 1.14rem; color: var(--navy); line-height: 1.3;
}
.person-role { font-size: .88rem; color: var(--text); line-height: 1.5; margin-top: .3rem; }
.person::before {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--lime); margin-bottom: .85rem;
}

/* --- filtering ----------------------------------------------------------- */
.filterbar {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
  padding: 1.3rem 0; margin-bottom: 2.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filterbar .filter-label {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 800; color: var(--blue-lt); margin-right: .5rem;
}
.filter-btn {
  background: var(--white); border: 1px solid var(--line);
  padding: .48rem 1.05rem; font: inherit; font-size: .82rem; font-weight: 700;
  color: var(--navy); cursor: pointer;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.resource-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.resource {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .7rem;
}
.section-grey .resource { box-shadow: var(--shadow); }
.resource h3 { font-size: 1.14rem; margin: 0; }
.resource p { font-size: .93rem; margin: 0; flex: 1; }
.resource-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.resource-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800;
  background: var(--grey-bg); color: var(--blue-lt);
  padding: .3rem .65rem;
}
.tag-es { background: #f3f6e0; color: #7d8410; }
.resource[hidden] { display: none; }

.no-results { padding: 2.5rem 0; color: var(--text); }

/* --- screening tools ----------------------------------------------------- */
.tool-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tool {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--lime);
  padding: 2rem 1.8rem;
}
.tool h3 { margin-bottom: .35rem; }
.tool .tool-abbr {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-lt); font-weight: 800; margin-bottom: .9rem;
}

/* --- publications -------------------------------------------------------- */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { border-bottom: 1px solid var(--line); }
.pub-list a {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; text-decoration: none; color: var(--navy);
  font-size: .98rem; line-height: 1.55;
}
.pub-list a:hover { color: var(--blue); }
.pub-list a::before {
  content: "PDF"; flex: none;
  font-family: var(--f-body); font-size: .64rem; font-weight: 800; letter-spacing: .1em;
  color: var(--white); background: var(--blue-lt); padding: .2rem .4rem;
  position: relative; top: -1px;
}
.pub-list a:hover::before { background: var(--navy); }

/* --- coalition table ----------------------------------------------------- */
.controls {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end;
  padding: 1.5rem; background: var(--grey-bg); margin-bottom: 1.75rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; color: var(--blue-lt);
}
.field input, .field select {
  font: inherit; font-size: .93rem; padding: .6rem .85rem;
  border: 1px solid var(--line); background: var(--white); color: var(--navy); min-width: 210px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--lime); outline-offset: 1px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table.roster { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .93rem; }
table.roster th, table.roster td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.roster th {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800;
  color: var(--white); background: var(--navy); position: sticky; top: 0;
}
table.roster td { color: var(--text); }
table.roster strong { color: var(--navy); font-weight: 700; }
table.roster tr:last-child td { border-bottom: none; }
table.roster tr[hidden] { display: none; }
.count { font-size: .88rem; color: var(--text); margin: 1rem 0 0; }

.notice {
  background: var(--grey-bg); border-left: 4px solid var(--rust);
  padding: 1.35rem 1.5rem; font-size: .94rem; color: var(--navy);
}

/* --- CTA band ------------------------------------------------------------ */
.cta { background: var(--navy); color: #d3dde6; text-align: center; padding: clamp(3.5rem, 6vw, 5rem) 0; }
.cta h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta p { max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 2rem; }
.cta a { color: var(--lime); }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-dk); color: #9fb2c2; padding: 4rem 0 2rem; font-size: .93rem; }
.footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1.5fr 1fr 1fr; margin-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white); font-family: var(--f-body); font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 800;
}
.site-footer a { color: #cdd8e1; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.footer-brand .brand-mark { background: var(--lime); color: var(--navy); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--blue-pale); }
.footer-brand p { max-width: 42ch; margin-top: 1.25rem; color: #9fb2c2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem; color: #7f95a8;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* --- responsive nav ------------------------------------------------------ */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: none; }
  .header-inner { position: relative; min-height: 72px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.08rem; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
