/* ============================================================
   SHEER Initiative — styles
   Palette: warm plum + magenta on soft pink, trust-first
   ============================================================ */

:root {
  /* Brand */
  --plum-900: #2a0820;
  --plum-800: #3a0d2c;
  --plum-700: #4d1238;
  --magenta: #e0117a;
  --magenta-600: #c30c69;
  --pink-300: #f7b7d5;
  --pink-100: #fce3ef;
  --pink-50:  #fdeef6;

  /* Neutrals */
  --ink:      #2b1424;
  --body:     #6b5d65;
  --muted:    #9b8d94;
  --line:     #f0e4ec;
  --line-2:   #ead8e4;
  --surface:  #ffffff;
  --bg:       #fbf6f9;

  /* System */
  --radius:   18px;
  --radius-sm:12px;
  --shadow-sm: 0 1px 2px rgba(74, 18, 56, .05), 0 6px 16px rgba(74, 18, 56, .04);
  --shadow-md: 0 10px 30px rgba(74, 18, 56, .08);
  --ring: 0 0 0 3px rgba(224, 17, 122, .25);
  --sidebar-w: 264px;
  --rail-w: 320px;

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --display: "Outfit", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
em { font-style: normal; color: var(--magenta); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--magenta); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ---------- Layout shell ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100dvh;
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--magenta), #ff5fa8);
  color: #fff; font-size: 22px;
  box-shadow: 0 6px 16px rgba(224,17,122,.35);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.06rem; line-height: 1.05; color: #fff; display: flex; flex-direction: column; letter-spacing: -.02em; }
