/* teloman: ink on paper. Colour tokens on :root, dark mode follows the OS. System fonts only. */
:root {
  --paper: #f7f4ec;
  --surface: #fffdf8;
  --ink: #1a1814;
  --ink2: #4a463c;
  --muted: #655f52;
  --rule: #d9d3c3;
  --wash: rgba(26, 24, 20, 0.05);
  --accent: #0f5f63;
  --accent-ink: #f7f4ec;
  --accent-soft: #dcebe8;
  --plate: #ece7da;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f;
    --surface: #1c1b16;
    --ink: #efebe0;
    --ink2: #cbc5b4;
    --muted: #a39d8a;
    --rule: #38352c;
    --wash: rgba(239, 235, 224, 0.06);
    --accent: #66c6c2;
    --accent-ink: #0f1e1d;
    --accent-soft: #17302f;
    --plate: #23211b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6.2vw, 2.9rem); line-height: 1.12; }
h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 14px; }
h3 { font-size: 1.1rem; margin: 18px 0 4px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
code { font: 0.92em var(--mono); background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 980px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* masthead */
.mast { border-bottom: 1px solid var(--rule); }
.mast-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 12px; }
.wordmark { font: 700 1.5rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a { color: var(--ink2); text-decoration: none; padding: 8px 10px; border-radius: 6px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
/* Narrow screens: keep the menu on one line; it scrolls inside itself, never the page. */
@media (max-width: 520px) {
  .nav { flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 7px; white-space: nowrap; }
}

main { padding-block: 28px 56px; display: flex; flex-direction: column; gap: 36px; }
article { display: flex; flex-direction: column; gap: 32px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.lede { color: var(--ink2); max-width: 66ch; font-size: 1.05rem; margin-top: 12px; }
.note { color: var(--muted); font-size: 0.9rem; max-width: 74ch; margin-top: 12px; }
.hero h1 { max-width: 20ch; }
.crumb { font-size: 0.88rem; color: var(--muted); margin-bottom: -12px; }
.crumb a { color: var(--muted); }
.block { scroll-margin-top: 12px; }
.block > .lede { margin-top: -4px; margin-bottom: 14px; }

/* status chips: the glyph carries the meaning so it never rests on colour alone */
.st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; font-size: 0.92rem; padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); line-height: 1.4; }
.st .gd { width: 0.7rem; height: 0.7rem; }
.st-yes { border-color: var(--accent); background: var(--accent-soft); }
.note .gd { vertical-align: -1px; }
.st-class { border: 1px solid var(--accent); background: transparent; }
.st-maker { border: 1px dashed var(--ink2); background: transparent; }
.st-no { background: transparent; color: var(--ink2); }
.st-unknown { background: transparent; color: var(--muted); border-style: dotted; font-weight: 500; }
.letter { display: inline-grid; place-items: center; min-width: 2em; height: 2em; border-radius: 6px; background: var(--ink); color: var(--paper); font: 700 1rem var(--display); }

/* the model table: real table on wide screens, one card per row on a phone */
.tscroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
table.list td.nm a { font-weight: 600; }
td small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
td.tip { cursor: help; }
td.tip .st, td.tip { text-decoration: none; }
tr[hidden] { display: none; }
.count { margin: 10px 0 6px; color: var(--ink2); font-size: 0.92rem; }
.empty { padding: 16px; border: 1px dashed var(--rule); border-radius: 8px; margin-top: 10px; }

/* filters (shown by static/filter.js only) */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; margin-top: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.filters[hidden] { display: none; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.filters .f-q { grid-column: 1 / -1; }
input, select, .btn { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 8px; min-height: 44px; padding: 8px 10px; }
select { padding-right: 4px; }
.btn { cursor: pointer; background: var(--surface); font-weight: 600; }
.btn:hover { background: var(--wash); }

/* cards on the front page */
.cardlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cardlist a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.cardlist a:hover { border-color: var(--accent); }
.cardlist b { font-family: var(--display); font-size: 1.05rem; color: var(--accent); }
.cardlist span { color: var(--ink2); font-size: 0.92rem; }

/* model page */
.caveats { padding: 14px 18px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 8px; }
.caveats h2 { font-size: 1.05rem; margin-bottom: 6px; }
.caveats ul { padding-left: 1.1em; display: grid; gap: 6px; }
.src-link { font-size: 0.85rem; white-space: nowrap; }

.facts { border-top: 1px solid var(--ink); }
.fact { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) minmax(130px, auto); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.fact dt { font-weight: 600; color: var(--ink2); }
.fact dd { display: flex; flex-direction: column; gap: 4px; }
.fv { overflow-wrap: anywhere; }
.hint, .hint-inline { color: var(--muted); font-size: 0.86rem; }
.hint-inline { margin-left: 4px; }
.raw { font: 0.85rem/1.5 var(--mono); }
ul.plain { list-style: none; padding: 0; display: grid; gap: 6px; }
ul.plain li { max-width: 80ch; }

/* source disclosure */
details.src summary { cursor: pointer; font-size: 0.82rem; color: var(--accent); list-style: none; display: inline-block; padding: 4px 0; }
details.src summary::-webkit-details-marker { display: none; }
details.src summary::before { content: "▸ "; }
details.src[open] summary::before { content: "▾ "; }
details.src .chk { color: var(--muted); }
.src-body { margin-top: 4px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.86rem; display: grid; gap: 6px; max-width: 46ch; }
.src-url { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; display: block; }
.src-k { font-weight: 600; }
.src-note { color: var(--ink2); }
.fs { grid-column: 3; }

details.explain { margin-top: 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
details.explain > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; min-height: 44px; }
details.explain > :not(summary) { margin: 0 14px 14px; max-width: 72ch; }
details.explain p + p { margin-top: 10px; }

/* operators */
.optable th[scope="row"] { white-space: nowrap; font-weight: 600; color: var(--ink2); }
.optable td { min-width: 190px; }
.optable td > .st { margin-bottom: 4px; }
.optable td { display: table-cell; }
.optable td > * + * { margin-top: 4px; }
.optable .hint { display: block; }
.quotes { display: block; }
q { display: block; font-style: italic; color: var(--ink2); font-size: 0.86rem; quotes: "«" "»"; padding-left: 8px; border-left: 2px solid var(--accent); margin-top: 4px; }
.legend { list-style: none; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.defs dt { font-weight: 700; margin-top: 12px; font-family: var(--display); }
.defs dd { color: var(--ink2); max-width: 70ch; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding-block: 24px 40px; display: grid; gap: 14px; color: var(--ink2); font-size: 0.92rem; }
.foot .wrap { display: grid; gap: 14px; }
.own { padding: 12px 16px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; color: var(--ink); max-width: 80ch; }
.own-big { display: grid; gap: 8px; font-size: 1.02rem; }
.foot-small { color: var(--muted); font-size: 0.84rem; }

@media (max-width: 760px) {
  main { padding-block: 20px 40px; gap: 28px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .fs { grid-column: 1; }
  /* stacked tables: one card per row, each cell labelled with its column */
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack tr { margin-bottom: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); overflow: hidden; }
  table.stack td, table.stack th[scope="row"] { border-bottom: 1px solid var(--rule); padding: 8px 12px; min-width: 0; }
  table.stack tr > :last-child { border-bottom: 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  table.stack td.nm { background: var(--wash); font-size: 1.05rem; }
  table.stack td.nm::before { display: none; }
  table.stack th[scope="row"] { background: var(--wash); }
  /* the model list: brand and name on top, then the facts two by two, so 21 cards stay short */
  table.list.stack tr { display: grid; grid-template-columns: 1fr 1fr; }
  table.list.stack td { border-bottom: 0; border-top: 1px solid var(--rule); }
  table.list.stack td[data-label="Merke"] { grid-column: 1 / -1; order: -2; border-top: 0; padding-bottom: 0; font-size: 0.8rem; color: var(--muted); }
  table.list.stack td[data-label="Merke"]::before { display: none; }
  table.list.stack td.nm { grid-column: 1 / -1; order: -1; background: none; border-top: 0; padding-top: 2px; font-size: 1.1rem; }
  table.list.stack td[data-label="Kilde"], table.list.stack td[data-label="Dobbel eSIM"] { grid-column: auto; }
  .tscroll { overflow-x: visible; }
  .optable td { min-width: 0; }
}
/* ---------------------------------------------------------------- round 2: brand marks, phone images, dashboard */
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink2); font-weight: 600; line-height: 1.2; }
.brand .mark { flex: none; color: var(--ink); }
.mark-symbol { height: 1.2em; width: auto; }
.mark-wordmark { height: 0.78em; width: auto; }
.mono { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border: 1.5px solid currentColor; border-radius: 50%; font: 700 0.82em/1 var(--display); }
.brand-xs { font-size: 0.84rem; }
.brand-s { font-size: 0.84rem; }
.brand-l { font-size: 1rem; margin-bottom: 6px; }
.brand-l .mark-symbol { height: 1.5em; }
.brand-l .mark-wordmark { height: 0.95em; }

figure.phone { display: flex; flex-direction: column; gap: 6px; }
.plate { position: relative; background: var(--plate); border-radius: 10px; overflow: hidden; }
.plate img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.plate-sil { color: var(--muted); display: grid; place-items: center; }
.sil { height: 150px; max-height: 80%; width: auto; }
.sil .glass { stroke-opacity: 0.45; }
/* press shots on white: let the paper show through in light mode */
:root:not([data-theme="dark"]) .plate-white img { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate-white img { mix-blend-mode: normal; } }
.credit { font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
.credit a { color: var(--muted); }

/* front page */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.viewtoggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--surface); }
.viewtoggle a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 0.92rem; min-height: 36px; display: inline-flex; align-items: center; }
.viewtoggle a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.filters.chipform { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.filters .f-q input { width: 100%; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink2); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; display: inline-flex; align-items: center; }
.fchip:hover { border-color: var(--ink2); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fchip[aria-pressed="true"] .brand, .fchip[aria-pressed="true"] .mark { color: var(--paper); }
.f-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.f-foot .count { margin: 0; }
.linkbtn { font: inherit; font-size: 0.9rem; color: var(--accent); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.view-h { margin: 28px 0 10px; }
.js .view-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.view[hidden] { display: none; }

.pgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pcard[hidden] { display: none; }
.pcard:hover { border-color: var(--accent); }
.pcard:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.phone-card { padding: 10px 10px 0; }
.phone-card .plate { height: 190px; }
.phone-card .credit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 2px; }
.pc-body { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pc-name { font-size: 1.22rem; margin: 0 0 8px; line-height: 1.2; }
.pc-name a { color: var(--ink); text-decoration: none; }
.pc-name a::after { content: ""; position: absolute; inset: 0; }
.pc-name a:focus-visible { outline: none; }
.pcard:hover .pc-name a { color: var(--accent); }
.cstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); }
.cs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-wide { grid-column: 1 / -1; }
.cs dt, .kf dt, .mini dt { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cs dd { font-size: 0.9rem; }
.cs .st { font-size: 0.84rem; }
.cs-v { font-weight: 600; }
.letter-s { min-width: 1.7em; height: 1.7em; font-size: 0.9rem; border-radius: 5px; }
.dots { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.86rem; }
.od { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--ink2); }
.od-unknown { color: var(--muted); }
td.wide .dots { flex-direction: column; gap: 2px; }

/* status dots: filled = on the list, half = class-level, dashed = maker only, ring = not applicable, ? = unknown */
.gd { display: inline-block; flex: none; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1.5px solid var(--accent); box-sizing: border-box; }
.gd-yes { background: var(--accent); }
.gd-class { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.gd-maker { border-style: dashed; border-color: var(--ink2); }
.gd-no { border-color: var(--ink2); }
.gd-unknown { border: 0; width: auto; height: auto; border-radius: 0; font: 700 0.85rem/1 var(--body); color: var(--muted); }
.gd-unknown::before { content: "?"; }

/* model page: hero */
.mpage { gap: 28px; }
.mhero { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.phone-hero .plate { height: 280px; }
.phone-hero .sil { height: 230px; }
.mhero-text { display: flex; flex-direction: column; gap: 6px; }
.mhero-text .lede { margin-top: 4px; }
.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.kf { padding: 10px 12px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; }
.kf dd { font: 700 1.08rem/1.25 var(--display); }
.kf dd .st { font-family: var(--body); font-size: 0.86rem; }
@media (min-width: 700px) {
  .mhero { grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; }
  .phone-hero .plate { height: 400px; }
  .phone-hero .sil { height: 300px; }
  .keyfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* model page: dashboard tiles */
.dash { display: grid; grid-template-columns: 1fr; gap: 14px; grid-template-areas: "esim" "bands" "ops" "energy" "upd" "sale" "apps"; }
.dash > :nth-child(1) { grid-area: esim; } .dash > :nth-child(2) { grid-area: bands; } .dash > :nth-child(3) { grid-area: ops; }
.dash > :nth-child(4) { grid-area: energy; } .dash > :nth-child(5) { grid-area: upd; } .dash > :nth-child(6) { grid-area: sale; } .dash > :nth-child(7) { grid-area: apps; }
@media (min-width: 640px) { .dash { grid-template-columns: 1fr 1fr; grid-template-areas: "esim bands" "ops ops" "energy upd" "energy sale" "energy apps"; } }
@media (min-width: 900px) { .dash { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "esim bands energy" "ops ops energy" "upd sale apps"; } }
.tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tile-h h2 { font-size: 1.08rem; margin: 0; }
.tile-more { font-size: 0.8rem; white-space: nowrap; }
.tile .big { font-size: 1.15rem; }
.tile .big .st { font-size: 1rem; padding: 4px 12px 4px 10px; }
.tile .hint { font-size: 0.82rem; }
.mini { display: grid; gap: 8px; }
.mini > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--rule); padding-top: 8px; }
.mini dd { text-align: right; font-size: 0.92rem; }

.bands { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.band { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: 8px; border: 1px solid var(--rule); text-align: center; }
.band b { font: 700 1.05rem/1.1 var(--display); }
.band-gen, .band-mhz { font-size: 0.68rem; color: var(--muted); }
.band-gen { font-weight: 700; letter-spacing: 0.05em; }
.band-st { font-size: 0.78rem; font-weight: 600; margin-top: 3px; }
.band-yes { background: var(--accent-soft); border-color: var(--accent); }
.band-no { border-style: dashed; color: var(--ink2); }
.band-unknown { border-style: dotted; }
.band-unknown .band-st { color: var(--muted); }

.mxwrap { overflow-x: auto; }
table.matrix { border-collapse: separate; border-spacing: 3px; width: 100%; table-layout: fixed; font-size: 0.82rem; }
table.matrix th, table.matrix td { border: 0; padding: 0; }
table.matrix thead th { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 2px 4px; text-align: center; vertical-align: bottom; line-height: 1.2; }
table.matrix tbody th { font-weight: 600; color: var(--ink2); padding-right: 6px; width: 4.6em; font-size: 0.86rem; }
table.matrix td.mx { text-align: center; padding: 7px 2px; border-radius: 6px; border: 1px solid var(--rule); line-height: 1.25; cursor: help; }
td.mx .gd { display: block; margin: 0 auto 3px; }
.mx-t { font-size: 0.74rem; font-weight: 600; }
.mx-yes { background: var(--accent-soft); border-color: var(--accent) !important; }
.mx-class { border-color: var(--accent) !important; }
.mx-maker { border-style: dashed !important; border-color: var(--ink2) !important; }
.mx-no { color: var(--ink2); }
.mx-unknown { border-style: dotted !important; color: var(--muted); }
.mkey { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.76rem; color: var(--muted); }
.mkey li { display: inline-flex; align-items: center; gap: 5px; }

/* the energy label card: drawn like the EU label, in ink only */
.elabel { border: 2px solid var(--ink); border-radius: 8px; padding: 0 0 6px; display: flex; flex-direction: column; background: var(--paper); }
.el-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 10px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; border-radius: 5px 5px 0 0; }
.el-reg { font-family: var(--mono); font-weight: 400; font-size: 0.74rem; opacity: 0.85; }
.el-top { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border-bottom: 1.5px solid var(--ink); }
.escale { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.es { position: relative; width: var(--w); height: 19px; display: flex; align-items: center; background: var(--wash); border: 1px solid var(--rule); border-left: 0; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
.es span { font: 700 0.78rem/1 var(--body); padding-left: 6px; color: var(--ink2); }
.es-on { background: var(--ink); border-color: var(--ink); }
.es-on span { color: var(--paper); }
.es-mark { position: absolute; left: calc(100% + 4px); font-size: 0.8rem; }
.el-class { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-left: 10px; border-left: 1px solid var(--rule); }
.el-k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.el-big { font: 700 3.1rem/1 var(--display); }
.el-rows { padding: 2px 10px; }
.el-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; cursor: help; }
.el-row:last-child { border-bottom: 0; }
.el-row dt { color: var(--ink2); }
.el-row dd { font-weight: 700; text-align: right; }
.el-letter { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border: 1.5px solid var(--ink); border-radius: 4px; font: 700 0.9rem var(--display); }
.elabel-none { padding: 0 0 12px; gap: 10px; }
.elabel-none > :not(.el-head) { padding-inline: 12px; }
.big-unknown .st { font-size: 1rem; }

/* update timeline */
.tl { display: flex; flex-direction: column; gap: 8px; }
.tl-end { display: flex; flex-direction: column; }
.tl-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.tl-end b { font: 700 1.2rem/1.25 var(--display); }
.tl-bar { position: relative; height: 14px; background: var(--wash); border: 1px solid var(--rule); border-radius: 999px; margin-top: 4px; }
.tl-fill { position: absolute; top: -1px; bottom: -1px; background: var(--accent); border-radius: 999px; }
.tl-now { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); }
.tl-axis { position: relative; height: 16px; font-size: 0.68rem; color: var(--muted); }
.tl-tick { position: absolute; transform: translateX(-50%); }
.tl-tick:first-child { transform: none; }
.tl-unknown .tl-bar { border-style: dashed; background: transparent; }

/* Detaljer og kilder */
.details > .lede { margin: -4px 0 12px; }
details.dsec { border-top: 1px solid var(--ink); scroll-margin-top: 12px; }
details.dsec:last-of-type { border-bottom: 1px solid var(--rule); }
details.dsec > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 0; min-height: 44px; }
details.dsec > summary::-webkit-details-marker { display: none; }
details.dsec > summary h3 { margin: 0; font-size: 1.15rem; }
details.dsec > summary h3::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--accent); font-family: var(--body); }
details.dsec[open] > summary h3::before { content: "▾"; }
.dsec-hint { font-size: 0.84rem; color: var(--muted); }
.dsec-body { padding: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.dsec-body > .lede { margin: 0; }
.filters.chipform[hidden] { display: none; }
/* phones: image beside the facts, so 21 cards stay short */
@media (max-width: 560px) {
  .pgrid { gap: 10px; }
  .pcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .phone-card { padding: 10px 0 10px 10px; }
  .phone-card .plate { height: 150px; }
  .phone-card .credit { white-space: normal; font-size: 0.64rem; }
  .pc-body { padding: 10px 12px 12px; }
  .pc-name { font-size: 1.1rem; margin-bottom: 4px; }
  .cstats { gap: 6px 8px; padding-top: 8px; }
  .dots { gap: 2px 9px; font-size: 0.8rem; }
}
@media (max-width: 640px) {
  .chiprow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
  .chiprow::-webkit-scrollbar { display: none; }
  .fchip { white-space: nowrap; }
}

@media print { .nav, .filters { display: none; } body { background: #fff; color: #000; } }
