/* ============================================
   REGNESTYKKET BAK SLAGORDET — Editorial overrides
   Flaggskip-essay: TID, PLASS, ROLLE
   Prefix: .str- (essay) og .ci- (kalkulatoren)

   TYPOGRAFI: all TEKST bruker nettstedets skala (--text-*). Saken ble
   laget til demoen foer skalaen var systematisert og hadde sin egen
   stige; 42 stoerrelser er lagt om, og ni av dem laa under 12 px — den
   minste paa 9,5.

   Tolv stoerrelser staar igjen som HARDKODEDE piksler, med vilje. Alle
   er store TALL der stoerrelsen foelger geometrien, ikke typeskalaen:
   maaleskivens sifre er sentrert i en sirkel med fast radius, og
   kapittelnumrene er grafikk. Legges de paa skalaen, sprekker
   komposisjonen. De skal derfor IKKE «ryddes opp i» senere:
     .str-chapter-gate__number   .str-big-stat__number
     .str-calculator__result-value   .ci-gauge__num (3 brekkpunkt)
     .ci-saved__n   .ci-time-hero .n (3 brekkpunkt)   .ci-hr__kvm (+ sup)

   FARGER: hex byttet mot tokens der verdien var identisk. Igjen staar
   #5a6472, #18442b, #0d1b2e, #070e1a og #888 — de har ingen motpart i
   paletten og er gradientstopp/lokale nyanser.

   IBM Plex Mono (--ci-mono) er en tredje skrift, brukt utelukkende paa
   tall i kalkulatoren: monospace gir sifrene lik bredde saa kolonnene
   staar. Innholdsdrevet, ikke pynt — men den boer bli en systemrolle
   for tall hvis flere datadrevne saker kommer.
   ============================================ */

/* ---- Sticky scene requires overflow-x: clip ---- */
html, body {
  overflow-x: clip;
}

.art-sticky-scene__media {
  height: 100vh;
  max-height: none;
}

/* ---- Video hero support (shared CSS only styles img) ---- */
.art-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  will-change: transform;
  animation: artHeroKB 30s ease-out forwards;
}

/* ---- Lighten overlay: keep bottom darkness for title legibility, clear the rest ---- */
.art-hero__overlay {
  background: linear-gradient(180deg,
    rgba(10, 22, 40, 0) 0%,
    rgba(10, 22, 40, 0) 55%,
    rgba(10, 22, 40, 0.55) 75%,
    rgba(10, 22, 40, 0.92) 90%,
    rgba(10, 22, 40, 1) 100%
  );
}
.art-hero__overlay::before {
  display: none;
}

/* Respect user preference for reduced motion — stop video autoplay behavior visually */
@media (prefers-reduced-motion: reduce) {
  .art-hero__media video {
    animation: none;
  }
}

/* ============================================
   STR-CHAPTER-GATE — Dramatic chapter opener
   ============================================ */
.str-chapter-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  margin: 0 auto clamp(20px, 3vh, 32px);
  max-width: 720px;
}

.str-chapter-gate__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 clamp(14px, 2vh, 22px);
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
}

.str-chapter-gate__label::before,
.str-chapter-gate__label::after {
  content: '';
  display: inline-block;
  width: clamp(32px, 4vw, 56px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.str-chapter-gate__number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 3.2394rem + 7.5117vw, 10rem);
  line-height: var(--linje-tett);
  letter-spacing: var(--sperring-tett);
  color: var(--color-text-inverse);
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

/* On light section backgrounds */
.art-section--cream .str-chapter-gate__number,
.art-section--light .str-chapter-gate__number {
  color: var(--color-text-primary);
  text-shadow: none;
}

.str-chapter-gate__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: var(--linje-etikett);
  color: rgba(250, 248, 245, 0.8);
  max-width: 560px;
  margin: 0;
}

.art-section--cream .str-chapter-gate__tagline,
.art-section--light .str-chapter-gate__tagline {
  color: var(--color-text-secondary);
}

/* ============================================
   STR-CLOCKS — Two clock-face comparison (Oslo vs Lister commute)
   ============================================ */
.str-clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  max-width: 640px;
  margin: clamp(40px, 6vh, 72px) auto clamp(12px, 1.6vh, 18px);
  padding: 0;
}

.str-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vh, 10px);
  text-align: center;
  margin: 0;
}

