/* =========================================================================
   PokeVarsler – komponenter (felles for alle sider)
   Krever tokens.css først. Alle klasser har prefiks pv-.
   Mobil først. Brytpunkter: 520, 760, 960 og 1080 px.
   ========================================================================= */

/* ---------- basis ---------- */
.pv-page { margin: 0; background: var(--pv-bg); color: var(--pv-text); font-family: var(--pv-font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.pv-page *, .pv-page *::before, .pv-page *::after { box-sizing: border-box; }
.pv-page img { max-width: 100%; display: block; }
.pv-page a { color: inherit; }
.pv-page h1, .pv-page h2, .pv-page h3 { text-wrap: balance; }
.pv-page a:focus-visible, .pv-page button:focus-visible, .pv-page input:focus-visible, .pv-page select:focus-visible, .pv-page textarea:focus-visible, .pv-page summary:focus-visible { outline: none; box-shadow: var(--pv-focus); }
.pv-container { max-width: var(--pv-container); margin: 0 auto; padding-left: max(var(--pv-gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--pv-gutter), env(safe-area-inset-right, 0px)); }
.pv-section { padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 960px) { .pv-section { padding-top: 44px; padding-bottom: 44px; } }
.pv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pv-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pv-accent); color: var(--pv-on-accent); padding: 10px 14px; border-radius: var(--pv-radius-sm); font-weight: 700; text-decoration: none; }
.pv-skip:focus { top: 12px; }

/* ---------- typografi ---------- */
.pv-display { font-family: var(--pv-font-display); font-weight: 400; line-height: .95; letter-spacing: .5px; color: var(--pv-text-strong); margin: 0; }
.pv-display span { color: var(--pv-accent-text); }
.pv-h1 { font-size: clamp(44px, 9vw, 64px); }
.pv-h2 { margin: 0; font-size: 24px; line-height: 1.2; color: var(--pv-text-strong); font-weight: 700; }
@media (min-width: 640px) { .pv-h2 { font-size: 28px; } }
.pv-h3 { margin: 0; font-size: 19px; line-height: 1.3; color: var(--pv-text-strong); font-weight: 700; }
.pv-lead { font-size: 18px; color: var(--pv-text-muted); margin: 0; max-width: 640px; }
.pv-muted { color: var(--pv-text-muted); }
.pv-faint { color: var(--pv-text-faint); font-size: 13px; }
.pv-link { color: var(--pv-accent-text) !important; text-decoration: none; font-weight: 700; font-size: 15px; }
.pv-link:hover { text-decoration: underline; }
.pv-num { font-variant-numeric: tabular-nums; }
.pv-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }

/* ---------- header ---------- */
.pv-header { background: var(--pv-bg); border-bottom: 1px solid var(--pv-border); position: sticky; top: 0; z-index: 50; }
.pv-header__inner { display: grid; align-items: center; column-gap: 8px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav"; }
.pv-header .pv-brand { grid-area: brand; }
.pv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; padding: 10px 0; }
.pv-brand img { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.pv-brand__name { font-family: var(--pv-font-display); font-size: 28px; letter-spacing: 1px; line-height: 1; color: var(--pv-text-strong); white-space: nowrap; overflow: hidden; }
.pv-brand__name span { color: var(--pv-accent-text); }
.pv-header__actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.pv-header__login { color: var(--pv-text-nav) !important; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--pv-radius-sm); }
.pv-header__login:hover { color: var(--pv-text-strong) !important; }
.pv-nav { grid-area: nav; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; padding-bottom: 8px; margin-left: -8px; scrollbar-width: none; }
.pv-nav::-webkit-scrollbar { display: none; }
.pv-nav a { color: var(--pv-text-nav) !important; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--pv-radius-pill); }
.pv-nav a:hover, .pv-nav a[aria-current="page"] { background: var(--pv-surface-2); color: var(--pv-text-strong) !important; }
@media (max-width: 420px) {
  .pv-brand img { width: 36px; height: 36px; }
  .pv-brand__name { font-size: 24px; }
  .pv-header__login { padding: 10px 6px; font-size: 14px; }
  .pv-header__actions .pv-btn--sm { padding: 10px 12px; font-size: 14px; }
}
@media (min-width: 960px) {
  .pv-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions"; column-gap: 16px; }
  .pv-nav { padding-bottom: 0; margin-left: 0; justify-content: center; }
}

