/*
Theme Name: Teddy Boys Krom
Theme URI: https://teddyboys.nu/
Author: Roger Ek
Description: Barntema till Twenty Twenty-Five för Teddy Boys: amerikanska bilar, raggarkultur och bilträffar. Svart och körsbärsrött med krom och turkos: instrumentbräda, kvällens runda, vitväggsdäck och vägmarkering.
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tb-krom
*/

/* ==========================================================================
   Grund: svart och körsbärsrött, krom och turkos
   ========================================================================== */
:root {
	--bg: #0c0b0b;
	--bg-2: #131112;
	--panel: #1a1718;
	--panel-2: #242021;
	--text: #e6e9eb;
	--bright: #ffffff;
	--soft: #bcc2c7;
	--muted: #949ba1;
	--rule: rgba(230, 233, 235, .14);
	--red: #a50e29;
	--red-text: #f2384f;
	--turq: #46bdb3;
	--turq-bright: #74e2d7;
	--chrome-h: linear-gradient(90deg, #8d979e 0%, #f7f9fa 18%, #b9c2c8 40%, #ffffff 55%, #8c969d 78%, #e5eaed 100%);
	--chrome-text: linear-gradient(180deg, #ffffff 0%, #e4eaee 30%, #9aa6ae 47%, #3a3f44 50%, #6c767e 56%, #c9d1d6 78%, #ffffff 100%);
	--trim: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 4px), linear-gradient(180deg, #ffffff 0%, #d2dadf 32%, #737e86 54%, #2c3034 60%, #a8b2b9 84%, #eef1f3 100%);
	--alu: repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, rgba(0, 0, 0, .035) 1px 3px), linear-gradient(170deg, #eef1f3 0%, #c7cfd4 46%, #dfe4e7 60%, #b9c2c8 100%);
	--whitewall: radial-gradient(circle closest-side, #eef2f4 0 30%, #7d878e 32% 36%, #0c0b0b 38% 46%, #f3f5f6 48% 70%, #0c0b0b 72%);
	--f-display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
	--f-text: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
	--f-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-spring: cubic-bezier(.3, 1.35, .45, 1);
	--pad: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 3rem));
}

html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	background-color: var(--bg);
	color: var(--text);
	font-kerning: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }

:where(a, button, input, summary):focus-visible { outline: 3px solid var(--turq-bright); outline-offset: 3px; border-radius: 4px; }

.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
main.wp-block-group { margin-block-start: 0; }
:where(.tb-home, .tb-single, .tb-guide, .tb-page, .tb-archive, .tb-404) > * { margin-block-start: 0; }

h1, h2, h3, h4 { text-wrap: balance; color: var(--bright); }
p { text-wrap: pretty; }

.tb-skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--bright); color: var(--bg); padding: .7rem 1.1rem; border-radius: 999px;
	font-family: var(--f-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	transition: top .2s var(--ease);
}
.tb-skip:focus { top: 1rem; }

.tb-arrow { display: inline-block; vertical-align: middle; flex: none; transition: transform .3s var(--ease); }
.tb-arrow.is-down { transform: rotate(90deg); }

/* Etiketter: skyltspråk i kondenserad Barlow, med en kromad sidolist framför */
.tb-kicker {
	display: inline-flex; align-items: center; gap: .7rem;
	margin: 0 0 1rem;
	font-family: var(--f-label); font-weight: 600; font-size: 1rem;
	text-transform: uppercase; letter-spacing: .2em; color: var(--turq-bright);
}
.tb-kicker::before {
	content: ""; width: 38px; height: 6px; flex: none;
	background: var(--chrome-h);
	clip-path: polygon(0 50%, 14% 0, 100% 35%, 100% 65%, 14% 100%);
}
.tb-kicker--light { color: var(--bright); }
.tb-kicker:has(.tb-lamp)::before { display: none; }

.tb-sechead { margin: 0 0 clamp(2rem, 4vw, 3.25rem); }
.tb-sechead--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem 4rem; align-items: end; }
.tb-sechead__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4.8vw, 4.1rem); line-height: .98; color: var(--bright); }
.tb-sechead__note { margin: 0; color: var(--soft); font-size: 1.08rem; line-height: 1.55; }

/* Knappar */
.tb-btn {
	display: inline-flex; align-items: center; gap: .7rem;
	padding: .95rem 1.55rem .9rem;
	border-radius: 999px; border: 0;
	background: var(--red); color: #fff;
	font-family: var(--f-label); font-weight: 600; font-size: 1.08rem; letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .22), 0 14px 28px -14px rgba(210, 29, 60, .9);
	transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.tb-btn:hover { background: #c3112f; color: #fff; transform: translateY(-1px); }
.tb-btn:hover .tb-arrow { transform: translateX(4px); }
.tb-btn:hover .tb-arrow.is-down { transform: rotate(90deg) translateX(3px); }
.tb-btn--ghost { background: transparent; color: var(--bright); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42); }
.tb-btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px #fff; }

.tb-btn-link {
	display: inline-flex; align-items: center; gap: .55rem;
	font-family: var(--f-label); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--bright); text-decoration: none;
	background: linear-gradient(90deg, var(--turq) 0 62%, transparent 62%) 0 100% / 14px 2px repeat-x;
	padding-bottom: .3rem;
	transition: color .2s var(--ease), background-position .6s linear;
}
.tb-btn-link:hover { color: var(--turq-bright); background-position: 28px 100%; }
.tb-btn-link:hover .tb-arrow { transform: translateX(4px); }