.str-clock__label {
  order: -1;
  font-family: var(--font-body);
  font-size: var(--etikett-liten);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.82);
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.art-section--cream .str-clock__label,
.art-section--light .str-clock__label {
  color: var(--color-text-secondary);
}

.str-clock__face {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.str-clock__ticks line {
  stroke: rgba(250, 248, 245, 0.32);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.art-section--cream .str-clock__ticks line,
.art-section--light .str-clock__ticks line {
  stroke: rgba(10, 22, 40, 0.32);
}

.str-clock__ring {
  fill: none;
  stroke: rgba(250, 248, 245, 0.1);
  stroke-width: 1.5;
}

.art-section--cream .str-clock__ring,
.art-section--light .str-clock__ring {
  stroke: rgba(10, 22, 40, 0.1);
}

.str-clock__arc {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 5;
  stroke-linecap: round;
}

.str-clock__hand {
  stroke: rgba(250, 248, 245, 0.82);
  stroke-width: 2;
  stroke-linecap: round;
}

.art-section--cream .str-clock__hand,
.art-section--light .str-clock__hand {
  stroke: rgba(10, 22, 40, 0.75);
}

.str-clock__hub {
  fill: var(--color-gold);
}

.str-clock__time {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: var(--sperring-tett);
  color: var(--color-text-inverse);
  margin-top: clamp(10px, 1.6vh, 16px);
}

.art-section--cream .str-clock__time,
.art-section--light .str-clock__time {
  color: var(--color-text-primary);
}

.str-clock__unit {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(250, 248, 245, 0.7);
}

.art-section--cream .str-clock__unit,
.art-section--light .str-clock__unit {
  color: var(--color-text-secondary);
}

.str-clocks__note {
  font-family: var(--font-body);
  /* Broedskriften har ingen kursivsnitt; vinkelen settes av oss. */
  font-style: oblique 14deg;
  font-size: var(--text-xs);
  text-align: center;
  color: rgba(250, 248, 245, 0.55);
  margin: 0 auto clamp(28px, 4vh, 48px);
  max-width: 540px;
}

.art-section--cream .str-clocks__note,
.art-section--light .str-clocks__note {
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .str-clocks {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 300px;
  }
}

/* ============================================
   STR-PROOF-CARD — Mini card linking to folk-stories (with portrait)
   ============================================ */
/* Kortene kommer fra registeret og kan bli færre (RegisterSakKort): et kort
   som står alene, beholder kortbredden og midtstilles i stedet for å
   strekkes over hele spalten. */
.str-proof-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
  justify-content: center;
  gap: clamp(16px, 2vw, 24px);
  max-width: 920px;
  margin: clamp(32px, 4vh, 48px) auto;
}

.str-proof-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(250, 248, 245, 0.04);
  border: 1px solid rgba(250, 248, 245, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 400ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 400ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.art-section--cream .str-proof-card,
.art-section--light .str-proof-card {
  /* Hvit flate, ikke alfa over kremen: aksentteksten (pila) ga 4,48:1 på
     den grå blandingen og 4,67 eller mer på hvitt. */
  background: var(--surface-card-light);
  border-color: rgba(10, 22, 40, 0.08);
}

.str-proof-card:hover,
.str-proof-card:focus-visible {
  background: rgba(250, 248, 245, 0.08);
  border-color: rgba(196, 145, 138, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.art-section--cream .str-proof-card:hover,
.art-section--light .str-proof-card:hover {
  background: rgba(196, 145, 138, 0.06);
}

.str-proof-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(250, 248, 245, 0.04);
}

.str-proof-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.str-proof-card:hover .str-proof-card__image img,
.str-proof-card:focus-visible .str-proof-card__image img {
  transform: scale(1.05);
}

.str-proof-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 24px);
  flex: 1;
}

.str-proof-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--linje-kort);
  letter-spacing: var(--sperring-tett);
  color: var(--color-text-inverse);
  margin: 0;
  transition: color 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.art-section--cream .str-proof-card__title,
.art-section--light .str-proof-card__title {
  color: var(--color-text-primary);
}

.str-proof-card:hover .str-proof-card__title,
.str-proof-card:focus-visible .str-proof-card__title {
  color: var(--color-gold);
}