.brand__sub { font-weight: 500; font-size: .72rem; letter-spacing: .04em; opacity: .8; text-transform: uppercase; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100dvh;
  background: linear-gradient(180deg, var(--plum-800) 0%, var(--plum-900) 100%);
  padding: 26px 18px 22px;
  display: flex; flex-direction: column; gap: 22px;
  overflow-y: auto;
  z-index: 60;
}
.sidebar .brand { padding: 0 8px 4px; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__link {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 12px;
  color: rgba(255,255,255,.74); font-weight: 500; font-size: .94rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav__link i { font-size: 1.2rem; flex: none; }
.nav__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav__link.is-active {
  background: linear-gradient(135deg, var(--magenta), #ff4f9e);
  color: #fff; box-shadow: 0 8px 20px rgba(224,17,122,.4);
}
.nav__link--sm { padding: 9px 14px; font-size: .9rem; }

.nav-group { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
.nav-group__title { color: rgba(255,255,255,.5); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 0 14px 6px; }

.helpline-card {
  margin-top: auto;
  background: linear-gradient(160deg, rgba(224,17,122,.22), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 20px 16px; text-align: center;
}
.helpline-card__icon {
  width: 48px; height: 48px; margin: 0 auto 10px; display: grid; place-items: center;
  border-radius: 50%; background: var(--magenta); color: #fff; font-size: 22px;
  box-shadow: 0 6px 18px rgba(224,17,122,.5);
}
.helpline-card__title { color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.helpline-card__note { color: rgba(255,255,255,.62); font-size: .78rem; margin-top: 2px; }
.helpline-card__number { display: block; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-top: 10px; letter-spacing: -.01em; }
.helpline-card__avail { color: rgba(255,255,255,.55); font-size: .72rem; margin-top: 2px; }

/* ---------- Main ---------- */
.main { min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 16px clamp(18px, 3vw, 34px);
  background: rgba(251,246,249,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.search { flex: 1; max-width: 540px; position: relative; display: flex; align-items: center; }
.search i { position: absolute; left: 16px; color: var(--muted); font-size: 1.1rem; }
.search input {
  width: 100%; border: 1px solid var(--line-2); background: #fff;
  border-radius: 999px; padding: 12px 18px 12px 44px; font: inherit; font-size: .92rem; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { box-shadow: var(--ring); border-color: var(--pink-300); }
.topbar__actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: .95rem; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn i { font-size: 1.05em; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--magenta); color: #fff; box-shadow: 0 8px 20px rgba(224,17,122,.3); }
.btn--primary:hover { background: var(--magenta-600); box-shadow: 0 10px 26px rgba(224,17,122,.42); transform: translateY(-1px); }
.btn--outline { background: #fff; color: var(--plum-800); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--magenta); color: var(--magenta); }
.btn--ghost { background: transparent; color: var(--plum-800); border-color: var(--line-2); }
.btn--ghost:hover { background: #fff; border-color: var(--pink-300); }
.btn--light { background: #fff; color: var(--magenta-600); }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Content grid ---------- */
.content {
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--rail-w);
  gap: clamp(20px, 2.4vw, 34px);
  padding: clamp(20px, 3vw, 34px);
  align-items: start;
}
.feed { display: flex; flex-direction: column; gap: clamp(34px, 5vw, 58px); min-width: 0; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow { display: inline-block; color: var(--magenta-600); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
.block__link { color: var(--magenta-600); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.block__link:hover { gap: 9px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(20px, 3vw, 40px);
  background: linear-gradient(135deg, var(--pink-100) 0%, #fff 60%, var(--pink-50) 100%);
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  position: relative;
}
.hero__title { font-size: clamp(1.9rem, 2.7vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.hero__lead { color: var(--body); font-size: 1.04rem; max-width: 46ch; margin: 18px 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-md); }
.hero__leaf { position: absolute; left: -22px; bottom: -10px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--magenta); font-size: 30px; box-shadow: var(--shadow-md); }

/* ---------- Support grid ---------- */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.support-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.support-card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--pink-100); color: var(--magenta); font-size: 26px; margin-bottom: 16px; }
.support-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.support-card p { color: var(--body); font-size: .92rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px,3vw,34px); box-shadow: var(--shadow-sm); }
.about__media img { border-radius: 18px; width: 100%; object-fit: cover; aspect-ratio: 5/4; }
.about__copy p { color: var(--body); margin-top: 14px; }
.about__copy .block__title { margin-bottom: 4px; }
.ticks { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .94rem; }
.ticks i { color: var(--magenta); font-size: 1.2rem; flex: none; margin-top: 1px; }
.stats { display: flex; gap: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--magenta-600); line-height: 1; }
.stat__label { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease; }
.service:hover { border-color: var(--pink-300); transform: translateY(-2px); }
.service__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--plum-800); color: #fff; font-size: 22px; margin-bottom: 10px; }
.service h3 { font-size: 1.04rem; font-weight: 700; }
.service p { color: var(--body); font-size: .92rem; }

/* ---------- Resources ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.resource { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.resource:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource__img { aspect-ratio: 4/3; overflow: hidden; background: var(--pink-100); }
.resource__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.resource:hover .resource__img img { transform: scale(1.05); }
.resource__body { padding: 16px 16px 18px; }
.tag { display: inline-block; background: var(--pink-100); color: var(--magenta-600); font-weight: 600; font-size: .72rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .02em; }
.resource h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.resource p { color: var(--body); font-size: .86rem; margin-top: 6px; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 14px; background: var(--pink-100); color: var(--magenta-600); font-weight: 600; font-size: .72rem; text-transform: uppercase; }
.news-item__date span { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--plum-800); }
.news-item h3 { font-size: 1.05rem; font-weight: 700; }
.news-item p { color: var(--body); font-size: .9rem; margin-top: 3px; }
.news-item__go { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: var(--plum-800); transition: all .2s ease; }
.news-item__go:hover { background: var(--magenta); color: #fff; border-color: var(--magenta); }

/* ---------- CTA banner ---------- */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--plum-800), var(--magenta-600));
  border-radius: 24px; padding: clamp(28px, 4vw, 44px); color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-banner h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; max-width: 22ch; }
.cta-banner p { color: rgba(255,255,255,.82); margin-top: 8px; max-width: 48ch; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- FAQs ---------- */
.faqs { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--magenta); font-size: 1.2rem; transition: transform .2s ease; flex: none; }
.faq[open] summary i { transform: rotate(45deg); }
.faq p { color: var(--body); font-size: .94rem; padding: 0 0 18px; max-width: 70ch; }
.faq a { color: var(--magenta-600); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px,3vw,44px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px,3vw,38px); box-shadow: var(--shadow-sm); }
.contact__copy p { color: var(--body); margin: 12px 0 22px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.contact__list i { color: var(--magenta); font-size: 1.3rem; }
.contact__list span { color: var(--muted); font-weight: 400; font-size: .88rem; }
.contact__list a:hover { color: var(--magenta-600); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: .94rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fffafd; color: var(--ink); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { box-shadow: var(--ring); border-color: var(--pink-300); }
.contact__note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px clamp(20px, 3vw, 34px) 0; margin-top: 8px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; padding-bottom: 22px; }
.brand--footer .brand__name, .brand--footer .brand__sub { color: var(--ink); }
.brand--footer .brand__sub { opacity: .6; }
.footer__tag { color: var(--body); font-size: .92rem; flex: 1 1 240px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-100); color: var(--magenta-600); font-size: 1.2rem; transition: all .2s ease; }
.footer__social a:hover { background: var(--magenta); color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 18px 0 30px; color: var(--muted); font-size: .85rem; }
.footer__links { display: flex; gap: 18px; }
.footer__links a:hover { color: var(--magenta-600); }

/* ============================================================
   RIGHT RAIL
   ============================================================ */
.rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.card__title { font-size: 1.12rem; font-weight: 700; }
.card__link { color: var(--magenta-600); font-weight: 600; font-size: .82rem; display: inline-flex; align-items: center; gap: 5px; }

.quick__list { display: flex; flex-direction: column; margin-top: 8px; }
.quick__list a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .94rem; transition: color .18s ease, padding .18s ease; }
.quick__list li:last-child a { border-bottom: 0; }
.quick__list a > i:first-child { color: var(--magenta); font-size: 1.25rem; }
.quick__list .go { margin-left: auto; color: var(--muted); font-size: 1rem; transition: transform .18s ease; }
.quick__list a:hover { color: var(--magenta-600); padding-left: 4px; }
.quick__list a:hover .go { transform: translateX(3px); color: var(--magenta); }

.talk { background: linear-gradient(150deg, var(--plum-800), var(--magenta-600)); border: 0; color: #fff; }
.talk__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; margin-bottom: 14px; }
.talk__title { color: #fff; font-size: 1.12rem; font-weight: 700; }
.talk__note { color: rgba(255,255,255,.78); font-size: .88rem; margin-top: 6px; }
.talk__number { display: inline-block; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-top: 14px; letter-spacing: -.01em; }

.events__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.events__list { display: flex; flex-direction: column; }
.events__list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.events__list li:last-child { border-bottom: 0; }
.events__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 54px; flex: none; border-radius: 12px; background: var(--pink-100); }
.events__date .m { color: var(--magenta-600); font-weight: 700; font-size: .66rem; letter-spacing: .05em; }
.events__date .d { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--plum-800); line-height: 1; }
.events__list h3 { font-size: .96rem; font-weight: 700; }
.events__list p { color: var(--muted); font-size: .8rem; margin-top: 2px; }

.quote { background: var(--plum-900); border: 0; position: relative; overflow: hidden; }
.quote__mark { color: rgba(255,255,255,.16); font-size: 46px; }
.quote blockquote { margin: 6px 0 0; color: #fff; font-family: var(--display); font-weight: 500; font-size: 1.08rem; line-height: 1.4; }

/* ============================================================
   MOBILE BAR + SCRIM
   ============================================================ */
.mobile-bar { display: none; position: sticky; top: 0; z-index: 70; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--plum-900); }
.brand--mobile .brand__name { font-size: 1rem; }
.nav-toggle { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 12px; font-size: 1.4rem; display: grid; place-items: center; cursor: pointer; }
.scrim { position: fixed; inset: 0; background: rgba(42,8,32,.5); z-index: 55; backdrop-filter: blur(2px); }

/* ============================================================
   IMAGE PLACEHOLDERS (shown when an image field is empty)
   Face-free, on-brand gradient panels.
   ============================================================ */
.ph-img {
  display: grid; place-items: center; width: 100%; height: 100%;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-300));
  color: #fff;
}
.ph-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.45), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(224,17,122,.18), transparent 46%);
}
.ph-img i { position: relative; font-size: clamp(2rem, 5vw, 3.4rem); color: rgba(255,255,255,.9); }
.ph-img--hero { aspect-ratio: 4 / 3.4; border-radius: 20px; box-shadow: var(--shadow-md);
  background: linear-gradient(140deg, #f7b7d5 0%, var(--magenta) 70%, var(--magenta-600) 100%); }
.ph-img--about { aspect-ratio: 5 / 4; border-radius: 18px; }
.ph-img--about i { color: var(--magenta); }
.ph-img--card { aspect-ratio: 4 / 3; }
.ph-img--card i { color: var(--magenta); font-size: 2.2rem; }

/* ============================================================
   FORM ALERTS
   ============================================================ */
.form-alert { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; font-weight: 500; margin-bottom: 14px; }
.form-alert i { font-size: 1.2rem; flex: none; }
.form-alert--ok { background: #e9f9ef; color: #16794a; border: 1px solid #bfe9cf; }
.form-alert--err { background: #fdecef; color: #b3173f; border: 1px solid #f6c6d2; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .content { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .rail .card { flex: 1 1 280px; }
}

@media (max-width: 960px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 320px; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .layout { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; width: 280px; height: 100dvh;
    transform: translateX(-100%); transition: transform .3s cubic-bezier(.16,1,.3,1);
  }
  .sidebar.is-open { transform: translateX(0); }
  .topbar { top: 0; }
}

@media (max-width: 560px) {
  .support-grid, .resource-grid, .services-grid { grid-template-columns: 1fr; }
  .topbar__actions .btn--ghost { display: none; }
  .stats { flex-wrap: wrap; gap: 18px; }
  .news-item { grid-template-columns: auto 1fr; }
  .news-item__go { display: none; }
  .content { padding: 16px; }
}

/* ============================================================
   SUBPAGES (resources, stories, events, search, article detail)
   ============================================================ */
.page { padding: clamp(20px, 3vw, 34px); max-width: 1080px; margin: 0 auto; width: 100%; }
.back { display: inline-flex; align-items: center; gap: 7px; color: var(--magenta-600); font-weight: 600; font-size: .9rem; margin-bottom: 18px; transition: gap .15s ease; }
.back:hover { gap: 11px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.page-head > p { color: var(--body); margin-top: 8px; max-width: 60ch; }
.page-subhead { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 36px 0 16px; }
.page-empty { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.page-empty i { font-size: 2.6rem; color: var(--pink-300); display: block; margin-bottom: 12px; }
.page-empty p { margin-bottom: 16px; }

/* Card as a link */
a.resource { color: inherit; text-decoration: none; }

/* Article (resource / story detail) */
.page--article { max-width: 820px; }
.article .tag { display: inline-flex; align-items: center; gap: 6px; }
.article__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin: 12px 0; line-height: 1.14; }
.article__lead { font-size: 1.14rem; color: var(--body); margin-bottom: 22px; max-width: 64ch; }
.article__media { margin: 8px 0 28px; }
.article__media img, .article__media .ph-img { width: 100%; border-radius: 18px; }
.ph-img--article { aspect-ratio: 16 / 8; border-radius: 18px; }
.article__body { font-size: 1.04rem; color: var(--body); line-height: 1.75; }
.article__body > * + * { margin-top: 1.05em; }
.article__body h2 { color: var(--ink); font-size: 1.4rem; font-weight: 700; margin-top: 1.5em; }
.article__body h3 { color: var(--ink); font-size: 1.15rem; font-weight: 700; margin-top: 1.3em; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li { margin-top: .4em; }
.article__body a { color: var(--magenta-600); font-weight: 600; text-decoration: underline; }
.article__body strong { color: var(--ink); }
.article__body img { max-width: 100%; border-radius: 12px; }
.article__cta { margin-top: 28px; }

/* Events page reuses .news-list */
.news-list--muted { opacity: .72; }

/* Search */
.search--page { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 16px; }
.search--page > i { position: absolute; left: 16px; color: var(--muted); font-size: 1.1rem; pointer-events: none; }
.search--page input { flex: 1; min-width: 0; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 13px 18px 13px 44px; font: inherit; font-size: .95rem; color: var(--ink); }
.search--page input:focus { box-shadow: var(--ring); border-color: var(--pink-300); }
.search-summary { color: var(--muted); margin-top: 14px; font-size: .92rem; }

@media (max-width: 560px) {
  .search--page { flex-wrap: wrap; }
  .search--page .btn { width: 100%; }
}

/* ============================================================
   REALTIME / RESPONSIVENESS (notice bar, live search, PJAX)
   ============================================================ */

/* Live announcement bar */
.notice { display: flex; align-items: center; gap: 10px; padding: 11px clamp(18px, 3vw, 34px);
  background: var(--pink-100); color: var(--magenta-600); font-weight: 600; font-size: .9rem;
  border-bottom: 1px solid var(--line-2); }
.notice[hidden] { display: none; }
.notice i { font-size: 1.2rem; flex: none; }
.notice--important { background: #fdecef; color: #b3173f; border-bottom-color: #f6c6d2; }

/* Live search dropdown */
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-md);
  overflow: hidden; max-height: 60vh; overflow-y: auto; }
.search-results[hidden] { display: none; }
.search-results__item { display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); color: var(--ink); }
.search-results__item:last-child { border-bottom: 0; }
.search-results__item:hover, .search-results__item:focus { background: var(--pink-50); }
.search-results__type { flex: none; font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--magenta-600); background: var(--pink-100); padding: 3px 8px; border-radius: 999px; }
.search-results__title { font-size: .92rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results__empty { padding: 14px 16px; color: var(--muted); font-size: .88rem; }

/* PJAX swap — gentle fade where View Transitions aren't available */
@media (prefers-reduced-motion: no-preference) {
  #pjax { animation: pjax-in .26s cubic-bezier(.16,1,.3,1); }
  @keyframes pjax-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  ::view-transition-old(root) { animation-duration: .22s; }
  ::view-transition-new(root) { animation-duration: .22s; }
}

/* ============================================================
   VOLUNTEER PAGE
   ============================================================ */
.vol-grid { display: grid; grid-template-columns: 1.5fr .85fr; gap: clamp(20px, 2.5vw, 32px); align-items: start; }
.vol-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vol-form .field, .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field select {
  font: inherit; font-size: .94rem; color: var(--ink); width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background-color: #fffafd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c30c69' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.field select:hover { border-color: var(--pink-300); }
.field select:focus { box-shadow: var(--ring); border-color: var(--pink-300); outline: none; }
.req { color: var(--magenta); }
.vol-aside { display: flex; flex-direction: column; gap: 18px; }
.vol-aside .card .ticks { margin-top: 12px; }
.vol-aside__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--pink-100); color: var(--magenta); font-size: 22px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .vol-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Honeypot anti-bot field — hidden from people, visible to dumb bots */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