/* Mätarställning (artikelnummer) */
.tb-odo { display: inline-flex; gap: 2px; vertical-align: middle; }
.tb-odo__d {
	display: inline-grid; place-items: center;
	width: 1.18em; height: 1.62em; border-radius: 3px;
	background: linear-gradient(180deg, #000 0%, #2e2a2b 45%, #2e2a2b 55%, #000 100%);
	color: #f3f5f6;
	font-family: var(--f-label); font-weight: 700; font-size: .92rem; line-height: 1;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.tb-odo__d:last-child { background: linear-gradient(180deg, #5e0716 0%, #c3112f 45%, #c3112f 55%, #5e0716 100%); color: #fff; }

.tb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem; margin: 0; font-family: var(--f-label); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tb-meta__cat { color: var(--turq-bright); }

.tb-lamp { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--turq-bright); box-shadow: 0 0 0 3px rgba(70, 189, 179, .2), 0 0 14px 2px rgba(70, 189, 179, .75); }
.tb-lamp.is-red { background: #ff4d63; box-shadow: 0 0 0 3px rgba(255, 77, 99, .18), 0 0 14px 2px rgba(255, 77, 99, .7); }

.tb-chrome-text {
	color: #e3e8eb;
	background: var(--chrome-text);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)) drop-shadow(0 16px 24px rgba(0, 0, 0, .5));
}

/* Krom-lister och mönster */
.tb-trim { height: 16px; background: var(--trim); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.tb-checker { height: 24px; background: repeating-conic-gradient(#0c0b0b 0 25%, #f3f5f6 0 50%) 0 0 / 24px 24px; }
.tb-checker--small { height: 12px; width: 96px; background-size: 12px 12px; border-radius: 2px; }
.tb-spear { width: min(240px, 50%); height: 10px; background: var(--chrome-h); clip-path: polygon(0 50%, 7% 0, 100% 38%, 100% 62%, 7% 100%); }
.tb-lane { height: 4px; background: repeating-linear-gradient(90deg, currentColor 0 26px, transparent 26px 46px); }

/* ==========================================================================
   Läsframsteg och sidhuvud
   ========================================================================== */
.tb-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.tb-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-text)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.tb-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(12, 11, 11, .97); /* inget backdrop-filter: det skulle fånga mobilmenyns position: fixed */
	padding-top: .8rem; padding-bottom: .8rem;
	transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.tb-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--chrome-h); }
.admin-bar .tb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tb-header { top: 0; } }
body.is-scrolled .tb-header { padding-top: .45rem; padding-bottom: .45rem; box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .9); }

.tb-header__row { gap: 2rem; }
.tb-brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--bright); }
.tb-brand__mark { width: 46px; height: 46px; transition: transform 1.1s var(--ease); }
.tb-brand:hover .tb-brand__mark { transform: rotate(360deg); }
.tb-brand__text { display: flex; flex-direction: column; line-height: 1; }
.tb-brand__name { font-family: var(--f-display); font-size: 1.72rem; color: var(--bright); }
.tb-brand__tag { margin-top: .32rem; font-family: var(--f-label); font-weight: 600; font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-text); }

.tb-nav .wp-block-navigation-item__content { color: var(--bright); text-decoration: none; padding: .35rem 0 !important; position: relative; }
.tb-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: linear-gradient(90deg, var(--turq) 0 60%, transparent 60%) 0 0 / 10px 2px repeat-x;
	transform: scaleX(0); transform-origin: 0 50%;
	transition: transform .35s var(--ease);
}
.tb-nav .wp-block-navigation-item__content:hover { color: var(--turq-bright); }
.tb-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.tb-nav .wp-block-navigation__submenu-icon { color: var(--red-text); }
.tb-nav .wp-block-navigation__submenu-container {
	background: var(--panel) !important; color: var(--text) !important;
	border: 0 !important; border-radius: 14px; padding: .6rem !important;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .1);
	min-width: 300px !important; top: calc(100% + .6rem) !important;
}
.tb-nav .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; background: var(--chrome-h); }
.tb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--text) !important; padding: .6rem .8rem !important; border-radius: 8px; text-transform: none; letter-spacing: .01em; font-family: var(--f-text); font-weight: 500; font-size: 1rem; }
.tb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .07); color: var(--turq-bright) !important; }

/* Mobilmeny */
.tb-nav .wp-block-navigation__responsive-container-open { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; }
.tb-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
.tb-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--red) !important; color: #fff !important; padding: 1.2rem var(--pad) 2rem !important; }
.tb-nav .wp-block-navigation__responsive-container.is-menu-open::before { content: ""; position: absolute; inset: auto 0 0 0; height: 24px; background: repeating-conic-gradient(#0c0b0b 0 25%, #f3f5f6 0 50%) 0 0 / 24px 24px; }
.tb-nav .is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; width: 46px; height: 46px; }
.tb-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem !important; align-items: flex-start !important; }
.tb-nav .is-menu-open .wp-block-navigation__container { gap: .3rem !important; align-items: flex-start !important; }
.tb-nav .is-menu-open .wp-block-navigation-item__content { color: #fff !important; font-family: var(--f-display); font-size: 2rem; letter-spacing: 0; text-transform: none; }
.tb-nav .is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; box-shadow: none; padding: .2rem 0 .6rem 1rem !important; }
.tb-nav .is-menu-open .wp-block-navigation__submenu-container::before { display: none; }
.tb-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: var(--f-text); font-size: 1.1rem; color: #fff !important; opacity: .88; padding: .3rem 0 !important; }

/* ==========================================================================
   Startsidan: instrumentbrädan
   ========================================================================== */