/* ---------- brødsmuler ---------- */
.pv-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--pv-text-faint); padding-top: 18px; margin: 0; list-style: none; padding-left: 0; }
.pv-crumbs a { color: var(--pv-text-muted); text-decoration: none; }
.pv-crumbs a:hover { text-decoration: underline; }
.pv-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--pv-text-faint); }

/* ---------- sidetopp for undersider ---------- */
.pv-pagehead { padding-top: 20px; padding-bottom: 8px; display: grid; gap: 14px; }
.pv-pagehead .pv-eyebrow { justify-self: start; }
.pv-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--pv-border); border-radius: var(--pv-radius-pill); font-size: 13px; color: var(--pv-text-muted); margin: 0; }
.pv-updated { font-size: 13px; color: var(--pv-text-faint); margin: 0; }

/* ---------- knapper ---------- */
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--pv-radius-btn); border: 1px solid transparent; font: 700 16px/1.2 var(--pv-font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .15s, border-color .15s, background-color .15s; }
.pv-btn--primary { background: var(--pv-accent); color: var(--pv-on-accent) !important; }
.pv-btn--primary:hover { filter: brightness(1.08); }
.pv-btn--ghost { border-color: var(--pv-border-strong); color: var(--pv-text) !important; background: transparent; }
.pv-btn--ghost:hover { border-color: var(--pv-text-faint); }
.pv-btn--danger { border-color: var(--pv-soldout); color: var(--pv-soldout) !important; background: transparent; }
.pv-btn--discord { background: var(--pv-discord); color: #ffffff !important; }
.pv-btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.pv-btn--block { width: 100%; }
.pv-btn[aria-pressed="true"] { background: var(--pv-accent); color: var(--pv-on-accent) !important; border-color: var(--pv-accent); }
.pv-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pv-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- merker og status ---------- */
.pv-badge { display: inline-block; padding: 2px 8px; border-radius: var(--pv-radius-pill); font: 700 11px/1.6 var(--pv-font-body); letter-spacing: .5px; color: var(--pv-on-accent); background: var(--pv-added); white-space: nowrap; }
.pv-badge--restock { background: var(--pv-restock); }
.pv-badge--new { background: var(--pv-new); }
.pv-badge--pricedrop { background: var(--pv-pricedrop); }
.pv-badge--added { background: var(--pv-added); }
.pv-badge--accent { background: var(--pv-accent); }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pv-restock); flex: 0 0 auto; display: inline-block; }
.pv-dot--live { animation: pv-pulse 2s infinite; }
@keyframes pv-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.pv-live-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--pv-font-body); color: var(--pv-live-text); background: var(--pv-live-bg); padding: 6px 10px; border-radius: var(--pv-radius-pill); vertical-align: middle; }
.pv-instock { color: var(--pv-restock); font-weight: 700; }
.pv-soldout { color: var(--pv-soldout); font-weight: 700; }
.pv-preorder { color: var(--pv-new); font-weight: 700; }

/* ---------- kort og flater ---------- */
.pv-card { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-lg); padding: 20px; }
@media (min-width: 760px) { .pv-card { padding: 24px; } }
.pv-card--tight { padding: 12px; }
.pv-grid { display: grid; gap: 16px; }
.pv-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pv-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .pv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pv-notice { display: flex; gap: 12px; align-items: flex-start; background: var(--pv-surface-2); border: 1px solid var(--pv-border); border-radius: var(--pv-radius); padding: 14px 16px; font-size: 14px; color: var(--pv-text); }
.pv-notice svg { flex: 0 0 auto; margin-top: 2px; color: var(--pv-accent-text); }
.pv-notice strong { color: var(--pv-text-strong); }
.pv-notice--premium { border-color: var(--pv-accent); }

.pv-stat { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-lg); padding: 18px 20px; }
.pv-stat__value { font: 400 44px/1 var(--pv-font-display); letter-spacing: .5px; color: var(--pv-text-strong); font-variant-numeric: tabular-nums; }
.pv-stat__label { font-size: 14px; color: var(--pv-text-muted); margin-top: 6px; }

