/* Common questions (/support/): solid black, true greys, white hairlines at 10 % (25 % under the mouse), 12 px corners, Geist;
   white is the only bright element. Text sizes: the headline, 28 and 22 for section titles, 17 for questions, 16 for answers
   and help text, 14 and 12 for small lines. Everything is scoped to .cq. */
html:has(main.cq), body:has(main.cq) { background: #000000; }
body:has(main.cq)::before, body:has(main.cq)::after { display: none !important; }   /* the old stripe overlay of style.css */
body:has(main.cq) { overflow-x: clip; }
body:has(main.cq) .home-footer { background: #000; border-top: 1px solid rgba(255,255,255,.1); }

.cq { --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --card: #0A0A0A; --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.25); --ink: #F5F5F5; --ink2: #A3A3A3; --ink3: #8A8A8A;
  display: block; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 96px;   /* width: the page's frame centres its content */ font-family: var(--sans); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
@media (min-width: 1000px) { .cq { padding-left: 40px; padding-right: 40px; } }
.cq *, .cq *::before, .cq *::after { box-sizing: border-box; }
.cq [hidden] { display: none !important; }
.cq section { padding: 0; }   /* style.css gives every <section> 100 px of padding (the old pages) */
.cq p { margin: 0; }
.cq a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.cq a:hover { text-decoration-color: #FFFFFF; }
.cq :focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 6px; }

/* ---- the headline and the search ---- */
.cq-hero { padding: 72px 0 0; text-align: center; }
.cq-hero h1 { margin: 0; font: 500 clamp(44px, 4.4vw, 60px)/1.04 var(--sans); letter-spacing: -.035em; color: #FFFFFF; }
.cq-search { position: relative; display: flex; align-items: center; gap: 12px; max-width: 640px; height: 56px; margin: 36px auto 0; padding: 0 16px 0 18px;
  border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); cursor: text; transition: box-shadow .15s ease; }
.cq-search:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.cq-search:focus-within { box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.cq-search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 16px var(--sans); }
.cq-search input::placeholder { color: var(--ink3); }
.cq .cq-search input:focus-visible { outline: 0; }   /* the box itself lights up instead (focus-within) */
.cq-search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.8); }
.cq-search kbd { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12px var(--mono); color: var(--ink3); }
.cq-search:focus-within kbd { visibility: hidden; }
.cq-count { margin-top: 12px !important; font: 400 14px/20px var(--sans); color: var(--ink3); }
.cq-count:empty { display: none; }
/* three ways onward, one quiet line under the search */
.cq-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 22px; }
.cq .cq-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink2); text-decoration: none; transition: color .15s ease; }
.cq .cq-links a svg { transition: transform .15s ease; }
.cq .cq-links a:hover { color: #FFFFFF; }
.cq .cq-links a:hover svg { transform: translateX(2px); }


/* ---- the topics: one line of boxes, one topic shows at a time ---- */
.cq-tabs { display: flex; justify-content: center; gap: 8px; max-width: 1120px; margin: 56px auto 0; overflow-x: auto; scrollbar-width: none; }
.cq-tabs::-webkit-scrollbar { display: none; }
.cq-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: none;
  box-shadow: inset 0 0 0 1px var(--line); font: 400 15px var(--sans); color: var(--ink2); white-space: nowrap; cursor: pointer; transition: box-shadow .15s ease, color .15s ease; }
