/*
Theme Name: Testbäst
Theme URI: https://testbast.nu/
Author: Testbäst
Description: Barntema för Testbäst, ett redaktionellt konsumentmagasin. Roboto Serif bär rubriker och brödtext, Roboto Flex små etiketter, navigation och tabeller. En accentfärg, hårlinjer och luft i stället för dekor.
Template: twentytwentyfive
Version: 2.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tb-testbast
*/

/* ==========================================================================
   Grund: färger, typsnitt, mått
   Avstånd följer skalan 4, 8, 12, 16, 24, 32, 48, 64, 96 px.
   ========================================================================== */

:root {
	--tb-text: #15141A;
	--tb-text-2: #55535E;
	--tb-vit: #FFFFFF;
	--tb-papper: #F7F6F3;
	--tb-linje: #E2E0DA;
	--tb-accent: #9E0F4D;
	--tb-serif: 'Roboto Serif', Georgia, 'Times New Roman', serif;
	--tb-sans: 'Roboto Flex', 'Helvetica Neue', Arial, sans-serif;
	--tb-max: 1200px;
	--tb-text-max: 680px;
	--tb-gutter: 24px;

	/* Flow Testbank (prefix tm) */
	--tm-accent: #9E0F4D;
	--tm-pa-accent: #FFFFFF;
	--tm-yta: #F7F6F3;
	--tm-bakgrund: #FFFFFF;
	--tm-text: #15141A;
	--tm-text-svag: #55535E;
	--tm-kant: #E2E0DA;
	--tm-radie: 2px;
	--tm-font-rubrik: 'Roboto Serif', Georgia, serif;
	--tm-vinnare: #15141A;
	--tm-pa-vinnare: #FFFFFF;
	--tm-vinnare-text: #15141A;
	--tm-plus: #15141A;
	--tm-minus: #15141A;
	--tm-mellanrum: 24px;
	--tm-metod-yta: #FFFFFF;
	--tm-metod-text: #15141A;
	--tm-bild-ratio: 3 / 2;
	--tm-guidebild-ratio: 16 / 9;
}
@media (max-width: 600px) { :root { --tb-gutter: 16px; } }

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--tb-vit);
	color: var(--tb-text);
	font-family: var(--tb-serif);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	overflow-x: clip;
}
@media (max-width: 600px) { body { font-size: 1.0625rem; } }
h1, h2, h3, h4 { font-family: var(--tb-serif); font-weight: 700; font-optical-sizing: auto; color: var(--tb-text); letter-spacing: 0; line-height: 1.2; }
img { max-width: 100%; height: auto; }
a { color: var(--tb-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--tb-text); }
:where(a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--tb-accent); outline-offset: 2px; border-radius: 1px; }
::selection { background: #EADDE3; color: var(--tb-text); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tb-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--tb-text); color: #fff; font-family: var(--tb-sans); font-weight: 600; }
.tb-skip:focus { top: 16px; color: #fff; }

/* Innehållsrutnätet */
.tb-in, .tb-vy-in { width: min(var(--tb-max), calc(100% - 2 * var(--tb-gutter))); margin-inline: auto; box-sizing: border-box; }
.tb-sek { padding-block: 48px; }
.tb-sek.is-tat { padding-top: 24px; }
.tb-sek.is-smal { max-width: var(--tb-text-max); }
.tb-yta { background: var(--tb-papper); border-block: 1px solid var(--tb-linje); }
main { display: block; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Små textelement i sans */
.tb-etikett, .tb-meta, .tb-byline, .tb-smulor, .tb-utm, .tb-knapp, .tb-sec-link, .tb-omdome, .tb-tabell, .tb-kallor, .tb-reklam,
.tb-hela-nr, .tb-hela-betyg, .tb-underlag a, .tb-search, .tb-pages, .tb-nav, .tb-avdnav, .tb-topprad, .tb-sidfot-h, .tb-sidfot-copy, .tb-fakta-h,
.tb-valet-etikett, .tb-val-sub, .tb-fe h3, .tb-fe h4, .tb-toc, .tb-team-r, .tb-katlista, .tb-avd li .tb-meta {
	font-family: var(--tb-sans);
	font-optical-sizing: auto;
}
.tb-etikett { margin: 0 0 8px; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--tb-text-2); }
.tb-etikett a { color: inherit; text-decoration: none; }
.tb-etikett a:hover { color: var(--tb-text); text-decoration: underline; }
.tb-meta { margin: 8px 0 0; font-size: .875rem; line-height: 1.45; color: var(--tb-text-2); }
.tb-utm { margin: 0 0 8px; font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--tb-text); }
.tb-ingress { margin: 0 0 24px; font-size: 1.3125rem; line-height: 1.5; color: var(--tb-text); max-width: var(--tb-text-max); }
@media (max-width: 600px) { .tb-ingress { font-size: 1.1875rem; } }
.tb-ico { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Sidhuvudet
   ========================================================================== */

.tb-header { background: var(--tb-vit); border-bottom: 1px solid var(--tb-linje); }
.tb-topprad { border-bottom: 1px solid var(--tb-linje); font-size: .8125rem; color: var(--tb-text-2); }
.tb-topprad .tb-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.tb-topprad p { margin: 0; }
.tb-topprad-l { display: flex; gap: 24px; }
.tb-topprad-l a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--tb-text); text-decoration: none; font-weight: 500; }
.tb-topprad-l a:hover { text-decoration: underline; }
.tb-topprad-sok .tb-ico { width: 16px; height: 16px; }
.tb-mast .tb-in { position: relative; display: flex; justify-content: center; align-items: center; padding-block: 24px 16px; }
.tb-brand { font-family: var(--tb-serif); font-weight: 700; font-size: 2.125rem; line-height: 1; color: var(--tb-text); text-decoration: none; font-variation-settings: "opsz" 72; }
.tb-brand:hover { color: var(--tb-text); }
.tb-menu-btn { display: none; }
.tb-menu .tb-in { display: flex; flex-direction: column; align-items: center; }
.tb-nav-list, .tb-avd-list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tb-nav { width: 100%; border-top: 1px solid var(--tb-text); }
.tb-nav-list { gap: 0 32px; }
.tb-nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; font-size: 1rem; font-weight: 600; color: var(--tb-text); text-decoration: none; }
.tb-nav a:hover { color: var(--tb-accent); }
.tb-nav a[aria-current]::after, .tb-avdnav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: var(--tb-accent); }
.tb-avdnav { width: 100%; border-top: 1px solid var(--tb-linje); }
.tb-avd-list { gap: 0 24px; }
.tb-avdnav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--tb-text-2); text-decoration: none; }
.tb-avdnav a:hover { color: var(--tb-text); text-decoration: underline; }
.tb-avdnav a[aria-current] { color: var(--tb-text); }
.tb-avdnav a[aria-current]::after { bottom: 4px; height: 2px; }