.pv-check { display: flex; gap: 10px; align-items: flex-start; }
.pv-check svg { flex: 0 0 auto; margin-top: 2px; color: var(--pv-restock); }
.pv-list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------- varselkort ---------- */
.pv-alert { display: flex; gap: 14px; align-items: center; background: var(--pv-surface-2); border: 1px solid var(--pv-border); border-radius: 16px; padding: 12px; text-decoration: none; }
.pv-alert__img { width: 68px; height: 68px; flex: 0 0 68px; background: var(--pv-light-tile); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.pv-alert__img img { width: 58px; height: 58px; object-fit: contain; }
.pv-alert__body { min-width: 0; flex: 1 1 auto; }
.pv-alert__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pv-text-faint); }
.pv-alert__meta img { width: 16px; height: 16px; }
.pv-alert__row { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.pv-alert__title { font-weight: 700; font-size: 16px; color: var(--pv-text-strong); }
.pv-alert__sub { font-size: 14px; color: var(--pv-text-muted); margin-top: 2px; }

/* ---------- feed ---------- */
.pv-feed { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-lg); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.pv-feed__item + .pv-feed__item { border-top: 1px solid var(--pv-border); }
.pv-feed__link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; }
.pv-feed__link:hover { background: var(--pv-surface-2); }
.pv-feed__thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: var(--pv-radius-sm); background: var(--pv-light-tile); display: flex; align-items: center; justify-content: center; }
.pv-feed__thumb img { width: 46px; height: 46px; object-fit: contain; }
.pv-feed__thumb--empty { background: var(--pv-surface-2); color: var(--pv-text-faint); }
.pv-feed__main { min-width: 0; flex: 1 1 auto; }
.pv-feed__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pv-feed__store { font-size: 13px; color: var(--pv-text-faint); }
.pv-feed__title { display: block; font-weight: 700; font-size: 15px; color: var(--pv-text-strong); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-feed__right { text-align: right; flex: 0 0 auto; }
.pv-feed__price { display: block; font-weight: 700; font-size: 15px; color: var(--pv-text-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-feed__price s { color: var(--pv-text-faint); font-weight: 500; margin-right: 4px; }
.pv-feed__time { font-size: 13px; color: var(--pv-text-faint); font-variant-numeric: tabular-nums; }
.pv-feed__day { font-size: 13px; font-weight: 700; color: var(--pv-text-muted); letter-spacing: .5px; text-transform: uppercase; margin: 24px 4px 10px; }

/* ---------- produktkort ---------- */
.pv-products { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .pv-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv-product { position: relative; background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pv-product__img { aspect-ratio: 4 / 3; background: var(--pv-light-tile); border-radius: var(--pv-radius); display: flex; align-items: center; justify-content: center; padding: 10px; }
.pv-product__img img { max-height: 100%; width: auto; object-fit: contain; }
.pv-product__name { font-weight: 700; font-size: 16px; color: var(--pv-text-strong) !important; text-decoration: none; }
.pv-product__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* hele kortet klikkbart */
.pv-product__meta { font-size: 14px; color: var(--pv-text-muted); }
.pv-product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pv-product__price { font-weight: 700; color: var(--pv-text-strong); font-variant-numeric: tabular-nums; }
.pv-product .pv-btn { margin-top: auto; position: relative; z-index: 1; }

/* ---------- tabeller ---------- */
.pv-table-wrap { overflow-x: auto; position: relative; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pv-table th { padding: 8px 10px; font-weight: 500; font-size: 13px; color: var(--pv-text-faint); text-align: left; }
.pv-table td { padding: 11px 10px; color: var(--pv-text); vertical-align: middle; }
.pv-table tbody tr + tr td { border-top: 1px solid var(--pv-border); }
.pv-table .pv-r { text-align: right; white-space: nowrap; }
.pv-table .pv-c { text-align: center; }
.pv-table td.pv-price { font-weight: 700; color: var(--pv-text-strong); }
.pv-table tr.pv-best td { background: var(--pv-live-bg); color: var(--pv-text-strong); font-weight: 700; border-top-color: transparent; }
.pv-table tr.pv-best + tr td { border-top-color: transparent; }
.pv-table tr.pv-best td.pv-price { color: var(--pv-live-text); }
.pv-table tr.pv-best td:first-child { border-radius: 10px 0 0 10px; }
.pv-table tr.pv-best td:last-child { border-radius: 0 10px 10px 0; }
.pv-table .pv-badge { margin-left: 6px; }
.pv-go { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pv-go a { font-size: 14px; font-weight: 700; color: var(--pv-accent-text); text-decoration: none; white-space: nowrap; }
.pv-go a:hover { text-decoration: underline; }
.pv-adlabel { font-size: 11px; color: var(--pv-text-faint); }
@media (max-width: 520px) { .pv-hide-sm { display: none; } }

/* ---------- planer ---------- */
.pv-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pv-plan { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pv-plan--featured { border: 2px solid var(--pv-accent); }
.pv-plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pv-plan__name { margin: 0; font-size: 22px; color: var(--pv-text-strong); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-plan__price { font-size: 20px; font-weight: 700; color: var(--pv-text-strong); font-variant-numeric: tabular-nums; }
.pv-plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--pv-text); }
.pv-plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.pv-plan__list svg { flex: 0 0 auto; margin-top: 2px; }
.pv-plan__cta { margin-top: auto; }
.pv-plan__fine { margin: 0; font-size: 13px; color: var(--pv-text-faint); }

/* ---------- discord ---------- */
.pv-discord { background: var(--pv-discord-bg); border: 1px solid var(--pv-discord-border); border-radius: var(--pv-radius-lg); padding: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.pv-discord__icon { width: 52px; height: 52px; border-radius: var(--pv-radius); background: var(--pv-discord); display: flex; align-items: center; justify-content: center; flex: 0 0 52px; }
.pv-discord__text { flex: 1 1 220px; }
.pv-discord__text h2 { margin: 0; font-size: 20px; color: var(--pv-text-strong); }
.pv-discord__text p { margin: 2px 0 0; color: var(--pv-discord-text); font-size: 15px; }

/* ---------- skjema ---------- */
.pv-field { display: grid; gap: 6px; }
.pv-label { font-size: 14px; font-weight: 700; color: var(--pv-text-strong); }
.pv-help { font-size: 13px; color: var(--pv-text-faint); }
.pv-input, .pv-select, .pv-textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--pv-radius-btn); border: 1px solid var(--pv-border-strong); background: var(--pv-surface-2); color: var(--pv-text-strong); font: 400 16px/1.3 var(--pv-font-body); }
.pv-textarea { min-height: 110px; resize: vertical; }
.pv-input::placeholder, .pv-textarea::placeholder { color: var(--pv-text-faint); }
.pv-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pv-text-faint) 50%), linear-gradient(135deg, var(--pv-text-faint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pv-search { position: relative; }
.pv-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pv-text-faint); pointer-events: none; }
.pv-search .pv-input { padding-left: 44px; }
.pv-checkrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.pv-checkrow + .pv-checkrow { border-top: 1px solid var(--pv-border); }
.pv-checkrow input[type="checkbox"], .pv-checkrow input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pv-accent); flex: 0 0 auto; }
.pv-checkrow__text { display: grid; gap: 2px; }
.pv-checkrow__text strong { color: var(--pv-text-strong); font-size: 15px; }
.pv-checkrow__text span { color: var(--pv-text-muted); font-size: 14px; }

/* bryter (av/på) – <input type="checkbox" class="pv-switch" role="switch"> */
.pv-switch { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--pv-border-strong); position: relative; cursor: pointer; flex: 0 0 auto; margin: 0; transition: background-color .15s; }
.pv-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; transition: transform .15s; }
.pv-switch:checked { background: var(--pv-accent); }
.pv-switch:checked::after { transform: translateX(20px); }
.pv-setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.pv-setting + .pv-setting { border-top: 1px solid var(--pv-border); }
.pv-setting__text { display: grid; gap: 2px; min-width: 0; }
.pv-setting__text strong { color: var(--pv-text-strong); font-size: 15px; }
.pv-setting__text span { color: var(--pv-text-muted); font-size: 14px; }

