/* Kontorkaffe – et sideprosjekt fra Reklameverket. Lastes bare på /kontorkaffe/ (temaets page-kontorkaffe.php).
   Alt er scopet under .kk (kundeavis-modalen .avis-modal legges på <body> av avis.js og har egne regler),
   så temaets topp, meny og bunntekst er urørt. Skriftene (Sofia Sans-familien) og Bootstrap kommer fra temaet.
   Uttrykk: Reklameverket (rubin, blekk, aluminium, rette kanter, store kondenserte tall) som har tatt kaffepause:
   espresso/krem som sekundærpalett, kopperinger, damp og kvitteringslook på regnestykket. Ingen bilder. */

.kk {
  /* Reklameverket */
  --primar: #AF0E49;
  --primar-mork: #7E0A35;
  --tint: #FBEBF1;
  --blekk: #231F20;
  --staal: #565D63;
  --lys: #F1F3F4;
  --linje: #D5DADD;
  --feltkant: #8A9197;
  --hvit: #fff;
  --feil: #B3261E;
  /* Kaffepausen */
  --espresso: #2B1B13;
  --mokka: #5B3D2E;
  --karamell: #C8A27A;
  --latte: #E9DCCB;
  --krem: #F7F1E8;
  /* Skrifter (lastet av temaet) */
  --brod: "Sofia Sans", "Sofia Sans Fallback", "Segoe UI", system-ui, sans-serif;
  --smal: "Sofia Sans Condensed", "Sofia Sans Condensed Fallback", "Arial Narrow", sans-serif;
  --ekstra: "Sofia Sans Extra Condensed", "Sofia Sans Extra Condensed Fallback", "Arial Narrow", sans-serif;
  --kvitt-sag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 0h16L8 8z' fill='%23fff'/%3E%3C/svg%3E");

  color: var(--blekk); font-family: var(--brod); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip;
}
@media (min-width: 768px) { .kk { font-size: 1.125rem; } }

/* ---------- Nullstilling av Bootstrap/tema innenfor .kk ---------- */
.kk *, .kk *::before, .kk *::after { box-sizing: border-box; }
.kk p, .kk h1, .kk h2, .kk h3, .kk ul, .kk ol, .kk table { margin: 0; }
.kk ul, .kk ol { padding: 0; }
.kk img { max-width: 100%; height: auto; display: block; border-radius: 0; }
.kk a { color: var(--blekk); text-decoration: underline; text-decoration-color: rgba(35, 31, 32, .4); text-underline-offset: 3px; }
.kk a:hover { color: var(--primar); text-decoration-color: currentColor; }
.kk h1, .kk h2, .kk h3 { font-family: var(--smal); font-weight: 700; line-height: 1.15; color: var(--blekk); }
.kk b { font-weight: 700; }
.kk small { font-size: .85em; }
.kk .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kk [hidden] { display: none !important; }

.kk .seksjon { padding: 56px 0; }
@media (min-width: 992px) { .kk .seksjon { padding: 88px 0; } }
.kk .seksjon + .seksjon { border-top: 1px solid var(--linje); }
.kk .lysflate { background: var(--lys); }

/* Stikktittel (kicker) over overskrift. Klassen .skript er beholdt fordi skriptet bruker den. */
.kk .skript { display: block; font-family: var(--smal); font-weight: 700; font-size: .9375rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primar); }
.kk .overskrift { margin-bottom: 32px; max-width: 52rem; }
.kk .overskrift .skript { margin-bottom: 6px; }
.kk .overskrift h2 { font-family: var(--ekstra); font-weight: 800; text-transform: uppercase; font-size: clamp(2.5rem, 5vw, 4rem); line-height: .95; letter-spacing: 0; }
.kk .overskrift .ingress { color: var(--staal); margin: 14px 0 0; font-size: 1.0625rem; line-height: 1.55; max-width: 45rem; }
@media (min-width: 992px) { .kk .overskrift { margin-bottom: 40px; } }

