/* sec-shared.css: the shared sections (faq two-panel, pale card with badge stamps, photo closing band). Owner P1.
   Every value reads tokens.css. Measured on the template (dna/DETAILS part B + C, inspected at 1440 and 390). */

/* ---- FAQ: the two-panel (an olive card, a dark question list, one answer panel); an accordion under 768 ------------- */
.faq { padding-block: var(--band-pad); }
.faq__head { text-align: center; margin-bottom: var(--gap-xxl); }
.faq__head .eyebrow { margin-bottom: 16px; }
.faq__head .lead { margin-inline: auto; }
.faqp { width: min(100%, 816px); margin-inline: auto; }
.faqp__panel { background: var(--anchor); color: var(--ground); border-radius: var(--r-md); padding: 28px 12px 16px; }
.faqp__label { margin: 0 0 24px; padding: 0 16px; font: 400 20px/19px var(--display); color: inherit; }
.faqp__list { display: block; }
.faqp__item { margin-bottom: 4px; }
.faqp__qh { margin: 0; font: inherit; }
.faqp__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: inherit; text-align: left; font: 500 14px/18.2px var(--body); cursor: pointer; transition: background-color .2s; }
.faqp__q:hover, .faqp__item.is-active .faqp__q { background: var(--card-10); }
.faqp__arrow { display: none; width: 18px; height: 18px; flex: none; transition: transform .25s; }
.faqp__q[aria-expanded="true"] .faqp__arrow { transform: rotate(180deg); }
.faqp__panel :focus-visible { outline-color: var(--ground); outline-offset: -3px; }
.faqp__a[hidden] { display: none; }
.faqp__echo { margin: 0; text-align: right; font: 500 14px/18.2px var(--body); color: var(--ink-70); }   /* sits on the olive answer ground (see .faqp__a background), not on the dark list */
.faqp__q { color: var(--ground); }   /* every question, active or not, is cream on the cobalt list */
.faqp__bubble { margin-top: 16px; padding: 12px 16px; background: var(--bubble); color: var(--ink); border-radius: 12px 12px 12px .25px; font: 500 14px/18.2px var(--body); }
.faqp__bubble p { margin: 0; }
.faqp__bubble p + p { margin-top: 12px; }
.faqp__logo { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 8px; border-radius: var(--r-pill); background: var(--anchor); color: var(--ground); }
.faqp__mark { width: 17px; height: auto; }
.faqp__a { transition: opacity .2s ease, transform .2s ease; }
.faqp__a.is-fading { opacity: 0; transform: translateY(-8px); }
@media (min-width: 768px) {
  .faqp { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: var(--faq-h, 452px); background: var(--card); border-radius: var(--r-xl); }
  .faqp__panel { margin: 16px 0 16px 16px; }
  .faqp__label--a { position: absolute; top: 44px; left: calc(50% + 28px); margin: 0; padding: 0; color: var(--ink); }
  .faqp__a { position: absolute; top: 87px; left: calc(50% + 28px); right: 16px; bottom: 16px; overflow: auto; background: var(--card); }   /* the answer sits on the olive card, not on the dark list it is nested in: the explicit fill lets the contrast gate read the true ground */
}
@media (max-width: 767px) {
  .faqp__panel { padding: 24px 12px 12px; }
  .faqp__label--a, .faqp__echo, .faqp__logo { display: none; }
  .faqp__item { margin-bottom: 0; }
  .faqp__arrow { display: block; }
  .faqp__a { overflow: hidden; padding: 0 16px; }
  .faqp__bubble { margin: 0 0 16px; padding: 0; background: none; color: var(--ground); font: 400 16px/20.8px var(--body); border-radius: 0; }
  .faqp__a.is-fading { transform: none; }
}

