/* ==========================================================================
   QCRS HOME — modelled on the design language of experiencecel.org.

   Borrowed: layout / visual language only (light tinted grounds, oversized
   friendly headings, pill buttons, organic arch media with offset dashed
   frames, alternating two-column rows, ruled program lists, an impact strip
   and a social-style grid). No CEL code, text, imagery, logo, font or overlay
   is copied.

   Mapped to QCRS's official logo palette:
     CEL teal-blue -> #013CA6 royal blue
     CEL orange    -> #FAD000 sun yellow (navy ink on it)
     CEL green     -> #806200 deep gold (WCAG-safe text accent)
     CEL cream     -> #FBF8F3 warm paper
   Tints: #E9F1FF pale sky, #F7EFE0 pale sand.

   Revision 2026-11-15 (user request): the quote arch / portrait slot, the
   "Figures wait for verification" counters and the two CTA panels were
   removed. A CEL-style "Your support in action" strip took their place,
   with four ICONS and four still-empty figure positions — no invented
   statistics. Recent activities is a 4-item manual slideshow. "More moments
   to share" holds 20 items and expands on click; 16 use locally hosted QCRS
   Facebook photos, 4 stay as labelled reserved slots.

   Motion: one load-time hero entrance only. No scroll reveals, no automatic
   carousel advance, no looping animation, no new library or remote request.
   prefers-reduced-motion disables every animation, transform and transition.
   ========================================================================== */

:root {
  --h-blue: #013CA6;
  --h-blue-dark: #012C7A;
  --h-ink: #15233A;
  --h-ink-soft: #455467;
  --h-gold: #806200;
  --h-sun: #FAD000;
  --h-sun-dark: #E0BB00;
  --h-paper: #FBF8F3;
  --h-white: #FFFFFF;
  --h-sky: #E9F1FF;
  --h-sand: #F7EFE0;
  --h-line: rgba(1, 60, 166, 0.18);
  --h-line-soft: rgba(21, 35, 58, 0.13);
  --h-wrap: min(78rem, 90vw);
  --h-ease: cubic-bezier(0.2, 0.6, 0.3, 1);
}

.h-wrap { width: var(--h-wrap); margin-inline: auto; }
.h-band { padding-block: clamp(3rem, 6vw, 5.25rem); }
.h-ground--paper { background: var(--h-paper); }
.h-ground--sky {
  background:
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(250, 208, 0, 0.14), transparent 62%),
    linear-gradient(160deg, #FFFFFF 0%, var(--h-sky) 55%, #F4F8FF 100%);
}
.h-ground--sand {
  background:
    radial-gradient(ellipse 60% 60% at 88% 20%, rgba(250, 208, 0, 0.16), transparent 65%),
    linear-gradient(155deg, #FFFFFF 0%, var(--h-sand) 100%);
}
.h-ground--tint {
  background:
    radial-gradient(ellipse 55% 60% at 85% 15%, rgba(250, 208, 0, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 60% at 5% 90%, rgba(1, 60, 166, 0.07), transparent 62%),
    var(--h-paper);
}

/* ------------------------------------------------------------- typography */
.h-eyebrow { margin: 0 0 1rem; font-size: 0.9375rem; font-weight: 700; color: var(--h-gold); }
.h-title {
  font-size: clamp(2rem, 1.15rem + 2.9vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.032em; color: var(--h-blue);
  margin: 0 0 1.25rem; max-width: 24ch; text-wrap: balance;
}
.h-title--center { margin-inline: auto; text-align: center; max-width: 26ch; }
.h-lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); line-height: 1.6; color: var(--h-ink-soft); max-width: 52ch; margin: 0 0 1.5rem; }

/* -------------------------------------------------------------- controls */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.75rem; border: 2px solid transparent;
  border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 700;
  line-height: 1.3; text-decoration: none;
  transition: transform 180ms var(--h-ease), background-color 180ms var(--h-ease),
    border-color 180ms var(--h-ease), color 180ms var(--h-ease);
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn:active { transform: translateY(0); }
.h-btn--sun { background: var(--h-sun); color: var(--h-ink); }
.h-btn--sun:hover { background: var(--h-sun-dark); color: var(--h-ink); }
.h-btn--blue { background: var(--h-blue); color: var(--h-white); }
.h-btn--blue:hover { background: var(--h-blue-dark); color: var(--h-white); }
.h-btn--outline { background: transparent; color: var(--h-blue-dark); border-color: var(--h-blue); }
.h-btn--outline:hover { background: var(--h-blue); color: var(--h-white); }
.h-actions { margin: 1.75rem 0 0; }

.h-chev {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  color: var(--h-blue); font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--h-ease), color 180ms var(--h-ease);
}
.h-chev::after { content: "\203A"; font-size: 1.25em; line-height: 0.8; }
.h-chev:hover { color: var(--h-blue-dark); border-bottom-color: var(--h-blue-dark); }