.str-proof-card__excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--linje-brod-tett);
  color: rgba(250, 248, 245, 0.7);
  margin: 0;
}

.art-section--cream .str-proof-card__excerpt,
.art-section--light .str-proof-card__excerpt {
  color: var(--color-text-secondary);
}

.str-proof-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--sperring-sm);
  /* Aksenten som tekst, etter bunnen (CLAUDE.md, «Farge på tekst»): leira
     selv ga 2,2:1 som liten tekst på krem. */
  color: var(--aksent-tekst-mork);
  transition: gap 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.art-section--cream .str-proof-card__arrow,
.art-section--light .str-proof-card__arrow {
  color: var(--aksent-tekst);
}

.str-proof-card:hover .str-proof-card__arrow,
.str-proof-card:focus-visible .str-proof-card__arrow {
  gap: 12px;
}

/* ============================================
   STR-BIG-STAT — Single prominent statistic
   ============================================ */
.str-big-stat {
  max-width: 620px;
  margin: clamp(40px, 6vh, 72px) auto;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 3.5vw, 40px);
  text-align: center;
  background: linear-gradient(180deg, rgba(196, 145, 138, 0.06) 0%, rgba(196, 145, 138, 0.12) 100%);
  border-top: 1px solid rgba(196, 145, 138, 0.3);
  border-bottom: 1px solid rgba(196, 145, 138, 0.3);
}

.str-big-stat__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--etikett-liten);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: clamp(14px, 2vh, 20px);
}

.str-big-stat__number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 2.1197rem + 3.7559vw, 5.5rem);
  line-height: var(--linje-tett);
  letter-spacing: var(--sperring-tett);
  color: var(--color-text-primary);
  display: block;
  margin: 0 auto clamp(14px, 2vh, 22px);
}

.art-section--dark .str-big-stat__number {
  color: var(--color-text-inverse);
}

.str-big-stat__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--brod);
  line-height: var(--linje-etikett);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.art-section--dark .str-big-stat__caption {
  color: rgba(250, 248, 245, 0.8);
}

/* Lenkene under tallet: seks kommuner, ett lag hver (punkt 7 paa
   arbeidslista, 10. sep 2026). Samme chip som kalkulatoren, saa artikkelen
   holder ett uttrykk. */
.str-big-stat__finn {
  margin-top: clamp(24px, 3.5vh, 36px);
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid rgba(196, 145, 138, 0.3);
}
.str-big-stat__finn-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--etikett);
  letter-spacing: var(--sperring-lg);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.str-big-stat__lenker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.str-big-stat__lenker a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--sperring-2xs);
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid rgba(196, 145, 138, 0.32);
  border-radius: 999px;
  padding: 7px 13px;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Pila sier «ut av huset» foer man klikker; aria-label sier det for
   skjermleseren. */
.str-big-stat__lenker a::after {
  content: '\2197';
  margin-left: 6px;
  opacity: 0.7;
}
.art-section--dark .str-big-stat__lenker a { color: rgba(250, 248, 245, 0.72); }
.str-big-stat__lenker a:hover,
.str-big-stat__lenker a:focus-visible {
  background: rgba(196, 145, 138, 0.18);
  border-color: var(--color-gold);
  color: var(--color-text-primary);
}
.art-section--dark .str-big-stat__lenker a:hover,
.art-section--dark .str-big-stat__lenker a:focus-visible { color: var(--color-text-inverse); }
.str-big-stat__lenker a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.str-big-stat__finn-note {
  font-family: var(--font-body);
  font-size: var(--brod-liten);
  line-height: var(--linje-brod-tett);
  color: var(--tekst-dempet);
  max-width: 460px;
  margin: 16px auto 0;
}
.art-section--dark .str-big-stat__finn-note { color: var(--tekst-dempet-mork); }

/* ============================================
   STR-CALCULATOR — Interactive regnestykke
   ============================================ */
.str-calculator {
  max-width: 760px;
  margin: clamp(40px, 6vh, 72px) auto;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
  background: rgba(250, 248, 245, 0.05);
  border: 1px solid rgba(196, 145, 138, 0.3);
  border-radius: var(--radius-xl);
}

.str-calculator__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(28px, 3.5vh, 44px);
  margin-bottom: clamp(28px, 3.5vh, 44px);
  border-bottom: 1px solid rgba(250, 248, 245, 0.12);
}

