/* Gjestin hjelpesenter – bygger på /v3-style.css */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 2000; background: var(--teal-dk); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
body.help { background: var(--white); }
.help :focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ── Hero (forside) ─────────────────────────────────────── */
.help-hero {
  background: radial-gradient(1100px 500px at 85% -10%, rgba(0,169,157,0.28), transparent 60%), var(--navy);
  padding: 140px 0 64px; color: #fff;
}
.help-hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.help-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin-bottom: 28px; }
.help-hero-sub { color: rgba(255,255,255,0.62); font-size: 18px; max-width: 620px; margin-bottom: 32px; }

/* ── Bånd (artikkelsider) ───────────────────────────────── */
.help-band { background: var(--navy); padding: 96px 0 22px; }
.help-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255,255,255,0.45); }
.crumbs a { color: rgba(255,255,255,0.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.help-band .hs { flex: 0 1 420px; }

/* ── Søkeboks ───────────────────────────────────────────── */
.hs { position: relative; width: 100%; }
.hs-big { max-width: 680px; }
.hs-field {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px;
  padding: 0 14px; border: 1.5px solid transparent; color: var(--muted);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18); transition: border-color .15s, box-shadow .15s;
}
.hs-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,169,157,0.25), 0 10px 30px rgba(0,0,0,0.18); }
.hs-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit;
  font-size: 15px; color: var(--navy); height: 46px;
}
.hs-big .hs-field input { height: 58px; font-size: 17px; }
.hs-field input::-webkit-search-cancel-button { cursor: pointer; }
.hs-kbd { font: 600 12px/1 'Inter', sans-serif; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 7px; background: var(--light); }
.hs-field:focus-within .hs-kbd { display: none; }
.help-main .hs-field { box-shadow: none; border-color: var(--border); }
.help-main .hs-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,169,157,0.18); }

.hs-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 200;
  background: #fff; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(11,17,32,0.22); max-height: min(70vh, 520px); overflow: auto; padding: 6px;
}
.hs-item { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--body); }
.hs-item[aria-selected="true"], .hs-item:hover { background: var(--teal-pale); }
.hs-item-t { display: block; font-weight: 600; color: var(--navy); font-size: 15px; }
.hs-item-m { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.hs-item-x { display: block; font-size: 13px; color: var(--body); margin-top: 3px; line-height: 1.45; }
.hs-item mark, .search-list mark { background: rgba(245,166,35,0.28); color: inherit; border-radius: 3px; padding: 0 1px; }
.hs-empty { padding: 14px 12px; font-size: 14px; color: var(--muted); }
.hs-all { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--teal-text); text-decoration: none; border-top: 1px solid var(--border); margin-top: 4px; }

/* ── Mest brukt ─────────────────────────────────────────── */
.pop-wrap { margin-top: 28px; }
.pop-title { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; font-weight: 600; }
.pops { display: flex; flex-wrap: wrap; gap: 8px; }
.pop {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s;
}
.pop:hover { background: rgba(0,169,157,0.3); }

/* ── Forside: roller og kategorier ──────────────────────── */
.help-main { padding: 56px 0 72px; }
.sec-title { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.6px; margin-bottom: 20px; }
.roles { margin-bottom: 56px; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role-card { background: var(--light); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.role-card h3 { font-size: 17px; margin-bottom: 4px; }
.role-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.role-card ul, .cat-card ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.role-card a, .cat-card li a {
  display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; font-weight: 500;
  color: var(--teal-text); text-decoration: none; line-height: 1.35; padding: 4px 0;
}
.role-card a:hover, .cat-card li a:hover { text-decoration: underline; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  transition: transform .2s, box-shadow .2s; scroll-margin-top: 90px;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11,17,32,0.08); }
.cat-card:target { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,169,157,0.15); }
.cat-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-pale); color: var(--teal-text); margin-bottom: 14px; }
.cat-card h2 { font-size: 19px; letter-spacing: -0.3px; margin-bottom: 4px; }
.cat-card > p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }

.badge-adv {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px; line-height: 1;
  padding: 4px 7px; border-radius: 999px; background: rgba(245,166,35,0.16); color: #8A5A00; vertical-align: middle;
  text-transform: none; text-decoration: none;
}

/* ── Artikkelside ───────────────────────────────────────── */
.help-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; align-items: start; }
.help-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; padding-right: 4px; }
.side-mobile > summary { display: none; }
.side-cat { border-bottom: 1px solid var(--border); padding: 6px 0; }
.side-cat > summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 8px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; min-height: 40px;
}
.side-cat > summary::-webkit-details-marker { display: none; }
.side-cat > summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 18px; }
.side-cat[open] > summary::after { content: "−"; }
.side-cat ul { list-style: none; padding: 0 0 8px; }
.side-cat a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--body); text-decoration: none; line-height: 1.35; }
.side-cat a:hover { background: var(--light); color: var(--navy); }
.side-cat a.current { background: var(--teal-pale); color: var(--teal-text); font-weight: 600; }

