/* ══════════════════════════════════════════════════════
   ArcticReply — arcticreply-felles.css
   Felles designsystem for alle sider på arcticreply.no
   Plassering : /home/arcticreply/public_html/css/arcticreply-felles.css
   Utviklet av: Tormod Kvisvik
   Firma      : Kvisvik Nettutvikling · org.nr 981309820
   Web        : https://kvisvik.no
   E-post     : kundeservice@kvisvik.no
   ArcticReply er et produkt av Kvisvik Nettutvikling.
   Brukes av: mat.arcticreply.no, penger.arcticreply.no,
              strom.arcticreply.no og alle fremtidige undersider.
   https://arcticreply.no
══════════════════════════════════════════════════════ */

/* ══ CSS-VARIABLER ══ */
:root {
  --bg:      #0d0f14;
  --bg2:     #151820;
  --bg3:     #1c2030;
  --border:  #252a3a;
  --text:    #e8eaf0;
  --text2:   #6b7280;
  --accent:  #f7b500;
  --green:   #22c55e;
  --red:     #ef4444;
  --blue:    #3b82f6;
  --radius:  10px;
  --font-h:  'Syne', sans-serif;
  --font-b:  'DM Sans', sans-serif;
}

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.75;
  padding-top: 80px;
}

/* ══ FLOATBAR ══ */
.floatbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1100px;
  z-index: 1000;
  background: rgba(21,24,32,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.floatbar-logo {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: .95rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.floatbar-logo span { color: var(--text2); font-weight: 400; }

.floatbar-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.floatbar-nav::-webkit-scrollbar { display: none; }
.floatbar-nav a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.floatbar-nav a:hover { background: var(--bg3); color: var(--text); }

.floatbar-chips { display: flex; gap: 6px; flex-shrink: 0; }
.chip {
  font-size: .75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text2);
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ══ TYPOGRAFI ══ */
h2 {
  font-family: var(--font-h);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}
h3 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 8px;
}
p { color: var(--text2); margin-bottom: 12px; font-weight: 300; }
p strong { color: var(--text); font-weight: 500; }

/* ══ LAYOUT ══ */
main { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
section { margin-bottom: 56px; }
.skillelinje { height: 1px; background: var(--border); margin: 48px 0; }

/* ══ SEKSJONSHEADER ══ */
.sek-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sek-ikon {
  width: 44px; height: 44px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

/* ══ KORT ══ */
.kort {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 14px 0;
}
.kort-tittel {
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.kort p { margin: 0; font-size: .95rem; }
.kort.red   { border-left: 3px solid var(--red); }
.kort.green { border-left: 3px solid var(--green); }
.kort.blue  { border-left: 3px solid var(--blue); }
.kort.gull  { border-left: 3px solid var(--accent); }

/* ══ ANALOGI ══ */
.analogi {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  margin: 18px 0;
  position: relative;
}
.analogi::before {
  content: '💡';
  position: absolute;
  top: -14px; left: 18px;
  font-size: 1.4rem;
  background: var(--bg3);
  padding: 0 6px;
  border-radius: 4px;
}
.analogi p { font-size: .97rem; }

/* ══ TABELL ══ */
.tabell-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead tr { background: var(--bg3); }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-h);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
}
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: var(--bg3); }
tbody td { padding: 11px 16px; color: var(--text2); vertical-align: top; }
tbody td:first-child { color: var(--text); font-weight: 500; }

/* ══ TIDSLINJE ══ */
.tidslinje { position: relative; padding-left: 28px; margin: 18px 0; }
.tidslinje::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -25px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-aar {
  font-family: var(--font-h);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.tl-tekst { font-size: .93rem; color: var(--text2); }

/* ══ METER-BARS ══ */
.meter-seksjon { margin: 22px 0; }
.meter-rad { margin-bottom: 16px; }
.meter-label-rad {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.meter-flagg { font-size: .9rem; font-weight: 500; color: var(--text); }
.meter-verdi { font-family: var(--font-h); font-weight: 800; font-size: .95rem; color: var(--accent); }
.meter-bar { height: 24px; background: var(--bg3); border-radius: 6px; overflow: hidden; }
.meter-fill {
  height: 100%;
  border-radius: 6px;
  display: flex; align-items: center;
  padding-left: 10px;
  font-size: .75rem; font-weight: 700;
  color: rgba(255,255,255,.85);
}
.fill-no   { background: #1d4ed8; }
.fill-se   { background: #006AA7; }
.fill-inf  { background: var(--red); }
.fill-maal { background: var(--green); }

/* ══ KRYSS-LENKER ══ */
.kryss-lenker { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.kryss-kort {
  flex: 1; min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
  display: block;
}
.kryss-kort:hover { border-color: var(--accent); transform: translateY(-2px); }
.kryss-kort .kk-label { font-size: .72rem; color: var(--text2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.kryss-kort .kk-tittel { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--text); }
.kryss-kort .kk-pil { color: var(--accent); margin-top: 8px; font-size: .85rem; }

/* ══ KILDER ══ */
.kilder {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.kilder h4 {
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 14px;
}
.kilder ul { list-style: none; }
.kilder li { margin-bottom: 8px; font-size: .88rem; color: var(--text2); }
.kilder a { color: var(--blue); text-decoration: none; }
.kilder a:hover { color: var(--accent); }
.kilder .oppdatert { margin-top: 14px; font-size: .8rem; color: var(--text2); font-style: italic; }

/* ══ FOOTER ══ */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  font-size: .8rem;
  color: var(--text2);
}
footer a { color: var(--accent); text-decoration: none; }

/* ══ RESPONSIV ══ */
@media (max-width: 600px) {
  .floatbar-chips { display: none; }
  body { padding-top: 72px; }
}
