/* FAQ: the legal pages' layout (title band, side menu, reading column), with search in the title band, each topic as a
   card of questions, and the page's one wine surface for help at the end. */
.faq-hero .faq-intro { max-width: 640px; margin: 0 auto; color: #715d58; font-size: 19px; line-height: 1.6; }
.faq-search { position: relative; max-width: 560px; margin: 30px auto 0; }
.faq-search svg { position: absolute; top: 17px; left: 18px; color: #8b5d54; pointer-events: none; }
.faq-search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border: 1px solid #d6cfc9; border-radius: 999px; background: #fff; color: #211412; font: 16px Jost, sans-serif; }
.faq-search input::placeholder { color: #8b5d54; }
.faq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.faq-search input:focus { outline: none; border-color: #47181c; box-shadow: 0 0 0 1px #47181c; }
/* The side menu sits below the site header while it follows the page. */
.faq-layout > nav { top: 104px; }
.faq-layout > nav a[hidden] { display: none; }
.faq-groups { min-width: 0; }
.faq-count { margin-bottom: 20px; color: #8b5d54; font-size: 14px; }
.faq-count:empty { display: none; }
.faq-group { scroll-margin-top: 104px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.faq-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f4f1ee; color: #47181c; }
.faq-group h2 { color: #47181c; font: 500 28px/1.1 'Welm Display', Georgia, serif; }
.faq-n { margin-left: auto; color: #8b5d54; font-size: 14px; white-space: nowrap; }
.faq-card { padding: 4px 28px; border: 1px solid #e7e2dd; border-radius: 24px; background: #fff; }
.faq-q:not([hidden]) ~ .faq-q:not([hidden]) { border-top: 1px solid #ece7e2; }
.faq-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; color: #47181c; font-size: 17px; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:hover .faq-chev { color: #47181c; }
.faq-q summary:focus-visible { outline: 2px solid #47181c; outline-offset: 4px; border-radius: 6px; }
.faq-chev { flex: none; color: #a08780; transition: transform .2s; }
.faq-q[open] .faq-chev { transform: rotate(180deg); color: #47181c; }
.faq-a { padding: 0 0 20px; color: #6e3438; font-size: 16px; line-height: 1.6; }
.faq-a a { color: #47181c; text-decoration: underline; text-underline-offset: 4px; }
.faq-a ol { display: grid; gap: 6px; margin: 0; padding-left: 22px; }
.faq-a p + a, .faq-a ol + a { display: inline-block; margin-top: 10px; font-weight: 500; }
.faq-none:empty { display: none; }
.faq-none { padding: 24px; border: 1px dashed #d6cfc9; border-radius: 18px; color: #6e3438; font-size: 16px; text-align: center; }
.faq-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 32px 36px; border-radius: 24px; background: #47181c; color: #fbf6f0; }
.faq-help h2 { font: 500 30px/1.1 'Welm Display', Georgia, serif; }
.faq-help p { margin-top: 6px; color: #ead8d0; font-size: 16px; }
.faq-help-reach { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.faq-help-reach a { color: #fbf6f0; text-decoration: underline; text-underline-offset: 4px; }
.faq-help .button { flex: none; min-height: 52px; padding: 0 30px; border-color: #fbf6f0; background: #fbf6f0; color: #47181c; }
.faq-help .button:hover { background: #fff; }

@media (max-width: 760px) {
  .faq-hero .faq-intro { font-size: 16.5px; }
  .faq-search { margin-top: 22px; }
  .faq-group-head { gap: 12px; }
  .faq-icon { width: 40px; height: 40px; }
  .faq-group h2 { font-size: 24px; }
  .faq-n { display: none; }
  .faq-card { padding: 2px 20px; border-radius: 20px; }
  .faq-q summary { font-size: 16px; }
  .faq-a { font-size: 15.5px; }
  .faq-help { flex-direction: column; align-items: stretch; padding: 26px 22px; }
  .faq-help .button { width: 100%; }
  .faq-help-reach { flex-direction: column; }
  .faq-help-reach span { display: none; }
}
/* Phones (where the legal menu turns into a row): the topics become pill buttons in one swipeable row, the current one
   filled wine. Contained so the page never widens. */
@media (max-width: 700px) {
  .faq-layout > nav { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); contain: paint; overflow-y: hidden; scrollbar-width: none; }
  .faq-layout > nav::-webkit-scrollbar { display: none; }
  .faq-layout > nav a { display: flex; align-items: center; min-height: 40px; max-width: none; padding: 0 16px; border: 1px solid #e7e2dd; border-radius: 999px; background: #fff; color: #47181c; font: 500 14.5px Jost, sans-serif; white-space: nowrap; }
  .faq-layout > nav a:hover { border-color: #47181c; background: #fff; }
  .faq-layout > nav a[aria-current], .faq-layout > nav a[aria-current]:hover { border-color: #47181c; background: #47181c; color: #fbf6f0; }
}
@media (prefers-reduced-motion: reduce) { .faq-chev { transition: none; } }
