/* /vanliga-fragor/: frågegrupper med synliga svar. Bygger på styles.css. */

.faq-jump {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
}

.faq-jump a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  border: 1px solid color-mix(in oklch, var(--ink) 28%, transparent);
  border-radius: 12px;
}

.faq-jump a:hover {
  border-color: var(--ink);
}

.faq-group {
  display: grid;
  grid-template-columns: minmax(200px, 0.36fr) minmax(0, 1.64fr);
  gap: clamp(28px, 7vw, 110px);
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  color: var(--ink);
  background: var(--paper);
  scroll-margin-top: 80px;
  --focus-ring: var(--ink);
  --focus-halo: var(--paper);
}

.faq-group:nth-of-type(even) {
  background: var(--paper-deep);
  --focus-halo: var(--paper-deep);
}

.faq-group-head h2 {
  position: sticky;
  top: 110px;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1;
}

.faq-group-list {
  border-top: 1px solid color-mix(in oklch, var(--ink) 30%, transparent);
}

.faq-item {
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  scroll-margin-top: 90px;
}

.faq-item h3 {
  max-width: 34ch;
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-weight: 640;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.faq-item p {
  max-width: 68ch;
  margin: 0 0 12px;
  color: var(--muted-paper);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item a,
.faq-cta-link {
  color: var(--copper-text);
  font-weight: 650;
  text-underline-offset: 4px;
}

.page-cta .faq-cta-link {
  color: inherit;
}

.faq-systems {
  max-width: 68ch;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.faq-systems li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  color: var(--muted-paper);
  line-height: 1.55;
}

.faq-systems b {
  color: var(--ink);
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.faq-icon-blank {
  display: block;
  border: 1px solid color-mix(in oklch, var(--ink) 22%, transparent);
}

.faq-icon-dark {
  display: none;
}

html[data-theme="dark"] .faq-icon-light {
  display: none;
}

html[data-theme="dark"] .faq-icon-dark {
  display: block;
}

html[data-theme="dark"] .faq-jump,
html[data-theme="dark"] .faq-group {
  color: var(--paper);
  background: var(--ink-deep);
  --focus-ring: var(--paper);
  --focus-halo: var(--ink-deep);
}

html[data-theme="dark"] .faq-group:nth-of-type(even) {
  background: var(--ink);
  --focus-halo: var(--ink);
}

html[data-theme="dark"] .faq-jump a {
  color: var(--paper);
  border-color: oklch(100% 0 0 / 28%);
}

html[data-theme="dark"] .faq-group-list,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .faq-jump,
html[data-theme="dark"] .faq-icon-blank {
  border-color: oklch(100% 0 0 / 17%);
}

html[data-theme="dark"] .faq-item p,
html[data-theme="dark"] .faq-systems li {
  color: var(--muted-dark);
}

html[data-theme="dark"] .faq-systems b {
  color: var(--paper);
}

@media (max-width: 860px) {
  .faq-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-group-head h2 {
    position: static;
  }
}