/* ---------- Sidehode med søk og vinnerkort ---------- */
.kk .kk-hode { position: relative; background: var(--krem); padding: 20px 0 56px; overflow: hidden; isolation: isolate; }
@media (min-width: 992px) { .kk .kk-hode { padding: 28px 0 88px; } }
/* Kopperinger: kaffeflekken på kontorpulten */
.kk .kk-hode::before, .kk .kk-hode::after { content: ""; position: absolute; border-radius: 50%; border: 16px solid rgba(91, 61, 46, .10); pointer-events: none; z-index: -1; }
.kk .kk-hode::before { width: 560px; height: 560px; right: -160px; top: -220px; box-shadow: inset 0 0 0 10px rgba(91, 61, 46, .035), 0 0 0 36px rgba(91, 61, 46, .035); }
.kk .kk-hode::after { width: 300px; height: 300px; left: -140px; bottom: -120px; border-width: 10px; opacity: .8; }
.kk .kk-smuler { font-size: .9375rem; color: var(--staal); margin-bottom: 1.5rem; }
.kk .kk-smuler a { color: var(--staal); }
.kk .kk-smuler a:hover { color: var(--primar); }
.kk .kk-smuler__skille { margin: 0 .5rem; }
@media (min-width: 992px) { .kk .kk-smuler { margin-bottom: 36px; } }
.kk .kk-hode__rutenett { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .kk .kk-hode__rutenett { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 40px 64px; align-items: start; } .kk .kk-hode__tekst { grid-column: 1 / -1; } }
.kk .hero-skript { margin: 0 0 8px; }
.kk .kk-h1 { font-family: var(--ekstra); font-weight: 800; text-transform: uppercase; font-size: clamp(3.75rem, 11vw, 8rem); line-height: .86; letter-spacing: 0; color: var(--blekk); margin: 0; hyphens: manual; }
.kk .kk-h1 span { color: var(--primar); }
.kk .hero-under { color: var(--staal); max-width: 44rem; margin: 18px 0 0; font-size: 1.125rem; line-height: 1.5; }
.kk .har-svar .hero-under { display: none; }
.kk .har-svar .kk-h1 { font-size: clamp(3rem, 7vw, 5rem); }

/* Søkeboks: hvitt kort med tykk topplinje, som prisboksen på reklameverket.no */
.kk .sok { background: var(--hvit); border-top: 6px solid var(--blekk); padding: 22px 18px 20px; box-shadow: 0 18px 40px -24px rgba(35, 31, 32, .45); display: grid; gap: 14px; text-align: left; }
@media (min-width: 768px) { .kk .sok { padding: 28px 28px 24px; } }
.kk .sok .felt { display: grid; gap: 5px; align-content: start; }
.kk .sok label { font-size: .9375rem; font-weight: 600; color: var(--blekk); margin: 0; }
.kk .sok input, .kk .sok select { background: var(--hvit); color: var(--blekk); border: 2px solid var(--linje); border-radius: 2px; padding: 0 14px; font: inherit; width: 100%; min-height: 50px; line-height: 1.2; }
.kk .sok select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--hvit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23231F20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.kk .sok input:hover, .kk .sok select:hover { border-color: var(--feltkant); }
.kk .sok input:focus, .kk .sok select:focus { border-color: var(--blekk); outline: 3px solid var(--primar); outline-offset: 2px; box-shadow: none; }
.kk .sok .rad2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .kk .sok .rad2 { grid-template-columns: 1fr; } }
.kk .sok .eller { display: flex; align-items: center; gap: 12px; margin: -2px 0; color: var(--staal); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.kk .sok .eller::before, .kk .sok .eller::after { content: ""; flex: 1; border-top: 1px solid var(--linje); }
.kk .sok .hjelp { font-size: .875rem; color: var(--staal); line-height: 1.4; }
.kk .sok .adresse { position: relative; }
.kk .sok .forslag { list-style: none; margin: 4px 0 0; padding: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--hvit); border: 2px solid var(--blekk); border-radius: 2px; max-height: 280px; overflow: auto; box-shadow: 0 18px 40px -20px rgba(35, 31, 32, .5); }
.kk .sok .forslag li { padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--linje); font-size: 1rem; }
.kk .sok .forslag li:last-child { border-bottom: 0; }
.kk .sok .forslag li:hover, .kk .sok .forslag li[aria-selected="true"] { background: var(--tint); color: var(--primar-mork); }