@media (max-width: 900px) {
	.tb-topprad-datum { display: none; }
	.tb-topprad .tb-in { justify-content: flex-end; }
	.tb-mast .tb-in { justify-content: space-between; padding-block: 16px; }
	.tb-brand { font-size: 1.75rem; }
	.tb-js-menu .tb-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--tb-text); border-radius: 2px; background: var(--tb-vit); color: var(--tb-text); font: 600 .9375rem var(--tb-sans); cursor: pointer; }
	.tb-menu-ico { display: grid; gap: 4px; width: 18px; }
	.tb-menu-ico span { display: block; height: 2px; background: currentColor; }
	.tb-js-menu .tb-menu { display: none; }
	.tb-js-menu .tb-menu.is-open { display: block; }
	.tb-menu .tb-in { align-items: stretch; }
	.tb-nav-list, .tb-avd-list { flex-direction: column; flex-wrap: nowrap; }
	.tb-nav a, .tb-avdnav a { width: 100%; border-bottom: 1px solid var(--tb-linje); }
	.tb-nav a[aria-current]::after, .tb-avdnav a[aria-current]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
	.tb-nav a[aria-current], .tb-avdnav a[aria-current] { padding-left: 12px; }
	.tb-avdnav { border-top: 0; padding-bottom: 16px; }
}

/* ==========================================================================
   Sektionsrubriker, kort, omdöme
   ========================================================================== */

.tb-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin: 0 0 24px; padding-top: 12px; border-top: 2px solid var(--tb-text); }
.tb-sec-title { margin: 0; font-size: 1.75rem; }
.tb-sec-link { margin: 0; font-size: .9375rem; font-weight: 600; }
.tb-sec-lede { flex-basis: 100%; margin: 0; color: var(--tb-text-2); max-width: var(--tb-text-max); }
.tb-sek-h { margin: 48px 0 16px; font-size: 1.5rem; }
.tb-sek-text { margin: 0 0 24px; max-width: var(--tb-text-max); }

