/* faqSection/faq-nav: FAQ categories with a sticky contents column. Built 2026-10-15, not a Webflow port. Linked only
   on pages that use the design (FAQ_NAV in components/PageView.astro). Colours from the Slate style guide:
   O1 #F66719, D1 #16161E, D2 #343446, L1 #F6F4F1. Light by day, dark by night (body class), like the rest of the site. */
.fqn {
  --fqn-bg: #ffffff;
  --fqn-text: #16161e;
  --fqn-muted: #5f5f6b;
  --fqn-line: #e3dfd8;
  --fqn-accent: #f66719;
  --fqn-nav-bg: #f6f4f1;
  background: var(--fqn-bg);
  color: var(--fqn-text);
  padding: 5rem 0 7rem;
}
body.dark-mode .fqn {
  --fqn-bg: #16161e;
  --fqn-text: #f6f4f1;
  --fqn-muted: #a9a7b4;
  --fqn-line: #343446;
  --fqn-nav-bg: #1f1f2a;
}
.fqn *, .fqn *::before, .fqn *::after { box-sizing: border-box; }
.fqn-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

/* contents column */
.fqn-nav {
  position: sticky;
  top: 8.5rem; /* below the floating site navigation */
  background: var(--fqn-nav-bg);
  border-radius: 1rem;
  padding: 1.5rem;
}
.fqn-nav-title {
  margin: 0 0 1rem;
  font-family: var(--_font---font-secondary), monospace;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fqn-muted);
}
.fqn-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.fqn-nav-link {
  display: block;
  padding: .5rem .75rem;
  border-left: 2px solid transparent;
  border-radius: 0 .5rem .5rem 0;
  color: var(--fqn-muted);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.fqn-nav-link:hover { color: var(--fqn-text); }
.fqn-nav-link.is-current {
  color: var(--fqn-text);
  border-left-color: var(--fqn-accent);
  background: color-mix(in srgb, var(--fqn-accent) 8%, transparent);
}

/* categories and questions */
.fqn-group { scroll-margin-top: 8.5rem; }
.fqn-group + .fqn-group { margin-top: 4.5rem; }
.fqn-h2 {
  margin: 0 0 1.5rem;
  font-family: 'Forma DJR Text', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.fqn-list { border-top: 1px solid var(--fqn-line); }
.fqn-item { border-bottom: 1px solid var(--fqn-line); }
.fqn-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.fqn-q::-webkit-details-marker { display: none; }
.fqn-q:focus-visible { outline: 2px solid var(--fqn-accent); outline-offset: 4px; border-radius: .25rem; }
.fqn-h3 {
  margin: 0;
  font-family: 'Forma DJR Text', Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
}
.fqn-icon { position: relative; flex: none; width: 1rem; height: 1rem; }
.fqn-icon::before, .fqn-icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease;
}
.fqn-icon::after { transform: rotate(90deg); }
.fqn-item[open] .fqn-icon::after { transform: rotate(0deg); }
.fqn-item[open] .fqn-h3 { color: var(--fqn-accent); }
.fqn-a {
  margin: 0;
  padding: 0 2.5rem 1.5rem 0;
  color: var(--fqn-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* tablets and phones: the contents become a list above the questions */
@media (max-width: 991px) {
  .fqn-wrap { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.5rem; }
  .fqn-nav { position: static; }
  .fqn-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fqn-h2 { font-size: 2rem; }
}
@media (max-width: 479px) {
  .fqn { padding: 3.5rem 0 5rem; }
  .fqn-wrap { padding: 0 1.25rem; }
  .fqn-nav-list { grid-template-columns: 1fr; }
  .fqn-h3 { font-size: 1.1875rem; }
  .fqn-a { padding-right: 0; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fqn-nav-link, .fqn-icon::before, .fqn-icon::after { transition: none; }
}
