/*
Theme Name: Veiviser
Description: Tema for NorgeFokus – bilhold i Norge, forklart. Skiltblått, asfalt og gul midtlinje.
Version: 1.0.0
Author: NorgeFokus
Text Domain: veiviser
*/

@font-face { font-family: "Overpass"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(assets/fonts/overpass.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/sourceserif.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/sourceserif-italic.woff2) format("woff2"); }

:root {
	--ink: #15191d;
	--ink-2: #343b42;
	--muted: #5b646d;
	--paper: #f4f3ee;
	--paper-2: #ebe9e1;
	--card: #ffffff;
	--line: #d9d6cb;
	--sign: #0b4ea2;
	--sign-dark: #073a7b;
	--sign-soft: #e7eef8;
	--yellow: #f6c400;
	--yellow-soft: #fff6cf;
	--asphalt: #1b1f23;
	--asphalt-2: #262c32;
	--asphalt-3: #343b42;
	--green: #0f7a4b;
	--red: #b42318;
	--hub: var(--sign);
	--hub-soft: var(--sign-soft);
	--radius: 10px;
	--wrap: 1180px;
	--sans: "Overpass", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* Hub colours. --hub-soft is declared on the same element so it resolves locally. */
.hub-regler       { --hub: #b42318; --hub-soft: #fbe9e7; }
.hub-avgifter     { --hub: #9a5b06; --hub-soft: #fbf0dc; }
.hub-kjop-og-salg { --hub: #0f766e; --hub-soft: #e0f2ef; }
.hub-elbil        { --hub: #15803d; --hub-soft: #e3f4e8; }
.hub-forsikring   { --hub: #4338ca; --hub-soft: #e9e8fb; }
.hub-forerkort    { --hub: #0b4ea2; --hub-soft: #e7eef8; }
.hub-vedlikehold  { --hub: #475569; --hub-soft: #e9edf2; }
.hub-pa-tur       { --hub: #8a4b14; --hub-soft: #f6ebdf; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--serif); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--sign); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sign-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.18; letter-spacing: -.01em; color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 50; font: 700 16px var(--sans); border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

/* ------------------------------------------------------------ header */
.site-head { background: var(--asphalt); color: #fff; position: relative; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--sans); }
.brand-name { font-weight: 800; font-size: 25px; letter-spacing: -.02em; }
.brand-name b { color: var(--yellow); font-weight: 800; }
.brand-tag { font-size: 13.5px; color: #c4cbd2; font-weight: 500; letter-spacing: .02em; margin-top: 4px; }
.head-search { display: flex; align-items: center; background: var(--asphalt-2); border: 1px solid var(--asphalt-3); border-radius: 999px; padding: 4px 4px 4px 16px; }
.head-search input { background: transparent; border: 0; color: #fff; font: 500 16px var(--sans); width: 250px; padding: 6px 0; }
.head-search input::placeholder { color: #9aa3ab; }
.head-search input:focus { outline: none; }
.search-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--yellow); color: var(--ink); font: 700 15px var(--sans); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.search-drawer { display: none; padding-bottom: 12px; }
.search-drawer form { display: flex; gap: 8px; }
.search-drawer input { flex: 1; min-width: 0; font: 500 17px var(--sans); padding: 11px 14px; border-radius: 8px; border: 0; }
.search-drawer button { border: 0; background: var(--yellow); font: 700 16px var(--sans); border-radius: 8px; padding: 0 16px; }
@media (max-width: 759px) {
	.head-search { background: transparent; border: 0; padding: 0; }
	.head-search input, .head-search label { display: none; }
	.search-btn span { display: none; }
	.search-btn { padding: 11px; }
	.search-drawer.is-open { display: block; }
	.brand-name { font-size: 22px; }
	.brand-mark { width: 40px; height: 40px; }
}
.hubnav { background: var(--asphalt-2); border-top: 1px solid #2f363d; }
.hubnav ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hubnav ul::-webkit-scrollbar { display: none; }
.hubnav li { flex: none; }
.hubnav a { display: inline-flex; align-items: center; gap: 7px; color: #e4e8ec; text-decoration: none; font: 600 15px/1 var(--sans); padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.hubnav a .ico { color: #9fb6d6; }
.hubnav a:hover { background: var(--asphalt-3); color: #fff; }
.hubnav a[aria-current], .hubnav a.is-current { background: var(--sign); color: #fff; }
.hubnav a[aria-current] .ico, .hubnav a.is-current .ico { color: #fff; }
.lane { height: 6px; background: var(--asphalt); position: relative; }
.lane::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 58px); }

/* ------------------------------------------------------------ breadcrumbs */
.crumbs { font: 500 14.5px/1.4 var(--sans); color: var(--muted); padding: 18px 0 4px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #9aa1a8; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sign); text-decoration: underline; }

/* ------------------------------------------------------------ signs (pictogram plates) */
.sign { display: inline-grid; place-items: center; width: 46px; height: 46px; background: var(--hub); border-radius: 9px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.08); flex: none; }
.sign-in { display: grid; place-items: center; width: 32px; height: 32px; background: #fff; border-radius: 5px; color: var(--ink); }
.sign-in .ico { width: 22px; height: 22px; stroke-width: 2.1; }
.sign-lg { width: 64px; height: 64px; border-radius: 12px; }
.sign-lg .sign-in { width: 46px; height: 46px; border-radius: 7px; }
.sign-lg .sign-in .ico { width: 30px; height: 30px; }

/* ------------------------------------------------------------ front page */
.hero { background: linear-gradient(180deg, var(--asphalt) 0%, #22282e 100%); color: #fff; padding: 34px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40px; height: 120px; background: radial-gradient(60% 100% at 50% 100%, rgba(246,196,0,.10), transparent 70%); pointer-events: none; }
.gantry { position: relative; background: var(--sign); border-radius: 14px; padding: 26px 22px 24px; box-shadow: inset 0 0 0 3px #fff, 0 18px 40px rgba(0,0,0,.35); max-width: 860px; }
.gantry::before, .gantry::after { content: ""; position: absolute; top: -34px; width: 10px; height: 34px; background: linear-gradient(90deg, #4a525a, #6b737b 40%, #3c434a); }
.gantry::before { left: 18%; } .gantry::after { right: 18%; }
.gantry .eyebrow { font: 700 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; }
.gantry h1 { color: #fff; font-size: clamp(30px, 5.4vw, 50px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.gantry p { color: #e8eef7; font: 400 18.5px/1.55 var(--serif); margin: 0; max-width: 46rem; }
.hero-search { display: flex; gap: 8px; margin: 24px 0 0; max-width: 640px; }
.hero-search input { flex: 1; min-width: 0; font: 500 18px var(--sans); padding: 15px 16px; border-radius: 10px; border: 2px solid transparent; background: #fff; color: var(--ink); }
.hero-search input:focus { outline: none; border-color: var(--yellow); }
.hero-search button { border: 0; background: var(--yellow); color: var(--ink); font: 800 17px var(--sans); border-radius: 10px; padding: 0 22px; cursor: pointer; }
.arrows { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.arrows a { --c: var(--sign); display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; font: 700 15.5px/1 var(--sans); padding: 11px 26px 11px 14px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 6px 0 0 6px; transition: transform .15s; }
.arrows a:hover { transform: translateX(3px); color: var(--sign-dark); }
.arrows a span.n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 4px; background: var(--hub); color: #fff; font-size: 12.5px; letter-spacing: .02em; }
@media (max-width: 600px) {
	.hero { padding: 40px 0 30px; }
	.gantry { padding: 22px 16px 20px; }
	.gantry::before { left: 12%; } .gantry::after { right: 12%; }
	.gantry p { font-size: 17px; }
	.hero-search button { padding: 0 14px; }
	.arrows a { font-size: 14.5px; padding: 10px 22px 10px 12px; }
}

.section { padding: 44px 0; }
.section + .section { padding-top: 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3vw, 31px); margin: 0; font-weight: 800; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font: 400 16.5px/1.5 var(--serif); max-width: 44rem; }
.sec-kicker { display: block; font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* season / now panel */
.now { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
@media (max-width: 900px) { .now { grid-template-columns: 1fr; } }
.now-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.now-panel h3 { margin: 0 0 4px; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.now-panel h3 .ico { color: var(--sign); }
.now-panel > p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.stud { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .stud { grid-template-columns: 1fr; } }
.stud-box { border-radius: 9px; padding: 14px 14px 12px; border: 2px solid var(--line); background: var(--paper); font-family: var(--sans); }
.stud-box .reg { font-weight: 700; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.stud-box .st { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; margin: 6px 0 4px; }
.stud-box .st .dot { width: 14px; height: 14px; border-radius: 50%; background: #9aa1a8; flex: none; }
.stud-box.ok { border-color: #8fd0ad; background: #effaf3; } .stud-box.ok .dot { background: var(--green); }
.stud-box.no { border-color: #f0b4ad; background: #fdf1ef; } .stud-box.no .dot { background: var(--red); }
.stud-box .when { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.now-note { font: 400 14px/1.5 var(--sans); color: var(--muted); margin: 12px 0 0; }
.now-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.now-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; font: 650 16.5px/1.3 var(--sans); }
.now-list a:hover { border-color: var(--hub); background: var(--hub-soft); }
.now-list a .sign { width: 34px; height: 34px; border-radius: 7px; }
.now-list a .sign-in { width: 24px; height: 24px; border-radius: 4px; }
.now-list a .sign-in .ico { width: 16px; height: 16px; }
.now-list a small { display: block; font: 400 14px/1.35 var(--serif); color: var(--muted); margin-top: 2px; }

/* tools */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 980px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tools { grid-template-columns: 1fr; } }
.tool-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--asphalt); color: #fff; border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.tool-tile::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, transparent 18px 30px); opacity: .85; }
.tool-tile:hover { color: #fff; background: #23292f; }
.tool-tile .ico { width: 28px; height: 28px; color: var(--yellow); }
.tool-tile strong { font: 800 19px/1.2 var(--sans); }
.tool-tile span { font: 400 15px/1.45 var(--serif); color: #c8cfd6; padding-bottom: 12px; }

/* hubs grid */
.hubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1000px) { .hubs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .hubs { grid-template-columns: 1fr; } }
.hub-card { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--hub); border-radius: var(--radius); padding: 18px 18px 14px; display: flex; flex-direction: column; }
.hub-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hub-card h3 { margin: 0; font-size: 20px; }
.hub-card h3 a { color: var(--ink); text-decoration: none; }
.hub-card h3 a:hover { color: var(--hub); }
.hub-card > p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.hub-card ul { list-style: none; margin: 0 0 10px; padding: 0; }
.hub-card li { border-top: 1px dashed var(--line); }
.hub-card li a { display: block; padding: 7px 0; font: 600 15.5px/1.35 var(--sans); color: var(--ink-2); text-decoration: none; }
.hub-card li a:hover { color: var(--hub); }
.hub-card .more { margin-top: auto; font: 700 15px var(--sans); color: var(--hub); text-decoration: none; }
.hub-card .more:hover { text-decoration: underline; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--hub); border-radius: var(--radius); padding: 15px 16px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.card:hover { color: var(--ink); border-color: var(--hub); transform: translateY(-2px); }
.card .kicker { font: 700 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--hub); margin-bottom: 8px; }
.card h3 { font-size: 18.5px; margin: 0 0 6px; font-weight: 750; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.card.is-pillar { background: linear-gradient(0deg, var(--card), var(--card)) padding-box; box-shadow: 0 0 0 1px var(--hub) inset; }

/* trust strip */
.trust { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 22px; padding: 30px 0; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust h3 { font-size: 18px; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.trust h3 .ico { color: var(--sign); }
.trust p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sign); color: #fff; font: 800 19px var(--sans); flex: none; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--sign); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ------------------------------------------------------------ page heads (hubs, pages) */
.page-head { padding: 6px 0 22px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 8px 0 10px; font-weight: 800; }
.page-head .intro { font-size: 19.5px; line-height: 1.55; color: var(--ink-2); max-width: 46rem; margin: 0; }
.hub-hero { background: var(--card); border-bottom: 1px solid var(--line); position: relative; }
.hub-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--hub); }
.hub-hero .page-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hub-hero .art-thumb { width: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.hub-hero .art-thumb img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .hub-hero .page-head { grid-template-columns: 1fr; } .hub-hero .art-thumb { display: none; } }
.hub-title { display: flex; align-items: center; gap: 14px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font: 600 14.5px var(--sans); color: var(--muted); }
.hub-stats span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.group { margin: 0 0 34px; }
.group h2 { font-size: 22px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.group h2::before { content: ""; width: 22px; height: 4px; background: var(--hub); border-radius: 2px; }
.hub-intro { max-width: 46rem; }
.hub-intro p { margin: 0 0 1em; }

/* ------------------------------------------------------------ article */
.article-head { padding: 4px 0 14px; max-width: 50rem; }
.article-head .kicker a { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--hub); text-decoration: none; }
.article-head .kicker .sign { width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #fff; }
.article-head .kicker .sign-in { width: 21px; height: 21px; border-radius: 3.5px; }
.article-head .kicker .sign-in .ico { width: 14px; height: 14px; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 12px 0 12px; font-weight: 800; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 15px/1.5 var(--sans); color: var(--muted); margin: 0; }
.byline .dot { margin: 0 8px; }
.byline a { color: var(--ink-2); }
.art { margin: 8px 0 18px; max-width: 50rem; }
.art img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); }
.art figcaption { font: 400 13.5px var(--sans); color: var(--muted); margin-top: 6px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-bottom: 40px; }
@media (max-width: 1060px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.entry { max-width: 47rem; min-width: 0; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: clamp(23px, 2.6vw, 28px); margin: 1.9em 0 .55em; font-weight: 800; padding-top: 2px; }
.entry h3 { font-size: 20.5px; margin: 1.6em 0 .45em; font-weight: 750; }
.entry p, .entry li { overflow-wrap: anywhere; }
.entry p { margin: 0 0 1.05em; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.entry li { margin: .3em 0; }
.entry li::marker { color: var(--hub); font-weight: 700; }
.entry strong { font-weight: 600; }
.entry a.ext::after { content: "↗"; font: 600 .78em var(--sans); margin-left: 2px; color: var(--muted); }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--line); color: var(--ink-2); font-style: italic; }
.nf-lead { font-size: 20.5px; line-height: 1.55; color: var(--ink); margin: 0 0 1.1em !important; }
.nf-facts { background: var(--sign); color: #fff; border-radius: 12px; padding: 18px 20px 14px; margin: 0 0 1.4em; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--sign); }
.nf-facts h2 { color: #fff; font-size: 14px !important; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px !important; padding: 0; color: var(--yellow); }
.nf-facts dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 0; margin: 0; font-family: var(--sans); }
.nf-facts dt, .nf-facts dd { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.22); margin: 0; }
.nf-facts dt { font-weight: 700; font-size: 15px; padding-right: 16px; color: #d9e5f6; }
.nf-facts dd { font-weight: 600; font-size: 16px; color: #fff; }
.nf-facts dd a { color: #fff; }
@media (max-width: 520px) { .nf-facts dl { grid-template-columns: 1fr; } .nf-facts dd { border-top: 0; padding-top: 0; } }
.tip, .warn { position: relative; border-radius: 10px; padding: 14px 16px 14px 58px; margin: 1.4em 0; font-size: 17px; }
.tip > :last-child, .warn > :last-child { margin-bottom: 0; }
.tip { background: var(--sign-soft); border: 1px solid #c4d5ee; }
.tip::before { content: "i"; position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 6px; background: var(--sign); color: #fff; font: 800 19px/30px var(--sans); text-align: center; box-shadow: inset 0 0 0 2px #fff; }
.warn { background: var(--yellow-soft); border: 1px solid #ecd27a; }
.warn::before { content: "!"; position: absolute; left: 13px; top: 12px; width: 34px; height: 30px; font: 900 17px/36px var(--sans); text-align: center; color: var(--ink); background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.table-wrap { overflow-x: auto; margin: 1.3em 0 1.5em; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.entry table { border-collapse: collapse; width: 100%; font: 400 15.5px/1.45 var(--sans); }
.entry th, .entry td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.entry thead th { background: var(--asphalt); color: #fff; font-weight: 700; font-size: 14.5px; letter-spacing: .01em; }
.entry tbody tr:nth-child(even) td { background: #faf9f6; }
.entry tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
	.table-wrap.is-stack { border: 0; background: transparent; overflow: visible; }
	table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
	table.stack tr { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; padding: 4px 12px; }
	table.stack td { border-bottom: 1px dashed var(--line); padding: 8px 0; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 10px; background: transparent !important; }
	table.stack td:last-child { border-bottom: 0; }
	table.stack td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 13.5px; }
	table.stack td:first-child { font-weight: 700; }
}
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 1.6em; font-family: var(--sans); }
.toc summary { font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; color: var(--ink-2); }
.toc ol { margin: 10px 0 2px; padding-left: 1.4em; font-size: 16px; line-height: 1.4; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--sign); text-decoration: underline; }
.nf-faq { margin-top: 2.2em; }
.nf-faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin: 0 0 8px; }
.nf-faq summary { cursor: pointer; padding: 13px 16px; font: 700 17px/1.35 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--sign); flex: none; }
.nf-faq details[open] summary::after { content: "–"; }
.nf-faq details p { margin: 0; padding: 0 16px 14px; font-size: 17px; }
.nf-sources { margin-top: 2.2em; padding-top: 1em; border-top: 2px solid var(--ink); font-family: var(--sans); }
.nf-sources h2 { font-size: 15px !important; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px !important; }
.nf-sources ul { font-size: 15px; line-height: 1.45; padding-left: 1.1em; }
.nf-sources p { font-size: 14.5px; color: var(--muted); }
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 2em; font-size: 16px; }
.author-box p { margin: 0; }
.article-aside { position: sticky; top: 16px; }
@media (max-width: 1060px) { .article-aside { position: static; } }
.aside-box { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--hub); border-radius: 10px; padding: 14px 16px; font-family: var(--sans); }
.aside-box h2 { font-size: 16px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.aside-box ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.aside-box li { border-top: 1px dashed var(--line); }
.aside-box li a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.aside-box li a:hover { color: var(--hub); }
.aside-box li.is-here a { color: var(--hub); font-weight: 700; }
.related { background: var(--paper-2); padding: 34px 0 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 24px; margin: 0 0 16px; }

/* legacy / sponsored posts keep their own markup */
.legacy-entry { max-width: 47rem; padding-bottom: 40px; }
.legacy-entry img { height: auto; }

/* ------------------------------------------------------------ calculators */
.calc { background: var(--card); border: 2px solid var(--asphalt); border-radius: 12px; margin: 0 0 1.6em; overflow: hidden; font-family: var(--sans); }
.calc-head { background: var(--asphalt); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.calc-head h2 { color: #fff; margin: 0 !important; font-size: 17px !important; font-weight: 800; letter-spacing: .01em; }
.calc-head .ico { color: var(--yellow); width: 22px; height: 22px; }
.calc-body { padding: 16px; display: grid; gap: 12px; }
.calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.calc label { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink-2); margin-bottom: 5px; }
.calc input, .calc select { width: 100%; font: 500 17px var(--sans); padding: 10px 12px; border: 1.5px solid #b9b5a8; border-radius: 8px; background: #fff; color: var(--ink); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 3px rgba(11,78,162,.18); }
.calc-out { background: var(--paper); border-radius: 10px; padding: 14px; border: 1px solid var(--line); }
.calc-out .big { font-size: 28px; font-weight: 800; line-height: 1.15; }
.calc-out .sub { font-size: 15px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.calc-out.ok { background: #effaf3; border-color: #8fd0ad; }
.calc-out.bad { background: #fdf1ef; border-color: #f0b4ad; }
.calc-note { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.fuel-table { margin: 0 0 1.6em; }

/* ------------------------------------------------------------ lists, search, author */
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.search-form-lg { display: flex; gap: 8px; margin: 10px 0 24px; max-width: 640px; }
.search-form-lg input { flex: 1; min-width: 0; font: 500 18px var(--sans); padding: 12px 14px; border-radius: 9px; border: 1.5px solid #b9b5a8; }
.search-form-lg button { border: 0; background: var(--sign); color: #fff; font: 700 16px var(--sans); border-radius: 9px; padding: 0 18px; }
.page-entry { max-width: 47rem; padding-bottom: 50px; }
.profile { display: flex; gap: 18px; align-items: center; }
.profile .avatar { width: 84px; height: 84px; font-size: 28px; }

/* ------------------------------------------------------------ footer */
.site-foot { background: var(--asphalt); color: #c9d0d6; margin-top: 0; font-family: var(--sans); }
.site-foot .lane { background: transparent; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 36px 16px 26px; }
@media (min-width: 760px) { .foot-grid { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: #fff; margin: 0 0 8px; }
.foot-brand .brand-mark { width: 34px; height: 34px; }
.site-foot p { font: 400 15.5px/1.55 var(--serif); margin: 0 0 10px; color: #c9d0d6; }
.site-foot h2 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-flex; align-items: center; gap: 8px; color: #dfe4e8; text-decoration: none; padding: 5px 0; font-size: 15.5px; }
.site-foot li a:hover { color: var(--yellow); }
.site-foot a { color: #fff; }
.foot-mail { display: inline-flex; align-items: center; gap: 9px; background: var(--sign); color: #fff !important; text-decoration: none; font: 700 17px var(--sans); padding: 10px 14px; border-radius: 9px; margin: 6px 0 10px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.foot-mail:hover { background: var(--sign-dark); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid #333a41; padding-top: 14px; padding-bottom: 22px; font-size: 14px; color: #9aa3ab; }
.foot-base a { color: #c9d0d6; }

/* 404 */
.notfound { padding-top: 30px; padding-bottom: 60px; max-width: 44rem; margin-left: auto; margin-right: auto; }

@media print {
	.site-head, .site-foot, .article-aside, .related, .toc { display: none; }
	body { background: #fff; }
}
.foot-base .md-footer-meta { margin: 0; font: inherit; color: inherit; }
.art img { aspect-ratio: 16 / 7; object-fit: cover; }
