@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Lexend:wght@400;500;600;700&display=swap');

/* The HTML `hidden` attribute must win over component display rules (.btn, .card, etc.),
   otherwise hidden-but-styled elements (e.g. the save-project button) still show. */
[hidden] { display: none !important; }

/* Direction A · Vatn — dyslexia-first palette (design.md). Token NAMES kept stable so the
   hundreds of inline var(--x) refs across pages remap in one place. */
:root {
  --bg: #eaf1f2;          /* soft cool paper */
  --surface: #ffffff;
  --ink: #16323d;         /* soft near-black slate (never pure black) */
  --ink-2: #46606b;       /* body / secondary */
  --muted: #7e939b;       /* captions, hints, labels */
  --line: #d6e1e4;        /* borders, dividers */
  --water: #1f6f8b;       /* primary: brand, buttons, links, emphasis */
  --water-2: #2e8aa8;     /* lighter primary */
  --energy: #cf8326;      /* energy accent: results, notices, "kostur" */
  --energy-2: #e0a258;
  --good: #2f7d4f;        /* positive / savings */
  --warn: #b06a1c;

  /* soft panel tints (design.md §2) — replace the ~25 ad-hoc inline hexes */
  --water-soft:  #eef3f9;  /* blue info panel */
  --good-soft:   #eef6ef;  /* green positive panel */
  --accent-soft: #f6e9d6;  /* energy/result panel */
  --primary-soft: #dcebef; /* chips / pills */
  --sand-soft:   #f1ede2;  /* warm soft surface (pills, dropdown hover) */

  --r-card: 14px;
  --r-inner: 10px;        /* nested-surface radius (design.md §4: inner panels 10px) */
  --r-pill: 999px;

  --space-block: 1.5rem;  /* intra-page section rhythm */

  /* type — calmer scale (dyslexia: avoid oversized display), base ~18px */
  --text-display: clamp(2.1rem, 1.6rem + 1.8vw, 2.9rem);
  --text-hero:    clamp(1.5rem, 1.2rem + 1.0vw, 1.95rem);
  --text-body:    clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
  /* role-based type scale (design.md §3) — replaces ~20 inline rem one-offs */
  --fs-xs:      0.72rem;  /* tiny labels / units / badges */
  --fs-eyebrow: 0.74rem;  /* eyebrow / step label (uppercase) */
  --fs-caption: 0.82rem;  /* caption / source / small note */
  --fs-small:   0.9rem;   /* secondary body */
  --fs-h3:      1.15rem;  /* card title */
  --fs-stat:    1.35rem;  /* stat value */
  --fs-stat-lg: 1.85rem;  /* large stat value */

  --space-section: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 1.65;            /* dyslexia: generous */
  letter-spacing: 0.012em;
  word-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.005em; line-height: 1.16; margin: 0; }
h1 { font-size: var(--text-display); line-height: 1.14; }
h2 { font-size: var(--text-hero); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--water); }

/* readability toolbar (Lesstillingar) — injected by app.js, design.md §6 */
.lesstillingar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem; padding: 0.4rem clamp(1rem, 4vw, 1.5rem); background: var(--primary-soft); border-bottom: 1px solid var(--line); font-family: 'Lexend', system-ui, sans-serif; font-size: 0.82rem; color: var(--ink-2); }
.lesstillingar .ls-lbl { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; color: var(--water); }
.lesstillingar .ls-grp { display: inline-flex; gap: 0.25rem; }
.lesstillingar button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 7px; padding: 0.3rem 0.65rem; min-height: 34px; }
.lesstillingar button:hover { border-color: var(--water-2); }
.lesstillingar button b { color: var(--water); }
@media print { .lesstillingar { display: none !important; } }