.str-calculator__input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.str-calculator__label {
  font-family: var(--font-body);
  font-size: var(--etikett-liten);
  font-weight: 700;
  letter-spacing: var(--sperring-lg);
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.72);
}

.str-calculator__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid rgba(196, 145, 138, 0.4);
  padding: 6px 0;
  transition: border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.str-calculator__input-wrap:focus-within {
  border-bottom-color: var(--color-gold);
}

/* Tydelig fokusring, ikke bare en tone (WCAG 2.4.7, samlet gjennomgang 28. sep 2026).
   Tallfeltet hadde ingen fokusmarkering; ringen går rundt feltet. */
.str-calculator__input-wrap:focus-within { outline: 2px solid var(--color-aurora); outline-offset: 4px; border-radius: 4px; }
.str-calculator__input-wrap input {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--linje-tett);
  color: var(--color-gold);
  background: transparent;
  border: none;
  outline: none;
  width: 3.2ch;
  flex: 0 0 auto;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.str-calculator__steppers {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.str-calculator__stepper {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(196, 145, 138, 0.32);
  border-radius: 999px;
  color: rgba(250, 248, 245, 0.75);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--linje-tett);
  cursor: pointer;
  padding: 0;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.str-calculator__stepper:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(196, 145, 138, 0.12);
}

.str-calculator__stepper:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.str-calculator__input-wrap input::-webkit-outer-spin-button,
.str-calculator__input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.str-calculator__input-unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(250, 248, 245, 0.6);
  white-space: nowrap;
}

.str-calculator__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.str-calculator__chip {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--sperring-2xs);
  color: rgba(250, 248, 245, 0.72);
  background: transparent;
  border: 1px solid rgba(196, 145, 138, 0.32);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.str-calculator__chip:hover {
  border-color: rgba(196, 145, 138, 0.7);
  color: var(--color-text-inverse);
}

.str-calculator__chip:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.str-calculator__chip.is-selected {
  background: rgba(196, 145, 138, 0.18);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.str-calculator__disclaimer {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  /* Broedskriften har ingen kursivsnitt; vinkelen settes av oss. */
  font-style: oblique 14deg;
  line-height: var(--linje-brod-tett);
  color: rgba(250, 248, 245, 0.5);
  text-align: center;
  max-width: 540px;
  margin: clamp(18px, 2.4vh, 26px) auto 0;
}

.str-calculator__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
}

.str-calculator__result-block {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 14px);
}

.str-calculator__result-label {
  font-family: var(--font-body);
  font-size: var(--etikett-liten);
  font-weight: 700;
  letter-spacing: var(--sperring-xl);
  text-transform: uppercase;
  color: var(--color-gold);
}

.str-calculator__result-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.5183rem + 1.2019vw, 2.6rem);
  font-weight: 400;
  line-height: var(--linje-tett);
  color: var(--color-text-inverse);
  letter-spacing: var(--sperring-tett);
}

.str-calculator__examples {
  list-style: none;
  padding: 0;
  margin: clamp(12px, 1.8vh, 18px) 0 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
}

.str-calculator__examples li{
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--brod-kort);
  color: rgba(250, 248, 245, 0.78);
}

.str-calculator__examples li strong {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-inverse);
  margin-right: 4px;
}

.str-calculator__space-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(4px, 0.8vh, 8px);
}

.str-calculator__space-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(14px, 2vw, 20px);
  background: rgba(250, 248, 245, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(250, 248, 245, 0.06);
}

.str-calculator__space-col--highlight {
  background: rgba(196, 145, 138, 0.1);
  border-color: rgba(196, 145, 138, 0.3);
}

.str-calculator__space-place {
  font-family: var(--font-body);
  font-size: var(--etikett-liten);
  font-weight: 700;
  letter-spacing: var(--sperring-xl);
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 4px;
}

.str-calculator__space-col--highlight .str-calculator__space-place {
  color: var(--color-gold);
}

.str-calculator__space-kvm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: var(--linje-tett);
  letter-spacing: var(--sperring-tett);
  color: var(--color-text-inverse);
  margin-bottom: 6px;
}

.str-calculator__space-detail {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: var(--linje-etikett);
  color: rgba(250, 248, 245, 0.65);
}