:focus-visible { outline-offset: 3px; }
.h-slot:focus-visible, .h-ground--paper :focus-visible { outline: 3px solid var(--h-blue); box-shadow: 0 0 0 2px var(--h-white); }

/* ------------------------------------------------------- reserved slots */
.h-slot { position: relative; margin: 0; }
.h-slot__frame {
  position: absolute; inset: -0.5rem -0.5rem 0.5rem 0.5rem;
  border: 2px dashed rgba(1, 60, 166, 0.42); border-radius: 1.5rem;
  z-index: 0; pointer-events: none;
}
.h-slot__body {
  position: relative; z-index: 1; aspect-ratio: var(--h-slot-ratio, 4 / 3);
  display: grid; place-content: center; justify-items: center; gap: 0.35rem;
  padding: 1.5rem; text-align: center;
  border: 1px solid rgba(1, 60, 166, 0.14); border-radius: 1.5rem;
  color: var(--h-blue-dark);
}
.h-slot--sky .h-slot__body  { background: linear-gradient(150deg, #FFFFFF, var(--h-sky)); }
.h-slot--sand .h-slot__body { background: linear-gradient(150deg, #FFFFFF, var(--h-sand)); }
.h-slot--paper .h-slot__body { background: linear-gradient(150deg, #FFFFFF, var(--h-paper)); }
.h-slot--arch .h-slot__body { border-radius: 10rem 1.5rem 1.5rem 1.5rem; }
.h-slot--arch .h-slot__frame { border-radius: 10rem 1.5rem 1.5rem 1.5rem; }
.h-slot--arch-rev .h-slot__body, .h-slot--arch-rev .h-slot__frame { border-radius: 1.5rem 10rem 1.5rem 1.5rem; }
.h-slot--square .h-slot__body, .h-slot--square .h-slot__frame { border-radius: 1.25rem; }
.h-slot__mark { font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--h-blue); }
.h-slot__label { font-weight: 700; font-size: 1rem; }
.h-slot__hint { font-size: 0.8125rem; color: var(--h-ink-soft); max-width: 30ch; }
.h-slot__id {
  margin-top: 0.35rem; font-size: 0.75rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--h-ink-soft); opacity: 0.75;
}

.h-split { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .h-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); } }
.h-split--flip > :first-child { order: 2; }
@media (max-width: 63.99rem) { .h-split--flip > :first-child { order: 0; } }

/* ---------------------------------------------------------------- 1. hero */
.h-hero { position: relative; overflow: hidden; }
.h-hero__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); }
@media (min-width: 64rem) { .h-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(3rem, 6vw, 6rem); } }
.h-hero h1 {
  font-size: clamp(2.75rem, 1.1rem + 6vw, 5.25rem);
  line-height: 1.04; letter-spacing: -0.04em; color: var(--h-blue);
  max-width: 15ch; margin: 0 0 1.5rem; text-wrap: balance;
}
.h-hero__title::after {
  content: ""; display: block; width: clamp(5rem, 12vw, 9rem); height: 0.5rem;
  margin-top: 1.25rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--h-sun), var(--h-sun-dark));
  transform: rotate(-1.5deg);
}
.h-hero__lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.58; color: var(--h-ink); max-width: 46ch; margin: 0 0 2rem; }
.h-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.h-hero__media { position: relative; }
.h-hero__sun {
  position: absolute; top: -2rem; right: -2rem;
  width: clamp(4.5rem, 9vw, 7.5rem); aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--h-sun); box-shadow: 0 0 0 0.75rem rgba(250, 208, 0, 0.24);
  z-index: 0; pointer-events: none;
}

