/* ===== Bílasýn – hönnunarkerfi ===== */
:root {
  --bg: #f2f2f0;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --text: #0f1419;
  --muted: #5f6b7a;
  --faint: #8a95a3;
  --border: #e3e7ec;
  --accent: #0a66c2;
  --accent-soft: #e8f1fb;
  --brand: #ff5a1f;
  --good: #0f8a5f;
  --good-bg: #e5f5ee;
  --bad: #c73a1f;
  --bad-bg: #fcebe6;
  --warn: #b7791f;
  --warn-bg: #fdf4e3;
  --radius: 8px;
  --radius-sm: 6px;
  --head: 'Archivo', Inter, system-ui, sans-serif;
  --c-fuel: #e8590c;
  --c-ev: #0c9f6a;
  --c-car: #1c64d1;
  --c-fee: #8746d6;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px -12px rgba(16,24,40,.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f13;
    --surface: #151a20;
    --surface-2: #1b2129;
    --text: #e9ecef;
    --muted: #9aa5b1;
    --faint: #6b7684;
    --border: #262d36;
    --accent: #5aa9f5;
    --accent-soft: #14273b;
    --good: #3cc68f;
    --good-bg: #10291f;
    --bad: #f2735b;
    --bad-bg: #351a14;
    --warn: #e6b04a;
    --warn-bg: #2f2512;
    --shadow: none;
    --shadow-lg: 0 12px 32px -12px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, sans-serif; line-height: 1.5; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { letter-spacing: -0.015em; font-family: var(--head); }

/* ---- Haus ---- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--surface); border-top: 4px solid var(--brand); box-shadow: 0 1px 0 var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 900; font-size: 26px; color: var(--text); text-decoration: none; letter-spacing: -0.04em; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; display: block; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo b { color: var(--brand); }
.main-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: center; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15px; padding: 21px 12px 19px; white-space: nowrap; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { border-color: var(--brand); color: var(--brand); }
.head-date { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; line-height: 1.3; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---- Verðborði ---- */
.ticker { background: #111418; color: #f1f3f5; font-size: 13px; }
.ticker .wrap { display: flex; gap: 28px; height: 36px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.ticker span { white-space: nowrap; opacity: .75; }
.ticker b { opacity: 1; font-variant-numeric: tabular-nums; margin-left: 4px; }
.ticker .up { color: #ff8b73; } .ticker .down { color: #5fdcaa; }

/* ---- Almennt útlit ---- */
.page-head { padding: 36px 0 12px; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.1; margin: 0 0 8px; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 680px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 8px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card, .section + .section { margin-top: 16px; }
.section { margin: 20px 0; scroll-margin-top: 80px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.card-head h2 { margin: 0; font-size: 19px; }
.card-head p { margin: 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }

/* ---- Lykiltölur ---- */
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.kpi-value small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.good .kpi-value { color: var(--good); }
.kpi.bad .kpi-value { color: var(--bad); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.up { background: var(--bad-bg); color: var(--bad); }
.badge.down { background: var(--good-bg); color: var(--good); }
.badge.stable { background: var(--accent-soft); color: var(--accent); }
.badge.soon { background: var(--warn-bg); color: var(--warn); }

/* ---- Takkar & form ---- */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .seg button.active { background: var(--text); color: var(--bg); } }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: var(--text); opacity: .9; }
input, select { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); width: 100%; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
label.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.field .hint { font-weight: 400; color: var(--faint); font-size: 12px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 64px; }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; pointer-events: none; }
input[type=range] { padding: 0; accent-color: var(--brand); }

/* ---- Töflur ---- */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { position: sticky; top: 0; background: var(--surface); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; z-index: 1; }
th[data-sort] { cursor: pointer; user-select: none; }
th.sorted::after { content: " ↓"; } th.sorted.asc::after { content: " ↑"; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--surface-2); }
.pill-cheap { background: var(--good-bg); color: var(--good); font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.t-good { color: var(--good); font-weight: 600; } .t-bad { color: var(--bad); }
.disc { display: block; font-size: 12px; color: var(--faint); }
.co-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }

/* ---- Fréttir ---- */
.news-list { display: grid; gap: 2px; }
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.news-item:hover { background: var(--surface-2); }
.news-item .thumb { width: 112px; height: 76px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.news-item .thumb.ph { display: grid; place-items: center; font-size: 26px; }
.news-item h3 { font-size: 15px; margin: 0 0 4px; line-height: 1.35; }
.news-item p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--faint); margin-bottom: 3px; }
.news-meta .src { font-weight: 700; color: var(--muted); }

/* ---- Eiginleikaspjöld ---- */
.feature { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow); }
a.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); margin-bottom: 6px; }
.feature h3 { margin: 0; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }
.feature.disabled { opacity: .7; }