.cq-tab:hover { color: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line2); }
.cq-tab i { font: 400 12px var(--mono); font-style: normal; color: var(--ink3); }
.cq-tab[aria-selected="true"] { background: #FFFFFF; color: #000000; box-shadow: none; }
.cq-tab[aria-selected="true"] i { color: #555555; }
.cq .cq-tab:focus-visible { outline-offset: 2px; border-radius: 8px; }
.cq-tabs.is-searching .cq-tab[aria-selected="true"] { background: none; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }   /* while searching, every topic counts */
.cq-tabs.is-searching .cq-tab[aria-selected="true"] i { color: var(--ink3); }
.cq.has-tabs .cq-body { margin-top: 32px; }
.cq.has-tabs .cq-group + .cq-group { margin-top: 0; }   /* one topic at a time: every topic starts at the same height (the gap was for topics one after another) */
.cq .cq-sr, .cq.has-tabs .cq-group > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the box says the topic; screen readers keep the heading */

/* ---- the questions ---- */
.cq-body { max-width: 900px; margin: 72px auto 0; scroll-margin-top: 90px; }

.cq-group { scroll-margin-top: 96px; }
.cq-group + .cq-group { margin-top: 64px; }
.cq-group h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; color: #FFFFFF; }
.cq-item { border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.cq-group .cq-item:last-of-type { border-bottom: 1px solid var(--line); }
.cq-results .cq-item:last-child { border-bottom: 1px solid var(--line); }   /* search results: one list, best match first */
.cq-item h3 { margin: 0; font: inherit; }
.cq-q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 20px 2px; border: 0; background: none;
  text-align: left; font: 500 17px/1.45 var(--sans); color: var(--ink); cursor: pointer; }
.cq-q:hover { color: #FFFFFF; }
.cq-plus { flex: none; color: var(--ink3); transition: transform .2s ease, color .2s ease; }
.cq-q:hover .cq-plus { color: #FFFFFF; }
.cq-item.open .cq-plus { transform: rotate(45deg); color: #FFFFFF; }
.cq .cq-q:focus-visible { outline-offset: -2px; }
.cq-a { max-width: 72ch; padding: 0 48px 24px 2px; font-size: 16px; line-height: 1.7; color: var(--ink2); }
.cq.is-js .cq-item:not(.open) .cq-a { display: none; }
.cq-a p, .cq-a ol, .cq-a ul { margin: 0 0 12px; }
.cq-a > :last-child { margin-bottom: 0; }
.cq-a ol, .cq-a ul { padding-left: 20px; }
.cq-a li { margin-bottom: 6px; }
.cq-a strong, .cq-a b { font-weight: 500; color: var(--ink); }
.cq-a code { padding: 2px 6px; border-radius: 6px; background: #141414; box-shadow: inset 0 0 0 1px var(--line); font: 400 14px var(--mono); color: var(--ink); }
.cq mark { padding: 0 2px; border-radius: 3px; background: rgba(255,255,255,.18); color: #FFFFFF; }
.cq-item.is-target > h3 .cq-q { color: #FFFFFF; }
.cq-none { padding: 24px 0; font-size: 16px; line-height: 1.6; color: var(--ink2); }

/* ---- didn't find it ---- */
.cq .cq-cta { max-width: 900px; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 96px; padding: 40px 48px; border-radius: 16px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cq-cta h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; color: #FFFFFF; }
.cq-cta p { margin-top: 10px !important; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--ink2); }
.cq .cq-btn { flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 10px; background: #FFFFFF; color: #000000;
  font: 500 15px var(--sans); text-decoration: none; transition: background .15s ease; }
.cq .cq-btn:hover { background: #E6E6E6; }
.cq-mail { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cq .cq-addr { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); }
.cq-copy { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none; box-shadow: inset 0 0 0 1px var(--line); font: 500 12px var(--sans); color: var(--ink2); cursor: pointer; transition: box-shadow .15s ease, color .15s ease; }
.cq-copy:hover { color: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line2); }
.cq-copy.is-done { color: #FFFFFF; }
.cq .cq-cta { scroll-margin-top: 90px; }

/* ---- below 960 px: smaller spacing ---- */
@media (max-width: 959px) {
  .cq-body { margin-top: 56px; }
  .cq .cq-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .cq-mail { align-items: flex-start; }
}
@media (max-width: 1100px) { .cq-tabs { justify-content: flex-start; margin-left: -24px; margin-right: -24px; padding: 0 24px; } }
@media (max-width: 640px) {
  .cq-tabs { margin: 40px -16px 0; padding: 0 16px; }
  .cq-tab { height: 38px; padding: 0 12px; font-size: 14px; }
  .cq { padding-left: 16px; padding-right: 16px; padding-bottom: 64px; }
  .cq-hero { padding-top: 48px; }
  .cq-search { height: 52px; margin-top: 28px; }
  .cq-search input { font-size: 16px; }   /* under 16 px an iPhone zooms the page in */
  .cq-search kbd { display: none; }
  .cq-q { padding: 18px 2px; font-size: 16px; }
  .cq-a { padding-right: 8px; }
  .cq-group + .cq-group { margin-top: 48px; }
  .cq .cq-cta { margin-top: 64px; }
  .cq-cta h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .cq * { transition: none !important; } }
