/* Genereret af scripts/build-model-pages.mjs - modelsider og elbilkatalog. */
.model-shell { position: relative; width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.model-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; font-size: 12px; font-weight: 700; color: var(--muted); }
.model-crumbs a { color: var(--muted-strong); text-decoration: none; }
.model-crumbs a:hover { text-decoration: underline; }

/* Modelsidens hero: samme moerkegroenne signatur som forsidens live-kort. */
.model-hero { position: relative; padding: 24px; border-radius: 30px; overflow: hidden; color: #f8fbfa; background: radial-gradient(circle at top right, rgba(216, 255, 114, 0.16), transparent 34%), linear-gradient(180deg, #0f6a61 0%, #114e47 100%); box-shadow: var(--shadow-lg); }
.model-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.model-hero-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: #fff; }
.model-hero-mark img { max-width: 34px; max-height: 34px; width: auto; height: auto; object-fit: contain; }
.model-hero-kicker { margin: 0 0 3px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.model-hero h1 { margin: 0; font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: clamp(1.5rem, 5.4vw, 2.3rem); line-height: 1.08; letter-spacing: -0.04em; }
.model-hero-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: end; }
.model-hero-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
.model-hero-value { margin: 8px 0 0; font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 0.95; letter-spacing: -0.05em; }
.model-hero-value em { font-style: normal; font-size: 0.34em; opacity: 0.8; }
.model-hero-meta { margin: 8px 0 0; font-size: 12px; line-height: 1.45; opacity: 0.8; }
.model-hero-secondary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.model-hero-secondary > div { padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); }
.model-hero-sub { margin: 6px 0 0; font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: 0.98rem; letter-spacing: -0.02em; }
.model-hero-note { margin: 16px 0 0; font-size: 11.5px; line-height: 1.55; opacity: 0.72; }

.area-switch { display: flex; gap: 6px; }
.cat-hero .area-switch { margin-top: 0; }
.cat-hero-meta { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; opacity: 0.66; }
.area-switch button { min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.12); color: #f8fbfa; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.area-switch button.is-active { background: var(--lime); border-color: var(--lime); color: #14312c; }