/* shell — desktop uses the width (wider canvas); text measure capped separately below */
.shell { max-width: 1120px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) var(--space-section); }
/* readable text measure regardless of canvas width (design.md §3) */
.shell p { max-width: 62ch; }
.measure { max-width: 58ch; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
nav.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand .mark { display: none; }   /* design.md §5 — wordmark only, no icon */
.brand .name { font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 1.25rem; }
.brand .name em { color: var(--energy); font-style: normal; }

/* stepper */
.stepper {
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  margin: 1.5rem 0; font-size: 0.85rem; color: var(--muted);
}
.stepper a, .stepper span.step {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem; border-radius: var(--r-pill);
  text-decoration: none; color: inherit; border: 1px solid transparent;
}
.stepper .step .n {
  width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600;
}
.stepper .step.done .n { background: var(--good); color: #fff; }
.stepper .step.active { background: var(--ink); color: #fff; }
.stepper .step.active .n { background: var(--energy); color: #fff; }
.stepper .sep { width: 1rem; height: 1px; background: var(--line); }

/* progress — design.md §5: pill (Skref n af 7) + thin track w/ primary fill + plain-language label */
.progress { display: flex; align-items: center; gap: 0.85rem; margin: 1.25rem 0; flex-wrap: wrap; }
.progress-pill { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--primary-soft); color: var(--water); padding: 0.35rem 0.75rem; border-radius: var(--r-pill); white-space: nowrap; }
.progress-track { flex: 1; min-width: 120px; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--water); border-radius: 999px; transition: width .3s ease; }
.progress-label { font-size: 0.9rem; color: var(--ink-2); font-weight: 700; white-space: nowrap; }

/* hero */
.hero { padding: var(--space-section) 0 calc(var(--space-section) - 1rem); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.hero .eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--ink-2); }
.hero h1 { margin-top: 1rem; max-width: 22ch; }
.hero h1 em { color: var(--water); font-style: normal; }
.hero .lede { margin-top: 1.25rem; max-width: 60ch; color: var(--ink-2); font-size: 1.1rem; }

/* search */
.search {
  margin-top: 2rem; display: flex; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem; align-items: center; max-width: 38rem;
  box-shadow: 0 1px 0 rgba(15,22,32,0.04), 0 10px 30px -10px rgba(15,22,32,0.12);
}
.search svg { color: var(--muted); flex-shrink: 0; }
.search:focus-within { border-color: var(--water); box-shadow: 0 0 0 3px rgba(31,111,139,0.18); }
.search input { border: 0; flex: 1; font: inherit; padding: 0.65rem 0; background: transparent; outline: none; color: var(--ink); }
.search button {
  border: 0; background: var(--water); color: #fff; font: inherit; font-weight: 700;
  padding: 0.7rem 1.4rem; border-radius: var(--r-pill); cursor: pointer;
}
.search button:hover { background: #1a5e77; }
.search-note { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.search-wrap { position: relative; max-width: 38rem; }
.dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
  list-style: none; margin: 0; padding: 0.4rem; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px -10px rgba(15,22,32,0.18), 0 2px 6px rgba(15,22,32,0.06);
}
.dropdown .opt {
  padding: 0.7rem 0.9rem; border-radius: 10px; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.dropdown .opt:hover, .dropdown .opt.active { background: var(--sand-soft); }
.dropdown .opt-main { font-weight: 600; color: var(--ink); }
.dropdown .opt-sub  { font-size: 0.85rem; color: var(--muted); }
.dropdown .empty    { padding: 0.85rem; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* search + pick-card 2-col layout (page 1) */
.search-layout {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start;
  margin-top: 2rem;
}
body.picked .search-layout { grid-template-columns: 1fr; }
@media (min-width: 760px) { body.picked .search-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.search-col { min-width: 0; }
.search-col .search, .search-col .search-wrap { max-width: none; }

/* pick-card */
.pick-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.25rem 1.5rem 1.1rem;
  box-shadow: 0 10px 30px -12px rgba(15,22,32,0.18), 0 1px 0 rgba(15,22,32,0.04);
  animation: slideIn 0.3s ease;
}
body:not(.picked) .pick-card { display: none; }
@keyframes slideIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.pick-card .head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); margin-bottom: 0.85rem;
}
.pick-card .head h3 { margin: 0; font-size: 1.4rem; font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-weight: 500; }
.pill {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: var(--sand-soft); color: var(--ink-2);
  display: inline-block;
}
.kv-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; font-size: 0.9rem; }
.kv-mini > div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0; border-bottom: 1px dashed var(--line); }
.kv-mini span:first-child { color: var(--muted); }
.kv-mini span:last-child  { color: var(--ink); text-align: right; }
.actions { margin-top: 1.1rem; display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
/* buttons — design.md §5: primary solid --water white 700 10px; ghost 2px --line border */
.btn {
  font: inherit; font-weight: 700; padding: 0.7rem 1.4rem; border-radius: 10px; cursor: pointer; border: 2px solid var(--line);
  text-decoration: none; color: var(--ink-2); background: transparent; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
}
.btn-primary { background: var(--water); color: #fff; border-color: var(--water); }
.btn-primary:hover { background: #1a5e77; border-color: #1a5e77; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--water-2); }
.btn-accent { background: var(--energy); color: #fff; border-color: var(--energy); }   /* distinct from primary (flow) — secondary CTA */
.btn-accent:hover { background: #b06a1c; border-color: #b06a1c; }

/* collapsed line-item breakdown (audit §1.6) — headline in summary, rows on expand */
details.okd { margin-top: 0.85rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
details.okd > summary { cursor: pointer; font-weight: 700; color: var(--water); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; list-style: none; }
details.okd > summary::-webkit-details-marker { display: none; }
details.okd > summary::after { content: "sýna sundurliðun ▾"; font-size: var(--fs-caption); font-weight: 400; color: var(--muted); white-space: nowrap; }
details.okd[open] > summary::after { content: "fela ▴"; }
details.okd > summary strong { font-variant-numeric: tabular-nums; color: var(--ink); }
details.okd > *:not(summary) { margin-top: 0.6rem; }

/* section heads */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head .num {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 0.95rem; color: var(--muted);
  letter-spacing: 0.05em;
}

/* page-level layout */
.page-title { margin-bottom: 0.5rem; }
.page-title .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* grid */
/* 2-col on desktop, single column on mobile */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1.1fr 1fr; gap: 2rem; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.5rem 1.5rem 1.25rem;
}
.card h3 { margin-bottom: 0.85rem; }
.kv { display: grid; grid-template-columns: 11rem 1fr; row-gap: 0.55rem; column-gap: 1rem; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* intra-page section rhythm utility (replaces scattered inline margin-top:1.5rem) */
.section-gap { margin-top: var(--space-block); }

/* parcel SVG viewer */
.parcel-viewer {
  width: 100%; aspect-ratio: 16 / 10; background:
    radial-gradient(120% 80% at 50% 0%, #e8e2d2 0%, #d8d0bd 60%, #c9c0aa 100%);
  border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden;
  position: relative;
}
.parcel-viewer svg { display: block; width: 100%; height: 100%; }
.parcel-viewer .badge {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; background: rgba(255,255,255,0.85); color: var(--ink-2);
  border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.parcel-viewer .scale {
  position: absolute; bottom: 1rem; right: 1rem;
  font-size: 0.78rem; color: var(--ink); background: rgba(255,255,255,0.9);
  padding: 0.4rem 0.7rem; border-radius: 8px;
}
.parcel-viewer .compass {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; color: var(--ink);
}
.loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.9rem;
}

/* form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-row .field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.85rem; color: var(--ink-2); }
.form-row input[type=number] {
  font: inherit; padding: 0.65rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}
.radio-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.radio-group label {
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.45rem 0.95rem; cursor: pointer; font-size: 0.9rem; background: #fff;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.radio-group input { accent-color: var(--water); }
.toggle-bill {
  margin-top: 1rem; padding: 0.85rem 1rem; background: var(--sand-soft); border-radius: 10px;
  display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2);
}
.toggle-bill input { margin-top: 0.25rem; accent-color: var(--energy); }
.toggle-bill b { color: var(--ink); }

/* consumption summary numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
/* collapse on phones; !important beats inline per-page column counts */
@media (max-width: 720px) { .stats { grid-template-columns: 1fr !important; } }
.stat {
  padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-inner); background: #fff;
}
.stat .label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat .value { margin-top: 0.4rem; font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 1.85rem; line-height: 1; }
.stat .unit { color: var(--muted); font-family: inherit; font-size: 1rem; margin-left: 0.25rem; }
.stat.energy .value { color: var(--energy); }
.stat.water .value { color: var(--water); }
.stat.with-rows .row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-top: 0.45rem; padding-top: 0.45rem; border-top: 1px solid var(--line); }
.stat.with-rows .row:first-of-type { margin-top: 0.55rem; border-top: 0; padding-top: 0; }
.stat.with-rows .row .lbl { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.stat.with-rows .row .val { font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 1.35rem; line-height: 1; color: var(--water); font-variant-numeric: tabular-nums; }
.stat.with-rows .row .val.muted { color: var(--muted); }
.stat.with-rows .row .val .unit { font-size: 0.78rem; color: var(--muted); margin-left: 0.2rem; }

/* candidate sites table */
table.sites {
  width: 100%; border-collapse: collapse; margin-top: 0.5rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
table.sites th, table.sites td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
table.sites th { background: #faf7ef; color: var(--ink-2); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
table.sites td.num, table.sites th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.sites tr:last-child td { border-bottom: 0; }
.ih { cursor: help; color: var(--muted); font-size: 0.85em; vertical-align: 0.05em; }

/* hover/tap popover for info icons (shared; mirrors fjarmognun inline copy) */
.tip { position: relative; display: inline-block; cursor: help; color: var(--water); font-weight: 700; }
.tip-pop {
  position: absolute; left: 50%; top: 150%; transform: translateX(-50%); width: min(320px, 78vw);
  background: #0f1f17; color: #eaf2ec; font-weight: 400; font-size: 0.82rem; line-height: 1.45;
  text-transform: none; letter-spacing: 0; text-align: left; padding: 0.7rem 0.85rem; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease; z-index: 60;
}
.tip:hover .tip-pop, .tip:focus .tip-pop, .tip:focus-within .tip-pop { opacity: 1; visibility: visible; }
.tip-pop::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: #0f1f17;
}
table.sites .name { font-weight: 600; color: var(--water); }
table.sites .demo {
  display: inline-block; margin-left: 0.5rem; font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem; background: var(--sand-soft); color: var(--warn); border-radius: var(--r-pill);
  text-transform: uppercase;
}
table.sites .real {
  display: inline-block; margin-left: 0.5rem; font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem; background: #e0efe1; color: var(--good); border-radius: var(--r-pill);
  text-transform: uppercase;
}
table.sites .custom {
  display: inline-block; margin-left: 0.5rem; font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem; background: #e7e0ef; color: var(--water); border-radius: var(--r-pill);
  text-transform: uppercase;
}

/* savings bar */
.savings { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 760px) { .savings { grid-template-columns: 1.1fr 1fr; gap: 2rem; } }
.bar {
  display: flex; height: 56px; border-radius: var(--r-inner); overflow: hidden;
  border: 1px solid var(--line); background: #fff; margin-top: 1.25rem;
}
.bar > div { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.78rem; font-weight: 500; }
.bar .own { background: var(--energy); }
.bar .share { background: var(--water-2); }
.bar .sell { background: var(--water); }
.legend { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; color: var(--ink-2); }
.legend .swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 0.4rem; vertical-align: -2px; }

.totals { display: grid; gap: 0.6rem; }
.totals .row { display: flex; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.totals .row:last-child { border-bottom: 0; }
.totals .row strong { font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.totals .row.total { padding-top: 1rem; border-top: 1px solid var(--ink); }

/* page-nav (prev / next) */
.page-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: var(--space-section); padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.page-nav .btn-primary { padding: 0.85rem 1.6rem; }

/* fyrirvari */
.fyrirvari {
  margin-top: var(--space-section); padding: 1.25rem 1.5rem; background: var(--sand-soft); border-radius: var(--r-inner);
  font-size: 0.9rem; color: var(--ink-2); line-height: 1.6;
}
.fyrirvari strong { color: var(--ink); }

/* footer */
footer { margin-top: var(--space-section); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* notice — design.md §5: accent-soft bg, 4px accent left border, bold lead word */
.notice {
  background: #f6e9d6; border: 1px solid #ecd9b8; border-left: 4px solid var(--energy); color: var(--ink-2);
  padding: 1rem 1.25rem; border-radius: var(--r-inner); margin: 1rem 0;
}
.notice strong, .notice b { color: var(--ink); }

/* tariff breakdown */
table.tariff { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.88rem; }
table.tariff th, table.tariff td { padding: 0.5rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); }
table.tariff th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.tariff td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tariff td.neg { color: var(--good); }
table.tariff tr.group td {
  background: #faf7ef; color: var(--ink-2); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding-top: 0.85rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
table.tariff tr.total td {
  font-weight: 600; background: #fff; border-top: 1px solid var(--ink);
  padding-top: 0.85rem;
}
table.tariff tr.total td.num { color: var(--energy); }
.tariff-vsk { display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--sand-soft); color: var(--ink-2); margin-left: 0.3rem; }
.tariff-vsk.heat { background: #fef0d8; color: var(--warn); }
