/* Shared navigation and controls */
.site-header { position: relative; z-index: 10; padding-top: clamp(12px, 1.45vw, 20px); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 30px);
  min-height: 56px;
  padding: 5px 6px 5px 15px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--header);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; letter-spacing: -.034em; }
.brand b { font-family: var(--font-display); font-size: 1.24rem; line-height: 1; font-weight: 800; }
.brand-glyph { position: relative; display: inline-block; flex: 0 0 auto; width: 25px; height: 25px; }
.brand-glyph i { position: absolute; width: 9px; height: 9px; border: solid currentColor; }
.brand-glyph i:nth-child(1) { inset: 0 auto auto 0; border-width: 2px 0 0 2px; }
.brand-glyph i:nth-child(2) { inset: 0 0 auto auto; border-width: 2px 2px 0 0; }
.brand-glyph i:nth-child(3) { inset: auto auto 0 0; border-width: 0 0 2px 2px; }
.brand-glyph i:nth-child(4) { inset: auto 0 0 auto; border-width: 0 2px 2px 0; }
.desktop-nav, .header-actions { display: flex; align-items: center; }
.desktop-nav { gap: clamp(15px, 2vw, 30px); color: var(--muted); font-size: .87rem; font-weight: 660; }
.desktop-nav a { display: inline-flex; min-height: 44px; align-items: center; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.header-actions { gap: 5px; }
.header-cta, .pill-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 10px 17px;
  border: 1px solid var(--button);
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: .88rem;
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
}
.header-cta { min-height: 44px; padding-inline: 14px; font-size: .79rem; text-transform: none; white-space: nowrap; }
.header-cta:hover, .pill-button:hover { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-on); }
.pill-button.secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.pill-button.secondary:hover { background: var(--lavender); color: var(--ink); border-color: var(--accent); }
.button-icon { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.menu-button, .theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.menu-button { display: none; }
.menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; }
.menu-button span::before, .menu-button span::after { content: ""; position: absolute; left: 0; }
.menu-button span::before { top: -5px; }
.menu-button span::after { top: 5px; }
.menu-button[aria-expanded="true"] span { background: transparent; }
.menu-button[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.menu-button:hover, .theme-toggle:hover { border-color: var(--rule-strong); background: var(--quiet); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[aria-pressed="false"] [data-moon], .theme-toggle[aria-pressed="true"] [data-sun] { display: none; }
.mobile-nav { display: none; }
/* If JS is unavailable, keep navigation reachable even on a narrow display. */
@media (max-width: 850px) {
  .desktop-nav, .header-actions .header-cta { display: none; }
  .nav-ready .menu-button { display: inline-grid; }
  .mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 5px;
    margin: 8px var(--page-gutter) 0;
    padding: 5px;
    border: 1px solid var(--rule);
    border-radius: 15px;
    background: var(--header);
  }
  .nav-ready .mobile-nav { display: none; position: absolute; inset: 100% 0 auto; box-shadow: var(--shadow); }
  .nav-ready .mobile-nav[data-open="true"] { display: grid; }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 11px; border-radius: 9px; color: var(--body); font-size: .91rem; font-weight: 660; }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--lavender); color: var(--link); }
}

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link); font-size: .95rem; font-weight: 730; text-decoration: underline; text-underline-offset: .23em; text-decoration-color: var(--rule-strong); }
.text-link:hover { text-decoration-color: currentColor; }

/* Native disclosures shared by Home, Support and FAQ. */
.faq-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(25px, 7vw, 95px); align-items: start; }
.faq-heading h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.034em; text-wrap: balance; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { min-height: 62px; list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 0; font-size: 1rem; font-weight: 690; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span:first-child:not(:last-child) { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.faq-list summary i, .article-faq summary i {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 7px;
  background: var(--quiet);
  color: var(--link);
  font-size: 0;
}
.faq-list summary i::before, .article-faq summary i::before,
.faq-list summary i::after, .article-faq summary i::after {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 7px auto;
  height: 2px;
  background: currentColor;
}
.faq-list summary i::after, .article-faq summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i, .article-faq details[open] summary i { background: var(--lavender); }
.faq-list details[open] summary i::after, .article-faq details[open] summary i::after { display: none; }
.faq-list details[open] summary, .faq-list summary:hover, .article-faq details[open] summary, .article-faq summary:hover { color: var(--link); }
.faq-list details > p { max-width: 64ch; margin: 0 26px 19px 0; color: var(--body); font-size: .96rem; }
.faq-list summary:has(> span + b) + p { margin-inline-start: 27px; }
.faq-list details > p a { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }

.site-footer {
  border-top: 1px solid #604a70;
  background: #2c203a;
  color: #fcf4ff;
  padding: clamp(35px, 5vw, 67px) 0 16px;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.42fr) repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3.7vw, 44px); padding-bottom: clamp(17px, 3vw, 33px); }
.footer-brand .brand { min-height: 44px; }
.site-footer .brand-glyph { color: #d7b9ff; }
.footer-brand p { max-width: 28ch; color: #e2d4ec; font-size: .93rem; margin: 7px 0 0; }
.footer-top nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-top nav b { margin-bottom: 4px; color: #dbc4fb; font-size: .77rem; letter-spacing: .086em; text-transform: uppercase; }
.footer-top nav a { display: inline-flex; min-height: 32px; align-items: center; font-size: .93rem; line-height: 1.3; color: #f3e9f9; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .19em; }
.site-footer a:focus-visible { outline-color: #e2c7ff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; border-top: 1px solid #655271; padding-top: 7px; color: #e2d4ec; font-size: .81rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }

@media (max-width: 760px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 13px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-top nav a { min-height: 44px; }
}
@media (forced-colors: active) {
  .theme-toggle, .menu-button, .header-cta, .pill-button { border-color: ButtonText; }
  .faq-list summary i::before, .faq-list summary i::after,
  .article-faq summary i::before, .article-faq summary i::after { background: ButtonText; forced-color-adjust: none; }
}