@keyframes h-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.h-hero__place, .h-hero h1, .h-hero__lede, .h-hero__actions, .h-hero__media { animation: h-enter 700ms var(--h-ease) both; }
.h-hero__place   { animation-delay: 0ms; }
.h-hero h1       { animation-delay: 90ms; }
.h-hero__lede    { animation-delay: 180ms; }
.h-hero__actions { animation-delay: 260ms; }
.h-hero__media   { animation-delay: 140ms; animation-duration: 800ms; }

/* ----------------------------------------------- 2. news / slideshow */
.news { background: transparent; border: 0; padding-block: clamp(3rem, 6vw, 5.25rem); }
.news::before { display: none; }
.news .news__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.news .news__head h2 { color: var(--h-blue); font-size: clamp(2rem, 1.15rem + 2.9vw, 3.5rem); letter-spacing: -0.032em; }
.news .news__head p { max-width: 62ch; color: var(--h-ink-soft); }

.h-slide { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .h-slide { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); } }
/* Progressive enhancement: with no JS every story is visible in order. */
.h-slides[data-enhanced="true"] .h-slide:not([data-active]) { display: none; }
.h-slide__media img { display: block; width: 100%; height: auto; border-radius: 1.5rem; aspect-ratio: 4 / 3; object-fit: cover; }
.h-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0 0 1rem; font-size: 0.875rem; font-weight: 700; color: var(--h-ink-soft); }
.h-news__status { padding: 0.15rem 0.65rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.8125rem; }
.h-news__status--verified { color: var(--h-blue-dark); background: var(--h-white); }
.h-news__status--draft { color: #5A3A15; background: #FFF4E5; }
.h-news__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.025em; color: var(--h-blue); margin: 0 0 1rem; }
.h-news__text { font-size: 1rem; color: var(--h-ink); margin: 0 0 1rem; max-width: 58ch; }
.h-news__source { font-size: 0.8125rem; color: var(--h-ink-soft); margin: 0; padding-top: 1rem; border-top: 1px solid var(--h-line); max-width: 62ch; }

.h-slides__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.h-slides__arrow {
  width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--h-blue);
  background: var(--h-white); color: var(--h-blue); font: inherit; font-size: 1.75rem;
  line-height: 1; cursor: pointer; display: grid; place-content: center;
  transition: background-color 180ms var(--h-ease), transform 180ms var(--h-ease);
}
.h-slides__arrow:hover { background: var(--h-sun); transform: translateY(-2px); }
.h-slides__dots { display: flex; gap: 0.65rem; }
/* The visible dot stays small, but the button itself is a >= 24 px target
   (WCAG 2.5.8) so it is comfortable to hit on a touch screen. */
.h-slides__dot {
  width: 1.5rem; height: 1.5rem; padding: 0; border: 0; flex: none;
  border-radius: 50%; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.h-slides__dot::after {
  content: ""; display: block; width: 0.9rem; height: 0.9rem;
  border-radius: 50%; border: 2px solid var(--h-blue); background: transparent;
}
.h-slides__dot[aria-current="true"]::after { background: var(--h-sun); }
.h-slides__arrow:focus-visible, .h-slides__dot:focus-visible, .h-moments__more summary:focus-visible,
.h-slides__more:focus-visible {
  outline: 3px solid var(--h-blue); outline-offset: 3px;
}
.h-slides__status { text-align: center; font-size: 0.875rem; color: var(--h-ink-soft); margin: 0.75rem 0 0; }

/* ----------------------------------------------- the "more" symbol button -- */
.h-slides__more-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  margin-top: 2rem;
}
.h-slides__more {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; min-width: 44px;
  padding: 0.65rem 1.35rem;
  border: 2px solid var(--h-blue); border-radius: 999px;
  background: var(--h-white); color: var(--h-blue);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background-color 180ms var(--h-ease), color 180ms var(--h-ease),
              transform 180ms var(--h-ease);
}
.h-slides__more:hover { background: var(--h-sun); transform: translateY(-2px); }
.h-slides__more-icon { display: grid; place-items: center; width: 18px; height: 18px; }
.h-slides__more-icon svg { display: block; width: 18px; height: 18px; }
.h-slides__more-hint {
  margin: 0; font-size: 0.875rem; color: var(--h-ink-soft); text-align: center;
}