.tb-dash {
	position: relative;
	background:
		radial-gradient(56rem 38rem at 80% 42%, rgba(70, 189, 179, .12), transparent 62%),
		radial-gradient(54rem 34rem at 6% 105%, rgba(165, 14, 41, .55), transparent 62%),
		repeating-linear-gradient(180deg, rgba(255, 255, 255, .024) 0 1px, transparent 1px 5px),
		linear-gradient(180deg, #0b0a0a 0%, #151213 100%);
	overflow: hidden;
}
.tb-dash__inner {
	max-width: 1320px; margin: 0 auto;
	padding: clamp(3rem, 7vw, 5.5rem) var(--pad) clamp(3rem, 6vw, 4.5rem);
	display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
	min-height: min(78vh, 760px);
}
.tb-dash__title { margin: 0; display: block; font-weight: 400; }
.tb-dash__title .tb-chrome-text { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-family: var(--f-display); font-size: clamp(3.2rem, 9.2vw, 9.4rem); line-height: .92; }
.tb-dash__sub {
	display: block; margin-top: 1.2rem;
	font-family: var(--f-label); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.45rem);
	text-transform: uppercase; letter-spacing: .2em; line-height: 1.35;
	color: var(--turq-bright);
	text-shadow: 0 0 1px rgba(116, 226, 215, .9), 0 0 14px rgba(70, 189, 179, .55), 0 0 34px rgba(70, 189, 179, .25);
}
.tb-dash__lede { margin: 1.8rem 0 0; max-width: 34rem; font-size: clamp(1.1rem, 1.4vw, 1.27rem); line-height: 1.62; color: var(--soft); }
.tb-dash__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2.2rem 0 0; }
.tb-dash__gauge { margin: 0; justify-self: end; width: 100%; max-width: 560px; }
.tb-dash__gauge figcaption { margin-top: 1rem; text-align: center; font-family: var(--f-label); font-weight: 600; font-size: .92rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.tb-speedo { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)); }
.tb-speedo__track { fill: none; stroke: #0c0b0b; stroke-width: 1.6; opacity: .45; }
.tb-speedo__red { fill: none; stroke: var(--red); stroke-width: 10; }
.tb-speedo__turq { fill: none; stroke: var(--turq); stroke-width: 10; }
.tb-speedo__ticks line { stroke: #0c0b0b; }
.tb-speedo__ticks .is-major { stroke-width: 4.5; }
.tb-speedo__ticks .is-mid { stroke-width: 2.6; }
.tb-speedo__ticks .is-minor { stroke-width: 1.5; opacity: .7; }
.tb-speedo__nums text { font-family: var(--f-label); font-weight: 700; font-size: 31px; fill: #0c0b0b; text-anchor: middle; dominant-baseline: central; }
.tb-speedo__unit { font-family: var(--f-label); font-weight: 600; font-size: 17px; letter-spacing: 5px; fill: #545c62; text-anchor: middle; }
.tb-speedo__odo rect { fill: #0c0b0b; }
.tb-speedo__odo rect.is-last { fill: var(--red); }
.tb-speedo__odo text { font-family: var(--f-label); font-weight: 700; font-size: 27px; fill: #f3f5f6; text-anchor: middle; dominant-baseline: central; }
.tb-speedo__odolabel { font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: 5px; fill: #545c62; text-anchor: middle; }
.tb-speedo__needle { transform: rotate(var(--a, 0deg)); transform-origin: 300px 300px; transform-box: view-box; }
.tb-speedo.is-sweep .tb-speedo__needle { transition: transform 1.2s var(--ease-spring); }
.tb-speedo.is-live .tb-speedo__needle { transition: transform .55s cubic-bezier(.25, 1.2, .45, 1); }

/* ==========================================================================
   Sektioner
   ========================================================================== */
.tb-sec { padding-block: clamp(4rem, 8vw, 7rem); }
.tb-sec__inner { max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }

/* Röda fält: rundan, föraren, guidernas och arkivens huvuden */
.tb-red {
	position: relative;
	background:
		radial-gradient(70rem 36rem at 85% -10%, rgba(255, 255, 255, .13), transparent 60%),
		radial-gradient(60rem 30rem at 0% 110%, rgba(0, 0, 0, .35), transparent 60%),
		var(--red);
	color: #fff;
}
.tb-red::before, .tb-red::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--trim); z-index: 1; }
.tb-red::before { top: 0; }
.tb-red::after { bottom: 0; }
.tb-red .tb-kicker { color: #fff; }
.tb-red .tb-sechead__note { color: rgba(255, 255, 255, .88); }

/* Senaste artikeln */
.tb-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.tb-lead__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 26px; background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -36px rgba(0, 0, 0, .95); }
.tb-lead__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.tb-lead__img:hover img { transform: scale(1.035); }
.tb-lead__tag {
	position: absolute; left: 1.1rem; top: 1.1rem; z-index: 1;
	padding: .45rem .9rem .4rem; border-radius: 999px;
	background: rgba(12, 11, 11, .86); color: #fff;
	font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
	display: inline-flex; align-items: center; gap: .5rem;
}
.tb-lead__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turq-bright); box-shadow: 0 0 10px var(--turq); }
.tb-lead__title { margin: 1rem 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 3.1rem); line-height: 1.02; }
.tb-lead__title a { color: var(--bright); text-decoration: none; transition: color .2s var(--ease); }
.tb-lead__title a:hover { color: var(--turq-bright); }
.tb-lead__ex { margin: 1.2rem 0 1.8rem; font-size: 1.2rem; line-height: 1.6; color: var(--soft); }
.tb-lead__min { margin-left: 1.2rem; font-family: var(--f-label); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Kort */
.tb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.25rem); list-style: none; padding: 0; margin: 0; }
.tb-cards > li { margin: 0; }
.tb-card { position: relative; display: flex; flex-direction: column; }
.tb-card__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: var(--panel); margin-bottom: 1.15rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 40px -28px rgba(0, 0, 0, .95); }
.tb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.tb-card__img::after, .tb-lead__img::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .32) 48%, rgba(255, 255, 255, .06) 53%, transparent 62%);
	transform: translateX(-110%);
	transition: transform 1s var(--ease);
}
.tb-card:hover .tb-card__img::after, .tb-lead__img:hover::after { transform: translateX(110%); }
.tb-card:hover .tb-card__img img { transform: scale(1.04); }
.tb-card__ph { position: absolute; inset: 0; background: repeating-conic-gradient(var(--panel) 0 25%, var(--panel-2) 0 50%) 0 0 / 28px 28px; }
.tb-card__title { margin: .7rem 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.7vw, 1.5rem); line-height: 1.12; }
.tb-card__title a { color: var(--bright); text-decoration: none; background: linear-gradient(var(--turq), var(--turq)) 0 100% / 0 2px no-repeat; transition: color .2s var(--ease), background-size .4s var(--ease); }
.tb-card__title a:hover { color: var(--turq-bright); background-size: 100% 2px; }
.tb-card__title a::after { content: ""; position: absolute; inset: 0; }
.tb-card__ex { margin: .6rem 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--soft); }
.tb-card__min { margin: .8rem 0 0; font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tb-card.is-page { padding: 1.5rem; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); }