.tb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 32px; }
.tb-card { display: flex; flex-direction: column; min-width: 0; padding-top: 16px; border-top: 1px solid var(--tb-linje); }
.tb-card.har-bild { padding-top: 0; border-top: 0; }
.tb-card-bild { margin: 0 0 16px; aspect-ratio: 3 / 2; background: var(--tb-papper); overflow: hidden; }
.tb-card-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-card-t { margin: 0 0 8px; font-size: 1.3125rem; line-height: 1.25; }
.tb-card-t a, .tb-kort-t a, .tb-vinnare-t a, .tb-mer-t a, .tb-lead-t a, .tb-val-t a, .tb-hela-namn a, .tb-avd li > a { color: var(--tb-text); text-decoration: none; }
.tb-card-t a:hover, .tb-kort-t a:hover, .tb-vinnare-t a:hover, .tb-mer-t a:hover, .tb-lead-t a:hover, .tb-val-t a:hover, .tb-hela-namn a:hover, .tb-avd li > a:hover { color: var(--tb-accent); text-decoration: underline; text-decoration-thickness: 1px; }
.tb-card-ex { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--tb-text-2); }
.tb-card .tb-meta { margin-top: 12px; }
.tb-card .tb-omdome { margin-top: 4px; }

/* Omdömet: talet i text, prickarna diskreta och gråsvarta */
.tb-omdome { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; font-size: .9375rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tb-omdome-et { flex-basis: 100%; font-size: .875rem; font-weight: 600; color: var(--tb-text-2); }
.tb-omdome-tal { font-weight: 700; }
.tb-omdome-av { color: var(--tb-text-2); }
.tb-prickar { display: inline-flex; gap: 3px; }
.tb-prick { width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid #3A3942; background: transparent; }
.tb-prick.is-hel { background: #3A3942; }
.tb-prick.is-halv { background: linear-gradient(90deg, #3A3942 50%, transparent 50%); }
.tb-omdome.is-stor .tb-omdome-tal, .tb-omdome.is-domen .tb-omdome-tal { font-size: 2.75rem; line-height: 1; }
.tb-omdome.is-stor .tb-omdome-av, .tb-omdome.is-domen .tb-omdome-av { font-size: 1.0625rem; }
.tb-omdome.is-stor .tb-prick, .tb-omdome.is-domen .tb-prick { width: 11px; height: 11px; }
.tb-omdome.is-val .tb-omdome-tal { font-size: 1.375rem; }
.tb-omdome.is-saknas { color: var(--tb-text-2); }

/* Länkknapp till butik eller tillverkare */
.tb-knapp { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--tb-text); border-radius: 2px; background: var(--tb-vit); color: var(--tb-text); font-size: .9375rem; font-weight: 600; text-decoration: none; box-sizing: border-box; }
.tb-knapp:hover { background: var(--tb-text); color: var(--tb-vit); }
.tb-knapp-et { font-weight: 400; }

/* Sigillet: stämpeln är sajtens enda vinnarmärke och visas som den är */
.tb-stampel { display: block; flex: none; height: auto; max-width: none; }
.tb-stampel.is-56 { width: 56px; }
.tb-stampel.is-kort { width: 72px; }
.tb-stampel.is-96 { width: 96px; }
.tb-stampel.is-stor { width: min(280px, 64vw); }
@media (max-width: 400px) { .tb-stampel.is-96 { width: 80px; } .tb-stampel.is-kort { width: 60px; } }

/* Brödsmulor */
.tb-smulor ol { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .875rem; }
.tb-smulor li + li::before { content: "/"; margin-right: 8px; color: var(--tb-text-2); }
.tb-smulor a { display: inline-block; padding: 4px 0; color: var(--tb-text-2); }
.tb-smulor a[aria-current] { color: var(--tb-text); text-decoration: none; }

/* Byline */
.tb-byline { margin: 0 0 24px; font-size: .9375rem; line-height: 1.5; }
.tb-byline p { margin: 0; }
.tb-byline-vem { font-weight: 600; }
.tb-byline-vem a { color: var(--tb-text); text-decoration: none; }
.tb-byline-vem a:hover { text-decoration: underline; }
.tb-byline-roll { font-weight: 400; color: var(--tb-text-2); }
.tb-byline-meta { color: var(--tb-text-2); }

/* ==========================================================================
   Startsidan: tidningsettan
   ========================================================================== */

.tb-sek.is-etta { padding-top: 32px; }
.tb-etta { display: grid; gap: 32px 48px; }
@media (min-width: 960px) { .tb-etta { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.tb-lead-bild { display: block; margin: 0 0 16px; aspect-ratio: 16 / 9; background: var(--tb-papper); overflow: hidden; }
.tb-lead-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-lead-t { margin: 0 0 12px; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.12; }
.tb-lead-ingress { margin: 0 0 16px; font-size: 1.25rem; line-height: 1.5; max-width: var(--tb-text-max); }
.tb-lead .tb-byline { margin-bottom: 16px; }
.tb-lead-val { display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--tb-linje); }
.tb-lead-val p { margin: 0; font-size: 1.0625rem; }
.tb-lead-val a { font-weight: 700; color: var(--tb-text); }
.tb-valet-etikett { display: block; margin: 0 0 4px; font-size: .9375rem; font-weight: 700; color: var(--tb-accent); }
.tb-lead-val .tb-valet-etikett { display: inline; margin-right: 6px; }
.tb-mer { border-top: 2px solid var(--tb-text); padding-top: 12px; }
.tb-mer-h { margin: 0 0 8px; font-size: 1.125rem; }
.tb-mer ul { margin: 0; padding: 0; list-style: none; }
.tb-mer li { padding: 16px 0; border-bottom: 1px solid var(--tb-linje); }
.tb-mer li:last-child { border-bottom: 0; }
.tb-mer-t { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
.tb-mer .tb-etikett { margin-bottom: 4px; font-size: .875rem; }

.tb-vinnare { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.tb-vinnare-del { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--tb-linje); }
.tb-vinnare-text { min-width: 0; }
.tb-vinnare .tb-etikett { margin-bottom: 4px; font-size: .875rem; }
.tb-vinnare-t { margin: 0 0 6px; font-size: 1.1875rem; line-height: 1.3; }
.tb-vinnare-l { margin: 0; font-family: var(--tb-sans); font-size: .875rem; }
.tb-vinnare-l a { display: inline-block; padding: 4px 0; }

.tb-avdelningar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.tb-avd-h { margin: 0 0 4px; font-size: 1.25rem; }
.tb-avd ul { margin: 0; padding: 0; list-style: none; }
.tb-avd li { padding: 12px 0; border-top: 1px solid var(--tb-linje); }
.tb-avd li > a { display: block; font-size: 1.0625rem; line-height: 1.35; font-weight: 600; }
.tb-avd li .tb-meta { display: block; margin-top: 4px; }

.tb-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.tb-team-p { padding-top: 16px; border-top: 1px solid var(--tb-linje); }
.tb-team-n { margin: 0; font-size: 1.1875rem; }
.tb-team-r { margin: 2px 0 8px; font-size: .9375rem; color: var(--tb-text-2); }
.tb-team-b { margin: 0; font-size: 1.0625rem; line-height: 1.55; }

/* ==========================================================================
   Läsytan: artiklar, sidor, granskningar och topplistor
   ========================================================================== */

.tb-article-head, .tb-page-head { width: min(var(--tb-text-max), calc(100% - 2 * var(--tb-gutter))); margin: 48px auto 0; }
.tb-article-title, .tb-page-title, .tb-rec-t, .tb-arch-title, .tm-arkiv__titel {
	margin: 0 0 16px !important; font-size: clamp(2rem, 4.2vw, 3rem) !important; line-height: 1.12 !important; font-weight: 700; letter-spacing: 0;
}
@media (max-width: 400px) { .tb-article-title, .tb-page-title, .tb-rec-t, .tb-arch-title, .tm-arkiv__titel { font-size: 1.75rem !important; hyphens: auto; overflow-wrap: break-word; } }
.tb-page-head { padding-bottom: 16px; border-bottom: 1px solid var(--tb-linje); }
.tb-page-head .tb-ingress, .tb-article-head .tb-ingress { margin-bottom: 16px; }
.tb-page-body { width: min(var(--tb-text-max), calc(100% - 2 * var(--tb-gutter))); margin: 32px auto 96px; }
.tb-article-bild { width: min(var(--tb-max), calc(100% - 2 * var(--tb-gutter))); margin: 24px auto 0 !important; }
.tb-article-bild img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tb-papper); }
.tb-article-bild:empty { display: none; }

.tb-read { width: min(var(--tb-max), calc(100% - 2 * var(--tb-gutter))); margin: 32px auto 64px; display: grid; gap: 32px; }
@media (min-width: 1100px) {
	.tb-read { grid-template-columns: 220px minmax(0, var(--tb-text-max)) 1fr; column-gap: 48px; }
	.tb-read > .tb-toc { grid-column: 1; align-self: start; position: sticky; top: 24px; }
	.tb-read > .tb-read-main { grid-column: 2; }
	.tb-article-head { width: auto; max-width: var(--tb-text-max); margin-left: max(calc(var(--tb-gutter) + 268px), calc((100% - var(--tb-max)) / 2 + 268px)); margin-right: auto; }
}
.tb-read-main { min-width: 0; max-width: var(--tb-text-max); }
.tb-toc { font-size: .9375rem; }
.tb-toc-h { margin: 0 0 8px; font-family: var(--tb-sans); font-size: .9375rem; font-weight: 700; }
.tb-toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tb-linje); }
.tb-toc li { border-bottom: 1px solid var(--tb-linje); }
.tb-toc a { display: block; padding: 8px 0; color: var(--tb-text); text-decoration: none; line-height: 1.35; }
.tb-toc a:hover { color: var(--tb-accent); text-decoration: underline; }

/* Brödtexten */
.tb-body { font-size: 1.1875rem; line-height: 1.6; }
@media (max-width: 600px) { .tb-body { font-size: 1.0625rem; } }
.tb-body > * { max-width: var(--tb-text-max); }
.tb-body p { margin: 0 0 20px; }
.tb-body h2 { margin: 48px 0 12px; font-size: 1.625rem; line-height: 1.25; scroll-margin-top: 24px; }
.tb-body h3 { margin: 32px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.tb-body > h2:first-child { margin-top: 0; }
.tb-body ul, .tb-body ol { margin: 0 0 24px; padding-left: 24px; }
.tb-body li { margin: 0 0 8px; }
.tb-body strong { font-weight: 700; }
.tb-body blockquote { margin: 32px 0; padding: 0 0 0 20px; border-left: 2px solid var(--tb-text); font-style: italic; }
.tb-body figure { margin: 32px 0; }
.tb-body figcaption, .wp-element-caption { margin-top: 8px; font-family: var(--tb-sans); font-size: .875rem; color: var(--tb-text-2); }
.tb-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-family: var(--tb-sans); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tb-body th, .tb-body td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--tb-linje); vertical-align: top; }
.tb-body thead th { border-bottom: 2px solid var(--tb-text); }
.tb-body .st-fakta { margin: 32px 0; padding: 24px; background: var(--tb-papper); }
.tb-body .st-fakta-h { margin: 0 0 8px; font-family: var(--tb-sans); font-weight: 700; }
.tb-body .tb-sign { margin-top: 32px; font-style: italic; color: var(--tb-text-2); }
.tb-newwin { margin-left: 2px; font-size: .8em; }

.tb-relaterad, .tb-author { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--tb-text); }
.tb-relaterad-h, .tb-author-h { margin: 0 0 12px; font-family: var(--tb-sans); font-size: 1rem; font-weight: 700; }
.tb-relaterad ul { margin: 0; padding: 0; list-style: none; }
.tb-relaterad li { padding: 8px 0; }
.tb-relaterad li > a { font-weight: 700; }
.tb-relaterad .tb-meta { display: block; margin-top: 2px; }
.tb-author p { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.tb-sek.is-mer { border-top: 1px solid var(--tb-linje); }

/* Arkiv och sök */
.tb-arch-head { max-width: var(--tb-text-max); margin-bottom: 32px; }
.tb-search label { display: block; margin: 0 0 8px; font-size: .9375rem; font-weight: 600; }
.tb-search-row { display: flex; max-width: 34rem; border: 1px solid var(--tb-text); border-radius: 2px; background: var(--tb-vit); }
.tb-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 0; background: transparent; font: 1.0625rem var(--tb-sans); color: var(--tb-text); }
.tb-search input::placeholder { color: #6A6873; }
.tb-search input:focus-visible { outline: 3px solid var(--tb-accent); outline-offset: -3px; }
.tb-search button { min-height: 48px; padding: 0 20px; border: 0; border-left: 1px solid var(--tb-text); background: var(--tb-text); color: #fff; font: 600 1rem var(--tb-sans); cursor: pointer; }
.tb-search button:hover { background: var(--tb-accent); }
.tb-empty { max-width: var(--tb-text-max); }
.tb-katlista { margin: 0 0 24px; padding: 0; list-style: none; columns: 2 200px; column-gap: 32px; }
.tb-katlista li { break-inside: avoid; }
.tb-katlista a { display: inline-block; padding: 6px 0; }
.tb-pages ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.tb-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--tb-linje); color: var(--tb-text); text-decoration: none; box-sizing: border-box; }
.tb-pages .page-numbers.current { background: var(--tb-text); border-color: var(--tb-text); color: #fff; }

/* ==========================================================================
   Granskningen (produktsidan) och topplistan
   ========================================================================== */

.tb-vy-in { padding: 32px 0 96px; }
.tb-rec, .tb-rep { width: 100%; }
.tb-rec > *, .tb-rep > *, .tb-rec-text > * { max-width: var(--tb-text-max); margin-left: auto; margin-right: auto; }
.tb-rec-head { margin-bottom: 32px; }
.tb-rec-head .tb-byline { margin-bottom: 0; }
.tb-underlag { margin: 0 0 20px; padding: 12px 0; border-block: 1px solid var(--tb-linje); font-size: 1rem; line-height: 1.55; color: var(--tb-text-2); }
.tb-reklam { margin: 0 auto 16px; font-size: .8125rem; line-height: 1.5; color: var(--tb-text-2); }

/* Faktarutan: snabbsvaret */
.tb-fakta { display: grid; gap: 16px 24px; margin-bottom: 48px; padding: 24px; background: var(--tb-papper); border-top: 2px solid var(--tb-text); box-sizing: border-box; }
.tb-fakta.har-sigill { grid-template-columns: minmax(0, 1fr) auto; }
.tb-fakta-h { margin: 0 0 8px; font-size: .9375rem; font-weight: 700; }
.tb-fakta .tb-omdome { margin-bottom: 12px; }
.tb-fakta p { margin: 0 0 12px; font-size: 1.0625rem; line-height: 1.55; }
.tb-fakta .tb-utm a { color: var(--tb-accent); }
.tb-fakta-underlag { color: var(--tb-text-2); font-size: 1rem !important; }
.tb-fakta-lank { margin: 16px 0 0 !important; }
.tb-fakta-sigill a { display: block; border-radius: 50%; }
@media (max-width: 480px) { .tb-fakta { padding: 16px; } .tb-fakta.har-sigill { grid-template-columns: minmax(0, 1fr) auto; } }
.tb-passar { margin: 0 0 12px; }
.tb-passar.is-kort { font-size: 1rem; line-height: 1.5; }

.tb-rec-bild, .tb-rep-bild, .tb-val-bild { margin: 0 auto 48px; background: var(--tb-papper); }
/* Produktbilder (till exempel från affiliateflöden): ljus yta och contain, så att hela produkten syns */
.tb-rec-bild img, .tb-val-bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 24px; box-sizing: border-box; }
.tb-rep-bild img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tb-rep-bild { max-width: 960px !important; }