/* ---- Auglýsingapláss ---- */
.ad-slot { display: grid; place-items: center; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--surface-2) 10px 20px); }
.ad-slot::before { content: "Auglýsingapláss · " attr(data-size); }
.ad-leaderboard { height: 90px; margin: 16px 0; }
.ad-rect { height: 250px; }
.ad-inline { height: 100px; margin: 8px 0; }
.ads-off .ad-slot, .ads-off .ad-wrap, .ads-off .ad-label { display: none !important; }

/* ---- Annað ---- */
.chart-box { position: relative; height: 320px; }
.chart-box.sm { height: 200px; }
#map { height: 460px; border-radius: var(--radius-sm); z-index: 0; }
.notice { font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.skeleton { color: transparent !important; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 48px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }

@media (max-width: 960px) {
  .layout-side { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .kpi-value { font-size: 24px; }
  .live-dot { display: none; }
  .news-item { grid-template-columns: 84px 1fr; }
  .news-item .thumb { width: 84px; height: 64px; }
  .ad-leaderboard { height: 60px; }
  #map { height: 360px; }
}

/* ---- Neðri valmynd (sími) ---- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .main-nav { display: none; }
  body { padding-bottom: 68px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; justify-items: center; gap: 1px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .bottom-nav a span { font-size: 19px; line-height: 1.2; filter: grayscale(1); opacity: .7; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active span { filter: none; opacity: 1; }
}

/* ---- Síuflipar ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { opacity: .6; font-weight: 500; margin-left: 4px; }

/* ---- Stöðvaspjöld ---- */
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.st-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.st-card.best { border: 2px solid var(--good); }
.st-card .st-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.st-card h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.st-card .st-co { font-size: 13px; color: var(--muted); margin-top: 2px; }
.st-card .flag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--good); background: var(--good-bg); padding: 2px 7px; border-radius: 5px; margin-top: 6px; }
.st-card .flag.reg { color: var(--accent); background: var(--accent-soft); }
.fav { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--faint); padding: 2px; }
.fav.on { color: #f5a524; }
.st-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-price { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.st-price .lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.st-price .val { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.st-price .val.g { color: var(--good); } .st-price .val.r { color: var(--bad); }
.st-price .sub { font-size: 11px; color: var(--faint); }
.st-price.main { outline: 2px solid var(--border); }
.st-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.st-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* ---- Spá ---- */
.forecast { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.forecast .arrow { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.forecast .arrow.up { background: var(--bad-bg); color: var(--bad); }
.forecast .arrow.down { background: var(--good-bg); color: var(--good); }
.forecast .arrow.stable { background: var(--accent-soft); color: var(--accent); }
.forecast h3 { margin: 0 0 2px; font-size: 20px; }
.forecast p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- Forsíða ---- */
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.04; margin: 0 0 12px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff8a3d, var(--brand), #e5363b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 620px; }
.price-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-big { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.price-big .lbl { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--muted); font-size: 14px; }
.price-big .val { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.price-big .val small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-big .where { font-size: 14px; color: var(--muted); }
.price-big .row { display: flex; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.price-big .row b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .price-hero { grid-template-columns: 1fr; } .price-big .val { font-size: 40px; } }

/* ---- Reiknivélar ---- */
.calc-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.calc-form { display: grid; gap: 14px; }
.calc-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-big { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result-big small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.breakdown { display: grid; gap: 8px; margin-top: 16px; }
.bd-row { display: grid; grid-template-columns: 150px 1fr 110px; gap: 10px; align-items: center; font-size: 14px; }
.bd-track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bd-fill { height: 100%; border-radius: 99px; }
.bd-row .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--text); border-color: var(--brand); }
@media (max-width: 860px) { .calc-layout { grid-template-columns: 1fr; } .bd-row { grid-template-columns: 110px 1fr 90px; } .stat-row { grid-template-columns: 1fr 1fr; } }


/* ===== Fréttamiðlaútlit ===== */
.topic { display: inline-block; font-family: var(--head); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--c-car); }
.topic.Eldsneyti { color: var(--c-fuel); } .topic.Rafbílar { color: var(--c-ev); } .topic.Bílar { color: var(--c-car); } .topic.Gjöld { color: var(--c-fee); }
.story { display: block; text-decoration: none; color: inherit; }
.story .img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.story .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story:hover .img img { transform: scale(1.03); }
.story .img.ph { display: grid; place-items: center; background: linear-gradient(135deg, #1d2633, #0f141b); color: #fff; }
.story .img.ph span { font-family: var(--head); font-weight: 900; font-size: 22px; letter-spacing: -.03em; opacity: .9; padding: 16px; text-align: center; line-height: 1.15; }
.story .img.ph.Eldsneyti { background: linear-gradient(135deg, #f76707, #c92a2a); } .story .img.ph.Rafbílar { background: linear-gradient(135deg, #12b886, #0b7285); }
.story h3 { font-family: var(--head); font-weight: 800; font-size: 19px; line-height: 1.18; letter-spacing: -0.02em; margin: 10px 0 6px; }
.story:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.story .meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--faint); }
.story .meta .src { color: var(--muted); font-weight: 600; }
.story p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.story.lead h3 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -0.03em; margin-top: 14px; }
.story.lead .img { aspect-ratio: 16 / 8.5; }
.story.lead .img.ph span { font-size: clamp(28px, 4vw, 48px); }
.story.lead p { font-size: 16px; }
.story.row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.story.row:last-child { border-bottom: 0; }
.story.row h3 { font-size: 16px; margin: 2px 0 4px; }
.story.row .img { aspect-ratio: 4 / 3; }
.story.row .img.ph span { font-size: 13px; padding: 6px; }
.front-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.front-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--text); padding-top: 10px; margin: 36px 0 16px; }
.sec-title h2 { margin: 0; font-family: var(--head); font-size: 22px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.sec-title a { font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
.sec-title a:hover { color: var(--brand); }
.sec-title.fuel { border-color: var(--c-fuel); } .sec-title.fuel h2 { color: var(--c-fuel); }

/* verðgræja */
.pricebox { background: #111418; color: #f1f3f5; border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.pricebox h2 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; font-weight: 900; display: flex; justify-content: space-between; align-items: center; }
.pricebox h2 .live-dot { color: #9aa5b1; text-transform: none; letter-spacing: 0; font-family: Inter, sans-serif; font-weight: 500; }
.pb-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px solid #2a3039; text-decoration: none; color: inherit; }
.pb-row .l { font-size: 13px; color: #9aa5b1; }
.pb-row .v { font-family: var(--head); font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pb-row .v small { font-size: 15px; color: #9aa5b1; font-weight: 600; letter-spacing: 0; }
.pb-row .w { font-size: 12px; color: #9aa5b1; grid-column: 1 / -1; }
.pb-row .t { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #222a34; white-space: nowrap; }
.pb-row .t.up { color: #ff8b73; } .pb-row .t.down { color: #5fdcaa; } .pb-row .t.stable { color: #8cc4ff; }
.pb-fc { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.pb-fc .arrow { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; font-weight: 900; flex-shrink: 0; }
.pb-fc .arrow.up { background: #3a1c17; color: #ff8b73; } .pb-fc .arrow.down { background: #10291f; color: #5fdcaa; } .pb-fc .arrow.stable { background: #14273b; color: #8cc4ff; }
.pb-fc b { display: block; font-size: 14px; } .pb-fc span { font-size: 12px; color: #9aa5b1; }

.ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); text-align: right; margin-bottom: 3px; }
.ad-rect-c { width: 300px; max-width: 100%; margin: 28px auto; }

@media (max-width: 960px) {
  .front-top { grid-template-columns: 1fr; }
  .front-grid { grid-template-columns: 1fr 1fr; }
  .head-date { display: none; }
}
@media (max-width: 640px) {
  .front-grid { grid-template-columns: 1fr; }
  .story.row { grid-template-columns: 110px 1fr; }
  .logo { font-size: 22px; }
}

/* ---- Ferskleiki gagna ---- */
.fresh { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.fresh.ok::before { background: var(--good); }
.fresh.mid::before { background: var(--warn); }
.fresh.old { color: var(--bad); } .fresh.old::before { background: var(--bad); }

.cards-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cards-lbl { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cards-row .chips { flex: 1; }
.cards-row .chip { font-size: 13px; padding: 6px 12px; }

/* sjálfvirkar verðfréttir: grafísk "mynd" í stað ljósmyndar */
.story .img.gen { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 8%; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.12), transparent 55%), linear-gradient(135deg, #1d2633, #0b0f14); }
.story .img.gen.down { background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(135deg, #2b8a3e, #0b4f2c); }
.story .img.gen.up { background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(135deg, #e8590c, #a51d1d); }
.story .img.gen b { font-family: var(--head); font-weight: 900; font-size: clamp(26px, 4.2vw, 46px); letter-spacing: -.04em; line-height: 1; }
.story .img.gen span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-top: 8px; }
.story.lead .img.gen b { font-size: clamp(44px, 7vw, 88px); }
.story.row .img.gen { padding: 0 10px; }
.story.row .img.gen b { font-size: 20px; }
.story.row .img.gen span { display: none; }
.story.own .meta .src { color: var(--brand); }

.stale-bar { background: #fff3bf; color: #5c3c00; border-bottom: 1px solid #ffe066; font-size: 14px; font-weight: 600; }
.stale-bar .wrap { padding-top: 9px; padding-bottom: 9px; }

/* greinasíða */
.article { max-width: 760px; }
.article .kicker { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.article .kicker .src { color: var(--brand); font-weight: 800; }
.article h1 { font-family: var(--head); font-weight: 900; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 18px; }
.article .story { pointer-events: none; margin-bottom: 22px; }
.article .story .img.gen { aspect-ratio: 16 / 6; }
.article p.body { font-size: 18px; line-height: 1.65; margin: 0 0 18px; }
.article h2 { font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 30px 0 12px; }
.article .note { font-size: 13px; color: var(--muted); margin: -6px 0 18px; }
.article .tbl-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); padding: 10px 12px; }
.article td { padding: 10px 12px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.article td:not(:first-child), .article th:not(:first-child) { text-align: right; }
.article td.neg { color: var(--good); font-weight: 700; } .article td.pos { color: var(--bad); font-weight: 700; }
.article .art-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.article .art-method { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }

.st-link { color: inherit; text-decoration: none; } .st-link:hover { text-decoration: underline; }
.article a:not(.chip):not(.story) { color: var(--brand); }
.art-links .chip, .article .chip { text-decoration: none; }

/* auglýsingar með efni */
.ad-slot.filled { position: relative; overflow: hidden; border: 0; background: #111; display: block; }
.ad-slot.filled::before { content: none; }
.ad-leaderboard.filled { height: auto; aspect-ratio: 970 / 250; max-height: 250px; }
.ad-item { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: block; }
.ad-item.on { opacity: 1; z-index: 1; }
.ad-item .ad-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.85); }
.ad-item img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-dots { position: absolute; z-index: 2; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.ad-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.ad-dots i.on { background: #fff; }
@media (max-width: 760px) { .ad-leaderboard.filled { aspect-ratio: 820 / 312; } }
.ad-item .ad-bg.flat { filter: none; inset: 0; }
.ad-dots i.on { background: var(--brand); box-shadow: none; }

/* bílamarkaður: röðunarlistar */
.rank { display: grid; }
.rank-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--border); border-radius: 8px; }
.rank-row:last-child { border-bottom: 0; }
.rank-row.click { cursor: pointer; }
.rank-row.click:hover, .rank-row.sel { background: var(--surface-2); }
.rank-n { font-family: var(--head); font-weight: 900; font-size: 18px; color: var(--faint); text-align: center; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.rank-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-bar { height: 6px; background: var(--surface-2); border-radius: 99px; margin: 6px 0 4px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.rank-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.chg { font-weight: 700; color: var(--muted); }
.chg.up-good { color: var(--good); } .chg.down-bad { color: var(--bad); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.kpi-wrap .kpi-sub { white-space: normal; }

/* samanburður nýrra bíla */
.cmp-settings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.cmp-settings label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cmp-table th, .cmp-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.cmp-table th:first-child { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; white-space: nowrap; }
.cmp-table td { min-width: 170px; font-size: 15px; }
.cmp-table td.best { color: var(--good); font-weight: 800; }
.cmp-table tr.em td { font-weight: 700; }
.cmp-table tr.big td { font-size: 18px; font-family: var(--head); font-weight: 900; }
.cmp-table tr.big th { color: var(--text); }
.car-h-in { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 15px; }
.car-h-in .x { border: 0; background: var(--surface-2); color: var(--muted); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 11px; }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.pop-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.pop-top { display: flex; justify-content: space-between; align-items: center; }
.pop-rank { font-family: var(--head); font-weight: 900; font-size: 22px; color: var(--faint); }
.pop-card h3 { font-family: var(--head); font-weight: 800; font-size: 19px; margin: 0; letter-spacing: -.02em; }
.pop-card h3 span { color: var(--brand); }
.pop-price b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: block; }
.pop-price small { color: var(--muted); font-size: 12px; }
.pop-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.pop-card .btn { justify-content: center; }
.pop-card .btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 760px) { .cmp-settings { grid-template-columns: 1fr 1fr; } }
.story .img.gen.info { background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.16), transparent 55%), linear-gradient(135deg, #1c4e9a, #0b2453); }
/* myndskreyttar greinar: mynd hægra megin, dökkur halli undir merkinu vinstra megin, litarönd eftir tón */
.story .img.gen.art { background: linear-gradient(90deg, rgba(6,12,24,.88) 0%, rgba(6,12,24,.6) 38%, rgba(6,12,24,0) 70%), var(--art) right bottom / cover no-repeat, #0b2453; position: relative; }
.story .img.gen.art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #1c4e9a; }
.story .img.gen.art.down::after { background: #2fb344; }
.story .img.gen.art.up::after { background: #f03e3e; }
.story .img.gen.art.mixed::after { background: #f59f00; }
.story .img.gen.art b { text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.story.row .img.gen.art { background: linear-gradient(90deg, rgba(6,12,24,.75), rgba(6,12,24,.2)), var(--art) 75% center / cover no-repeat, #0b2453; }
/* slagorð undir merkinu */
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo .tagline { font-family: var(--body, Inter, sans-serif); font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--muted); margin-top: 4px; white-space: nowrap; }
@media (max-width: 1300px) { .logo .tagline { display: none; } }
#draftBadge { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #e8590c; color: #fff; font-weight: 700; font-size: 14px; padding: 11px 16px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (max-width: 760px) { #draftBadge { bottom: 76px; right: 12px; font-size: 13px; } }
body:has(.rv-card) #draftBadge { display: none; }

/* tilboð umboðanna */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.offer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.offer-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.offer-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef2f7, #dfe6ef); }
.offer-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-off { position: absolute; left: 10px; top: 10px; background: #2b8a3e; color: #fff; font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.offer-new { position: absolute; right: 10px; top: 10px; background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 9px; border-radius: 999px; }
.offer-body { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.offer-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.offer-body h3 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.offer-prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.offer-prices s { color: var(--muted); font-size: 14px; }
.offer-prices b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: var(--good); }
.offer-prices b small { font-size: 13px; font-weight: 600; color: var(--muted); }
.offer-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); align-items: center; }
.offer-link { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 13px; color: var(--brand); }
#umfTable td.best { color: var(--good); font-weight: 800; }

/* tilboðasíur */
.offer-filters{display:flex;flex-direction:column;gap:12px}
.offer-filters .seg{flex-wrap:wrap;align-self:flex-start}
.offer-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.offer-row label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--muted)}
.offer-row label.chk{flex-direction:row;align-items:center;gap:8px;font-size:14px;color:var(--text);padding:8px 0}
.offer-row label.chk input{width:18px;height:18px}
.btn-reset{background:none;border:1px solid var(--border);border-radius:8px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer;color:var(--muted)}
.btn-reset:hover{color:var(--text)}

/* verðmat */
.val-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.val-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.val-form input,.val-form select{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font:inherit;font-size:15px;background:var(--surface);color:var(--text)}
@media (max-width:900px){.val-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.val-form{grid-template-columns:1fr}}
.val-hero{margin-top:20px;padding:24px;border-radius:14px;background:linear-gradient(135deg,rgba(255,90,31,.10),rgba(255,90,31,.02));text-align:center}
.val-big{font-family:var(--head);font-weight:900;font-size:clamp(40px,7vw,64px);letter-spacing:-.03em;color:var(--brand);line-height:1.05;margin:6px 0 12px}
.val-range{display:flex;align-items:center;gap:12px;justify-content:center;font-weight:700;font-size:14px;margin-bottom:10px}
.val-bar{width:min(320px,40vw);height:8px;border-radius:99px;background:linear-gradient(90deg,rgba(255,90,31,.25),var(--brand),rgba(255,90,31,.25));position:relative}
.val-bar i{position:absolute;left:50%;top:-5px;width:4px;height:18px;margin-left:-2px;border-radius:2px;background:var(--text)}
.val-h3{margin:24px 0 10px;font-size:17px}
.val-future{display:flex;gap:10px;align-items:flex-end;height:190px}
.val-future div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;font-size:12px}
.val-future span{width:100%;max-width:70px;border-radius:8px 8px 0 0;background:var(--brand);opacity:.85}
.val-future div:first-child span{opacity:1}
.val-future div:not(:first-child) span{opacity:.45}
.val-future b{font-size:12px;white-space:nowrap}
.val-future small{color:var(--muted);font-weight:600}
.val-future div{min-width:0}
@media (max-width:520px){.val-future{gap:4px}.val-future b{font-size:10px}}

.val-compare{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin:20px 0 14px;padding:16px 18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.val-compare > div{flex:1 1 280px}
.val-btn{display:inline-block;background:var(--brand);color:#fff;font-weight:700;text-decoration:none;padding:11px 16px;border-radius:10px;white-space:nowrap}
.val-btn:hover{filter:brightness(.95)}
@media (max-width:520px){.val-btn{width:100%;text-align:center;white-space:normal}}

/* bíll vikunnar: mynd af bílnum á myndskreytingunni */
.story .img.gen.art.car { background: linear-gradient(90deg, rgba(6,12,24,.92) 0%, rgba(6,12,24,.7) 40%, rgba(6,12,24,.25) 100%), var(--art) right bottom / cover no-repeat, #0b2453; }
.story .img.gen.art.car .car-photo { position: absolute; right: 2%; bottom: 6%; width: 58%; height: 86%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.story .img.gen.art.car b, .story .img.gen.art.car span { position: relative; z-index: 1; }
.story.row .img.gen.art.car .car-photo { width: 70%; right: 0; }

/* alvöru ljósmynd af bílnum (t.d. frá framleiðanda) */
.story .img.gen.art.car.photo { background: #0b2453; overflow: hidden; }
.story .img.gen.art.car.photo .car-photo { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; filter: none; z-index: 0; }
.story .img.gen.art.car.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,12,24,.82) 0%, rgba(6,12,24,.4) 45%, rgba(6,12,24,0) 75%); }
.story .img.gen.art.car.photo b, .story .img.gen.art.car.photo span { z-index: 2; }
.story .img.gen.art.car.photo::after { z-index: 2; }

/* auglýsingar eftir sniði: wide (~3:1), portrait (4:5), tall (9:16) */
.ad-leaderboard.filled { aspect-ratio: 3 / 1; max-height: none; height: auto; }
@media (max-width: 760px) { .ad-leaderboard.filled { aspect-ratio: 3 / 1; } }
.ad-portrait { height: 250px; }
.ad-portrait.filled { aspect-ratio: 4 / 5; height: auto; }
.ad-tall { height: 400px; }
.ad-tall.filled { aspect-ratio: 9 / 16; height: auto; }
.ad-sticky { position: sticky; top: 84px; }
.ad-empty { display: none !important; }
.ad-slot.filled { border-radius: 10px; }
@media (max-width: 1000px) { .ad-sticky { display: none !important; } }
.ad-pair { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 760px) { .ad-pair { grid-template-columns: 1fr; } .ad-pair .ad-wrap { max-width: 360px; margin: 0 auto; width: 100%; } }
.offer-grid .ad-wrap.in-feed { display: flex; flex-direction: column; }
.offer-grid .ad-wrap.in-feed .ad-slot { flex: 1; }
.ad-wrap:has(.ad-leaderboard.filled) { max-width: 840px; margin-left: auto; margin-right: auto; }

/* höfundarlína ljósmynda í greinum */
.photo-credit { font-size: 11px; color: var(--faint); margin: 6px 0 0; text-align: right; }
.photo-credit a { color: inherit; }
/* bílamynd án bakgrunns (frá umboði): einfaldur dökkur bakgrunnur, engin teiknuð mynd */
.story .img.gen.art.car:not(.photo) { background: radial-gradient(120% 120% at 75% 60%, #2a3a55 0%, #0b1424 70%); }

/* valmynd: klippist ekki til vinstri og minnkar á meðalbreiðum skjám */
.main-nav { justify-content: safe center; }
@media (max-width: 1450px) { .main-nav a { padding-left: 9px; padding-right: 9px; font-size: 14.5px; } }
@media (max-width: 1250px) { .main-nav a { padding-left: 7px; padding-right: 7px; font-size: 14px; } }
@media (max-width: 1100px) { .main-nav a { padding-left: 5px; padding-right: 5px; font-size: 13.5px; } }

/* um, persónuvernd, 404 */
.prose { display: grid; gap: 18px; max-width: 780px; margin: 8px 0 20px; }
.prose h2 { font-size: 20px; margin: 0 0 10px; }
.prose p, .prose li { line-height: 1.6; }
.prose p { margin: 0 0 10px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.todo { background: #fff1c2; color: #7a4b00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.foot-links { width: 100%; }
.notfound { padding: 70px 0 60px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ódýrast nálægt mér */
.nearcheap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.nc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nc-head h2 { margin: 0; font-size: 17px; }
.nc-head .seg button { padding: 5px 12px; font-size: 13px; }
.nc-hint { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.nc-btn { width: 100%; justify-content: center; min-height: 44px; }
.nc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.nc-list li.best { border-color: var(--good); background: var(--good-bg); }
.nc-st { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.nc-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-d { grid-column: 2; font-size: 13px; color: var(--muted); }
.nc-p { font-weight: 800; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nc-p small { font-size: 12px; font-weight: 600; color: var(--muted); }
.nc-go { font-size: 13px; font-weight: 600; white-space: nowrap; }
.nc-save { margin: 12px 0 0; font-size: 14px; }

/* verðsaga stöðvar */
.st-hist { margin: 26px 0 6px; }
.st-hist .chart-box { height: 260px; }
.st-hist-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* Bílaleit */
.fd-form { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.fd-block h2 { margin: 0 0 12px; font-size: 18px; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.fd-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fd-grid label.fd-check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; align-self: end; padding-bottom: 6px; }
.fd-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.fd-calc { grid-column: 1 / -1; margin: 0; }
.fd-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 4px 0 8px; }
.fd-chips { flex-wrap: wrap; overflow: visible; margin-bottom: 10px; }
.fd-chips .chip { padding: 6px 12px; font-size: 13px; }
.fd-chips .chip.zero:not(.active) { opacity: .45; }
.fd-more { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.fd-grid-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.fd-card.over { opacity: .85; border-style: dashed; }
.fd-img { background: var(--surface-2); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.fd-img { position: relative; }
.fd-img img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; z-index: 1; background: var(--surface-2); }
.fd-body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; flex: 1; }
.fd-body .badge { justify-self: start; }
.fd-body h3 { font-family: var(--head); font-weight: 800; font-size: 19px; margin: 0; letter-spacing: -.02em; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-tags span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 2px 8px; }
.fd-price b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: block; }
.fd-price small { color: var(--muted); font-size: 12px; }
.fd-month { display: grid; gap: 4px; border-top: 1px solid var(--border); padding-top: 8px; font-size: 14px; }
.fd-month div { display: flex; justify-content: space-between; }
.fd-month span { color: var(--muted); }
.fd-month .tot { font-weight: 700; }
.fd-month .tot span { color: var(--text); }
.fd-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.fd-actions .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 13px; }
.fd-empty p { margin: 0; }
.fd-near { margin: 22px 0 12px; font-size: 16px; }
@media (max-width: 860px) { .fd-form { grid-template-columns: 1fr; } }
.fd-grid[hidden] { display: none; }
.fd-new { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; }
.fd-img > span:last-child { font-size: 40px; opacity: .25; }

/* ---- Valmynd: alltaf allir hlekkir sýnilegir, aldrei skrunað til hliðar ---- */
.site-header .wrap { max-width: 1440px; }
.main-nav { overflow: visible; }
@media (max-width: 1250px) and (min-width: 761px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 10px; }
  .site-header .logo { flex: 1; }
  .main-nav { order: 3; flex: 1 0 100%; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--border); margin-top: 10px; }
  .main-nav a, .main-nav a:is(*) { font-size: 14.5px; padding: 11px 10px 9px; }
}
@media (max-width: 920px) and (min-width: 761px) {
  .main-nav a, .main-nav a:is(*) { font-size: 13.5px; padding: 10px 6px 8px; }
}

/* ---- Rekstrarleiga eða kaup ---- */
.lg-h { font-size: 15px; margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--border); }
.lg-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.lg-checks label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); font-weight: 500; }
.lg-checks input { width: auto; }
.lg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .lg-duo { grid-template-columns: 1fr; } }
.calc-layout > * { min-width: 0; }
.lg-duo .bd-row { grid-template-columns: minmax(0, 1fr) minmax(40px, 90px) auto; font-size: 13.5px; }
.lg-duo .bd-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lgCar, #lgLender, #lgFuel { width: 100%; min-width: 0; }
@media (max-width: 1000px) { .lg-duo { grid-template-columns: 1fr; } }

.lg-offer { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; cursor: pointer; font-size: 14px; }
.lg-offer:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.lg-offer input { width: auto; }
.lg-offer-p { text-align: right; font-weight: 700; display: grid; }
.lg-offer-p small { font-weight: 500; color: var(--muted); }
.fd-lease { display: block; margin: 8px 0 2px; font-size: 13px; color: var(--text); text-decoration: none; padding: 7px 9px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.fd-lease:hover { color: var(--brand); }

/* ---- Rekstrarleiga ---- */
.ls-incl { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.ls-incl .yes { color: var(--text); }
.ls-incl .no { color: var(--muted); opacity: .7; }
