/* What every page of the site shares: the questions' accordion and the system status in the footer. The rest of the
   look is in the home page's own <style> and, for the other pages, in site.css. */

/* ---------- questions: the heading and the contact link on the left, an accordion on the right (its own class: the kit's
   script holds every .faq answer open) */
.qa-side { display: grid; align-content: start; justify-items: start; gap: var(--s-4); }
.qa-side > p { margin: 0; }
@media (min-width: 1024px) { .qa-side { position: sticky; top: calc(var(--nav) + 32px); align-self: start; } }
/* stacked (a tablet, a phone): the gap between a heading and its content */
@media (max-width: 1023px) { .qa-side { margin-bottom: calc(var(--head-gap, 36px) - var(--card-gap)); } }
.qa { display: grid; align-content: start; }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__item:first-child { border-top: 1px solid var(--line); }
.qa__item > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 60px; padding-block: 18px; cursor: pointer; list-style: none; transition: color var(--dur) var(--ease); }
.qa__item > summary::-webkit-details-marker { display: none; }
.qa__item > summary > h3 { margin: 0; font: 600 var(--t-lead)/1.35 var(--font-text); letter-spacing: -0.014em; text-wrap: balance; }
.qa__item > summary:hover { color: var(--accent); }
.qa__item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* the mark: a plus that turns into a minus as the answer opens */
.qa__item > summary::after { content: ""; flex: none; width: 14px; height: 14px; opacity: .7;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat; transition: background-size 220ms var(--ease); }
.qa__item[open] > summary::after { background-size: 14px 1.6px, 1.6px 0; }
.qa__item > :not(summary) { margin: 0; padding: 0 var(--s-7) 24px 0; max-width: 66ch; color: var(--muted); line-height: 1.6; }
.qa__item > :not(summary) a { color: var(--accent); }
.qa__item.is-found > summary { color: var(--accent); }
/* the answer opens out (where the browser can; elsewhere it is simply there) */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .qa { interpolate-size: allow-keywords; }
    .qa__item::details-content { height: 0; overflow: clip; transition: height 260ms var(--ease), content-visibility 260ms allow-discrete; }
    .qa__item[open]::details-content { height: auto; }
  }
}
@media (max-width: 639px) { .qa__item > :not(summary) { padding-right: 0; padding-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .qa__item > summary, .qa__item > summary::after { transition: none; } }
@media print { .qa__item::details-content { height: auto; content-visibility: visible; } .qa__item > summary::after { display: none; } }

/* ---------- the system status (common.js fills it in from /api/status): a dot and a line. Until there is an answer it
   says only "System status", so the page never claims more than it has checked */
.sys { display: flex; align-items: center; gap: 9px; width: max-content; max-width: 100%; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ground-bg); color: var(--ink);
  font-size: 13px; font-weight: 500; text-decoration: none; transition: background-color var(--dur) var(--ease); }
.sys__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
[data-status][data-state="ok"] .sys__dot { background: #1fbf75; box-shadow: 0 0 0 3px color-mix(in srgb, #1fbf75 24%, transparent); }
[data-status][data-state="degraded"] .sys__dot { background: #f5a524; box-shadow: 0 0 0 3px color-mix(in srgb, #f5a524 24%, transparent); }
a.sys:hover { background: color-mix(in srgb, var(--ink) 12%, var(--ground-bg)); }
.sys:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 639px) { a.sys { min-height: 44px; padding-inline: 16px; } }

/* a small tablet's menu has room for four links in Spanish: Developers is in the footer too */
@media (min-width: 1024px) and (max-width: 1139.98px) { .nav__links > .nav__item:has(> [href$="developers.html"]) { display: none; } }