.tb-rec-sek, .tb-rep-sek { margin-top: 48px; }
.tb-rec-sek h2, .tb-rep-sek h2, .tb-domen h2 { margin: 0 0 16px; padding-top: 12px; border-top: 1px solid var(--tb-text); font-size: 1.625rem; }
.tb-sek-not { margin: 0 0 16px; font-size: 1rem; color: var(--tb-text-2); }
.tb-fe { display: grid; gap: 16px 32px; }
@media (min-width: 640px) { .tb-fe { grid-template-columns: 1fr 1fr; } }
.tb-fe h3, .tb-fe h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.tb-fe ul { margin: 0; padding-left: 20px; font-size: 1.0625rem; line-height: 1.5; }
.tb-fe li { margin-bottom: 6px; }

/* Tabeller: rubrikrad, tunna linjer, högerställda siffror */
.tb-tabell-wrap { max-width: 100%; overflow-x: auto; }
.tb-tabell { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tb-tabell th, .tb-tabell td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--tb-linje); text-align: left; vertical-align: top; }
.tb-tabell thead th { padding-top: 0; border-bottom: 1px solid var(--tb-text); font-weight: 700; font-size: .875rem; }
.tb-tabell tbody th { font-weight: 600; }
.tb-tabell .is-tal { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 12px; }
.tb-tabell.is-fakta th { width: 40%; }
.tb-krit { display: block; }
.tb-krit-k { display: block; margin-top: 2px; font-weight: 400; color: var(--tb-text-2); font-size: .875rem; }
.tb-av { color: var(--tb-text-2); font-weight: 400; }
.tb-kallor { margin: 0; padding-left: 24px; font-size: 1rem; }
.tb-kallor li { margin-bottom: 6px; }