/* Without JS the "more" button is inert, so hide it and keep the four
   stories readable in order. */
.h-slides:not([data-enhanced="true"]) .h-slides__more-wrap { display: none; }

/* ------------------------------------------- the all-activities grid view -- */
.h-all { margin-top: clamp(2rem, 4vw, 3rem); }
.h-all[hidden] { display: none; }
.h-all__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.5rem;
}
.h-all__title {
  margin: 0; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  line-height: 1.2; letter-spacing: -0.02em; color: var(--h-blue);
}
.h-all .h-moments { margin-top: 1.5rem; }
.h-all .h-moment__title {
  margin: 0 0 0.3rem; font-size: 1rem; line-height: 1.3; color: var(--h-blue);
}
.h-all .h-moment__text {
  margin: 0.6rem 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--h-ink);
}
.h-all .h-moment__source {
  margin: 0.6rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--h-line);
  font-size: 0.75rem; line-height: 1.5; color: var(--h-ink-soft);
}

.h-news__note { margin-top: clamp(2rem, 4vw, 2.75rem); padding-top: 1.5rem; border-top: 2px solid var(--h-gold); }
.h-news__note-tag { display: block; font-weight: 700; margin-bottom: 0.5rem; color: var(--h-ink); }
.h-news__note p { margin: 0; font-size: 0.9375rem; color: var(--h-ink-soft); max-width: 78ch; }
.h-news__more { margin-top: 1.75rem; }
.h-news__more .btn--text { color: var(--h-blue); font-weight: 700; }

/* ------------------------------------------------------------ 3. support */
.h-support__intro { text-align: center; margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 60ch; }
.h-program-list { list-style: none; padding: 0; margin: 0; max-width: none; border-top: 1px solid var(--h-line); }
.h-program-list li { margin: 0; padding-block: 1.75rem; border-bottom: 1px solid var(--h-line); }
.h-program-list h3 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem); color: var(--h-blue); margin: 0 0 0.6rem; letter-spacing: -0.025em; }
.h-program-list p { font-size: 0.9375rem; color: var(--h-ink-soft); margin: 0 0 1rem; max-width: 52ch; }
.h-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2rem; margin-top: 2rem; font-size: 0.9375rem; }
.h-more__label { color: var(--h-ink-soft); margin: 0; }

/* ------------------------------------------------------------ 4. mission */
.h-mission__statement { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.5; font-weight: 500; color: var(--h-ink); max-width: 46ch; margin: 0 0 1.25rem; text-wrap: pretty; }
.h-mission__foot { font-size: 0.9375rem; color: var(--h-ink-soft); margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--h-line); max-width: 52ch; }

/* ------------------------------------------------------------- 5. people */
.h-people__statement { font-size: clamp(1.5rem, 1rem + 1.9vw, 2.5rem); line-height: 1.22; letter-spacing: -0.028em; font-weight: 700; color: var(--h-ink); max-width: 28ch; margin: 0 0 1.25rem; }