.model-card { margin-top: 18px; }
.model-figure { padding: 14px; border-radius: 18px; border: 1px solid rgba(23, 24, 28, 0.1); background: rgba(255, 255, 255, 0.82); }
.model-figure-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.model-figure-value { margin: 8px 0 0; font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: clamp(1.25rem, 4vw, 1.7rem); line-height: 1; letter-spacing: -0.04em; }
.model-figure-value span { font-size: 0.58em; opacity: 0.72; }
.model-figure-meta { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.model-figure-ev { border-color: rgba(15, 106, 97, 0.2); background: rgba(15, 106, 97, 0.08); color: #0e554e; }
.model-figure-fuel { border-color: rgba(255, 126, 100, 0.22); background: rgba(255, 126, 100, 0.09); color: #8f3f27; }
.model-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Bjaelkerne goer prisforskellen synlig i stedet for kun at skrive den. */
.cost-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cost-bars li { display: grid; grid-template-columns: 108px minmax(0, 1fr) 74px; align-items: center; gap: 10px; }
.cost-bar-label { font-size: 12.5px; font-weight: 700; color: var(--muted-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cost-bar-track { height: 26px; border-radius: 999px; background: rgba(23, 24, 28, 0.06); overflow: hidden; }
.cost-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.cost-bar-fill.is-ev { background: linear-gradient(90deg, #0f6a61, #14867a); }
.cost-bar-fill.is-petrol { background: linear-gradient(90deg, #ff7e64, #ff9c78); }
.cost-bar-fill.is-diesel { background: linear-gradient(90deg, #38404c, #5a6472); }
.cost-bar-value { font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: 13.5px; font-weight: 700; text-align: right; letter-spacing: -0.02em; }

.model-table-wrap { overflow-x: auto; margin-top: 14px; }
.model-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.model-table th, .model-table td { padding: 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.model-table thead th { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.model-table tbody th { text-align: left; font-weight: 700; white-space: normal; min-width: 180px; }
.model-table tbody tr.is-headline { background: rgba(15, 106, 97, 0.07); }
.model-table .is-price { font-weight: 800; color: #0e554e; }
.model-table .is-saving { font-weight: 800; color: #8f3f27; }
.model-table .col-catalogue { color: var(--muted); }
.model-table-annual th, .model-table-annual td { white-space: normal; }
.model-table-annual tbody th { min-width: 0; white-space: nowrap; }
.variant-mobile-meta { display: none; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; background: rgba(23, 24, 28, 0.07); color: var(--muted); vertical-align: 1px; }
.tag-wltp { background: rgba(15, 106, 97, 0.12); color: #0e554e; }
.tag-warn { background: rgba(255, 126, 100, 0.16); color: #8f3f27; }

.model-cta { display: block; margin-top: 18px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #0f6a61, #114e47); color: #f8fbfa; text-decoration: none; }
.model-cta strong { display: block; font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: 1.15rem; letter-spacing: -0.02em; }
.model-cta span { display: block; margin-top: 6px; font-size: 13px; opacity: 0.86; }
.model-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.model-prose p { font-size: 14.5px; line-height: 1.7; color: var(--muted-strong); }
.model-related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.model-related a { display: block; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.82); text-decoration: none; color: var(--ink); }
.model-related strong { display: block; font-size: 14px; }
.model-related span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.model-tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.model-top-list { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.model-top-list li { counter-increment: top; }
.model-top-list a { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.model-top-list a::before { content: counter(top) "."; font-weight: 800; color: var(--muted); }
.model-top-list a span { flex: 1; }
.model-top-list a strong { font-weight: 800; color: #0e554e; white-space: nowrap; }

/* Katalogforsiden. */
.cat-hero { position: relative; margin-bottom: 18px; padding: 26px 24px 24px; border-radius: 30px; overflow: hidden; color: #f8fbfa; background: radial-gradient(circle at top right, rgba(216, 255, 114, 0.16), transparent 32%), linear-gradient(180deg, #0f6a61 0%, #114e47 100%); box-shadow: var(--shadow-lg); }
.cat-hero-kicker { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }
.cat-hero h1 { margin: 0; font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: clamp(1.65rem, 5.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.04em; }
.cat-hero-lead { margin: 12px 0 0; max-width: 62ch; font-size: 14.5px; line-height: 1.6; opacity: 0.88; }
.cat-search { margin-top: 16px; }
.cat-search input { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.96); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; }
.cat-search input::placeholder { color: var(--muted); font-weight: 500; }
.cat-search input:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
.cat-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cat-control { display: flex; align-items: center; gap: 8px; }
.cat-control > span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.66; }
.cat-control select { min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.96); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cat-control select:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
.cat-control-area { margin-left: auto; }
/* En raekke der kan rulles vandret i stedet for at ombryde til to raekker */
.cat-filters { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-filters::-webkit-scrollbar { display: none; }
.cat-filters button { flex: 0 0 auto; }
.cat-filters button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.12); color: #f8fbfa; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cat-filters button span { margin-left: 5px; font-size: 11px; opacity: 0.72; }
.cat-filters button.is-active { background: var(--lime); border-color: var(--lime); color: #14312c; }
.cat-status { margin: 0; height: 0; overflow: hidden; }
.cat-grid { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat-item a { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; height: 100%; padding: 12px 13px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.86); text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.cat-item a:hover { border-color: rgba(15, 106, 97, 0.32); transform: translateY(-1px); }
.cat-mark { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.cat-mark img { max-width: 26px; max-height: 26px; width: auto; height: auto; object-fit: contain; }
.cat-monogram { font-size: 11px; font-weight: 800; color: var(--muted); }
.cat-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.cat-name em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.cat-name .cat-match { color: #0e554e; font-weight: 700; }
.cat-stats { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.cat-stats strong { font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -0.02em; color: #0e554e; }
.cat-stats em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.cat-empty { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.cat-more { display: block; width: 100%; min-height: 48px; margin-top: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.86); font-family: inherit; font-size: 14px; font-weight: 800; color: var(--muted-strong); cursor: pointer; }
.cat-more:hover { border-color: rgba(15, 106, 97, 0.3); }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-tops { grid-template-columns: 1fr; gap: 0; }
  .model-hero-figures { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
  .model-compare { grid-template-columns: 1fr; }
  .model-related { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* Syv kolonner kan ikke laeses paa en telefon. Aar, batteri, forbrug og
     katalogtal flyttes ned under navnet, saa tabellen holder sig paa skaermen. */
  .model-table .col-year,
  .model-table .col-battery,
  .model-table .col-consumption,
  .model-table .col-catalogue,
  .model-table .col-diesel { display: none; }
  .model-table th, .model-table td { padding: 10px 6px; }
  .model-table tbody th { min-width: 0; }
  .variant-mobile-meta { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-hero, .model-hero { padding: 22px 18px 20px; border-radius: 26px; }
  .cat-control-area { margin-left: 0; }
  .cat-controls { gap: 8px 14px; }
  .cost-bars li { grid-template-columns: 84px minmax(0, 1fr) 66px; gap: 8px; }
  .cost-bar-label { font-size: 12px; }
}

@media (max-width: 380px) {
  .model-shell { width: min(100% - 12px, 1180px); }
  .model-table { font-size: 12px; }
  .model-hero-secondary { grid-template-columns: 1fr; }
}