/* Domen sist */
.tb-domen { margin-top: 48px; }
.tb-domen p { margin: 0 0 12px; }
.tb-domen .tb-omdome { margin-bottom: 16px; }
.tb-domen-sign { margin-top: 16px !important; font-style: italic; color: var(--tb-text-2); }

/* Vårt val */
.tb-valet { margin-top: 48px; padding: 24px; border: 1px solid var(--tb-linje); border-top: 3px solid var(--tb-accent); box-sizing: border-box; }
.tb-valet .tb-valet-etikett { margin: 0 0 8px; padding: 0; border: 0; }
.tb-val-topp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.tb-val-t { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.2; }
.tb-val:not(.is-vinnare) .tb-val-t { font-size: 1.3125rem; }
.tb-val-varfor { margin: 0 0 16px; font-size: 1.125rem; line-height: 1.55; }
.tb-val-sub { margin: 24px 0 8px; font-size: 1rem; font-weight: 700; }
.tb-val .tb-fe { margin: 24px 0 16px; }
.tb-val-atg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 16px 0 0; font-family: var(--tb-sans); font-size: 1rem; font-weight: 600; }
.tb-val-bild { margin: 0 0 24px; }
.tb-val-rad { display: grid; gap: 24px 32px; }
@media (min-width: 640px) { .tb-val-rad { grid-template-columns: 1fr 1fr; } }
.tb-val-rad .tb-val { padding-top: 16px; border-top: 1px solid var(--tb-linje); }
.tb-val-rad .tb-val-varfor { font-size: 1.0625rem; }
@media (max-width: 480px) { .tb-valet { padding: 16px; } .tb-val-t { font-size: 1.5rem; } }

