/* /faq (faq.php). Loads before modern.css, so every rule that adjusts a shared component is scoped with the body class
   .faq-page; the faq-* blocks (other than the shared .faq accordion) are this page's own. Colors, radii, shadows and
   easing are the modern.css tokens only. */

.faq-page .faq-group { scroll-margin-top: 104px; }
/* An answer is the target of its question's link: leave room above it for the sticky header and the question itself. */
.faq-page .faq__a[id] { scroll-margin-top: 196px; }
.faq-page .faq__item:has(> .faq__a:target) { background: #fff; box-shadow: 0 0 0 2px var(--brand), var(--shadow); }

/* Today's status line: a small accent dot before open_status() */
.faq-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.faq-status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(1, 109, 150, 0.14); }

/* ---------- 1. Page header: popular questions as tilted glass cards on orbit rings ---------- */
.faq-page .faq-head .pagehead__note { margin-top: 22px; }
.faq-head__visual { position: relative; isolation: isolate; width: 100%; max-width: 520px; margin-inline: auto; padding: 36px 0 28px; }
.faq-head__orbit { position: absolute; z-index: -1; left: 50%; top: 50%; width: 112%; aspect-ratio: 1.15; translate: -50% -50%; pointer-events: none; }
.faq-head__orbit::before, .faq-head__orbit::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(14, 42, 58, 0.45); }
.faq-head__orbit::before { transform: rotate(-16deg); }
.faq-head__orbit::after { transform: rotate(18deg) scale(0.86); border-color: rgba(14, 42, 58, 0.22); border-style: dashed; }
.faq-head__orbit i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(1, 109, 150, 0.25); }
.faq-head__orbit i:nth-child(1) { left: 14%; top: 22%; }
.faq-head__orbit i:nth-child(2) { left: 88%; top: 74%; background: var(--mint); border-color: #fff; }
.faq-page .faq-head__seal { position: absolute; z-index: 2; right: -6px; top: -44px; }
.faq-head__seal.seal--sm { width: 96px; height: 96px; }
.faq-head__seal .seal__mark { width: 28px; height: 28px; }
.faq-pop__title { margin: 0 0 14px 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.faq-pop { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: pop; }
.faq-pop__card {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 14px 14px 14px;
  border-radius: var(--r-card); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-float);
  color: var(--ink); text-decoration: none;
  transition: transform 450ms var(--ease-apex), box-shadow 450ms var(--ease-apex), border-color 300ms ease;
}
.faq-pop__q { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--accent-font); font-style: italic; font-size: 1.5rem; line-height: 1; }
.faq-pop__text { display: grid; gap: 3px; min-width: 0; font-size: 0.9875rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.005em; }
.faq-pop__group { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.faq-pop__go { display: grid; place-items: center; width: 36px; height: 36px; flex: none; margin-left: auto; border-radius: 50%; background: var(--mint); color: var(--ink); transition: background-color 300ms ease, color 300ms ease; }
.faq-pop__go .icon { width: 18px; height: 18px; }
.faq-pop__card:hover { border-color: #fff; box-shadow: var(--shadow-lg); }
.faq-pop__card:hover .faq-pop__go { background: var(--ink); color: #fff; }
.faq-pop__item:nth-child(1) .faq-pop__card { transform: translateX(-6px) rotate(-1deg); }
.faq-pop__item:nth-child(2) .faq-pop__card { transform: translateX(8px) rotate(0.8deg); }
.faq-pop__item:nth-child(3) .faq-pop__card { transform: translateX(-4px) rotate(-0.6deg); }
.faq-pop__item:nth-child(4) .faq-pop__card { transform: translateX(6px) rotate(1deg); }
.faq-pop__item .faq-pop__card:hover, .faq-pop__item .faq-pop__card:focus-visible { transform: translateY(-3px) rotate(0deg); }
@media (min-width: 640px) {
  .faq-pop__card { padding: 16px 16px 16px 16px; }
  .faq-pop__text { font-size: 1.0625rem; }
  .faq-pop__item:nth-child(1) .faq-pop__card { transform: translateX(-22px) rotate(-1.2deg); }
  .faq-pop__item:nth-child(2) .faq-pop__card { transform: translateX(26px) rotate(1deg); }
  .faq-pop__item:nth-child(3) .faq-pop__card { transform: translateX(-10px) rotate(-0.8deg); }
  .faq-pop__item:nth-child(4) .faq-pop__card { transform: translateX(18px) rotate(1.2deg); }
}
@media (min-width: 1024px) {
  .faq-head__visual { padding: 40px 0 24px; }
  .faq-page .faq-head__seal { right: -36px; top: -46px; }
  /* Room for the two header buttons on one line (the shared split gives the text columns 1 to 6) */
  .faq-page .pagehead--split .pagehead__text { grid-column: 1 / span 7; }
  .faq-head__seal.seal--sm { width: 112px; height: 112px; }
}
@media (max-width: 639.98px) {
  .faq-page .faq-head__seal { right: 0; top: -24px; }
  .faq-head__seal.seal--sm { width: 80px; height: 80px; }
  .faq-head__seal .seal__mark { width: 24px; height: 24px; }
}

/* ---------- 2. The questions: topics and the ask card on the left, the groups on the right ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.faq-layout > * { min-width: 0; }
.faq-topics__title { margin: 0 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.faq-topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-topics a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--offwhite); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 650;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.faq-topics__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); transition: background-color 300ms ease, color 300ms ease; }
.faq-topics__icon .icon { width: 18px; height: 18px; }
.faq-topics__count { font-size: 0.8125rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq-topics a:hover { background: #fff; box-shadow: var(--shadow); }
.faq-topics a:hover .faq-topics__icon { background: var(--ink); color: #fff; }
/* The ask card is a desktop sidebar extra; phones get the same call and request in the header and the closing CTA band */
.faq-page .faq-ask { display: none; }
.faq-page .faq-ask .faq-ask__title { font-size: 1.375rem; line-height: 1.25; color: #fff; }
.faq-page .faq-ask p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.55; color: var(--on-ink-muted); }
.faq-page .faq-ask .faq-ask__phone { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; font-family: var(--display); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: #fff; text-decoration: none; white-space: nowrap; }
.faq-page .faq-ask .faq-ask__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.faq-page .faq-ask .faq-ask__status { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink); font-weight: 600; }
.faq-page .faq-ask .faq-ask__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-ink-accent); box-shadow: 0 0 0 4px rgba(127, 211, 247, 0.16); }
.faq-page .faq-ask .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: var(--on-ink-accent); }
.faq-page .faq-ask .link-arrow:hover { color: #fff; }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.faq-group__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(14, 42, 58, 0.6); }
.faq-group__icon .icon { width: 22px; height: 22px; }
.faq-page .faq-group__head h2 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; }
.faq-group__count { margin-left: auto; font-size: 0.875rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.faq-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.faq-page .faq-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--tint); color: var(--accent); font-size: 0.9375rem; font-weight: 650; text-decoration: none;
  transition: background-color 300ms ease, color 300ms ease;
}
.faq-page .faq-link .icon { width: 16px; height: 16px; }
.faq-page .faq-link:hover { background: var(--ink); color: #fff; }
.faq-hours { width: 100%; max-width: 440px; margin-top: 14px; }
.faq-page .faq-hours th, .faq-page .faq-hours td { height: 40px; }
.faq-page .faq-hours tr.is-today :is(th, td) { color: var(--ink); font-weight: 700; }
.faq-page .faq-hours .hours__today { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mint); font-size: 0.75rem; font-weight: 700; color: var(--ink); vertical-align: 1px; }
.faq-hours__status { margin-top: 12px !important; font-size: 0.9375rem; }