/* ------------------------------------------------------------- 6. values */
.h-values__list { list-style: none; padding: 0; margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.h-values__list li {
  margin: 0; padding: 0.75rem 1.5rem; border-radius: 999px;
  background: var(--h-white); border: 2px solid rgba(1, 60, 166, 0.22);
  color: var(--h-blue-dark); font-weight: 700;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
}
.h-values__principles { margin: 2rem 0 0; font-size: 0.9375rem; color: var(--h-ink-soft); max-width: 70ch; }

/* ------------------------------------------- 7. "Your support in action" */
.h-impact__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.h-impact__head .h-title { margin: 0; }
.h-impact__grid { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
@media (min-width: 60rem) { .h-impact__grid { grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); } }
.h-impact__grid li { display: grid; justify-items: center; align-content: start; gap: 0.6rem; text-align: center; }
.h-impact__grid li:nth-child(odd) { color: var(--h-blue); }
.h-impact__grid li:nth-child(even) { color: var(--h-gold); }
.h-impact__dash { display: block; font-size: clamp(2.5rem, 2rem + 1.8vw, 4rem); font-weight: 700; line-height: 1; color: var(--h-ink); }
.h-impact__label { font-size: 1rem; font-weight: 700; color: var(--h-ink); }
.h-impact__label small { display: block; margin-top: 0.35rem; font-size: 0.8125rem; font-weight: 400; color: var(--h-ink-soft); line-height: 1.4; }
.h-impact__note { margin: clamp(2rem, 4vw, 3rem) 0 0; font-size: 0.9375rem; color: var(--h-ink-soft); max-width: 70ch; }

/* ------------------------------------------- 8. more moments (expandable) */
.h-moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 48rem) { .h-moments { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 64rem) { .h-moments { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.h-moment { background: var(--h-white); border: 1px solid var(--h-line); border-radius: 1.25rem; overflow: hidden; }
.h-moment img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.h-moment .h-slot { margin: 0.5rem; }
.h-moment .h-slot__frame { inset: -0.3rem -0.3rem 0.3rem 0.3rem; }
.h-moment .h-slot__body { aspect-ratio: 1 / 1; padding: 0.75rem; }
.h-moment .h-slot__hint { font-size: 0.75rem; }
.h-moment__body { padding: 0.8rem 1rem 1rem; }
.h-moment h3 { font-size: 0.9375rem; line-height: 1.3; color: var(--h-blue); margin: 0 0 0.3rem; }
.h-moment__date { font-size: 0.8125rem; color: var(--h-ink-soft); margin: 0; }
.h-moments--extra { margin-top: 1.5rem; }
.h-moments__more { margin-top: 1.5rem; text-align: center; }
.h-moments__more summary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 2rem; border: 2px solid var(--h-blue);
  border-radius: 999px; background: var(--h-white); color: var(--h-blue-dark);
  font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none;
  transition: background-color 180ms var(--h-ease);
}
.h-moments__more summary::-webkit-details-marker { display: none; }
.h-moments__more summary:hover { background: var(--h-sun); }
.h-moments__more summary .when-open { display: none; }
.h-moments__more[open] summary .when-closed { display: none; }
.h-moments__more[open] summary .when-open { display: inline; }
.h-moments__note { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--h-ink-soft); max-width: 80ch; }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .h-hero__place, .h-hero h1, .h-hero__lede, .h-hero__actions, .h-hero__media {
    animation: none; opacity: 1; transform: none;
  }
  .h-btn, .h-chev, .h-slides__arrow, .h-moments__more summary { transition: none; }
  .h-btn:hover, .h-slides__arrow:hover { transform: none; }
  .h-hero__title::after { transform: none; }
}

/* ------------------------------------------------------------ 320px safe */
:where(.h-hero__inner, .h-split, .h-moments, .h-impact__grid,
       .h-values__list, .h-slide, .h-hero__actions) > * { min-width: 0; }
@media (max-width: 26rem) {
  .h-wrap { width: 92vw; }
  .h-hero__actions .h-btn { width: 100%; }
  .h-slot__frame { inset: -0.35rem -0.35rem 0.35rem 0.35rem; }
  .h-slot--arch .h-slot__body, .h-slot--arch .h-slot__frame { border-radius: 5rem 1.25rem 1.25rem 1.25rem; }
}
@media (max-width: 40rem) {
  .h-hero__sun {
    top: -1rem; right: -0.5rem; width: 4rem;
    box-shadow: 0 0 0 0.5rem rgba(250, 208, 0, 0.24);
  }
}