/* Hela listan */
.tb-hela-ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tb-linje); }
.tb-hela-rad { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--tb-linje); scroll-margin-top: 24px; }
.tb-hela-nr { font-size: 1.125rem; font-weight: 700; color: var(--tb-text-2); font-variant-numeric: tabular-nums; }
.tb-hela-namn { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
.tb-hela-text .tb-meta { margin-top: 2px; }
.tb-hela-utdrag { margin: 6px 0 0; font-size: 1rem; line-height: 1.5; color: var(--tb-text-2); }
.tb-hela-betyg { margin: 0; font-size: .9375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-rep-guide { margin-top: 48px; }

/* ==========================================================================
   Kort från tillägget (kategori, arkiv)
   ========================================================================== */

.tb-kort { display: flex; flex-direction: column; height: 100%; min-width: 0; padding-top: 16px; border-top: 1px solid var(--tb-linje); box-sizing: border-box; }
.tb-kort.har-bild { padding-top: 0; border-top: 0; }
.tb-kort-bild { margin: 0 0 16px; aspect-ratio: 3 / 2; background: var(--tb-papper); overflow: hidden; }
.tb-kort-bild img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 16px; box-sizing: border-box; }
.tb-kort-text { display: flex; flex-direction: column; flex: 1; }
.tb-kort-topp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.tb-kort-t { margin: 0 0 6px; font-size: 1.3125rem; line-height: 1.25; }
.tb-kort-utdrag { margin: 8px 0 12px; font-size: 1.0625rem; line-height: 1.55; color: var(--tb-text-2); }
.tb-kort .tb-meta { margin: 0 0 12px; }
.tb-kort-atg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: auto 0 0; font-family: var(--tb-sans); font-size: 1rem; font-weight: 600; }