/* ---------- faner og filterbrikker ---------- */
.pv-tabs { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; scrollbar-width: none; }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--pv-radius-pill); border: 1px solid var(--pv-border); background: transparent; color: var(--pv-text-nav) !important; font: 500 14px/1 var(--pv-font-body); text-decoration: none; cursor: pointer; }
.pv-tab[aria-pressed="true"], .pv-tab[aria-current="page"], .pv-tab[aria-selected="true"] { background: var(--pv-text-strong); color: var(--pv-bg) !important; border-color: var(--pv-text-strong); }
.pv-tab__count { font-size: 12px; opacity: .75; }

/* ---------- paginering ---------- */
.pv-pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.pv-pager a, .pv-pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--pv-radius-btn); border: 1px solid var(--pv-border); color: var(--pv-text) !important; text-decoration: none; font-weight: 500; padding: 0 12px; font-variant-numeric: tabular-nums; }
.pv-pager [aria-current="page"] { background: var(--pv-accent); color: var(--pv-on-accent) !important; border-color: var(--pv-accent); font-weight: 700; }

/* ---------- tom tilstand ---------- */
.pv-empty { text-align: center; padding: 40px 20px; display: grid; gap: 10px; justify-items: center; color: var(--pv-text-muted); }
.pv-empty svg { color: var(--pv-text-faint); }
.pv-empty strong { color: var(--pv-text-strong); font-size: 17px; }

