/* fsdnorge.no — singleside dashboard */
:root {
  --canvas: #070b14;
  --panel: #0e1624;
  --panel-2: #121b2c;
  --ink: #ffffff;
  --body: #9aa3b5;
  --muted: #8b95a8;
  --meta: #7d8798;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .06);
  /* Accent palette sampled from Ole's label text (Pillow) — do not invent */
  --salmon: #cd626a;   /* soft red/salmon */
  --mint: #8eccbc;     /* mint */
  --lavender: #b282ee; /* lavender */
  --peach: #df9f70;    /* peach */
  --blue: var(--mint); /* interactive / default accent */
  --red: var(--salmon);
  --amber: var(--peach);
  --green: var(--mint);
  --purple: var(--lavender);
  --r: 20px;
  --panel-inset: inset 0 0 0 1px rgba(255, 255, 255, .045);
  --wrap-max: 1360px;
  --wrap-pad: 36px 28px 72px;
  --wrap-pad-sm: 24px 14px 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  background: var(--canvas);
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: var(--wrap-pad);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— Top brand + anchor nav —— */
.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--salmon);
  padding-bottom: 2px;
}
.brand-mark:hover { text-decoration: none; color: #fff; }

/* —— 3-column dashboard —— */
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(200px, 0.72fr) minmax(260px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.col {
  min-width: 0;
}
.col-head {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 14px;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  padding-bottom: 8px;
  display: inline-block;
}
.col-feed .col-head { border-bottom-color: var(--salmon); }
.col-timeline .col-head { border-bottom-color: var(--mint); }
.col-status .col-head { border-bottom-color: var(--lavender); }

.panel {
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--panel-inset);
  padding: 22px 22px 20px;
}

/* —— Feed (left) —— */
.feed-panel { padding: 8px 4px 12px; }
.feed {
  list-style: none;
}
.feed-item {
  padding: 18px 18px 16px;
  border-radius: 16px;
  margin-bottom: 6px;
  transition: background .15s ease;
}
.feed-item:hover {
  background: rgba(255, 255, 255, .025);
}
.feed-item + .feed-item {
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  margin-bottom: 0;
  padding-top: 20px;
}
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.feed-when {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.feed-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.feed-title a { color: #fff; }
.feed-title a:hover { color: var(--blue); text-decoration: underline; }
.feed-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 8px;
}
.feed-why {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.feed-why strong {
  color: #c5cddb;
  font-weight: 500;
}
.feed-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 24px 18px;
}
.feed-foot {
  margin-top: 16px;
  padding: 12px 18px 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--meta);
}

/* Tag capsules */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #c5cddb;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}
.badge.svv i { background: var(--mint); }
.badge.svv { border-color: rgba(142, 204, 188, .35); }
.badge.circabc i { background: var(--peach); }
.badge.circabc { border-color: rgba(223, 159, 112, .35); }
.badge.norway i { background: var(--salmon); }
.badge.norway { border-color: rgba(205, 98, 106, .4); }
.badge.tcmv-vote i { background: var(--peach); }
.badge.tcmv-vote { border-color: rgba(223, 159, 112, .35); }
.badge.news i { background: var(--lavender); }
.badge.news { border-color: rgba(178, 130, 238, .35); }

/* —— Timeline (middle) —— */
.timeline-panel {
  padding: 20px 18px 18px;
}
.timeline {
  list-style: none;
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding-left: 0;
}
.timeline li {
  padding: 0 0 18px 16px;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(142, 204, 188, .18);
}
.timeline li.neste::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(223, 159, 112, .22);
}
.timeline li.langsiktig::before {
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(178, 130, 238, .2);
}
.timeline .when {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.timeline .what {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: #c5cddb;
}

/* —— Status cards (right) —— */
.status-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-card {
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--panel-inset);
  padding: 22px 20px 18px;
  border-left: 3px solid var(--mint);
}
#kort-norge { border-left-color: var(--salmon); }
#kort-norge .stat-bar-fill { background: var(--salmon); }
#kort-tcmv-cd { border-left-color: var(--peach); }
#kort-tcmv { border-left-color: var(--peach); }
#kort-tcmv .stat-bar-fill:not(.gradient) { background: var(--peach); }
#kort-land { border-left-color: var(--mint); }
#kort-land .mini-bar > span { background: var(--mint); }
#kort-series { border-left-color: var(--lavender); }
.stat-pct {
  font-variant-numeric: tabular-nums;
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.04em;
  color: #fff;
}
.stat-pct .pct {
  font-size: .4em;
  font-weight: 500;
  margin-left: 1px;
  color: rgba(255, 255, 255, .38);
  vertical-align: super;
}
.stat-label {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.stat-bar {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: #2a3344;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}
.stat-bar-fill.gradient {
  background: linear-gradient(90deg, var(--salmon) 0%, var(--peach) 32%, var(--mint) 66%, var(--lavender) 100%);
}

.countdown-card .cd-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}
.countdown-card .cd-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0 2px;
}
.unit {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 12px 4px 10px;
  text-align: center;
  box-shadow: var(--panel-inset);
}
.unit .n {
  font-variant-numeric: tabular-nums;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1;
  color: #fff;
}
.unit .u {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: lowercase;
}
.cd-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--meta);
}
.cd-done {
  margin: 14px 0 4px;
  padding: 14px 12px;
  background: rgba(223, 159, 112, .1);
  border: 1px solid rgba(223, 159, 112, .28);
  border-radius: 12px;
  color: var(--peach);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.split-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.split-stats .n {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.15;
}
.split-stats .lbl {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.split-stats .mini-bar {
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: #2a3344;
  overflow: hidden;
}
.split-stats .mini-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

/* —— Footer —— */
.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--meta);
  font-size: 13px;
  line-height: 1.55;
}
.site-footer strong {
  color: #c5cddb;
  font-weight: 500;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .dash {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr);
  }
  .col-timeline {
    grid-column: 1 / -1;
    order: 3;
  }
  .col-feed { order: 1; }
  .col-status { order: 2; }
  .timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0 20px;
    border-left: none;
    margin-left: 0;
  }
  .timeline li {
    border-left: 1px solid var(--line);
    margin-left: 6px;
    padding-bottom: 16px;
  }
}

@media (max-width: 720px) {
  .wrap { padding: var(--wrap-pad-sm); }
  .dash {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .col-feed { order: 1; }
  .col-status { order: 2; }
  .col-timeline { order: 3; }
  .timeline {
    display: block;
    border-left: 1px solid var(--line);
    margin-left: 6px;
  }
  .timeline li {
    margin-left: 0;
  }
  .feed-title { font-size: 16px; }
  .stat-card { padding: 18px 16px 16px; }
  .panel, .timeline-panel { padding: 18px 16px; }
  .units { gap: 5px; }
  .unit { padding: 10px 2px 8px; border-radius: 10px; }
}
