/* /help: the FAQ. Loaded after home.css, so the tokens, the top bar, buttons and the footer are the homepage's.
   Phones: one column (title, search, topic chips, the answers). Computers (1000px+): the search and topics stick in a
   left rail beside the answers. Answers are grouped rows on a panel card (iOS inset-grouped), no cards inside cards. */

.page main.faq{padding:96px var(--edge) 0}
.faq a:not(.btn){color:var(--ink);text-decoration:underline;text-decoration-color:rgba(240,242,244,.35);text-underline-offset:.2em;transition:text-decoration-color var(--t-hover) ease}
@media (hover:hover) and (pointer:fine){.faq a:not(.btn):hover{text-decoration-color:currentColor}}

/* ---- intro ---- */
.faq-intro h1{margin:0;font-family:var(--serif);font-variation-settings:"SOFT" 100;font-weight:var(--fw-display);font-size:clamp(2.25rem,1.7rem + 2.2vw,3.5rem);line-height:var(--lh-display);letter-spacing:var(--tr-display);text-wrap:balance}
.faq-intro .lede{margin:var(--s-4) 0 0;color:var(--soft);font-size:var(--fs-lead);line-height:var(--lh-lead);max-width:42ch}
.faq-intro .updated{margin:var(--s-3) 0 0;color:var(--sub);font-size:var(--fs-caption);line-height:var(--lh-caption)}

/* ---- search and topics ---- */
.faq-side{margin-top:var(--s-6);display:flex;flex-direction:column;gap:var(--s-4)}
.faq-search{position:relative}
.faq-search label{display:block;margin-bottom:var(--s-2);font-size:var(--fs-small);color:var(--sub)}
.faq-search input{width:100%;min-height:52px;padding:0 var(--s-4) 0 46px;border:0;border-radius:var(--r-field);background:var(--panel);color:var(--ink);font:400 var(--fs-body)/1.2 var(--sans);-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23A3A5AD' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='M13 13l5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:16px 50%;
  box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow var(--t-hover) ease}
.faq-search input::placeholder{color:var(--sub)}
.faq-search input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--focus)}
.faq-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.faq-nav{display:flex;gap:var(--s-2)}
/* phones and tablets: one row of topics that swipes sideways, out to the screen edges (the page itself never scrolls sideways) */
@media (max-width:999px){
  .faq-nav{margin:0 calc(-1 * var(--edge));padding:0 var(--edge);overflow-x:auto;scroll-padding:0 var(--edge);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .faq-nav::-webkit-scrollbar{display:none}
  .faq .faq-nav a{flex:none;white-space:nowrap}
}
.faq .faq-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--s-4);border-radius:var(--r-pill);background:transparent;box-shadow:inset 0 0 0 1px rgba(240,242,244,.22);color:var(--soft);font-size:var(--fs-small);text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background-color var(--t-hover) ease,color var(--t-hover) ease,transform var(--t-press) var(--ease-out)}
.faq .faq-nav a[hidden]{display:none}
.faq .faq-nav a:active{transform:scale(.97);background:rgba(240,242,244,.08)}
@media (hover:hover) and (pointer:fine){.faq .faq-nav a:hover{background:rgba(240,242,244,.08);color:var(--ink)}}

/* ---- the answers ---- */
.faq-main{margin-top:var(--s-7);display:flex;flex-direction:column;gap:var(--s-7)}
html{scroll-padding-top:84px} /* anchors, the hash and Tab never land under the fixed bar */
.faq-sec h2,.faq-contact h2{margin:0 0 var(--s-4);font-family:var(--serif);font-variation-settings:"SOFT" 100;font-weight:var(--fw-display);font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:var(--tr-h3)}
.faq-list{background:var(--panel);border-radius:var(--r-card);overflow:hidden}
.faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:var(--s-4);min-height:60px;padding:var(--s-4) 20px;list-style:none;cursor:pointer;font-weight:var(--fw-strong);line-height:1.35;-webkit-tap-highlight-color:transparent;
  /* the hairline between rows, inset to the text like iOS */
  background:linear-gradient(var(--line),var(--line)) 20px 0/calc(100% - 20px) 1px no-repeat;transition:background-color var(--t-hover) ease}
.faq-list details:nth-child(1 of :not([hidden])) summary{background-image:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"";flex:none;width:20px;height:20px;background:var(--sub);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform var(--t-ui) var(--ease-out)}
.faq-list details[open]:not(.closing) summary::after{transform:rotate(180deg)}
.faq-list summary:active{background-color:var(--raise)}
@media (hover:hover) and (pointer:fine){.faq-list summary:hover{background-color:var(--raise)}}
.faq-list summary:focus-visible{outline-offset:-3px}

/* flow-root keeps the last paragraph's margin inside, so the measured height is the whole answer (help.js animates it) */
.a{display:flow-root;padding:0 20px;color:var(--sub-hi)}
.a>:first-child{margin-top:0}
.a>:last-child{margin-bottom:20px}
.a p,.a ul,.a ol{margin:0 0 var(--s-3);max-width:var(--measure-body)}
.a ul,.a ol{padding-left:1.25em}
.a li+li{margin-top:var(--s-1)}
.a strong{color:var(--ink);font-weight:var(--fw-strong)}

.faq-note{margin:calc(-1 * var(--s-2)) 0 var(--s-4);color:var(--sub);font-size:var(--fs-small);line-height:var(--lh-small)}
.faq-empty{margin:0;color:var(--soft);font-size:var(--fs-lead);line-height:var(--lh-lead);max-width:42ch}
.faq-empty:empty{display:none}

/* ---- the end: still stuck ---- */
.faq-contact{padding:var(--s-6) 20px;border-radius:var(--r-card);background:var(--panel)}
.faq-contact p{margin:0 0 var(--s-5);color:var(--sub-hi);max-width:var(--measure-body)}
.faq-contact .btn{width:100%}
.page .foot{margin-top:var(--s-7)}
@media (min-width:560px){.faq-contact .btn{width:auto}}

.bar .top-add{text-decoration:none}

/* ---- computers: a sticky rail of search and topics beside the answers ---- */
@media (min-width:1000px){
  .page main.faq{padding-top:128px}
  .faq-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:var(--s-8);align-items:start;margin-top:var(--s-7)}
  .faq-side{position:sticky;top:96px;margin-top:0}
  .faq-nav{flex-direction:column;flex-wrap:nowrap;gap:2px}
  .faq .faq-nav a{box-shadow:none;color:var(--sub);padding:0;border-radius:0}
  .faq .faq-nav a[aria-current="true"]{color:var(--ink)}
  @media (hover:hover) and (pointer:fine){.faq .faq-nav a:hover{background:transparent}}
  .faq-main{margin-top:0}
  .faq-list summary{padding:var(--s-4) var(--s-5);background-position:var(--s-5) 0;background-size:calc(100% - var(--s-5)) 1px}
  .a{padding:0 var(--s-5)}
  .faq-contact{padding:var(--s-6) var(--s-5)}
}

@media (prefers-reduced-motion:reduce){.faq-list summary::after,.faq .faq-nav a{transition:none}.faq .faq-nav a:active{transform:none}}