@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; }
  .faq-side { position: sticky; top: 104px; display: grid; gap: 20px; }
  .faq-topics { padding: 18px 12px 12px; border-radius: var(--r-card); background: var(--offwhite); box-shadow: var(--shadow-sm); }
  .faq-topics__title { margin-left: 10px; }
  .faq-topics ul { display: grid; gap: 2px; }
  .faq-topics a { display: flex; width: 100%; padding: 6px 14px 6px 6px; border-radius: 14px; background: transparent; box-shadow: none; }
  .faq-topics a:hover { background: #fff; box-shadow: var(--shadow-sm); }
  .faq-topics__count { margin-left: auto; }
  .faq-page .faq-ask { display: block; padding: 28px 26px; }
  .faq-group + .faq-group { margin-top: 72px; }
}

/* ---------- Motion (html.motion, no reduced-motion preference) ----------
   The popular-question cards bob gently out of step; the header's orbit sways. */
@media (prefers-reduced-motion: no-preference) {
  html.motion .faq-head__orbit::before { animation: pw-sway 16s ease-in-out infinite alternate; }
  html.motion .faq-head__orbit::after { animation: pw-sway 19s ease-in-out -7s infinite alternate-reverse; }
  html.motion .faq-head__orbit { animation: pw-scale-in 680ms var(--ease-apex) 180ms backwards; }
  html.motion .faq-pop__item:nth-child(odd) { animation: pw-rise 800ms var(--ease-apex) var(--ld, 400ms) backwards, pw-float 8s ease-in-out 2s infinite; }
  html.motion .faq-pop__item:nth-child(even) { animation: pw-rise 800ms var(--ease-apex) var(--ld, 400ms) backwards, pw-float 9s ease-in-out -3s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-pop__card, .faq-pop__go, .faq-topics a, .faq-topics__icon, .faq-link { transition: none; }
  .faq-pop__item .faq-pop__card:hover { transform: none; }
}
