/* /faq (owner, 15 Nov: "A · Accordion"): the questions by topic, each a row that opens to its answer. A bar of topics
   stays under the header, the topic in view marked by site.js. Real <details>, so it all works without scripts. */
.faq-topics { position: sticky; top: 65px; z-index: 20; margin-top: 28px; background: var(--bg); border-bottom: 1px solid var(--card-line); }
.doc .faq-topics .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
/* relative: the chip holds its hidden " questions" (.sr), which otherwise hangs off the sideways-scrolling row on a
   phone and widens the page. */
.faq-topics a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--card-line); border-radius: 22px; background: var(--card); color: var(--ink); text-decoration: none; font: 500 0.9375rem/1 var(--sans); white-space: nowrap; }
.faq-topics a:hover { border-color: var(--ink); color: var(--ink); }
.faq-topics .count { color: var(--quiet); font-weight: 400; }
.faq-topics a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.faq-topics a[aria-current="true"] .count { color: inherit; opacity: .72; }

/* The header and the bar of topics stand over a topic or a question jumped to. */
.faq-topic, .faq-list details { scroll-margin-top: 150px; }
.faq-topic { padding-top: 40px; }
.doc .faq-topic h2 { margin: 0 0 14px; padding: 0; font-size: 1.75rem; }
.faq-list { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; overflow: hidden; }
.faq-list details + details { border-top: 1px solid var(--card-line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 18px 24px; list-style: none; cursor: pointer; font: 500 1.25rem/1.3 var(--serif); color: var(--ink); text-wrap: pretty; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--wash); }
.faq-list summary:focus-visible { outline-offset: -4px; border-radius: 4px; }
/* A plus to open, a minus to close: two strokes drawn in the ink, so they follow light and dark. */
.faq-list summary::after { content: ""; flex: none; width: 30px; height: 30px; border: 1px solid var(--card-line); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; }
.faq-list details[open] > summary::after { background-size: 12px 1.5px, 0 0; }
.faq-a { max-width: 660px; padding: 0 24px 22px; color: var(--muted); }
.doc .faq-a p:first-child { margin-top: 0; }
/* No lone last word ("answer." or "bin." on a line of its own) where the browser can avoid it. */
.faq .lede, .faq-a { text-wrap: pretty; }

/* /help uses the same rows (owner, 15 Nov: "Yes, do Help"): each of its topics is one row, opening to the whole
   topic with its lists, steps and shortcuts. No bar of topics: the rows are the contents. */
.help-topics { margin-top: 28px; }
.doc .faq-a > :first-child { margin-top: 0; }
.doc .help-body h3 { margin-top: 26px; font-size: 1.1rem; color: var(--ink); }
.help .faq-list details, .help-body [id] { scroll-margin-top: 84px; }
.help-body strong { color: var(--ink); }

/* Rows inside a row: a Help topic's entries, each opening to where it is and what it does (owner, 15 Nov). Also the
   free tools' explanations and the privacy policy's details, as plain rows (.faq-list) on their own. */
.help-items { margin: 4px 0 16px; border-top: 1px solid var(--card-line); }
.help-items > details { border-bottom: 1px solid var(--card-line); }
.help-items summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 12px 0; list-style: none; cursor: pointer; font: 600 1rem/1.35 var(--sans); color: var(--ink); text-wrap: pretty; }
.help-items summary::-webkit-details-marker { display: none; }
.help-items summary::after { content: ""; flex: none; width: 24px; height: 24px; border: 1px solid var(--card-line); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 10px 1.4px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.4px 10px no-repeat; }
.help-items details[open] > summary::after { background-size: 10px 1.4px, 0 0; }
.help-items summary:focus-visible { outline-offset: 2px; border-radius: 4px; }
.doc .help-items .help-item-body > :first-child { margin-top: 0; }
.help-items .help-item-body { padding: 0 0 14px; }
.doc .faq-list + p, .doc p + .faq-list { margin-top: 14px; }

@media (max-width: 900px) { .faq-topics { top: 61px; } }
/* On a phone the topics stay on one line and scroll sideways. */
@media (max-width: 620px) {
  .doc .faq-topics .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .faq-topics .wrap::-webkit-scrollbar { display: none; }
  .faq-list summary { gap: 16px; padding: 16px 18px; font-size: 1.125rem; }
  .faq-a { padding: 0 18px 18px; }
}