/* ==========================================================================
   Kvällens runda (strip map) på rött fält
   ========================================================================== */
.tb-sec--route {
	background:
		linear-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px) 0 0 / 80px 80px,
		linear-gradient(90deg, rgba(0, 0, 0, .1) 1px, transparent 1px) 0 0 / 80px 80px,
		radial-gradient(70rem 36rem at 85% -10%, rgba(255, 255, 255, .13), transparent 60%),
		var(--red);
}
.tb-route { position: relative; }
.tb-route__map { position: relative; height: 470px; }
.tb-route__road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tb-route__road path { fill: none; vector-effect: non-scaling-stroke; }
.tb-road__shoulder { stroke: #f3f5f6; stroke-width: 54; opacity: .92; }
.tb-road__base { stroke: #141213; stroke-width: 46; }
.tb-road__dash { stroke: #f3f5f6; stroke-width: 3; stroke-dasharray: 18 16; animation: tb-drive 5s linear infinite; }
@keyframes tb-drive { to { stroke-dashoffset: -340; } }
.tb-route:hover .tb-road__dash { animation-duration: 1.6s; }

.tb-route__stops { list-style: none; margin: 0; padding: 0; }
.tb-stop { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; margin: 0; }
.tb-stop__link { color: #fff; text-decoration: none; }
.tb-stop__wheel { position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; z-index: 2; box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .7); }
.tb-stop__wheel::before {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	background:
		repeating-conic-gradient(rgba(255, 255, 255, 0) 0 8deg, rgba(0, 0, 0, .14) 8deg 10deg),
		radial-gradient(circle closest-side, #f4f6f7 0 34%, #8e989f 35% 38%, var(--red) 39% 48%, #f3f5f6 49% 66%, #0c0b0b 67% 100%);
	transition: transform 1s var(--ease);
}
.tb-stop__n { position: relative; font-family: var(--f-display); font-size: 1.15rem; color: #0c0b0b; line-height: 1; }
.tb-stop__link:hover .tb-stop__wheel::before, .tb-stop__link:focus-visible .tb-stop__wheel::before { transform: rotate(240deg); }
.tb-stop__sign { position: absolute; left: -140px; width: 280px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.tb-stop.is-up .tb-stop__sign { bottom: 58px; }
.tb-stop.is-down .tb-stop__sign { top: 58px; }
.tb-stop__exit { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .7rem .24rem; border-radius: 6px; background: #0c0b0b; color: #fff; font-family: var(--f-label); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.tb-stop__name { font-family: var(--f-display); font-size: 1.8rem; line-height: 1.05; color: #fff; transition: color .2s var(--ease); }
.tb-stop__desc { font-size: 1rem; line-height: 1.4; color: rgba(255, 255, 255, .88); max-width: 15rem; }
.tb-stop__count { display: inline-flex; align-items: center; gap: .45rem; margin-top: .2rem; font-family: var(--f-label); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.tb-stop__link:hover .tb-stop__name { color: #0c0b0b; }
.tb-stop__link:hover .tb-arrow { transform: translateX(4px); }
.tb-stop__link[aria-current] .tb-stop__wheel { box-shadow: 0 0 0 4px var(--turq-bright), 0 0 26px 6px rgba(70, 189, 179, .55); }

.tb-route__start, .tb-route__end {
	position: absolute; top: var(--y); margin: 0; z-index: 2;
	display: flex; align-items: center; gap: .8rem;
	transform: translateY(-50%);
	font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.tb-route__start { left: -6px; }
.tb-route__start img { width: 56px; height: 56px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.tb-route__start span, .tb-route__end span { display: flex; flex-direction: column; line-height: 1.25; position: absolute; bottom: calc(100% + 1rem); white-space: nowrap; }
.tb-route__start span { left: 6px; }
.tb-route__end { right: -6px; }
.tb-route__end a { display: flex; align-items: center; color: inherit; text-decoration: none; }
.tb-route__end span { right: 0; text-align: right; }
.tb-route__start b, .tb-route__end b { color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0; text-transform: none; }
.tb-flag { display: block; width: 56px; height: 56px; border-radius: 50%; background: repeating-conic-gradient(#0c0b0b 0 25%, #f3f5f6 0 50%) 0 0 / 14px 14px; box-shadow: 0 0 0 4px #0c0b0b, 0 6px 10px rgba(0, 0, 0, .4); }

/* Liten karta i arkiv och artiklar */
.tb-route.is-mini .tb-route__map { height: 128px; }
.tb-route.is-mini .tb-route__road { top: 0; height: 56px; }
.tb-route.is-mini .tb-road__shoulder { stroke-width: 30; opacity: .25; }
.tb-route.is-mini .tb-road__base { stroke: #2a2627; stroke-width: 24; }
.tb-route.is-mini .tb-road__dash { stroke-width: 2; stroke-dasharray: 12 12; }
.tb-route.is-mini .tb-stop { top: 28px; }
.tb-route.is-mini .tb-stop__wheel { left: -24px; top: -24px; width: 48px; height: 48px; }
.tb-route.is-mini .tb-stop__n { font-size: .9rem; }
.tb-route.is-mini .tb-stop__sign { top: 34px; gap: .1rem; left: -100px; width: 200px; }
.tb-route.is-mini .tb-stop__exit { background: none; color: var(--muted); padding: 0; font-size: .75rem; }
.tb-route.is-mini .tb-stop__name { font-size: 1.1rem; }
.tb-route.is-mini .tb-stop__link:hover .tb-stop__name, .tb-route.is-mini .tb-stop__link[aria-current] .tb-stop__name { color: var(--turq-bright); }
.tb-route-wrap { margin-top: 3.5rem; }
.tb-red .tb-route.is-mini .tb-stop__exit { color: rgba(255, 255, 255, .75); }
.tb-red .tb-route.is-mini .tb-road__base { stroke: #141213; }
.tb-red .tb-route.is-mini .tb-road__shoulder { opacity: .9; }
.tb-red .tb-route.is-mini .tb-stop__link:hover .tb-stop__name, .tb-red .tb-route.is-mini .tb-stop__link[aria-current] .tb-stop__name { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ==========================================================================
   Handskfacket (guiderna): kort i borstad aluminium
   ========================================================================== */
.tb-glovebox {
	position: relative;
	padding-block: clamp(4.5rem, 8vw, 7rem);
	background:
		repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 5px),
		radial-gradient(60rem 30rem at 15% 0%, rgba(70, 189, 179, .1), transparent 60%),
		var(--bg-2);
}
.tb-glovebox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--trim); }
.tb-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); }
.tb-guides li { margin: 0; }
.tb-guides a {
	position: relative; overflow: hidden; height: 100%;
	display: flex; flex-direction: column; gap: .7rem;
	min-height: 360px; padding: 1.4rem 1.4rem 1.5rem;
	border-radius: 18px; background: var(--alu); color: #15181b; text-decoration: none;
	border: 1px solid #8f99a0;
	box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .14), 0 30px 50px -30px rgba(0, 0, 0, 1);
	transition: transform .4s var(--ease);
}
.tb-guides a::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 47%, transparent 58%); transform: translateX(-120%); transition: transform 1.1s var(--ease); }
.tb-guides a:hover::after { transform: translateX(120%); }
.tb-guides a:hover { transform: translateY(-6px); }
.tb-guides__tab { align-self: flex-start; padding: .3rem .75rem .26rem; border-radius: 999px; background: #0c0b0b; color: #fff; font-family: var(--f-label); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.tb-guides__n { position: absolute; right: .9rem; top: .1rem; font-family: var(--f-display); font-size: 7.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(21, 24, 27, .7); transition: color .35s var(--ease), -webkit-text-stroke-color .35s var(--ease); }
.tb-guides a:hover .tb-guides__n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.tb-guides__title { margin-top: 5.2rem; font-family: var(--f-display); font-size: 1.45rem; line-height: 1.1; color: #15181b; }
.tb-guides__ex { font-size: 1rem; line-height: 1.5; color: #353c41; }
.tb-guides__min { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: space-between; font-family: var(--f-label); font-weight: 700; font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tb-guides a:hover .tb-arrow { transform: translateX(4px); }
.tb-guides a[aria-current] { box-shadow: 0 0 0 3px var(--turq-bright), 0 30px 50px -30px rgba(0, 0, 0, 1); }
.tb-glovebox.is-compact .tb-guides a { min-height: 300px; }
.tb-rivet { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 15%, #b7c0c6 40%, #5f686f 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, .4); }

/* Föraren och typskylten (rött fält) */
.tb-driver { padding-block: clamp(4.5rem, 9vw, 8rem); }
.tb-driver .tb-sec__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.tb-driver__text p { font-size: 1.18rem; line-height: 1.68; max-width: 38rem; color: rgba(255, 255, 255, .93); }
.tb-driver__text .tb-sechead__title { margin-bottom: 1.5rem; color: #fff; }
.tb-driver__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
.tb-red .tb-btn-link { color: #fff; background-image: linear-gradient(90deg, #fff 0 62%, transparent 62%); }
.tb-red .tb-btn-link:hover { color: #fff; }

.tb-plate {
	position: relative; margin: 0;
	padding: 1.9rem 2.1rem 1.6rem;
	border-radius: 16px; background: var(--alu);
	border: 1px solid #8f99a0;
	box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .14), 0 34px 50px -26px rgba(0, 0, 0, .8);
	color: #15181b;
	transform: rotate(-1.6deg);
	transition: transform .6s var(--ease);
}
.tb-plate:hover { transform: rotate(0deg); }
.tb-plate__head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; margin-bottom: .6rem; border-bottom: 2px solid rgba(0, 0, 0, .18); }
.tb-plate__head img { width: 46px; height: 46px; }
.tb-plate__head p { margin: 0; display: flex; flex-direction: column; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.1; color: #15181b; }
.tb-plate__head p span { font-family: var(--f-label); font-weight: 600; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: #4a5359; }
.tb-plate dl { margin: 0; }
.tb-plate dl div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(0, 0, 0, .13); }
.tb-plate dt { font-family: var(--f-label); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #4a5359; padding-top: .2rem; }
.tb-plate dd { margin: 0; font-family: var(--f-label); font-weight: 700; font-size: 1.22rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25; color: #15181b; text-shadow: 0 1px 0 rgba(255, 255, 255, .75); }
.tb-plate figcaption { margin-top: 1rem; font-family: var(--f-label); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #4a5359; }
.tb-plate .tb-rivet:nth-of-type(1) { left: 10px; top: 10px; }
.tb-plate .tb-rivet:nth-of-type(2) { right: 10px; top: 10px; }
.tb-plate .tb-rivet:nth-of-type(3) { left: 10px; bottom: 10px; }
.tb-plate .tb-rivet:nth-of-type(4) { right: 10px; bottom: 10px; }
.tb-plate.is-compact { padding: 1.4rem 1.5rem 1.2rem; transform: rotate(-1deg); }
.tb-plate.is-compact dl div { grid-template-columns: 5.5rem minmax(0, 1fr); padding: .45rem 0; }
.tb-plate.is-compact dd { font-size: 1rem; }

/* ==========================================================================
   Sidfot
   ========================================================================== */
.tb-footer { background: #070606; color: var(--soft); padding-bottom: 2rem; }
.tb-footer .tb-checker { margin-inline: calc(var(--pad) * -1); }
.tb-footer > .alignwide { padding-top: clamp(3.5rem, 6vw, 5rem); }
.tb-footer__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.tb-footer__brand { display: inline-flex; align-items: center; gap: 1.2rem; text-decoration: none; }
.tb-footer__brand img { transition: transform 1.2s var(--ease); }
.tb-footer__brand:hover img { transform: rotate(-360deg); }
.tb-footer__brand span { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: #e3e8eb; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tb-footer__sign { margin: 0; font-family: var(--f-display); font-size: 1.6rem; color: #fff; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.tb-footer__sign span { font-family: var(--f-label); font-weight: 600; font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-text); margin-top: .4rem; }
.tb-footer__cols { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: 2.8rem 0; }
.tb-footer__about p { margin: 0 0 1rem; max-width: 30rem; line-height: 1.6; }
.tb-footer__note { font-size: .95rem; color: var(--muted); }
.tb-footer__h { margin: 0 0 1rem; font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: var(--turq-bright); }
.tb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.tb-footer a { color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
.tb-footer a:hover { color: var(--turq-bright); }
.tb-footer__base { display: flex; align-items: center; gap: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tb-footer__base p { margin: 0; white-space: nowrap; }
.tb-footer__base .tb-lane { flex: 1; color: #f3f5f6; opacity: .3; }

/* ==========================================================================
   Artiklar
   ========================================================================== */
.tb-ahead { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.tb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.6rem; font-family: var(--f-label); font-weight: 600; font-size: .88rem; letter-spacing: .16em; text-transform: uppercase; }
.tb-crumbs a { color: var(--muted); text-decoration: none; }
.tb-crumbs a:hover { color: var(--turq-bright); }
.tb-crumbs__sep { color: var(--red-text); width: 14px; }
.tb-ahead__cat { margin: 0 0 1.2rem; }
.tb-ahead__cat a { display: inline-flex; align-items: center; gap: .55rem; padding: .38rem .9rem .34rem; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; transition: background-color .2s var(--ease); }
.tb-ahead__cat a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--whitewall); }
.tb-ahead__cat a:hover { background: #c3112f; }
.tb-ahead__title { margin: 0; max-width: 21ch; font-size: clamp(2.5rem, 5.6vw, 5.3rem) !important; line-height: 1 !important; color: var(--bright); }
.tb-ahead__lede, .tb-ghead__lede { margin: 1.6rem 0 0; max-width: 44rem; }
.tb-ahead__lede p, .tb-ghead__lede p { margin: 0; font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.55; color: var(--soft); }
.tb-smeta { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; margin: 2.2rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--rule); }
.tb-smeta li { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: 1.02rem; color: var(--bright); }
.tb-smeta li > span:first-child { font-family: var(--f-label); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.tb-hero-img { margin-top: clamp(2rem, 4vw, 3rem) !important; }
.tb-hero-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 80px -46px rgba(0, 0, 0, 1); }
.tb-hero-img figcaption { display: flex; gap: .8rem; align-items: baseline; margin-top: .9rem; font-family: var(--f-label); font-weight: 500; font-size: 1rem; letter-spacing: .03em; color: var(--muted); }
.tb-hero-img figcaption span { font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); }

.tb-agrid { display: grid; grid-template-columns: 250px minmax(0, 660px); justify-content: center; gap: clamp(2rem, 6vw, 6.5rem); margin-top: clamp(2.5rem, 5vw, 4.5rem) !important; }
.tb-agrid__aside { position: relative; }
.tb-toc { position: sticky; top: 120px; }
.tb-toc__title { margin: 0 0 1.1rem; font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red-text); }
.tb-toc ol { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: .3rem; }
.tb-toc ol::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(180deg, #f3f5f6 0 9px, transparent 9px 16px); opacity: .35; }
.tb-toc li { position: relative; margin: 0; }
.tb-toc a { display: flex; gap: .55rem; padding: .3rem 0; color: var(--soft); text-decoration: none; font-size: .98rem; line-height: 1.35; transition: color .2s var(--ease); }
.tb-toc a::before { content: ""; position: absolute; left: -30px; top: .42rem; width: 20px; height: 20px; border-radius: 50%; background: var(--whitewall); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tb-toc__n { display: none; }
.tb-toc a:hover { color: var(--turq-bright); }
.tb-toc li.is-active a { color: var(--bright); font-weight: 600; }
.tb-toc li.is-active a::before { transform: scale(1.15) rotate(90deg); box-shadow: 0 0 0 3px var(--red), 0 0 14px rgba(242, 56, 79, .6); }

.tb-body { font-size: clamp(1.1rem, 1.3vw, 1.24rem); line-height: 1.74; color: var(--text); }
.tb-body > * { margin-block: 0 1.35rem; }
.tb-body > :first-child { margin-top: 0; }
.tb-single .tb-body > p:first-child::first-letter { float: left; margin: .1em .12em 0 0; font-family: var(--f-display); font-size: 4.55em; line-height: .78; color: var(--red-text); }
.tb-body h2 { margin: 3.2rem 0 1.1rem; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.08; scroll-margin-top: 120px; color: var(--bright); }
.tb-body h2::before { content: ""; display: block; width: 72px; height: 7px; margin-bottom: 1.1rem; background: var(--chrome-h); clip-path: polygon(0 50%, 10% 0, 100% 38%, 100% 62%, 10% 100%); }
.tb-body h3 { margin: 2.2rem 0 .7rem; font-size: 1.32rem; color: var(--bright); scroll-margin-top: 120px; }
.tb-body a { color: var(--turq-bright); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tb-body a:hover { color: #fff; text-decoration-color: var(--red-text); }
.tb-body strong { color: var(--bright); }
.tb-body ul { list-style: none; padding-left: 0; }
.tb-body ul li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.tb-body ul li::before { content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 15px; border-radius: 50%; background: var(--whitewall); }
.tb-body ol { list-style: none; counter-reset: li; padding-left: 0; }
.tb-body ol li { counter-increment: li; position: relative; padding-left: 2.6rem; margin-bottom: .7rem; }
.tb-body ol li::before { content: counter(li); position: absolute; left: 0; top: .05em; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--f-display); font-size: .9rem; line-height: 1; }
.tb-body blockquote { margin: 2.2rem 0; padding: .3rem 0 .3rem 1.6rem; border-left: 6px solid var(--red); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--bright); }
.tb-body hr { border: 0; height: 9px; width: 160px; margin: 3rem 0; background: var(--chrome-h); clip-path: polygon(0 50%, 7% 0, 100% 38%, 100% 62%, 7% 100%); }
.tb-body table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; margin: 0; }
.tb-body th { text-align: left; font-family: var(--f-label); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: .6rem .8rem; border-bottom: 2px solid var(--red); }
.tb-body td { padding: .75rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tb-body td:first-child { font-weight: 700; color: var(--bright); white-space: nowrap; }
.tb-body tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
.tb-tablewrap { overflow-x: auto; margin: 1.8rem 0 2rem !important; }

.tb-fakta { position: relative; margin: 2.2rem 0 !important; padding: 1.5rem 1.7rem 1.3rem 1.9rem; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.tb-fakta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--turq); }
.tb-fakta > p:first-child { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--turq-bright); }
.tb-fakta p, .tb-fakta li { font-size: 1.05rem; line-height: 1.6; }
.tb-fakta > :last-child { margin-bottom: 0; }
.tb-fakta ul { margin: 0; }

.tb-signoff { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 700px; margin: clamp(3.5rem, 6vw, 5rem) auto 0 !important; text-align: center; }
.tb-signoff .tb-lane { width: 100%; color: #f3f5f6; opacity: .22; }
.tb-signoff p { margin: 0; font-family: var(--f-display); font-size: 2rem; display: flex; flex-direction: column; line-height: 1.1; color: var(--bright); }
.tb-signoff p span { font-family: var(--f-label); font-weight: 600; font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-text); margin-top: .4rem; }

.tb-author { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2.5rem; align-items: center; max-width: 960px; margin: 3.5rem auto 0 !important; padding: 2rem 2rem 2.6rem; border-radius: 24px; background: var(--red); position: relative; overflow: hidden; }
.tb-author::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--trim); }
.tb-author__name { margin: 0 0 .5rem; font-family: var(--f-display); font-size: 1.7rem; color: #fff; }
.tb-author__text p { margin-top: 0; font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, .93); }
.tb-author__text a { color: #fff; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tb-author__text .tb-kicker { margin-bottom: .6rem; color: #fff; }
.tb-sec--next { padding-top: clamp(4rem, 7vw, 6rem); }

/* ==========================================================================
   Guider, sidor, arkiv, sök, 404
   ========================================================================== */
.tb-ghead, .tb-archead { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3.4rem, 5vw, 5rem); }
.tb-ghead::before, .tb-archead::before { display: none; }
.tb-ghead .tb-crumbs a, .tb-archead .tb-crumbs a { color: rgba(255, 255, 255, .8); }
.tb-ghead .tb-crumbs__sep, .tb-archead .tb-crumbs__sep { color: #fff; }
.tb-ghead__chapter { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 1.4rem; font-family: var(--f-label); font-weight: 600; font-size: .92rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.tb-ghead__chapter span { padding: .32rem .8rem .28rem; border-radius: 999px; background: #0c0b0b; color: #fff; }
.tb-ghead__title { margin: 0; max-width: 20ch; font-size: clamp(2.5rem, 5.8vw, 5.3rem) !important; line-height: 1 !important; color: #fff; }
.tb-ghead__lede p { color: rgba(255, 255, 255, .92); }
.tb-ghead .tb-smeta { border-top-color: rgba(255, 255, 255, .3); }
.tb-ghead .tb-smeta li { color: #fff; }
.tb-ghead .tb-smeta li > span:first-child { color: rgba(255, 255, 255, .78); }
.tb-guide .tb-glovebox { margin-top: clamp(4rem, 7vw, 6rem) !important; }

.tb-phead { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 1rem; max-width: 680px; margin-inline: auto !important; width: 100%; }
.tb-phead__title { margin: 0 0 1.6rem; font-size: clamp(2.6rem, 6vw, 5rem) !important; line-height: 1 !important; color: var(--bright); }
.tb-body--page { padding-bottom: clamp(4rem, 8vw, 6rem); }
.tb-body--page > .tb-plate { margin: 2.5rem 0 3rem; max-width: 460px; }

.tb-archead__title { margin: 0; font-size: clamp(3rem, 8vw, 7rem) !important; line-height: .95 !important; color: #fff !important; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.tb-archead__desc { margin-top: 1.3rem; max-width: 46rem; }
.tb-archead__desc p { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.tb-archead .tb-kicker::before { background: var(--chrome-h); }
.tb-grid { margin-top: clamp(4rem, 7vw, 5.5rem) !important; padding-bottom: clamp(4rem, 8vw, 6rem); }
.tb-grid .wp-block-query-pagination { margin-top: 3rem; font-family: var(--f-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tb-grid .wp-block-query-pagination a { color: var(--turq-bright); }

.tb-search { margin-top: 1.5rem; max-width: 34rem; }
.tb-search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.tb-search .wp-block-search__input, .tb-404__search input { border: 0; border-radius: 999px 0 0 999px; padding: .9rem 1.2rem; font: inherit; font-size: 1.05rem; background: #f3f5f6; color: #0c0b0b; }
.tb-search .wp-block-search__button, .tb-404__search button { border: 0; border-radius: 0 999px 999px 0; margin: 0; padding: .9rem 1.4rem; background: #0c0b0b; color: #fff; font-family: var(--f-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.tb-404__search { display: flex; margin-top: 2rem; max-width: 30rem; }
.tb-404__search input { flex: 1; min-width: 0; }
.tb-404__search button { background: var(--red); }
.tb-dash--404 .tb-dash__title .tb-chrome-text { font-size: clamp(3rem, 8vw, 7.5rem); }

/* ==========================================================================
   Responsivt
   ========================================================================== */
@media (max-width: 1180px) {
	.tb-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-nav { --wp--style--block-gap: 1.1rem; }
}
@media (max-width: 1080px) {
	.tb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tb-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
	.tb-dash__inner { grid-template-columns: 1fr; min-height: 0; }
	.tb-dash__gauge { justify-self: center; max-width: 440px; }
	.tb-lead { grid-template-columns: 1fr; }
	.tb-sechead--split { grid-template-columns: 1fr; }
	.tb-driver .tb-sec__inner { grid-template-columns: 1fr; }
	.tb-driver__plate { max-width: 460px; }
	.tb-agrid { grid-template-columns: minmax(0, 660px); }
	.tb-toc { position: static; padding: 1.3rem 1.4rem 1.1rem; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); }
	.tb-author { grid-template-columns: 1fr; }
	.tb-author .tb-plate { max-width: 360px; }

	/* Rundan blir en lodrät strip map */
	.tb-route:not(.is-mini) .tb-route__map { height: auto; padding: 5rem 0 5.6rem; }
	.tb-route:not(.is-mini) .tb-route__road { display: none; }
	.tb-route:not(.is-mini) .tb-route__map::before {
		content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 46px;
		background: repeating-linear-gradient(180deg, #f3f5f6 0 18px, transparent 18px 34px) 50% 0 / 3px 100% no-repeat, #141213;
		box-shadow: 0 0 0 4px rgba(243, 245, 246, .9);
		border-radius: 3px;
		animation: tb-drive-v 4s linear infinite;
	}
	.tb-route:not(.is-mini) .tb-stop { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 1.4rem 0 1.4rem 86px; }
	.tb-route:not(.is-mini) .tb-stop__wheel { left: -5px; top: 1.2rem; }
	.tb-route:not(.is-mini) .tb-stop__sign { position: static; width: auto; align-items: flex-start; text-align: left; }
	.tb-route:not(.is-mini) .tb-stop__desc { max-width: none; }
	.tb-route:not(.is-mini) .tb-route__start { top: 0; left: 5px; transform: none; }
	.tb-route:not(.is-mini) .tb-route__end { top: auto; bottom: 0; left: 5px; right: auto; transform: none; }
	.tb-route:not(.is-mini) .tb-route__start span, .tb-route:not(.is-mini) .tb-route__end span { position: static; text-align: left; }
	.tb-route:not(.is-mini) .tb-route__end a { flex-direction: row-reverse; gap: .8rem; }
}
@keyframes tb-drive-v { to { background-position: 50% 34px, 0 0; } }
@media (max-width: 700px) {
	.tb-header__row { gap: 1rem; }
	.tb-brand__mark { width: 40px; height: 40px; }
	.tb-brand__name { font-size: 1.45rem; }
	.tb-brand__tag { font-size: .68rem; letter-spacing: .24em; }
	.tb-dash__title .tb-chrome-text { font-size: clamp(3rem, 15.5vw, 5rem); }
	.tb-dash__sub { letter-spacing: .14em; }
	.tb-dash__gauge { max-width: 330px; }
	.tb-cards { grid-template-columns: 1fr; }
	.tb-guides { grid-template-columns: 1fr; }
	.tb-guides a { min-height: 0; }
	.tb-guides__n { font-size: 5.5rem; }
	.tb-guides__title { margin-top: 3.4rem; }
	.tb-footer__cols { grid-template-columns: 1fr 1fr; }
	.tb-footer__head { align-items: flex-start; flex-direction: column; }
	.tb-footer__sign { align-items: flex-start; }
	.tb-footer__base { flex-wrap: wrap; gap: .8rem 1.5rem; }
	.tb-footer__base .tb-lane { order: 3; flex-basis: 100%; }
	.tb-hero-img img { aspect-ratio: 4 / 3; border-radius: 16px; }
	.tb-plate { padding: 1.5rem 1.4rem 1.3rem; }
	.tb-plate dl div { grid-template-columns: 6.6rem minmax(0, 1fr); gap: .7rem; }
	.tb-plate dd { font-size: 1.05rem; }
	.tb-lead__min { display: block; margin: 1rem 0 0; }
	.tb-smeta { gap: 1rem 1.6rem; }
	.tb-author { padding: 1.4rem 1.4rem 2.2rem; }
	.tb-route.is-mini .tb-stop__exit { display: none; }
	.tb-route.is-mini .tb-stop__sign { left: -44px; width: 88px; }
	.tb-route.is-mini .tb-stop__name { font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
	.tb-route.is-mini .tb-route__map { height: 112px; }
	.tb-body td:first-child { white-space: normal; }
	/* Tryckytor minst 44 px */
	.tb-footer ul { gap: 0; }
	.tb-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
	.tb-toc a { padding: .55rem 0; }
	.tb-toc a::before { top: .66rem; }
	.tb-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
	.tb-btn-link { min-height: 44px; }
}

/* Rörelse: allt innehåll är synligt från början, rörelsen är bara förstärkning. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.tb-brand:hover .tb-brand__mark, .tb-footer__brand:hover img { transform: none; }
}

@media print {
	body { background: #fff; color: #000; }
	.tb-header, .tb-footer, .tb-route, .tb-dash__gauge, .tb-progress, .tb-agrid__aside, .tb-sec--next { display: none !important; }
	.tb-agrid { grid-template-columns: 1fr; }
}

/* Mobilmenyn: allt vänsterställt, även undermenyn med guiderna */
.tb-nav .is-menu-open .wp-block-navigation-item,
.tb-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; }
.tb-nav .is-menu-open .wp-block-navigation__container { justify-content: flex-start !important; }
.tb-nav .is-menu-open .wp-block-navigation__submenu-container { padding-left: 0 !important; }
