/* Bobby S. Lee, DDS: care group stylesheet (post-op). Owner: B7a (INTERIOR-PLAN 10.7).
   Holds the single-builder component ACC (v2-specs/components/ACC.md, from quincy-int/03 + quincy-mobile/04 +
   quincy-interactive/06). Tokens only. No script: exclusivity is <details name>, the height animation is
   ::details-content + interpolate-size, keyboard is native summary behaviour. */

/* ---- band, container, title ---- */
.acc { padding: 75px 0; interpolate-size: allow-keywords; }
.acc--half { padding: 37.5px 0; }
.acc__wrap {
  display: flex; flex-direction: column; align-items: center;
  max-width: 1192px; margin: 0 auto; padding: 0 20px;
}
.acc__title {
  width: fit-content; max-width: 100%; margin: 0 auto 32px; padding: 0 16px;
  text-align: center; text-wrap: balance;
  font: 600 36px/39.6px var(--font-display); color: var(--grey-logo);
}

/* ---- card and rows (the divider is each child's own 2px bottom border, inset 18px from the card edge) ---- */
.acc__card {
  display: flex; flex-direction: column; width: 100%; max-width: 992px; padding: 16px;
  background: var(--white); border: 2px solid var(--primary); border-radius: 20px;
}
.acc__row, .acc__lead { border: 2px solid var(--white); }
.acc__card > :not(:last-child) { border-bottom-color: var(--sky-strong); }

/* ---- trigger: the row's 8px padding and the inner 24px folded into one full-row summary ---- */
.acc__q {
  display: flex; align-items: center; justify-content: space-between; padding: 32px 16px;
  cursor: pointer; list-style: none; transition: padding-bottom .3s ease-in-out;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__row[open] > .acc__q { padding-bottom: 16px; }
.acc__qt { flex: 1 1 auto; min-width: 0; font: 600 24px/26.4px var(--font-display); color: var(--grey-logo); }

/* ---- cross: two 28 x 2 bars; the second turns from 90deg (plus) to 0deg (minus) ---- */
.acc__x { position: relative; flex: 0 0 28px; width: 28px; height: 28px; margin-left: 32px; }
.acc__x::before, .acc__x::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 28px; height: 2px;
  background: var(--primary); transform: translateY(-50%);
}
.acc__x::after { transform: translateY(-50%) rotate(90deg); transition: transform .2s ease-in-out; }
.acc__row[open] > .acc__q .acc__x::after { transform: translateY(-50%) rotate(0deg); }

/* ---- drawer (own rule blocks: a browser without the pseudo keeps an instant native toggle) ---- */
.acc__row::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .3s cubic-bezier(.39, .575, .28, .995), content-visibility .3s allow-discrete;
}
.acc__row[open]::details-content { block-size: auto; }

/* ---- answer and lead text ---- */
.acc__a, .acc__lead { font: 400 16px/23.47px var(--font-body); letter-spacing: .5px; color: var(--body-ink); }
.acc__a { padding: 0 16px 32px; opacity: 0; transition: opacity .2s; }
.acc__row[open] .acc__a { opacity: 1; transition-delay: .2s; }
/* the closed drawer's content has no prior style, so the open fade needs a start value; only for a row the
   visitor is acting on, so the rows that ship open never fade in on load */
@starting-style { .acc__row[open]:is(:hover, :focus-within) .acc__a { opacity: 0; } }
.acc__lead { padding: 32px 16px; }
.acc__a > *, .acc__lead > * { margin: 0; }
.acc__a > * + *, .acc__lead > * + * { margin-top: 16px; }
.acc__a ul, .acc__a ol, .acc__lead ul, .acc__lead ol { padding-left: 24px; }
.acc__a li + li, .acc__lead li + li { margin-top: 8px; }

/* ---- states ---- */
@media (hover: hover) { .acc__q:hover { background: rgb(from var(--primary) r g b / 0.024); } }
@media (prefers-reduced-motion: reduce) {
  .acc__q, .acc__a, .acc__x::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .acc__row::details-content { transition: none; } }

/* ---- phone ---- */
@media (max-width: 600px) {
  .acc { padding: 48px 0; }
  .acc--half { padding: 24px 0; }
  .acc__title { font-size: 28px; line-height: 30.8px; }   /* TITLES 2026-09-27: phone H2 tier 28 */
}
