/* Felles for guidene: innholdsliste til venstre, tekst til høyre */
.g-head { padding-block: clamp(40px, 7vh, 80px) clamp(32px, 5vw, 56px); max-width: 880px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.g-head h1 { font-size: clamp(36px, 4.8vw, 60px); max-width: 20ch; text-wrap: balance; }
.g-head .lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 56ch; margin-top: 20px; }
.g-meta { margin-top: 20px; font-size: 14.5px; color: var(--muted); }

.g-doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px clamp(40px, 6vw, 88px); padding-bottom: clamp(80px, 10vw, 128px); }
@media (max-width: 900px) { .g-doc { grid-template-columns: minmax(0, 1fr); } }
.g-doc > * { min-width: 0; }
.toc { align-self: start; position: sticky; top: 110px; }
@media (max-width: 900px) { .toc { display: none; } }
.toc b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }

.g-body { max-width: 68ch; }
.g-body h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 56px 0 14px; scroll-margin-top: 100px; }
.g-body h3 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -0.015em; }
.g-body p, .g-body li { font-size: 18px; }
.g-body p + p { margin-top: 1em; }
.g-body ul, .g-body ol { margin: .8em 0 0; padding-left: 1.25em; }
.g-body li + li { margin-top: .45em; }
.g-body ul li::marker { color: var(--accent); }
.g-body ol li::marker { color: var(--accent-deep); font-weight: 600; }
.g-body ul + p, .g-body ol + p, .g-body .table-wrap + p { margin-top: 1em; }
.g-body a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.g-body strong { font-weight: 600; }

/* Kort svar øverst */
.short { background: var(--soft); border-radius: 6px; padding: clamp(22px, 3vw, 32px); }
.short b { display: block; font-size: 15px; font-weight: 600; color: var(--accent-deep); margin-bottom: 8px; }
.short p { font-size: 18.5px; }

/* Tabeller: stables på mobil */
.table-wrap { margin-top: 20px; }
.g-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.g-body th, .g-body td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.g-body thead th { font-size: 14px; font-weight: 600; color: var(--muted); }
.g-body td:first-child { font-weight: 600; }
.g-body td.num { white-space: nowrap; }
@media (max-width: 600px) {
  .g-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .g-body tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .g-body td { display: block; padding: 0; border: 0; }
  .g-body td + td { margin-top: 4px; color: var(--muted); }
  .g-body td[data-l]::before { content: attr(data-l) ": "; color: var(--ink); font-weight: 500; }
}

/* Sjekkliste */
.check { list-style: none; padding: 0 !important; }
.check li { position: relative; padding-left: 32px; }
.check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--accent); }

/* Spørsmål nederst */
.g-faq { margin-top: 56px; border-bottom: 1px solid var(--line); }
.g-faq details { border-top: 1px solid var(--line); }
.g-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: ""; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .25s; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq summary:hover { color: var(--accent-deep); }
.g-faq details p { color: var(--muted); padding-bottom: 22px; }

/* Avslutning og flere guider */
.g-cta { margin-top: 64px; padding: clamp(28px, 4vw, 44px); border-radius: 6px; background: var(--ink); color: #fff; }
.g-cta h2 { margin: 0 0 10px; color: #fff; }
.g-cta p { color: rgba(255,255,255,.75); max-width: 48ch; }
.g-cta .btn { margin-top: 24px; }
.more { margin-top: 56px; }
.more b { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.more ul { list-style: none; margin: 0; padding: 0; }
.more li { border-top: 1px solid var(--line); }
.more li:last-child { border-bottom: 1px solid var(--line); }
.more a { display: block; padding: 18px 0; font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; transition: color .2s; }
.more a:hover { color: var(--accent-deep); }

/* Bunnteksten har ikke kontaktfelt på guidene, så den starter uten strek */
.end { padding-top: 0; }
.end .cols:first-child { border-top: 0; padding-top: clamp(48px, 6vw, 72px); }

/* Tegnede illustrasjoner (guide-art.js) */
.g-art { aspect-ratio: 480 / 340; border-radius: 6px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.g-art.sand { background: #FBEFE8; }
.g-art svg { width: 92%; height: auto; display: block; overflow: visible; }
.g-head.has-art { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .g-head.has-art { grid-template-columns: minmax(0, 1fr); } .g-head.has-art .g-art { max-width: 520px; } }
