/* Questions · ATHAR — page layout. Logical properties only.
   Simple page (Oct 2026): a compact hero, the questions in one list (the shared .faq accordion) beside
   the tag photo and the shared "Have a card? Enter its ID" form, then one next step. */

/* ---------- compact hero: no media column, so the dateline and copy share one column ---------- */
.faq-hero { padding-block-end: clamp(1.5rem, 3vw, 2.5rem); }
.faq-hero .shell > :not(.dateline) { max-width: 900px; }
.faq-hero .dateline { margin-inline-start: 0; }
.faq-hero .label { margin-block-end: 1.1rem; }
.faq-hero .lead { max-width: 46ch; }

/* ---------- the questions, with the tag and the ID form beside them ---------- */
.faq-body { padding-block-start: clamp(2rem, 4vw, 3.5rem); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-list { border-top-width: 2px; border-top-color: var(--athar-brown); }
.faq-list summary { padding-block: 1.35rem; line-height: 1.35; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); }
html[lang="ar"] .faq-list summary { font-family: var(--font-arabic-display); font-weight: 700; line-height: 1.6; }
.faq-list summary .q { flex: 1; }
.faq-list summary:hover { color: var(--athar-brown); }
.faq-list summary:focus-visible { outline-offset: 0; }
.faq-list details { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.faq-list .answer { display: grid; gap: .9rem; line-height: 1.7; font-size: 1.0625rem; }
.faq-list .answer a:not(.link) { color: var(--athar-green); font-weight: 700; }
.faq-list .more { --cluster: 1.5rem; }
.faq-list .more .link { min-height: 44px; }
.faq-list details.is-target { animation: faq-flash 1.6s var(--ease) 1; }
@keyframes faq-flash { 0% { background: var(--athar-sage); } 100% { background: transparent; } }

/* the aside stays in view while the answers open and close */
.faq-aside { position: sticky; inset-block-start: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.faq-photo { aspect-ratio: 4 / 5; }
.faq-photo > img { object-position: 50% 40%; }
.faq-find { max-width: none; }

/* ---------- the next step ---------- */
.faq-next { margin-block-start: clamp(3rem, 6vw, 4.5rem); }

@media (max-width: 1080px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-list { max-width: 900px; }
  /* below the list: the photo beside the ID form */
  .faq-aside { position: static; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 4vw, 2.5rem); max-width: 900px; }
  .faq-photo { aspect-ratio: 1; }
}
@media (max-width: 620px) {
  .faq-list summary { font-size: 1.0625rem; }
  .faq-aside { grid-template-columns: 1fr; }
  .faq-photo { aspect-ratio: 16 / 10; }
  .faq-photo > img { object-position: 50% 45%; }
}
