/* Page-specific styles for Contact, About and Resources (FRC punchlist).
   Site-wide components live in brand.css; everything here is scoped by the body's page-{slug} class. */

/* ===================== Contact ===================== */

/* Router: three options plus the abuse-report card, four across so every option sits above the fold. */
.page-contact .router{margin-top:8px}
.page-contact .rgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.page-contact .rc{padding:30px 26px 28px}
.page-contact .rc h2{font-family:'Newsreader','Newsreader Fallback',serif;font-weight:500;font-size:24px;line-height:1.16;letter-spacing:-.016em;color:var(--navy-deep);margin:0 0 10px} /* router card titles are h2 (heading order); same look as brand .rc h3 */

/* Report card: the old crisis banner, as a card. Text is left-aligned with tighter padding. */
.page-contact .rc-report{background:var(--navy-deep);border-color:var(--navy-deep);color:var(--white);position:relative;overflow:hidden;text-align:left}
.page-contact .rc-report::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 88% 12%,rgba(149,39,144,.34) 0%,transparent 52%);pointer-events:none}
.page-contact .rc-report>*{position:relative;z-index:1}
.page-contact .rc-report:hover{transform:none;box-shadow:none}
.page-contact .rc-report .gl{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24)}
.page-contact .rc-report h2{color:var(--white)}
.page-contact .rc-report p{color:rgba(255,255,255,.86);margin-bottom:18px}
.page-contact .rc-report .num{font-family:'Newsreader','Newsreader Fallback',serif;font-size:32px;font-weight:600;line-height:1;letter-spacing:-.02em;color:var(--white);white-space:nowrap;margin-top:auto}
.page-contact .rc-report .num:hover{color:var(--azure-pale)}
.page-contact .rc-report .num-sub{display:block;font-size:12.5px;color:rgba(255,255,255,.86);margin-top:8px}
.page-contact .rc-report .em911{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;margin-top:14px;background:rgba(255,255,255,.95);color:#8c1d16;font-size:12.5px;font-weight:700;padding:8px 13px;border-radius:999px}
.page-contact .rc-report .em911 .d{width:7px;height:7px;border-radius:999px;background:#b3261e;flex:0 0 auto}

@media (max-width:1250px){
  .page-contact .rgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .page-contact .rgrid{grid-template-columns:1fr;gap:16px}
  .page-contact .rc{padding:26px 22px 24px}
}

/* Modals (referral + volunteer). Native <dialog>: focus trap, Esc and top layer come from the browser. */
html:has(dialog.modal[open]){overflow:hidden}
dialog.modal{border:0;padding:0;margin:auto;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;border-radius:20px;background:var(--paper);color:var(--ink);box-shadow:0 40px 90px -30px rgba(2,30,60,.55)}
dialog.modal::backdrop{background:rgba(2,30,60,.62);backdrop-filter:blur(2px)}
dialog.modal[open]{animation:modal-in .22s ease-out}
@keyframes modal-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){dialog.modal[open]{animation:none}}
.modal-in{padding:36px 40px 34px;position:relative}
.modal-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.modal-hd h2{font-family:'Newsreader','Newsreader Fallback',serif;font-weight:500;font-size:clamp(30px,3.4vw,44px);line-height:1.04;letter-spacing:-.022em;color:var(--navy-deep);margin:14px 0 0}
.modal-hd h2 .accent{font-style:italic;color:var(--purple)}
.modal-x{flex:0 0 auto;width:40px;height:40px;border-radius:999px;border:1px solid var(--rule);background:var(--white);color:var(--navy-deep);font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.modal-x:hover{background:var(--ice)}
.modal-x:focus-visible{outline:2px solid var(--royal-bright);outline-offset:2px}
/* The referral form keeps its own .steps markup; inside the modal it drops the card chrome. */
.modal-ref .steps{background:none;border:0;padding:0;border-radius:0}

dialog.modal-vol{background:var(--navy);color:var(--white);width:min(620px,calc(100vw - 32px))}
.modal-vol .modal-in{padding:44px 44px 40px}
.modal-vol .modal-x{position:absolute;top:18px;right:18px;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);color:var(--white)}
.modal-vol .modal-x:hover{background:rgba(255,255,255,.22)}
.modal-vol .vol-copy h2,.modal-vol h2{padding-right:44px}

/* Browsers without <dialog>: show the forms inline instead of hiding them. */
.no-dialog dialog.modal{display:block;position:static;width:auto;max-width:1440px;margin:0 auto 56px;box-shadow:none}
.no-dialog .modal-x{display:none}

@media (max-width:640px){
  dialog.modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}
  .modal-in,.modal-vol .modal-in{padding:26px 22px 24px}
  .modal-vol .modal-x{top:14px;right:14px}
}

/* ===================== About ===================== */

/* Quote cards: modals.js moves .feature to the last-hovered card; ease the swap. */
.page-about .qcard,.page-about .qcard blockquote,.page-about .qcard .mark,.page-about .qcard .by{transition:background-color .25s ease,border-color .25s ease,color .25s ease,opacity .25s ease}

/* Outcomes: no dividers between the five columns and no hover growth. */
.page-about .oc{border:0;box-shadow:none;transition:none}
.page-about .oc:hover{transform:none;box-shadow:none}

/* ===================== Resources ===================== */

/* Abuse-report banner: a global `.sub{padding:0 56px}` (newsletter section in brand.css) was indenting
   "Answered 24 hours a day, 7 days a week." Left-align it and tighten the banner padding. */

.page-resources .crisis-in{padding:32px 40px;gap:36px}
@media (max-width:760px){
  .page-resources .crisis-in{padding:28px 24px;gap:22px;grid-template-columns:minmax(0,1fr)}
  .page-resources .crisis .num{font-size:clamp(30px,9vw,40px)}
}

/* Lantern card gets the Contact card treatment. */
.page-resources .lantern-card{border-radius:16px;transition:transform .2s,box-shadow .2s}
.page-resources .lantern-card:hover{transform:translateY(-4px);box-shadow:0 24px 48px -28px rgba(110,27,107,.45)}
@media (prefers-reduced-motion:reduce){.page-resources .lantern-card:hover{transform:none}}

/* Contact + Resources heroes: sentence under .big removed, so drop its trailing gap.
   Not :last-child: other heroes follow .big with a bare text node, which :last-child ignores. */
.page-contact .pagehead .lede .big,.page-resources .pagehead .lede .big,.page-events .pagehead .lede .big{margin-bottom:0}
.page-resources .res .kind{line-height:13px;align-items:center}
.page-resources .res .kind svg{display:block}
/* A11Y S-1/S-3 (John's audit): contrast + search focus ring */
.page-resources .cat[data-cat="school"] .res .go{color:var(--royal-bright)}
.page-resources .search:focus-within{outline:2px solid var(--royal-bright);outline-offset:2px}
@media (max-width:760px){.page-about .rc.span2 .k .unit{color:rgba(255,255,255,.75)}}