/* ---------- løpende tekst (guider, vilkår, personvern) ---------- */
.pv-prose { max-width: 720px; font-size: 16px; line-height: 1.65; color: var(--pv-text); }
.pv-prose h2 { font-size: 22px; line-height: 1.3; color: var(--pv-text-strong); margin: 36px 0 10px; scroll-margin-top: 90px; }
.pv-prose h3 { font-size: 18px; color: var(--pv-text-strong); margin: 24px 0 8px; }
.pv-prose p, .pv-prose ul, .pv-prose ol { margin: 0 0 14px; }
.pv-prose ul, .pv-prose ol { padding-left: 22px; }
.pv-prose li + li { margin-top: 6px; }
.pv-prose a { color: var(--pv-accent-text); }
.pv-prose strong { color: var(--pv-text-strong); }
.pv-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 16px; }
.pv-prose th, .pv-prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--pv-border); vertical-align: top; }
.pv-prose th { color: var(--pv-text-faint); font-weight: 500; font-size: 13px; }
.pv-prose .pv-new-text { border-left: 3px solid var(--pv-accent); padding-left: 12px; } /* markerer ny/foreslått tekst i malene */
.pv-toc { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-lg); padding: 18px 20px; font-size: 15px; }
.pv-toc h2 { margin: 0 0 10px; font-size: 14px; color: var(--pv-text-faint); text-transform: uppercase; letter-spacing: .5px; }
.pv-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pv-toc a { color: var(--pv-text) !important; text-decoration: none; }
.pv-toc a:hover { color: var(--pv-accent-text) !important; text-decoration: underline; }

/* ---------- FAQ ---------- */
.pv-faq { border-top: 1px solid var(--pv-border); }
.pv-faq details { border-bottom: 1px solid var(--pv-border); }
.pv-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; color: var(--pv-text-strong); position: relative; }
.pv-faq summary::-webkit-details-marker { display: none; }
.pv-faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 22px; font-weight: 400; color: var(--pv-text-faint); }
.pv-faq details[open] summary::after { content: "–"; }
.pv-faq details p { margin: 0 0 16px; color: var(--pv-text-muted); max-width: 720px; }

/* ---------- footer ---------- */
.pv-footer { border-top: 1px solid var(--pv-border); margin-top: 24px; }
.pv-footer__inner { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 22px; font-size: 14px; color: var(--pv-text-faint); }
.pv-footer__cols { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .pv-footer__cols { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.pv-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--pv-text-muted); margin: 0 0 10px; }
.pv-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv-footer a, .pv-footer button { color: var(--pv-text-muted) !important; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.pv-footer a:hover, .pv-footer button:hover { color: var(--pv-text-strong) !important; text-decoration: underline; }
.pv-footer__brand { display: grid; gap: 10px; grid-column: 1 / -1; }
@media (min-width: 760px) { .pv-footer__brand { grid-column: auto; } }
.pv-footer__brand .pv-brand { padding: 0; }
.pv-footer__legal { border-top: 1px solid var(--pv-border); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .pv-page *, .pv-page *::after { transition: none !important; animation: none !important; } }

/* ---------- hindre at innhold gjør siden bredere enn skjermen ---------- */
.pv-grid > *, .pv-card > *, .pv-section > *, .pv-setting > :first-child, .pv-narrow > * { min-width: 0; }
.pv-setting__text span, .pv-store span { overflow-wrap: anywhere; }
.pv-container.pv-prose { max-width: var(--pv-container); }
.pv-container.pv-prose > * { max-width: 720px; }
.pv-toc ol { list-style: none; padding-left: 0; }