@media (max-width: 640px) {
  .str-calculator__inputs,
  .str-calculator__results {
    grid-template-columns: 1fr;
  }
  .str-calculator__space-pair {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   STR-CLOSING-QUESTION — Final hanging question
   ============================================ */
.str-closing-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--linje-kort);
  letter-spacing: var(--sperring-tett);
  color: var(--color-gold);
  text-align: center;
  max-width: 640px;
  margin: clamp(40px, 6vh, 72px) auto 0;
  padding: clamp(28px, 4vh, 48px) 0 0;
  border-top: 1px solid rgba(196, 145, 138, 0.25);
}

/* ============================================
   STR-STICKY-CREDIT — closing sticky scene caption
   ============================================ */
.str-sticky-credit {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 3;
  font-family: var(--font-body);
  font-size: var(--etikett-liten);
  font-weight: 700;
  letter-spacing: var(--sperring-xl);
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.9);
  padding: 8px 14px;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   CI — "The Calculation" instrument calculator
   Self-contained, namespaced under .ci so it never collides with
   the surrounding article styles. Ported from the design handoff
   (direction-3), adapted from full-viewport to a contained block
   and made responsive. Math is identical to the original.
   Fonts: Cormorant Garamond + Glacial Indifference (already loaded)
   + IBM Plex Mono (linked from the page head).
   ============================================================ */
.ci {
  --ci-aurora: var(--color-aurora);
  --ci-gold: var(--color-gold);
  --ci-gold-soft: rgba(196, 145, 138, 0.5);
  --ci-warm-white: var(--color-warm-white);
  --ci-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ci-display: 'Cormorant Garamond', Georgia, serif;
  --ci-body: 'Glacial Indifference', -apple-system, BlinkMacSystemFont, sans-serif;
  --ci-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  width: min(1080px, 94vw);
  /* Center a block that is wider than its 800px article column, using margin
     only (no transform) so the article's [data-reveal] fade — which animates
     `transform` and would otherwise clobber a transform-based centering — can
     coexist. 100% here resolves to the parent column width. */
  margin-left: calc((100% - min(1080px, 94vw)) / 2);
  margin-top: clamp(32px, 5vh, 56px);
  margin-bottom: clamp(32px, 5vh, 56px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(120% 100% at 50% 0%, #0d1b2e, #070e1a 70%);
  color: var(--ci-warm-white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.85);
}
.ci *, .ci *::before, .ci *::after { box-sizing: border-box; }
.ci sup { vertical-align: super; }

.ci__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/posts/regnestykket/plass.jpg') center 60% / cover no-repeat;
  opacity: 0.09; filter: blur(3px) saturate(0.8);
}
.ci__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(125, 211, 192, 0.025) 0 1px, transparent 1px 3px);
}

.ci-tnum, .ci-tnum * { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- top bar ---- */
.ci-topbar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px 24px; flex-wrap: wrap;
  padding: 18px 32px; border-bottom: 1px solid rgba(125, 211, 192, 0.16);
}
.ci-topbar__title { display: flex; align-items: baseline; gap: 16px; }
.ci-topbar__title .t { font-family: var(--ci-display); font-style: italic; font-size: var(--text-2xl); line-height: var(--linje-tett); }
.ci-topbar__title .s { font-family: var(--ci-mono); font-size: var(--etikett-liten); letter-spacing: var(--sperring-lg); text-transform: uppercase; color: var(--ci-aurora); }
.ci-topbar__read { font-family: var(--ci-mono); font-size: var(--text-xs); letter-spacing: var(--sperring-sm); color: rgba(251, 249, 246, 0.6); }
.ci-topbar__read b { color: var(--ci-gold); font-weight: 400; }