/* Tilläggets arkiv- och kategorivyer */
.tm-arkiv__huvud { max-width: var(--tb-text-max); margin-bottom: 32px; }
.tm-arkiv__intro, .tm-arkiv__ingress { font-size: 1.1875rem; line-height: 1.6; max-width: var(--tb-text-max); }
.tm-arkiv__intro p { margin: 0 0 16px; }
.tm-brodsmulor__lista { font-family: var(--tb-sans); }
.tm-sektion { margin: 48px 0 0; }
.tm-sektion__rubrik { margin: 0 0 16px !important; padding-top: 12px; border-top: 2px solid var(--tb-text); font-size: 1.75rem; }
.tm-arkiv__sortering, .tm-arkiv__tomt { font-family: var(--tb-sans); font-size: .9375rem; color: var(--tb-text-2); }
.tm-rutnat { gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tm-guidekort { background: transparent; border-radius: 0; display: grid; gap: 16px 32px; }
@media (min-width: 760px) { .tm-rutnat--guider .tm-guidekort:has(.tm-bild--finns) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tm-guidekort__bild { aspect-ratio: 16 / 9; background: var(--tb-papper); }
.tm-guidekort__bild.tm-bild--saknas { display: none; }
.tm-guidekort__innehall { padding: 16px 0 0; border-top: 1px solid var(--tb-linje); }
.tm-guidekort__namn { font-size: 1.375rem !important; line-height: 1.25 !important; }
:where(.tm-block) a.tm-guidekort__lank { text-decoration: none; }
:where(.tm-block) a.tm-guidekort__lank:hover { color: var(--tb-accent); text-decoration: underline; }
.tm-guidekort__meta { font-family: var(--tb-sans); }
.tm-guidekort__utdrag { font-size: 1.0625rem; color: var(--tb-text-2); }
.tm-guidekort__vinnare { font-family: var(--tb-sans); font-size: .9375rem; }
.tm-kriterier { max-width: var(--tb-text-max); font-family: var(--tb-sans); font-size: 1rem; font-variant-numeric: tabular-nums; }
.tm-kriterier__kriterium { max-width: none; padding: 10px 0; border-top: 1px solid var(--tb-linje); }
.tm-kriterier__kriterium:last-child { border-bottom: 1px solid var(--tb-linje); }
.tm-kategorinav__lista { gap: 0 24px; font-family: var(--tb-sans); }
:where(.tm-block) a.tm-kategorinav__lank { min-height: 44px; padding: 0; border: 0; border-radius: 0; color: var(--tb-accent); text-decoration: underline; text-underline-offset: .18em; }
:where(.tm-block) a.tm-kategorinav__lank:hover { color: var(--tb-text); }
.tm-kategorinav__del--tom { display: none; }
.tm-metodruta { max-width: var(--tb-text-max); margin: 48px 0 0; padding: 24px; background: var(--tb-papper); border-radius: 0; border-top: 2px solid var(--tb-text); }
.tm-metodruta__rubrik { font-size: 1.375rem !important; }
.tm-metodruta__typ { border-radius: 0; background: var(--tb-vit); }
.tm-metodruta__beskrivning, .tm-metodruta__vikt, .tm-metodruta__intro { font-size: 1rem; line-height: 1.55; }
.tm-paginering .page-numbers { border-radius: 0; font-family: var(--tb-sans); }

/* Tilläggets jämförelsetabell */
.tb-rep .tm-tabellomrade { max-width: min(1000px, 100%); }
.tm-tabell { border: 0; border-radius: 0; border-top: 1px solid var(--tb-text); }
.tm-tabell__tabell { font-family: var(--tb-sans); font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tm-tabell__caption { padding: 12px 0; font-weight: 700; }
.tm-tabell th, .tm-tabell td { padding: 10px 16px 10px 0; border-top: 1px solid var(--tb-linje); }
.tm-tabell thead th { background: var(--tb-vit); border-bottom: 1px solid var(--tb-text); font-weight: 700; }
.tm-tabell tbody th { background: var(--tb-vit); }
.tm-tabell__betyg { font-weight: 700; }
.tm-tabell__tips { font-family: var(--tb-sans); }

/* ==========================================================================
   Sigillet-sidan
   ========================================================================== */

.tb-sigillet-fig { max-width: var(--tb-text-max); margin: 0 0 32px; }
.tb-sigillet-yta { display: grid; place-items: center; padding: 48px 16px; background: var(--tb-papper); }
.tb-sigillet-fig figcaption { margin: 8px 0 0; font-family: var(--tb-sans); font-size: .875rem; line-height: 1.5; color: var(--tb-text-2); }
.tb-body .tb-filer, .tb-body .tb-sv { list-style: none; padding: 0; margin: 0 0 32px; }
.tb-body .tb-fil, .tb-body .tb-sv-rad { display: block; margin: 0; padding: 0; }
.tb-filer { border-top: 1px solid var(--tb-linje); }
.tb-body .tb-fil { border-bottom: 1px solid var(--tb-linje); }
.tb-body .tb-fil a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 12px 0; text-decoration: none; }
.tb-fil-fmt { display: none; }
.tb-fil-t { font-family: var(--tb-sans); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.tb-fil-m { font-family: var(--tb-sans); font-size: .875rem; color: var(--tb-text-2); }
.tb-sv { border-top: 1px solid var(--tb-text); }
.tb-body .tb-sv-rad { padding: 12px 0; border-bottom: 1px solid var(--tb-linje); }
.tb-sv-rad p { margin: 0 !important; }
.tb-sv-kat { font-family: var(--tb-sans); font-size: .875rem; font-weight: 600; color: var(--tb-text-2); }
.tb-sv-p { font-weight: 700; }
.tb-body .tb-sv-p a { color: var(--tb-text); text-decoration: none; }
.tb-body .tb-sv-p a:hover { text-decoration: underline; }
.tb-sv-l { font-size: 1rem; color: var(--tb-text-2); }
.tb-sv-d { white-space: nowrap; }

/* ==========================================================================
   Sidfoten
   ========================================================================== */

.tb-sidfot { margin-top: 0; padding: 48px 0 32px; background: var(--tb-papper); border-top: 1px solid var(--tb-linje); font-size: 1rem; line-height: 1.55; }
.tb-sidfot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .tb-sidfot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.tb-sidfot-brand { margin: 0 0 8px; font-family: var(--tb-serif); font-size: 1.5rem; font-weight: 700; }
.tb-sidfot-om p { margin: 0 0 12px; max-width: 46ch; }
.tb-sidfot-h { margin: 0 0 8px; font-size: .9375rem; font-weight: 700; }
.tb-sidfot ul { margin: 0; padding: 0; list-style: none; }
.tb-sidfot-kol a { display: inline-block; padding: 4px 0; font-family: var(--tb-sans); font-size: .9375rem; color: var(--tb-text); text-decoration: none; }
.tb-sidfot-kol a:hover { color: var(--tb-accent); text-decoration: underline; }
.tb-sidfot .tb-katlista { columns: auto; }
.tb-sidfot-copy { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--tb-linje); font-size: .875rem; color: var(--tb-text-2); }

/* 404 */
.tb-404 .tb-sek { padding-bottom: 96px; }
.tb-404 .tb-search { margin-bottom: 16px; }

@media print {
	.tb-header, .tb-sidfot, .tb-toc { display: none; }
}