/* ---- the olive card (DETAILS device 8): 3 columns, heading left, words and link, badge stamps right ------------------ */
.pale { padding-block: var(--gap-xxl); }
.pale__card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); padding: 64px 48px; background: var(--card); border-radius: var(--r-xl); }
.pale__card--stamps { grid-template-columns: repeat(3, 1fr); }
.pale__head .eyebrow { margin-bottom: 16px; }
.pale__head .d3 { text-wrap: balance; }
.pale__body { padding-top: 16px; }
.pale__text { margin: 0; font: 600 16px/20.8px var(--body); color: var(--ink-70); }
.pale__link { margin-top: 24px; }
.pale__link .tlink { color: var(--ink); }
.pale__stamps { align-self: start; }
.stamps { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; justify-content: space-between; }
.stamps li { width: min(106px, 31%); aspect-ratio: 1; }   /* the template's stamps: 106 css px circles at 1440, 87 at 390 */
.stamp { width: 100%; height: 100%; display: block; }
.stamp__ring { fill: none; stroke: var(--anchor-deep); stroke-width: .95; }
.stamp__arc { fill: none; stroke: var(--anchor); stroke-width: .95; }
.stamp__ico { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .08; }
.stamp__t { font: 600 13.2px/1 var(--body); fill: var(--ink); letter-spacing: 0; }
@media (max-width: 991px) {
  .pale__card--stamps { grid-template-columns: 1fr 1fr; }
  .pale__stamps { grid-column: 1 / -1; }
  .stamps { justify-content: flex-start; gap: 24px; }
}
@media (max-width: 767px) {
  .pale { padding-block: var(--gap-xl); }
  .pale__card, .pale__card--stamps { grid-template-columns: 1fr; gap: var(--gap-l); padding: var(--gap-l); border-radius: var(--r-lg); }
  .pale__body { padding-top: 0; }
  .stamps { gap: 12px; justify-content: space-between; }
}

/* ---- the photo closing band (DETAILS device 16): the photo is the section, no overlay; radius 80 (40 under 768) --------- */
.cband { position: relative; display: flex; align-items: center; justify-content: center; overflow: clip; text-align: center; color: var(--ground); border-radius: var(--r-section); padding: 0; background: var(--anchor-deep); }
.cband__bg { position: absolute; inset: 0; }
.cband__bg picture, .cband__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* the template's closing photos are dark as supplied; ours (cta-band-3, warm golden grass) is bright: cream on it as supplied measures 2.2 to
   2.8:1, so the picture itself is darkened, no overlay layer, the least that gives the smallest cream text (the 18 px body line, the 16 px
   ghost button) 4.5:1 on the 95th-percentile pixel under it at 1440 and 390, on every page's band (the crop differs by band height):
   .70 gives 4.3 and .68 gives 4.5 at 390, .66 gives 4.8 (the value kept, a small margin for the sharper variants high-density screens load) */
.cband__bg img { filter: brightness(.66); }
.cband__in { position: relative; max-width: 1024px; padding-block: 104px; display: flex; flex-direction: column; align-items: center; }
.cband .eyebrow { color: var(--ground); margin: 0 0 24px; }
.cband .d-close { text-wrap: balance; }
.cband__body { margin: 32px auto 0; max-width: 640px; font: 500 18px/23.4px var(--body); text-wrap: balance; }
.cband__actions { justify-content: center; margin-top: 24px; gap: 8px 16px; }
.btn--on-photo { color: var(--ground); border-color: var(--ground); --sweep: var(--anchor); }   /* hover sweep on a photo: solid cobalt, so the cream label stays 11:1 whatever the picture does */
/* focus on the photo: a cream ring with an ink ring inside it, so one of the two always clears 3:1 whatever the picture does */
.cband :focus-visible { outline: 3px solid var(--ground); outline-offset: 4px; box-shadow: 0 0 0 3px var(--ink); }
@media (min-width: 768px) {
  .cband { border-radius: var(--r-corner); }
  .cband__body { margin-top: 64px; font-size: 20px; line-height: 26px; }
}
@media (min-width: 992px) { .cband { padding-top: 100px; padding-bottom: 32px; } .cband__in { padding-block: 168px; } }
@media (max-width: 479px) { .cband__actions { display: grid; width: 100%; } }