/* ---- grid ---- */
.ci-grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 0.95fr 1.05fr 1fr; }
.ci-panel { padding: 28px 32px; display: flex; flex-direction: column; min-width: 0; }
.ci-panel + .ci-panel { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.ci-panel__label { font-family: var(--ci-mono); font-size: var(--etikett-liten); letter-spacing: var(--sperring-xl); text-transform: uppercase; color: rgba(251, 249, 246, 0.5); }
.ci-panel__label b { color: var(--ci-aurora); font-weight: 400; }

/* ---- gauge ---- */
.ci-gauge-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 12px; }
.ci-gauge { position: relative; width: 280px; max-width: 100%; aspect-ratio: 1; cursor: grab; }
.ci-gauge:active { cursor: grabbing; }
.ci-gauge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ci-gauge__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 6; stroke-linecap: round; }
.ci-gauge__fill { fill: none; stroke: var(--ci-aurora); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(125, 211, 192, 0.5)); transition: stroke-dasharray .15s linear; }
.ci-gauge__lister { fill: none; stroke: var(--ci-gold); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.ci-gauge__handle { fill: var(--ci-warm-white); stroke: var(--ci-aurora); stroke-width: 3; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.ci-gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ci-gauge__num { font-family: var(--ci-display); font-weight: 400; font-size: clamp(3.4375rem, 2.7113rem + 3.0986vw, 5.5rem); line-height: 0.8; }
.ci-gauge__unit { font-family: var(--ci-mono); font-size: var(--etikett-liten); letter-spacing: var(--sperring-xl); text-transform: uppercase; color: rgba(251, 249, 246, 0.55); margin-top: 18px; }
.ci-saved { margin-top: 14px; text-align: center; }
.ci-saved__n { font-family: var(--ci-display); font-size: clamp(1.7625rem, 1.5028rem + 1.108vw, 2.5rem); color: var(--ci-gold); }
.ci-saved__l { font-family: var(--ci-mono); font-size: var(--etikett-liten); letter-spacing: var(--sperring-md); text-transform: uppercase; color: rgba(251, 249, 246, 0.5); }

/* ---- time bars ---- */
.ci-time-hero { margin: 18px 0 28px; display: flex; align-items: baseline; gap: 12px; }
.ci-time-hero .n { font-family: var(--ci-display); font-weight: 700; font-size: clamp(3.125rem, 2.4648rem + 2.8169vw, 5rem); line-height: 0.8; }
.ci-time-hero .u { font-family: var(--ci-mono); font-size: var(--text-xs); letter-spacing: var(--sperring-lg); text-transform: uppercase; color: var(--ci-aurora); }
.ci-bars { display: flex; flex-direction: column; gap: 20px; }
.ci-bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ci-bar__name { font-family: var(--ci-display); font-style: italic; font-size: var(--text-lg); }
.ci-bar__val { font-family: var(--ci-mono); font-size: var(--text-sm); color: var(--ci-gold); }
.ci-bar__track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ci-bar__fill { height: 100%; border-radius: 3px; width: 0; background: linear-gradient(90deg, rgba(125, 211, 192, 0.5), var(--ci-aurora)); transition: width .6s var(--ci-ease-spring); box-shadow: 0 0 10px rgba(125, 211, 192, 0.4); }

/* ---- housing area diagram ---- */
.ci-house-stage {
  flex: 1; position: relative; min-height: 220px; margin-top: 18px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px;
}
.ci-area { position: absolute; left: 26px; bottom: 26px; transition: width .6s var(--ci-ease-spring), height .6s var(--ci-ease-spring); }
.ci-area--lister { border: 1.5px solid var(--ci-aurora); background: rgba(125, 211, 192, 0.08); }
.ci-area--oslo { border: 1.5px solid var(--ci-gold); background: rgba(196, 145, 138, 0.14); }
.ci-area__tag { position: absolute; font-family: var(--ci-mono); font-size: var(--etikett-liten); letter-spacing: var(--sperring-sm); white-space: nowrap; }
.ci-area--lister .ci-area__tag { top: -20px; left: 0; color: var(--ci-aurora); }
/* Venstre grense også: på telefon er Oslo-boksen smalere enn merkelappen,
 * som da vokste ut over venstre kant. Nå brytes den inne i boksen. */
.ci-area--oslo .ci-area__tag { left: 6px; right: 6px; bottom: 4px; text-align: right; white-space: normal; color: var(--ci-gold); }
.ci-house-read { display: flex; justify-content: space-between; margin-top: 18px; gap: 12px; }
.ci-hr { flex: 1; min-width: 0; }
.ci-hr__place { font-family: var(--ci-mono); font-size: var(--etikett-liten); letter-spacing: var(--sperring-lg); text-transform: uppercase; color: rgba(251, 249, 246, 0.6); }
.ci-hr--lister .ci-hr__place { color: var(--ci-aurora); }
.ci-hr--oslo .ci-hr__place { color: var(--ci-gold); }
.ci-hr__kvm { font-family: var(--ci-display); font-weight: 700; font-size: clamp(1.8875rem, 1.5838rem + 1.2958vw, 2.75rem); line-height: var(--linje-tett); margin: 3px 0; color: var(--ci-warm-white); }
.ci-hr--lister .ci-hr__kvm { color: var(--ci-aurora); }
.ci-hr__kvm sup { font-size: var(--text-base); }
.ci-hr__type { font-family: var(--ci-body); font-weight: 700; font-size: var(--text-sm); color: rgba(251, 249, 246, 0.95); line-height: var(--linje-kort); margin-top: 2px; }

/* ---- budget ruler ---- */
/* Trinnetikettene er sentrert paa merket sitt, saa den foerste stikker ~33px
 * ut til VENSTRE for skalaen og den siste ~36px ut til HOEYRE. Med 24px gap
 * kolliderte «BUDSJETT · NOK» med «1,5–2 mill» (maalt: 9px overlapp), og i
 * hoeyre ende var det bare 4px igjen til kanten.
 *
 * Etiketten flyttes til venstre med mindre venstremarg, og gapet dekker
 * overhenget. Hoeyremargen er oekt tilsvarende, saa begge endene har luft. */
.ci-ruler { position: relative; z-index: 2; border-top: 1px solid rgba(125, 211, 192, 0.16); padding: 16px 52px 14px 24px; display: flex; align-items: center; gap: 44px; }
.ci-ruler__label { font-family: var(--ci-mono); font-size: var(--etikett-liten); letter-spacing: var(--sperring-lg); text-transform: uppercase; color: rgba(251, 249, 246, 0.7); white-space: nowrap; }
.ci-ruler__scale { position: relative; flex: 1; height: 40px; }
.ci-ruler__line { position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: rgba(255, 255, 255, 0.32); }
.ci-tick { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.ci-tick__mark { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.5); transition: all .2s; }
/* --etikett-liten og ikke --text-xs: linjalens etiketter staar tett langs
 * en skala med fast bredde. --text-xs vokser til 14px paa brede skjermer, og
 * da flyter widgeten over med 6px og ytterste merkelapp klippes bort.
 * --etikett-liten holder seg mellom 12 og 12,8 px (tekstgulvet). */
.ci-tick__txt { font-family: var(--ci-mono); font-size: var(--etikett-liten); color: rgba(251, 249, 246, 0.72); transition: color .2s; white-space: nowrap; }
.ci-tick:hover .ci-tick__txt { color: var(--ci-warm-white); }
.ci-tick:hover .ci-tick__mark { background: rgba(255, 255, 255, 0.8); }
.ci-tick.is-on .ci-tick__txt { color: var(--ci-gold); }
.ci-tick.is-on .ci-tick__mark { height: 20px; background: var(--ci-gold); box-shadow: 0 0 8px var(--ci-gold-soft); }
.ci-knob { position: absolute; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--ci-gold); border: 3px solid #070e1a; box-shadow: 0 0 0 1px var(--ci-gold); transform: translateX(-50%); transition: left .35s var(--ci-ease-spring); pointer-events: none; }

.ci__foot { position: relative; z-index: 2; padding: 14px 40px 18px; text-align: center; font-family: var(--ci-display); font-style: italic; font-size: var(--text-xs); color: rgba(251, 249, 246, 0.4); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .ci-grid { grid-template-columns: 1fr; }
  .ci-panel + .ci-panel { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .ci-gauge { width: 250px; }
  .ci-gauge__num { font-size: clamp(3.05rem, 2.4074rem + 2.7418vw, 4.875rem); }
  .ci-time-hero .n { font-size: clamp(2.7375rem, 2.1609rem + 2.4601vw, 4.375rem); }
}
@media (max-width: 600px) {
  .ci-topbar { padding: 16px 20px; }
  .ci-topbar__title { gap: 12px; }
  .ci-topbar__title .t { font-size: var(--text-xl); }
  .ci-topbar__read { font-size: var(--etikett-liten); letter-spacing: var(--sperring-xs); }
  .ci-panel { padding: 24px 20px; }
  .ci-gauge { width: 220px; }
  .ci-gauge__num { font-size: clamp(2.575rem, 2.0292rem + 2.3286vw, 4.125rem); }
  .ci-time-hero .n { font-size: clamp(2.3813rem, 1.8994rem + 2.0563vw, 3.75rem); }
  .ci-ruler { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px 16px; }
  /* Merkelappene er sentrert paa hvert merke og stikker halve bredden ut i
   * hver ende. Slarken maa daekke den halvparten: 18px holdt til 9,5px-tekst,
   * ikke til 11. */
  .ci-ruler__scale { margin: 0 24px; }
  /* Stablet i kolonne betyr flex: 1 en grunnhoeyde paa 0, og skalaen
   * fikk hoeyde 0: etikettene hang ned i fotnoten. Fast hoeyde som rommer
   * merket (opptil 20px), gapet og to linjer etiketter. */
  .ci-ruler__scale { flex: none; height: 64px; }
  /* Sju etiketter paa 220-285px: annenhver legges en linje ned, saa
   * ingen staar oppaa naboen (de overlappet i alle par paa 320px). */
  .ci-tick:nth-child(even of .ci-tick) .ci-tick__txt { margin-top: 1lh; }
  /* Det valgte merket vokser 6px. Nedover skjoev det etiketten inn i raden
   * under; her vokser det oppover, og etikettene staar i ro. */
  .ci-tick.is-on .ci-tick__mark { margin-top: -6px; }
  /* Knotten (topp 12px, 16px hoey) naar ned til 28px; merket er 14px.
   * Gapet holder etikettene under knotten, saa den valgte etiketten ikke
   * dekkes: 28 - 14 + 1. */
  .ci-tick { gap: 15px; }
  /* Stoerrelsen er allerede 2xs i grunnregelen; her trengs bare tettere
   * setting for aa faa merkelappene inn paa smal skjerm. */
  .ci-tick__txt { letter-spacing: 0; }
  .ci__foot { padding: 12px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-bar__fill, .ci-area, .ci-knob, .ci-gauge__fill { transition: none; }
}

/* ---- Snarvei til testen ----
 * Inngangen til saken heter «Test selv». Da maa testen vaere naabar
 * uten aa lese tre kapitler foerst. Knappen staar rett under
 * ingressen — loeftet innfris med en gang, og teksten staar der
 * fortsatt for den som vil lese. */
.art-intro__hopp {
  margin: clamp(28px, 4vh, 44px) 0 0;
  /* Midtstilt: knappen er en snarvei ut av teksten, ikke en del av
     avsnittet (Tom 20. okt 2026). */
  text-align: center;
}
/* Pila peker ned, ikke til hoeyre. Da skal nudgingen ved hover ogsaa gaa
 * ned — den delte regelen flytter sidelengs, som er riktig for
 * «videre»-pilene den ellers brukes med. */
.art-intro__hopp .art-cta__btn:hover svg {
  transform: translateY(3px);
}

/* ---------- Skyveknappene: dra, tastatur og fokus ----------
 * Baade maaleren og budsjettlinjalen er ekte kontroller (role="slider",
 * tabindex="0"). Da maa de ogsaa SE ut som noe man kan ta i, og vise hvor
 * fokus staar naar man navigerer med tastatur.
 *
 * Bakgrunnen: knotten paa linjalen saa ut som en skyveknapp, men hadde ingen
 * lytter — den var dekorasjon. Den lovet noe den ikke gjorde. */
.ci-gauge,
.ci-ruler__scale {
  cursor: grab;
  /* pan-y, ikke none: et sveip over kontrollene skal scrolle siden. Foer
   * ble den som scrollet over maaleren staaende fast. Skriptet stopper
   * scrollingen bare naar tommelen treffer knotten (mobilgjennomgang,
   * okt 2026). */
  touch-action: pan-y;
}
.ci-gauge:active,
.ci-ruler__scale:active { cursor: grabbing; }

.ci-gauge:focus-visible,
.ci-ruler__scale:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 6px;
  border-radius: 4px;
}

.ci-knob { cursor: grab; }
.ci-knob:active { cursor: grabbing; }

/* Mobil: seksjonene slutter med artikkelkortene. Kortenes bunnmarg kom i
   tillegg til seksjonens, så kortkanten sto 80 px fra bakgrunnsskiftet
   mot 48 under. Nå er det 48 begge veier. */
@media (max-width: 767px) {
  .str-proof-cards:last-child { margin-bottom: 0; }
}
