/* v715: Ðapp fixes (Guruji's list).
   1. About and FAQ are one page: the About story, then the questions as
      tap-to-open rows (details/summary: Tab to a question, Enter or Space opens
      it). #faq lands on the questions.
   2. Nothing rests under the floating tab bar: the page ends with room for the
      pill plus the home-indicator inset, and a card brought into view stops
      clear of the sticky header and the pill.
   3. The motto line under the footer reads in Hindi or Punjabi in those
      languages, in a face made for the script. */

.about-faq {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline-strong, rgba(236, 184, 62, 0.34));
  scroll-margin-top: calc(var(--sit-header, 64px) + env(safe-area-inset-top, 0px) + 1rem);
}
.about-faq:focus { outline: none; }
.about-faq:focus-visible { outline: 2px solid #fff1c2; outline-offset: 4px; }
.house-page .about-faq-title { margin-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--hairline, rgba(236, 184, 62, 0.16));
}
.faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.65rem 0.15rem;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--cream, #f4efe6);
  -webkit-tap-highlight-color: transparent;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--body);
  font-size: 1.35rem;
  line-height: 1;
  color: #f6d37a;
  transition: transform 0.2s ease;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item > summary:hover { color: #ffe7a8; }
.faq-item > summary:focus-visible {
  outline: 2px solid #fff1c2;
  outline-offset: 2px;
  border-radius: 6px;
}
.faq-item > p { margin: 0 0 0.95rem; }
html:is([lang="hi"], [data-lang="hi"]) .faq-item > summary { font-family: "Noto Sans Devanagari", var(--body); font-size: 1.1rem; line-height: 1.5; }
html:is([lang="pa"], [data-lang="pa"]) .faq-item > summary { font-family: "Noto Sans Gurmukhi", var(--body); font-size: 1.15rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
  .faq-item > summary::after { transition: none; }
}

/* Floating tab bar: about 56px tall, max(0.4rem, inset) above the bottom. */
body.page-sit .app {
  padding-bottom: max(calc(var(--chrome, 0.55rem) + 5.4rem), calc(env(safe-area-inset-bottom, 0px) + 56px + 0.4rem + 1.5rem));
}
body.page-sit :is(.mc-card, .sit-quiet-links, .house-page h2, .about-faq) {
  scroll-margin-top: calc(var(--sit-header, 64px) + env(safe-area-inset-top, 0px) + 0.75rem);
  scroll-margin-bottom: calc(max(0.4rem, env(safe-area-inset-bottom, 0px)) + 56px + 1rem);
}

.colophon:lang(hi) { font-family: "Noto Sans Devanagari", var(--body); font-style: normal; }
.colophon:lang(pa) { font-family: "Noto Sans Gurmukhi", var(--body); font-style: normal; }