/* Knapper: 48 px, vekt 700, 2 px radius, ingen versaler (som temaets .btn-primary) */
.kk .knapp, .kk .sok button, .avis-modal .knapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  background: #AF0E49; color: #fff; border: 2px solid #AF0E49; border-radius: 2px; cursor: pointer;
  font: 700 1.0625rem/1.2 "Sofia Sans", "Segoe UI", system-ui, sans-serif; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s, color .15s;
}
.kk .knapp:hover, .kk .sok button:hover, .avis-modal .knapp:hover { background: #7E0A35; border-color: #7E0A35; color: #fff; }
.kk .sok button { width: 100%; }
.kk .sok button svg { width: 20px; height: 20px; flex-shrink: 0; }
.kk .sok button:disabled { opacity: .6; cursor: wait; }
.kk .knapp-lys, .avis-modal .knapp-lys { background: transparent; color: #231F20; border-color: #231F20; }
.kk .knapp-lys:hover, .avis-modal .knapp-lys:hover { background: #231F20; border-color: #231F20; color: #fff; }

.kk .status { color: var(--staal); min-height: 1.6em; margin: 12px 0 0; font-weight: 600; font-size: 1rem; }
.kk .status.feil { color: var(--feil); }
.kk .status:empty { margin: 0; min-height: 0; }
.kk .laster { opacity: .45; transition: opacity .2s; }

/* Vinnerkort */
.kk #vinnere { display: grid; gap: 20px; }
.kk .vinner-duo { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) and (max-width: 999px) { .kk .vinner-duo { grid-template-columns: 1fr 1fr; } }
.kk .vinner { position: relative; background: var(--hvit); border-top: 6px solid var(--blekk); padding: 24px 20px 24px; box-shadow: 0 18px 40px -24px rgba(35, 31, 32, .45); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (min-width: 768px) { .kk .vinner { padding: 28px 28px 28px; } }
.kk .vinner-label { margin: 0; }
.kk .vinner-topp { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kk .vinner .type { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--staal); }
.kk .vinner-navn { font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.1; }
.kk .vinner-navn small { color: var(--staal); font-weight: 600; font-size: .7em; white-space: nowrap; }
.kk .vinner-pris { margin: 6px 0 2px; display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.kk .vinner-pris b { font-family: var(--ekstra); font-weight: 800; font-size: clamp(4rem, 9vw, 5.5rem); line-height: .85; color: var(--blekk); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kk .vinner-pris span { font-family: var(--smal); font-weight: 700; font-size: 1.375rem; color: var(--blekk); }
.kk .vinner-pris em { font-style: normal; color: var(--staal); font-size: 1rem; flex-basis: 100%; margin-top: 6px; }
.kk .vinner-meta { color: var(--staal); font-size: .9375rem; line-height: 1.5; margin: 0; }
.kk .vinner .knapp { margin-top: 6px; }
.kk .vinner.tom { gap: 6px; }
.kk .vinner-kj { border-top-color: var(--primar); }
.kk .vinner-kj .vinner-pris b { color: var(--primar); }
.kk .vinner .ogsaa { display: inline-block; margin-top: 8px; padding: 6px 10px; background: var(--krem); color: var(--espresso); font-size: .9375rem; }
.kk .vinner .ogsaa b { color: var(--primar); }
.kk .vinner-duo .vinner-kj { order: -1; }
@media (min-width: 640px) { .kk .vinner-duo .vinner-kj { order: 0; } }

/* ---------- Merker (overstyrer Bootstraps .badge fullt ut) ---------- */
.kk .badge { display: inline-block; font-family: var(--smal); font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; text-align: left; color: var(--blekk); background: var(--lys); border: 1px solid var(--linje); border-radius: 2px; padding: 2px 7px; vertical-align: middle; white-space: nowrap; line-height: 1.5; }
.kk .mrk { font-size: .8125rem; color: var(--staal); white-space: nowrap; }
.kk .pill { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--staal); }
.kk .pill-lav { color: var(--feil); }
.kk .merknad { color: var(--staal); font-size: .9375rem; line-height: 1.5; margin: 20px 0 0; }

/* ---------- Prisliste ---------- */
.kk .meny { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.kk .rad {
  display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; grid-template-areas: "nr navn navn" "nr leder pris";
  align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--linje);
}
@media (min-width: 640px) { .kk .rad { grid-template-columns: 2em minmax(0, auto) 1fr auto; grid-template-areas: "nr navn leder pris"; padding: 16px 0; } }
.kk .rad .nr { grid-area: nr; font-family: var(--smal); font-weight: 700; color: var(--staal); font-size: 1.125rem; align-self: start; padding-top: .15em; font-variant-numeric: tabular-nums; }
.kk .rad .navn { grid-area: navn; min-width: 0; font-size: 1.125rem; font-weight: 600; }
.kk .rad .navn a { text-decoration-color: var(--linje); }
.kk .rad .navn small { color: var(--staal); font-weight: 400; white-space: nowrap; }
.kk .rad .leder { grid-area: leder; min-width: 24px; border-bottom: 2px dotted var(--linje); align-self: end; margin-bottom: .55em; }
.kk .rad .pris { grid-area: pris; text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.kk .rad .pris b { font-family: var(--ekstra); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--blekk); font-variant-numeric: tabular-nums; }
.kk .rad .pris b span { font-family: var(--smal); font-weight: 700; font-size: .9375rem; letter-spacing: .02em; }
.kk .rad .pris small { color: var(--staal); font-size: .8125rem; margin-top: 2px; }
.kk .rad.topp1 .pris b { color: var(--primar); }
.kk .tom-rad { color: var(--staal); text-align: center; padding: 40px 16px; border: 2px dashed var(--linje); }

/* ---------- Totalpris inkl. kjøring: kvittering ---------- */
.kk .vent { color: var(--staal); padding: 36px 20px; border: 2px dashed var(--linje); background: var(--hvit); max-width: 60rem; text-align: center; }
.kk .kj-velger { position: relative; max-width: 60rem; background: var(--hvit); border-top: 6px solid var(--blekk); padding: 24px 18px 28px; box-shadow: 0 18px 40px -26px rgba(35, 31, 32, .5); margin-bottom: 20px; }
@media (min-width: 768px) { .kk .kj-velger { padding: 32px 36px 36px; } }
.kk .kj-velger::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--kvitt-sag) repeat-x; background-size: 16px 8px; }
.kk .kj-antagelse { color: var(--staal); margin: 0 0 14px; font-size: 1rem; line-height: 1.5; padding-bottom: 14px; border-bottom: 2px dashed var(--linje); }
.kk .kj-antagelse b { color: var(--blekk); }
.kk .kj-velger .meny { max-width: none; }
.kk .kj-rad { grid-template-columns: 2em minmax(0, 1fr) auto; grid-template-areas: "nr navn navn" "nr detalj detalj" "nr leder pris"; border-bottom: 1px dashed var(--linje); }
@media (min-width: 640px) { .kk .kj-rad { grid-template-columns: 2em minmax(0, auto) 1fr auto; grid-template-areas: "nr navn leder pris" "nr detalj detalj detalj"; } }
.kk .kj-rad .detalj { grid-area: detalj; color: var(--staal); font-size: .875rem; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; padding-bottom: 2px; }
.kk .kj-rad .leder { align-self: center; margin-bottom: 0; }
.kk .kj-rad .pris { text-align: right; white-space: nowrap; }
.kk .kj-rad .pris small { display: none; }
.kk .kj-rad .pris b { font-size: 2rem; }
.kk .kj-rad:first-child .pris b { color: var(--primar); }
.kk .kj-break { font-size: 1rem; line-height: 1.55; margin: 22px 0 0; padding: 14px 18px; border-left: 4px solid var(--mokka); background: var(--krem); color: var(--espresso); }
.kk .kj-break b { color: var(--primar); }
.kk .kj-tabellboks { max-width: 60rem; margin-top: 36px; }
.kk .kj-tabellboks .under-tittel { text-align: left; margin-top: 0; }
.kk .kj-tabell-ingress { margin: 0 0 12px; }
.kk .kj-tabell td small { color: var(--staal); white-space: nowrap; }
.kk .kj-tabell td.tall { white-space: nowrap; }
.kk .kj-tabell td:last-child b { color: var(--blekk); font-family: var(--smal); font-size: 1.0625rem; }
.kk .kj-tabell td:nth-child(2) { overflow-wrap: normal; hyphens: auto; }
.kk .bom { color: var(--primar-mork); font-weight: 600; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.kk .kj-tabell .bom { text-decoration: none; }
@media (max-width: 640px) {
  /* Smal skjerm: kjøretid og kjøring alene skjules, km + bom + sum beholdes */
  .kk .kj-tabell th:nth-child(4), .kk .kj-tabell td:nth-child(4),
  .kk .kj-tabell th:nth-child(5), .kk .kj-tabell td:nth-child(5) { display: none; }
}
@media (max-width: 480px) {
  .kk .kj-tabell { font-size: .875rem; }
  .kk .kj-tabell th, .kk .kj-tabell td { padding-left: 4px; padding-right: 4px; }
  .kk .kj-tabell th:first-child, .kk .kj-tabell td:first-child { padding-left: 0; }
  .kk .kj-tabell th:last-child, .kk .kj-tabell td:last-child { padding-right: 0; }
  .kk .kj-tabell .badge { white-space: normal; line-height: 1.3; }
  .kk .kj-tabell .lang, .kk .kj-tabell td small { display: none; }
}

/* ---------- Tilbudskort ---------- */
.kk .tilbud { background: var(--krem); position: relative; overflow: hidden; }
.kk .kort-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.kk .kort { background: var(--hvit); border-top: 4px solid var(--blekk); box-shadow: 0 14px 32px -24px rgba(43, 27, 19, .5); overflow: hidden; display: flex; flex-direction: column; }
.kk .kort-bilde { display: block; background: var(--lys); }
.kk .kort-bilde img { width: 100%; max-height: 300px; object-fit: contain; }
.kk .kort-bilde-tom { height: 6px; background: linear-gradient(90deg, var(--karamell), transparent); }
.kk .kort-tekst { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kk .kort-topp { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.kk .kort h3 { font-size: 1.25rem; line-height: 1.15; }
.kk .kort h3 small { color: var(--staal); font-weight: 600; font-size: .75em; }
.kk .kort-pris { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kk .kort-pris b { font-family: var(--ekstra); font-weight: 800; font-size: 2.25rem; line-height: .9; color: var(--primar); font-variant-numeric: tabular-nums; }
.kk .kort-pris span { font-family: var(--smal); font-weight: 700; color: var(--blekk); font-size: 1rem; }
.kk .kort-meta { margin: 0; color: var(--staal); font-size: .9rem; line-height: 1.5; }
.kk .kort-lenke { margin: auto 0 0; font-size: .9375rem; font-weight: 600; }
.kk .tom-tilstand { text-align: center; background: var(--hvit); border-top: 4px solid var(--blekk); padding: 40px 20px; max-width: 40rem; color: var(--mokka); }
.kk .tom-tilstand svg { margin: 0 auto; }
.kk .tom-tilstand h3 { color: var(--blekk); font-size: 1.375rem; margin: 10px 0 6px; }
.kk .tom-tilstand p { color: var(--staal); margin: 0; }

/* ---------- Nøkkeltall: mørk kaffepause ---------- */
.kk .banner { position: relative; background: var(--espresso); color: var(--krem); padding: 48px 0; overflow: hidden; isolation: isolate; }
@media (min-width: 768px) { .kk .banner { padding: 64px 0; } }
.kk .banner::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; border: 14px solid rgba(247, 241, 232, .07); right: -120px; top: -200px; box-shadow: 0 0 0 30px rgba(247, 241, 232, .03); pointer-events: none; }
.kk .banner-innhold { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 640px) { .kk .banner-innhold { grid-template-columns: repeat(4, 1fr); } }
.kk .banner-innhold div { border-left: 2px solid rgba(200, 162, 122, .45); padding-left: 14px; }
.kk .banner-innhold b { display: block; font-family: var(--ekstra); font-weight: 800; font-size: clamp(2.5rem, 6vw, 4rem); line-height: .9; color: var(--hvit); font-variant-numeric: tabular-nums; }
.kk .banner-innhold span { display: block; color: var(--karamell); font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }

/* ---------- Butikker ---------- */
.kk .butikk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kk .butikk { background: var(--hvit); border: 1px solid var(--linje); border-top: 3px solid var(--blekk); padding: 16px; }
.kk .butikk h3 { margin-bottom: 10px; }
.kk .butikk ul { list-style: none; margin: 0; padding: 0; }
.kk .butikk li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dotted var(--linje); font-size: .9375rem; line-height: 1.4; }
.kk .butikk li:last-child { border-bottom: 0; }
.kk .butikk .km { color: var(--staal); white-space: nowrap; font-family: var(--smal); font-weight: 700; }

/* ---------- Slik fungerer det, kundeaviser, kilder ---------- */
.kk .steg { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kk .steg-kort { border-top: 3px solid var(--blekk); padding-top: 14px; }
.kk .steg-nr { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-family: var(--smal); font-weight: 700; font-size: 1.125rem; color: #fff; background: var(--blekk); }
.kk .steg-kort h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.kk .steg-kort p { margin: 0; color: var(--staal); font-size: .9375rem; line-height: 1.5; }
.kk .under-tittel { font-size: 1.375rem; margin: 48px 0 12px; }
.kk .aviser { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.kk .aviser th { text-align: left; font-family: var(--smal); font-weight: 700; color: var(--staal); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; padding: 8px 8px; border-bottom: 2px solid var(--blekk); }
.kk .aviser td { padding: 10px 8px; border-bottom: 1px solid var(--linje); vertical-align: middle; }
.kk .aviser .tall { text-align: right; font-variant-numeric: tabular-nums; }
.kk .aviser th:first-child, .kk .aviser td:first-child { padding-left: 0; }
.kk .aviser th:last-child, .kk .aviser td:last-child { padding-right: 0; }
@media (max-width: 480px) { .kk .aviser:not(.kj-tabell) th:nth-child(3), .kk .aviser:not(.kj-tabell) td:nth-child(3), .kk .aviser:not(.kj-tabell) th:nth-child(5), .kk .aviser:not(.kj-tabell) td:nth-child(5) { display: none; } }
.kk .kilder { margin-top: 48px; padding: 24px 24px 28px; background: var(--hvit); border-top: 4px solid var(--mokka); }
.kk .kilder .under-tittel { margin-top: 0; }
.kk .kilder-kolonner { display: grid; gap: 12px 40px; color: var(--staal); font-size: .9375rem; line-height: 1.55; }
@media (min-width: 768px) { .kk .kilder-kolonner { grid-template-columns: 1fr 1fr; } }

/* ---------- Kundeavis i modal (assets/avis.js legger <dialog> på body) ---------- */
.avis-modal { width: min(960px, calc(100vw - 24px)); height: min(92svh, 1200px); max-width: none; max-height: none; padding: 0; margin: auto;
  border: 0; border-top: 6px solid #231F20; border-radius: 2px; background: #fff; color: #231F20; flex-direction: column; font-family: "Sofia Sans", "Segoe UI", system-ui, sans-serif; }
.avis-modal[open] { display: flex; }
.avis-modal::backdrop { background: rgba(35, 31, 32, .7); }
.avis-topp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid #D5DADD; }
.avis-topp h2 { font-family: "Sofia Sans Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.25rem; margin: 0; }
.avis-lukk { background: none; border: 0; color: #231F20; font-size: 2rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; border-radius: 2px; }
.avis-lukk:hover { color: #AF0E49; background: #F1F3F4; }
.avis-innhold { flex: 1; min-height: 0; overflow: auto; background: #F1F3F4; }
.avis-innhold img { width: 100%; height: auto; margin: 0 auto; max-width: 900px; display: block; }
.avis-innhold iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.avis-bunn { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 12px; border-top: 1px solid #D5DADD; }
@media (max-width: 480px) { .avis-modal { width: 100vw; height: 100svh; border-radius: 0; } .avis-bunn .knapp { flex: 1; } }
.avis-bunn [hidden] { display: none; }

/* ---------- Bevegelse ---------- */
@media (prefers-reduced-motion: reduce) {
  .kk *, .kk *::before, .kk *::after { transition: none !important; animation: none !important; }
}