.help-article { min-width: 0; max-width: 760px; }
.art-cat { font-size: 13px; font-weight: 700; color: var(--teal-text); letter-spacing: .4px; text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.art-head h1 { font-size: clamp(30px, 4vw, 42px); color: var(--navy); letter-spacing: -1.2px; line-height: 1.12; margin-bottom: 14px; }
.art-lede { font-size: 18px; color: var(--muted); line-height: 1.55; }
.art-roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--light); border: 1px solid var(--border); color: var(--body); }

.prose { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 16.5px; line-height: 1.7; color: var(--body); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 24px; letter-spacing: -0.5px; margin-top: 44px; scroll-margin-top: 96px; }
.prose h3 { font-size: 18px; margin-top: 30px; scroll-margin-top: 96px; }
.prose a { color: var(--teal-text); text-underline-offset: 3px; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose code { font-size: .9em; background: var(--light); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
.prose ul { padding-left: 22px; }
.prose ul li + li { margin-top: 6px; }
.prose ol.steps { list-style: none; counter-reset: step; padding: 0; }
.prose ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 0 46px; min-height: 32px; }
.prose ol.steps > li + li { margin-top: 14px; }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-dk); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}

.callout { border-radius: 10px; padding: 14px 16px 14px 18px; border-left: 4px solid var(--teal); background: var(--teal-pale); }
.callout p { margin: 0; }
.callout-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--teal-text); margin-bottom: 2px; }
.callout-advarsel { border-left-color: #D97706; background: rgba(245,166,35,0.1); }
.callout-advarsel .callout-label { color: #8A5A00; }
.callout-avansert { border-left-color: #F5A623; background: rgba(245,166,35,0.08); }
.callout-avansert .callout-label { color: #8A5A00; }

.shot { margin: 26px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(11,17,32,0.08); background: var(--light); }
.shot-tall { max-width: 300px; }
.shot-dialog { max-width: 440px; }
.shot-link { display: block; cursor: zoom-in; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.shot-ph {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; padding: 20px;
  border: 2px dashed #F5A623; border-radius: 10px; background: rgba(245,166,35,0.06); color: #8A5A00; font-size: 14px; font-weight: 600; text-align: center;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { text-align: left; background: var(--light); color: var(--navy); font-weight: 600; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; transition: border-color .15s; }
.pager a:hover { border-color: var(--teal); }
.pager a span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.pager-next { text-align: right; }

.help-toc { position: sticky; top: 96px; font-size: 13px; }
.toc-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.help-toc ul { list-style: none; border-left: 2px solid var(--border); }
.help-toc a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.help-toc a:hover { color: var(--navy); }
.help-toc a.active { color: var(--teal-text); border-left-color: var(--teal); font-weight: 600; }

/* ── Kontaktboks ────────────────────────────────────────── */
.help-contact { padding: 0 0 72px; }
.help-contact-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; }
.help-contact-box h2 { font-size: 22px; letter-spacing: -0.4px; margin-bottom: 4px; }
.help-contact-box p { color: var(--muted); font-size: 15px; }
.help-contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Søkeside ───────────────────────────────────────────── */
.search-page { max-width: 820px; }
.search-page h1 { font-size: clamp(28px, 4vw, 38px); color: var(--navy); letter-spacing: -1px; margin-bottom: 20px; }
.search-summary { color: var(--muted); margin: 22px 0 8px; font-size: 15px; }
.search-list { list-style: none; }
.search-list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.search-list a.sr-t { font-size: 18px; font-weight: 600; color: var(--teal-text); text-decoration: none; }
.search-list a.sr-t:hover { text-decoration: underline; }
.search-list .sr-m { font-size: 13px; color: var(--muted); margin-top: 2px; }
.search-list .sr-x { font-size: 15px; margin-top: 6px; }
.search-list .sr-secs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.search-list .sr-secs a { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--body); text-decoration: none; }
.search-list .sr-secs a:hover { border-color: var(--teal); color: var(--teal-text); }

/* ── Responsivt ─────────────────────────────────────────── */
@media (max-width: 1180px) {
  .help-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .help-toc { display: none; }
}
@media (max-width: 900px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help-side { position: static; max-height: none; overflow: visible; }
  .side-mobile { border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; }
  .side-mobile > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }
  .side-mobile > summary::-webkit-details-marker { display: none; }
  .side-mobile > summary::after { content: "▾"; color: var(--muted); }
  .side-mobile:not([open]) > .side-inner { display: none; }
  .help-band .hs { flex-basis: 100%; }
}
@media (max-width: 768px) {
  .help-hero { padding: 112px 0 48px; }
  .help-band { padding-top: 84px; }
  .hs-kbd { display: none; }
}
@media (max-width: 600px) {
  .role-grid, .cat-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .help-contact-box { padding: 22px 20px; }
  .help-contact-actions .btn { width: 100%; justify-content: center; }
  .prose { font-size: 16px; }
  .shot-tall, .shot-dialog { max-width: 100%; }
}
