/*
Theme Name:   Casinotopp10
Theme URI:    https://casinotopp10.nu/
Description:  Modernt child-tema för Casinotopp10 byggt på GeneratePress. Innehåller casino-posttyp, topplistor med sortering, /go/-länkar, recensionskort, innehållsförteckning, FAQ med schema och inbyggd spelansvarsinformation.
Author:       Casinotopp10
Template:     generatepress
Version:      1.0.5
Requires at least: 6.4
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  casinotopp10
*/

/* ==========================================================================
   1. Typsnitt (lokalt hostade – inga anrop till Google, GDPR-vänligt)
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	font-stretch: 75% 100%;
	src: url("assets/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
}

@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/public-sans-latin-var.woff2") format("woff2");
}

@font-face {
	font-family: "Public Sans";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/public-sans-latin-var-italic.woff2") format("woff2");
}

/* ==========================================================================
   2. Designvariabler
   ========================================================================== */

:root {
	/* Färger: speltbordets filt, mässing och papper */
	--ct-felt: #0f3d30;
	--ct-felt-deep: #0a2c22;
	--ct-felt-soft: #165342;
	--ct-on-felt: #e7f0eb;
	--ct-on-felt-muted: #a9c4b8;
	--ct-brass: #e3b341;
	--ct-brass-hover: #f0c357;
	--ct-on-brass: #10251d;
	--ct-ink: #14211c;
	--ct-muted: #55655e;
	--ct-line: #dbe3df;
	--ct-surface: #f2f5f3;
	--ct-paper: #ffffff;
	--ct-link: #0d6a4e;
	--ct-link-hover: #0a4f3a;
	--ct-pos: #1b7a4e;
	--ct-neg: #b13a26;
	--ct-star: #d9a21b;

	/* Typografi */
	--ct-font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--ct-font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Mått */
	--ct-measure: 46rem;
	--ct-wide: 64rem;
	--ct-radius-s: 6px;
	--ct-radius: 10px;
	--ct-radius-l: 16px;
	--ct-header-h: 72px;
	--ct-shadow: 0 1px 2px rgba(15, 61, 48, .06), 0 6px 20px -8px rgba(15, 61, 48, .18);
}

/* ==========================================================================
   3. Bas
   ========================================================================== */

html {
	scroll-padding-top: 140px; /* plats för den fasta headern */
}

@media (max-width: 768px) {
	html { scroll-padding-top: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body,
button,
input,
select,
textarea {
	font-family: var(--ct-font-body);
}

body {
	background: var(--ct-paper);
	color: var(--ct-ink);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.main-title,
.entry-title {
	font-family: var(--ct-font-display);
	color: var(--ct-ink);
	letter-spacing: -0.01em;
	line-height: 1.15;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 780; font-stretch: 88%; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.05rem); font-weight: 720; font-stretch: 92%; margin: 2.2em 0 .6em; }
h3 { font-size: 1.3rem; font-weight: 680; margin: 1.8em 0 .5em; }
h4 { font-size: 1.1rem; font-weight: 650; }

a {
	color: var(--ct-link);
	text-underline-offset: .18em;
	text-decoration-thickness: 1px;
}

a:hover,
a:focus {
	color: var(--ct-link-hover);
}

:focus-visible {
	outline: 3px solid var(--ct-brass);
	outline-offset: 2px;
	border-radius: 3px;
}

::selection {
	background: var(--ct-brass);
	color: var(--ct-on-brass);
}

.entry-content > p:first-child { margin-top: 0; }

/* ==========================================================================
   4. Topbar med spelansvar
   ========================================================================== */

.ct-topbar {
	background: var(--ct-felt-deep);
	color: var(--ct-on-felt-muted);
	font-size: 13px;
	line-height: 1.4;
}

.ct-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: 7px 40px;
	max-width: 1200px;
	margin: 0 auto;
}

.ct-topbar a {
	color: var(--ct-on-felt);
	text-decoration: none;
}

.ct-topbar a:hover { text-decoration: underline; color: #fff; }

.ct-topbar__lead {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: auto;
}

.ct-age {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 22px;
	padding: 0 6px;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: .02em;
	color: var(--ct-on-felt);
}

@media (max-width: 640px) {
	.ct-topbar__lead span:not(.ct-age) { display: none; }
	.ct-topbar__inner { justify-content: center; }
	.ct-topbar__lead { margin-right: 0; }
}

/* ==========================================================================
   5. Header och navigering (GeneratePress)
   ========================================================================== */

.site-header {
	background: var(--ct-paper);
	border-bottom: 1px solid var(--ct-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.site-header .inside-header {
	min-height: var(--ct-header-h);
	padding-top: 10px;
	padding-bottom: 10px;
	align-items: center;
}

.site-logo img,
.site-header .header-image {
	max-height: 48px;
	width: auto;
}

.site-logo {
	flex: none;
	margin-right: 0;
}

.ct-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ct-ink);
}

.main-title {
	margin: 0;
	font-size: 22px;
	line-height: 1;
}

.main-title a,
.main-title a:hover {
	color: var(--ct-ink);
	text-decoration: none;
}

.ct-brand__mark {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--ct-felt);
	color: var(--ct-brass);
	font-family: var(--ct-font-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 25px;
	letter-spacing: -0.02em;
	box-shadow: inset 0 0 0 2px rgba(227, 179, 65, .35);
}

.ct-brand__name {
	font-family: var(--ct-font-display);
	font-weight: 760;
	font-stretch: 85%;
	font-size: 22px;
	letter-spacing: -0.01em;
}

.ct-brand__name small {
	display: block;
	margin-top: 3px;
	font-family: var(--ct-font-body);
	font-weight: 500;
	font-stretch: 100%;
	font-size: 11.5px;
	letter-spacing: 0;
	color: var(--ct-muted);
}

.site-description { display: none; }

.main-navigation,
.main-navigation ul ul {
	background: transparent;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
	font-family: var(--ct-font-body);
	font-weight: 600;
	font-size: 15px;
	color: var(--ct-ink);
}

.site-header .main-navigation {
	flex: 1 1 auto;
	margin-left: 32px;
}

.site-header .main-navigation .inside-navigation {
	justify-content: flex-end;
}

.main-navigation .main-nav > ul {
	justify-content: flex-end;
	row-gap: 0;
}

.main-navigation .main-nav > ul > li > a {
	padding: 10px 11px;
	line-height: 1.3;
	max-width: 12.5em; /* långa menynamn bryts på två rader i stället för att trycka ned menyn */
	position: relative;
}

.main-navigation .main-nav > ul > li.menu-item-has-children > a {
	padding-right: 0;
}

.main-navigation .main-nav > ul > li.menu-item-has-children > a .dropdown-menu-toggle {
	padding-left: 4px;
	padding-right: 12px;
}

.main-navigation .main-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 3px;
	height: 2px;
	background: var(--ct-brass);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

/* Menyn på egen rad under logotypen när den inte får plats bredvid.
   Gäller alltid mellan 769 och 1180 px, och på större skärmar när
   theme.js märker att menyn skulle brytas (klassen .ct-nav-stacked). */
@media (min-width: 769px) {
	.ct-nav-stacked .inside-header {
		flex-wrap: wrap;
		padding-bottom: 0;
	}

	.ct-nav-stacked .main-navigation {
		flex-basis: 100%;
		order: 3;
		margin: 10px 0 0;
		border-top: 1px solid var(--ct-line);
	}

	.ct-nav-stacked .main-navigation .inside-navigation,
	.ct-nav-stacked .main-navigation .main-nav > ul {
		justify-content: flex-start;
	}

	.ct-nav-stacked .main-navigation .main-nav > ul {
		margin-left: -11px;
	}

	.ct-nav-stacked .main-navigation .main-nav > ul > li > a {
		max-width: none;
		white-space: nowrap;
		padding-top: 12px;
		padding-bottom: 12px;
	}
}

@media (max-width: 1180px) and (min-width: 769px) {
	.site-header .inside-header {
		flex-wrap: wrap;
		padding-bottom: 0;
	}

	.site-header .main-navigation {
		flex-basis: 100%;
		order: 3;
		margin: 10px 0 0;
		border-top: 1px solid var(--ct-line);
	}

	.site-header .main-navigation .inside-navigation,
	.site-header .main-navigation .main-nav > ul {
		justify-content: flex-start;
	}

	.site-header .main-navigation .main-nav > ul {
		margin-left: -11px;
	}

	.main-navigation .main-nav > ul > li > a {
		max-width: none;
		white-space: nowrap;
		padding: 12px 8px;
		font-size: 14px;
	}

	.site-header .main-navigation .main-nav > ul { margin-left: -8px; }
	.main-navigation .main-nav > ul > li.menu-item-has-children > a { padding-right: 0; }
	.main-navigation .main-nav > ul > li.menu-item-has-children > a .dropdown-menu-toggle { padding-right: 8px; }
	.main-navigation .main-nav > ul > li > a::after { left: 8px; right: 8px; }
}

.main-navigation .main-nav > ul > li:hover > a::after,
.main-navigation .main-nav > ul > li.current-menu-item > a::after,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--ct-felt);
	background: transparent;
}

.main-navigation ul ul {
	background: var(--ct-paper);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 6px;
	width: 280px;
}

.main-navigation .main-nav ul ul li a {
	font-weight: 500;
	font-size: 14.5px;
	line-height: 1.35;
	padding: 9px 12px;
	border-radius: var(--ct-radius-s);
}

.main-navigation .main-nav ul ul li a:hover,
.main-navigation .main-nav ul ul li a:focus {
	background: var(--ct-surface);
}

@media (prefers-reduced-motion: reduce) {
	.main-navigation .main-nav > ul > li > a::after { transition: none; }
}

/* Mobilmeny */
@media (max-width: 768px) {
	.ct-brand__name small { display: none; }
	.ct-brand__mark { width: 38px; height: 38px; font-size: 22px; }
	.ct-brand__name { font-size: 20px; }

	.main-navigation .menu-toggle,
	.main-navigation .menu-toggle:hover,
	.main-navigation .menu-toggle:focus {
		background: transparent;
		color: var(--ct-ink);
	}

	.main-navigation .menu-toggle {
		border: 1px solid var(--ct-line);
		border-radius: var(--ct-radius-s);
		padding: 0 14px;
		line-height: 42px;
	}

	.main-navigation.toggled .main-nav > ul {
		background: var(--ct-paper);
		border-top: 1px solid var(--ct-line);
		padding: 8px 0 16px;
	}

	.main-navigation .main-nav > ul > li > a {
		line-height: 48px;
	}

	.main-navigation .main-nav > ul > li > a::after { display: none; }

	.main-navigation ul ul {
		border: 0;
		box-shadow: none;
		width: auto;
		background: var(--ct-surface);
	}
}

/* ==========================================================================
   6. Hero / sidhuvud för innehåll
   ========================================================================== */

.ct-hero {
	position: relative;
	background:
		radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, .09), transparent 60%),
		var(--ct-felt);
	color: var(--ct-on-felt);
	overflow: hidden;
}

.ct-hero::after {
	/* Svag filtstruktur */
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .35;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.ct-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 44px 40px 40px;
}

@media (max-width: 768px) {
	.ct-topbar__inner { padding-left: 20px; padding-right: 20px; }
	.ct-hero__inner { padding-left: 20px; padding-right: 20px; }
}

.ct-hero--front .ct-hero__inner {
	padding-top: 56px;
	padding-bottom: 52px;
}

.ct-hero__title {
	color: #fff;
	margin: 0 0 14px;
	max-width: 22ch;
	text-wrap: balance;
}

.ct-hero--front .ct-hero__title {
	font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);
	font-stretch: 80%;
	font-weight: 800;
	line-height: 1.02;
}

.ct-hero__lead {
	max-width: 62ch;
	margin: 0 0 20px;
	font-size: 1.1rem;
	color: var(--ct-on-felt);
	opacity: .92;
}

.ct-hero__lead p { margin: 0 0 .6em; }

.ct-hero a { color: #fff; }

.ct-crumbs {
	font-size: 13.5px;
	margin: 0 0 14px;
	color: var(--ct-on-felt-muted);
}

.ct-crumbs a { color: var(--ct-on-felt-muted); text-decoration: none; }
.ct-crumbs a:hover { color: #fff; text-decoration: underline; }
.ct-crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }

.ct-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	font-size: 14px;
	color: var(--ct-on-felt-muted);
}

.ct-byline img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
	border: 2px solid rgba(255, 255, 255, .25);
}

.ct-byline strong { color: var(--ct-on-felt); font-weight: 600; }
.ct-byline a { color: var(--ct-on-felt); }

.ct-byline__checked {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ct-byline__checked svg { color: var(--ct-brass); flex: none; }

.ct-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.ct-hero__links a {
	display: inline-block;
	padding: 8px 15px;
	border: 1px solid rgba(231, 240, 235, .3);
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ct-on-felt);
	transition: background-color .15s, border-color .15s;
}

.ct-hero__links a:hover,
.ct-hero__links a:focus {
	background: rgba(255, 255, 255, .1);
	border-color: var(--ct-brass);
	color: #fff;
}

/* Annonsinformation */
.ct-disclosure {
	margin: 18px 0 0;
	font-size: 14px;
	max-width: 62ch;
}

.ct-disclosure summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	color: var(--ct-on-felt-muted);
}

.ct-disclosure summary::-webkit-details-marker { display: none; }

.ct-disclosure summary::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .15s;
}

.ct-disclosure[open] summary::after { transform: rotate(-135deg) translateY(-1px); }

.ct-disclosure__body {
	margin-top: 10px;
	padding: 14px 16px;
	border-radius: var(--ct-radius);
	background: rgba(0, 0, 0, .18);
	color: var(--ct-on-felt);
	line-height: 1.55;
}

.ct-disclosure__body p { margin: 0; }

/* Annonsinfo inne i innehåll (ljus bakgrund) */
.entry-content .ct-disclosure summary { color: var(--ct-muted); }
.entry-content .ct-disclosure__body { background: var(--ct-surface); color: var(--ct-ink); }

/* Casino-hero (recension) */
.ct-hero--casino .ct-hero__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px);
	gap: 28px 36px;
	align-items: center;
}

.ct-hero--casino .ct-crumbs { grid-column: 1 / -1; margin: 0; }
.ct-hero--casino .ct-hero__title { margin-bottom: 8px; }
.ct-hero--casino .ct-byline { margin-top: 14px; }

.ct-hero--casino .ct-logo {
	width: 168px;
	height: 112px;
	border-radius: var(--ct-radius);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.ct-hero__rating {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ct-on-felt);
	font-size: 15px;
}

.ct-hero__offer {
	text-align: center;
	background: rgba(0, 0, 0, .2);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--ct-radius-l);
	padding: 20px 22px;
	min-width: 260px;
}

.ct-hero__offer-label {
	font-size: 13px;
	color: var(--ct-on-felt-muted);
	margin: 0 0 2px;
}

.ct-hero__offer-value {
	font-family: var(--ct-font-display);
	font-weight: 760;
	font-stretch: 85%;
	font-size: 1.45rem;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 14px;
}

.ct-hero__offer .ct-btn { width: 100%; }

.ct-hero__offer .ct-terms {
	margin: 12px 0 0;
	color: var(--ct-on-felt-muted);
	text-align: left;
}

.ct-hero__offer .ct-terms a { color: var(--ct-on-felt); }

@media (max-width: 900px) {
	.ct-hero--casino .ct-hero__inner {
		grid-template-columns: auto minmax(0, 1fr);
	}
	.ct-hero__offer { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 560px) {
	.ct-hero__inner { padding: 30px 16px 30px; }
	.ct-hero--casino .ct-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.ct-hero--casino .ct-logo { width: 132px; height: 88px; }
	.ct-hero__offer { min-width: 0; }
}

@media (max-width: 768px) {
	body.ct10 .site-main > article,
	body.ct10 .inside-article { padding-top: 24px; }
}

/* ==========================================================================
   7. Innehållsyta
   ========================================================================== */

.site-content {
	padding-top: 0;
}

.one-container .site-content,
.separate-containers .inside-article,
.one-container.no-sidebar .site-content {
	padding-left: 20px;
	padding-right: 20px;
}

.one-container .container,
.separate-containers .inside-article,
.inside-article {
	background: transparent;
}

.site-main > article,
.ct10 .inside-article {
	padding-top: 32px;
	padding-bottom: 48px;
}

.no-sidebar .entry-content > *,
.no-sidebar .ct-after-content > * {
	max-width: var(--ct-measure);
	margin-left: auto;
	margin-right: auto;
}

.no-sidebar .entry-content > .alignwide,
.no-sidebar .entry-content > .ct-wide,
.no-sidebar .entry-content > .wp-block-table,
.no-sidebar .entry-content > .ct-toc {
	max-width: var(--ct-wide);
}

.no-sidebar .entry-content > .ct-toc { max-width: var(--ct-measure); }

.no-sidebar .entry-content > .alignfull {
	max-width: none;
}

.entry-content ul,
.entry-content ol {
	margin-left: 1.3em;
}

.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--ct-felt-soft); }

.entry-content blockquote {
	border-left: 3px solid var(--ct-brass);
	background: var(--ct-surface);
	padding: 18px 22px;
	border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
	font-style: normal;
	font-size: 1.05rem;
}

.entry-content img { border-radius: var(--ct-radius); }

/* Tabeller */
.entry-content table,
.ct-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	overflow: hidden;
	font-size: 15.5px;
	margin: 1.4em 0;
}

.entry-content th,
.entry-content td,
.ct-table th,
.ct-table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--ct-line);
	text-align: left;
	vertical-align: middle;
}

.entry-content thead th,
.ct-table thead th {
	background: var(--ct-surface);
	font-weight: 650;
	font-size: 14px;
	color: var(--ct-muted);
}

.entry-content tbody tr:last-child td,
.ct-table tbody tr:last-child td { border-bottom: 0; }

.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { margin: 0; }

/* Knappar */
.ct-btn,
.entry-content .wp-block-button__link,
button.ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--ct-radius);
	background: var(--ct-brass);
	color: var(--ct-on-brass);
	font-family: var(--ct-font-body);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
	transition: background-color .15s, transform .1s;
}

.ct-btn:hover,
.ct-btn:focus,
.entry-content .wp-block-button__link:hover {
	background: var(--ct-brass-hover);
	color: var(--ct-on-brass);
}

.ct-btn:active { transform: translateY(1px); }

.ct-btn--ghost {
	background: transparent;
	color: var(--ct-felt);
	box-shadow: inset 0 0 0 1.5px var(--ct-line);
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14.5px;
	font-weight: 600;
}

.ct-btn--ghost:hover,
.ct-btn--ghost:focus {
	background: var(--ct-surface);
	color: var(--ct-felt);
	box-shadow: inset 0 0 0 1.5px var(--ct-felt-soft);
}

.ct-btn--quiet {
	background: transparent;
	box-shadow: none;
	color: var(--ct-link);
	min-height: 0;
	padding: 4px 0;
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: underline;
}

.ct-btn--quiet:hover { background: transparent; color: var(--ct-link-hover); }

/* ==========================================================================
   8. Betyg och logotyper
   ========================================================================== */

.ct-stars {
	--ct-stars-fill: 100%;
	position: relative;
	display: inline-block;
	width: 86px;
	height: 16px;
	background: rgba(127, 140, 134, .35);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg%3E%3Cpath id='s' d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.2 3.5 14.6l.9-5L.8 6.1l5-.7z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 86px 16px;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg%3E%3Cpath id='s' d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.2 3.5 14.6l.9-5L.8 6.1l5-.7z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 86px 16px;
	vertical-align: -2px;
}

.ct-stars::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--ct-stars-fill);
	background: var(--ct-star);
}

.ct-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ct-muted);
}

.ct-rating strong {
	font-family: var(--ct-font-display);
	font-weight: 750;
	font-size: 16px;
	color: var(--ct-ink);
}

.ct-hero .ct-rating,
.ct-hero .ct-rating strong { color: var(--ct-on-felt); }

.ct-logo {
	--ct-brand: var(--ct-felt);
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--ct-brand);
	border-radius: var(--ct-radius);
	text-decoration: none;
}

.ct-logo img {
	width: 80%;
	height: 80%;
	object-fit: contain;
	border-radius: 0;
}

.ct-logo__text {
	padding: 0 10px;
	font-family: var(--ct-font-display);
	font-weight: 800;
	font-stretch: 80%;
	font-size: 1.25rem;
	line-height: 1.05;
	text-align: center;
	color: #fff;
	text-wrap: balance;
}

/* ==========================================================================
   9. Topplista
   ========================================================================== */

.ct-toplist-wrap {
	margin: 2em auto 2.5em;
}

.ct-toplist-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 16px;
}

.ct-toplist-head h2 {
	margin: 0;
}

.ct-toplist-head p {
	margin: 4px 0 0;
	color: var(--ct-muted);
	font-size: 15px;
}

.ct-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
}

.ct-sort legend {
	float: left;
	margin-right: 4px;
	padding: 7px 0;
	font-size: 14px;
	color: var(--ct-muted);
}

.ct-sort button {
	padding: 7px 13px;
	border: 1px solid var(--ct-line);
	border-radius: 999px;
	background: var(--ct-paper);
	color: var(--ct-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.ct-sort button:hover { border-color: var(--ct-felt-soft); }

.ct-sort button[aria-pressed="true"] {
	background: var(--ct-felt);
	border-color: var(--ct-felt);
	color: #fff;
}

.ct-toplist {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	counter-reset: ct-rank;
	display: grid;
	gap: 14px;
}

.ct-card {
	counter-increment: ct-rank;
	position: relative;
	display: grid;
	grid-template-columns: 76px 156px minmax(0, 1.25fr) minmax(0, 1.35fr) 196px;
	grid-template-areas:
		"rank logo info facts cta"
		"rank terms terms terms terms";
	background: var(--ct-paper);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-l);
	box-shadow: var(--ct-shadow);
	overflow: hidden;
	margin: 0 !important;
}

.ct-card[hidden] { display: none; }

.ct-card__rank {
	grid-area: rank;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 18px;
	background: var(--ct-surface);
	border-right: 1px solid var(--ct-line);
}

.ct-card__rank::before {
	content: counter(ct-rank);
	font-family: var(--ct-font-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 56px;
	line-height: .9;
	letter-spacing: -0.04em;
	color: var(--ct-felt);
	font-variant-numeric: tabular-nums;
}

.ct-card:first-child .ct-card__rank {
	background: var(--ct-felt);
	border-right-color: var(--ct-felt);
}

.ct-card:first-child .ct-card__rank::before {
	color: var(--ct-brass);
}

.ct-card__logo {
	grid-area: logo;
	padding: 20px 0 20px 20px;
}

.ct-card__logo .ct-logo {
	width: 136px;
	height: 92px;
}

.ct-card__info {
	grid-area: info;
	padding: 18px 20px 12px;
	min-width: 0;
}

.ct-card__badge {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	background: #fbf1d6;
	color: #6b4c05;
	font-size: 12.5px;
	font-weight: 650;
}

.ct-card__name {
	margin: 0 0 4px;
	font-size: 1.3rem;
	font-weight: 750;
	font-stretch: 88%;
}

.ct-card__name a {
	color: var(--ct-ink);
	text-decoration: none;
}

.ct-card__name a:hover { color: var(--ct-link); text-decoration: underline; }

.ct-card__tagline {
	margin: 6px 0 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--ct-muted);
}

.ct-pay,
.entry-content .ct-pay {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.entry-content .ct-pay { margin-left: 0; }

.ct-pay li {
	margin: 0;
	padding: 2px 8px;
	border-radius: var(--ct-radius-s);
	background: var(--ct-surface);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ct-ink);
}

.ct-card__license {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--ct-muted);
}

.ct-card__license svg { color: var(--ct-pos); flex: none; }

.ct-facts {
	grid-area: facts;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	align-self: center;
	margin: 18px 0 12px;
	background: var(--ct-line);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	overflow: hidden;
}

.ct-facts > div {
	background: var(--ct-paper);
	padding: 9px 12px;
	min-width: 0;
}

.ct-facts dt {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--ct-muted);
	line-height: 1.3;
}

.ct-facts dd {
	margin: 2px 0 0;
	font-family: var(--ct-font-display);
	font-weight: 720;
	font-stretch: 88%;
	font-size: 1.12rem;
	line-height: 1.2;
	color: var(--ct-ink);
	font-variant-numeric: tabular-nums;
}

.ct-facts dd.is-empty { color: #9aa8a1; font-weight: 500; }

.ct-card__cta {
	grid-area: cta;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 6px;
	padding: 18px 20px 12px 6px;
	text-align: center;
}

.ct-card__cta .ct-btn--quiet { align-self: center; }

.ct-card__terms {
	grid-area: terms;
	margin: 0;
	padding: 10px 20px 12px;
	border-top: 1px dashed var(--ct-line);
}

.ct-terms {
	font-size: 12px;
	line-height: 1.5;
	color: var(--ct-muted);
	margin: 0;
}

.ct-terms a { color: inherit; }

.ct-toplist-more {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.ct-toplist-empty {
	padding: 22px;
	border: 1px dashed var(--ct-line);
	border-radius: var(--ct-radius);
	color: var(--ct-muted);
	text-align: center;
}

@media (max-width: 1080px) {
	.ct-card {
		grid-template-columns: 64px 140px minmax(0, 1fr) 190px;
		grid-template-areas:
			"rank logo info cta"
			"rank facts facts facts"
			"rank terms terms terms";
	}
	.ct-card__rank::before { font-size: 46px; }
	.ct-card__logo .ct-logo { width: 120px; height: 82px; }
	.ct-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin: 0 20px 12px;
	}
}

@media (max-width: 680px) {
	.ct-card {
		grid-template-columns: 44px 104px minmax(0, 1fr);
		grid-template-areas:
			"rank logo info"
			"facts facts facts"
			"cta cta cta"
			"terms terms terms";
	}
	.ct-card__rank {
		border-right: 0;
		border-bottom-right-radius: var(--ct-radius);
		padding-top: 14px;
		align-self: start;
		height: 56px;
	}
	.ct-card__rank::before { font-size: 36px; }
	.ct-card__logo { padding: 14px 0 0 10px; }
	.ct-card__logo .ct-logo { width: 94px; height: 66px; }
	.ct-logo__text { font-size: 1rem; }
	.ct-card__info { padding: 14px 14px 10px; }
	.ct-card__name { font-size: 1.15rem; }
	.ct-card__tagline { display: none; }
	.ct-card .ct-pay { display: none; }
	.ct-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 4px 14px 12px;
	}
	.ct-card__cta { padding: 0 14px 12px; }
	.ct-card__terms { padding: 10px 14px 12px; }
	.ct-sort legend { float: none; width: 100%; padding: 0 0 2px; }
}

/* ==========================================================================
   10. Utvalt casino (casinokort)
   ========================================================================== */

.ct-feature {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 0;
	margin: 2em auto;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-l);
	overflow: hidden;
	box-shadow: var(--ct-shadow);
	background: var(--ct-paper);
}

.ct-feature__side {
	display: grid;
	place-items: center;
	padding: 22px;
	background: var(--ct-felt);
}

.ct-feature__side .ct-logo {
	width: 136px;
	height: 92px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.ct-feature__body {
	padding: 22px 26px 20px;
}

.ct-feature__label {
	margin: 0 0 4px;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--ct-link);
}

.ct-feature__title {
	margin: 0 0 4px;
	font-size: 1.5rem;
}

.ct-feature__offer {
	margin: 6px 0 10px;
	font-family: var(--ct-font-display);
	font-weight: 720;
	font-stretch: 88%;
	font-size: 1.2rem;
}

.ct-feature__text { margin: 0 0 14px; font-size: 15.5px; }

.ct-feature__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

@media (max-width: 600px) {
	.ct-feature { grid-template-columns: 1fr; }
	.ct-feature__side { padding: 18px; }
	.ct-feature__body { padding: 18px; }
}

/* ==========================================================================
   11. Kompakt tabell
   ========================================================================== */

.ct-table-wrap { position: relative; overflow-x: auto; margin: 1.6em auto; }
.ct-table-wrap .ct-table { margin: 0; min-width: 540px; }

.ct-table td.ct-table__rank {
	width: 48px;
	font-family: var(--ct-font-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 22px;
	color: var(--ct-felt);
	text-align: center;
}

.ct-table__casino {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 650;
}

.ct-table__casino .ct-logo {
	width: 64px;
	height: 40px;
	flex: none;
	border-radius: var(--ct-radius-s);
}

.ct-table__casino .ct-logo__text { font-size: 11px; padding: 0 4px; }
.ct-table__casino a { color: var(--ct-ink); text-decoration: none; }
.ct-table__casino a:hover { text-decoration: underline; }

.ct-table .ct-btn { min-height: 38px; padding: 8px 16px; font-size: 14.5px; }
.ct-table td:last-child { text-align: right; }

@media (max-width: 600px) {
	.ct-table-wrap .ct-table:not(.ct-strategy__table) { min-width: 0; font-size: 14.5px; }
	.ct-table:not(.ct-strategy__table) th:nth-child(4),
	.ct-table:not(.ct-strategy__table) td:nth-child(4),
	.ct-table__casino .ct-logo { display: none; }
	.ct-table th,
	.ct-table td { padding: 10px 8px; }
	.ct-table td.ct-table__rank { width: 32px; font-size: 19px; }
	.ct-table .ct-btn { padding: 8px 12px; }
	.entry-content table:not(.ct-table) { display: block; overflow-x: auto; }
}

/* ==========================================================================
   12. Recension: snabbfakta, plus/minus
   ========================================================================== */

.ct-review-facts {
	margin: 0 auto 2em;
	padding: 4px 22px 6px;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-l);
	background: var(--ct-paper);
}

.ct-review-facts h2 {
	margin: 16px 0 4px;
	font-size: 1.25rem;
}

.ct-review-facts dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	margin: 0;
}

.ct-review-facts dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-top: 1px solid var(--ct-line);
	font-size: 15px;
}

.ct-review-facts dl > div:nth-child(-n+2) { border-top: 0; }
.ct-review-facts dt { color: var(--ct-muted); }
.ct-review-facts dd { margin: 0; font-weight: 650; text-align: right; }

@media (max-width: 600px) {
	.ct-review-facts { padding: 4px 16px 6px; }
	.ct-review-facts dl { grid-template-columns: 1fr; }
	.ct-review-facts dl > div:nth-child(2) { border-top: 1px solid var(--ct-line); }
}

.ct-proscons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 1.6em auto 2em;
}

.ct-proscons > div {
	padding: 18px 20px;
	border-radius: var(--ct-radius-l);
	border: 1px solid var(--ct-line);
}

.ct-proscons h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
}

.ct-proscons ul {
	list-style: none;
	margin: 0 !important;
	padding: 0;
}

.ct-proscons li {
	position: relative;
	padding-left: 26px;
	margin: 0 0 8px;
	font-size: 15.5px;
	line-height: 1.45;
}

.ct-proscons li::before {
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.ct-pros { background: #f1f8f4; }
.ct-pros h3 { color: var(--ct-pos); }
.ct-pros li::before { content: "+"; background: var(--ct-pos); }

.ct-cons { background: #fcf3f1; }
.ct-cons h3 { color: var(--ct-neg); }
.ct-cons li::before { content: "\2212"; background: var(--ct-neg); }

@media (max-width: 600px) {
	.ct-proscons { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Innehållsförteckning, infoboxar, FAQ
   ========================================================================== */

.ct-toc {
	margin: 0 auto 2.2em;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-l);
	background: var(--ct-surface);
}

.ct-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	cursor: pointer;
	list-style: none;
	font-family: var(--ct-font-display);
	font-weight: 720;
	font-size: 1.05rem;
}

.ct-toc summary::-webkit-details-marker { display: none; }

.ct-toc summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ct-felt);
	border-bottom: 2px solid var(--ct-felt);
	transform: rotate(45deg);
	transition: transform .15s;
}

.ct-toc[open] summary::after { transform: rotate(-135deg); }

.ct-toc ol {
	margin: 0 !important;
	padding: 0 20px 16px 42px;
	columns: 2 16rem;
	column-gap: 32px;
	font-size: 15px;
}

.ct-toc li {
	break-inside: avoid;
	margin: 0 0 6px;
}

.ct-toc a { text-decoration: none; }
.ct-toc a:hover { text-decoration: underline; }

.ct-box {
	margin: 1.6em auto;
	padding: 18px 20px 18px 54px;
	border-radius: var(--ct-radius);
	position: relative;
	font-size: 15.5px;
	line-height: 1.55;
}

.ct-box > :last-child { margin-bottom: 0; }

.ct-box::before {
	position: absolute;
	left: 18px;
	top: 18px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	color: #fff;
}

.ct-box__title {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.ct-box--info { background: #eef4f8; }
.ct-box--info::before { content: "i"; background: #2b6487; font-family: Georgia, serif; font-style: italic; }

.ct-box--tips { background: #f1f8f4; }
.ct-box--tips::before { content: "\2713"; background: var(--ct-pos); }

.ct-box--varning { background: #fdf4e4; }
.ct-box--varning::before { content: "!"; background: #b7791f; }

.ct-faq {
	margin: 1.4em auto 2em;
	border-top: 1px solid var(--ct-line);
}

.ct-faq details {
	border-bottom: 1px solid var(--ct-line);
}

.ct-faq summary {
	position: relative;
	padding: 16px 40px 16px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--ct-font-display);
	font-weight: 680;
	font-size: 1.12rem;
	line-height: 1.35;
}

.ct-faq summary::-webkit-details-marker { display: none; }

.ct-faq__q {
	display: inline;
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

.ct-faq summary::after,
.ct-faq summary::before {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 14px;
	height: 2px;
	background: var(--ct-felt);
	transition: transform .2s;
}

.ct-faq summary::before { transform: rotate(90deg); }
.ct-faq details[open] summary::before { transform: rotate(0deg); }

.ct-faq__answer {
	padding: 0 0 16px;
	color: var(--ct-ink);
}

.ct-faq__answer > :last-child { margin-bottom: 0; }

/* Spelansvar-ruta */
.ct-rg {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	align-items: start;
	margin: 2.4em auto 1em;
	padding: 20px 22px;
	border-radius: var(--ct-radius-l);
	background: var(--ct-felt);
	color: var(--ct-on-felt);
	font-size: 15px;
	line-height: 1.55;
}

.ct-rg .ct-age {
	width: 46px;
	height: 46px;
	font-size: 15px;
	color: var(--ct-brass);
	border-width: 2px;
}

.ct-rg h2,
.ct-rg h3 {
	color: #fff;
	margin: 0 0 6px;
	font-size: 1.1rem;
}

.ct-rg p { margin: 0 0 8px; }
.ct-rg p:last-child { margin: 0; }
.ct-rg a { color: #fff; }

/* Författarbox */
.ct-author {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 18px;
	margin: 2.6em auto 0;
	padding: 22px;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-l);
}

.ct-author img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.ct-author__label {
	margin: 0;
	font-size: 13px;
	color: var(--ct-muted);
}

.ct-author__name {
	margin: 0 0 6px;
	font-family: var(--ct-font-display);
	font-weight: 720;
	font-size: 1.2rem;
}

.ct-author__name a { color: var(--ct-ink); text-decoration: none; }
.ct-author__bio { margin: 0; font-size: 15px; color: var(--ct-ink); }

/* Sticky CTA på mobil för recensioner */
.ct-sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: var(--ct-paper);
	border-top: 1px solid var(--ct-line);
	box-shadow: 0 -6px 18px rgba(15, 61, 48, .12);
	transform: translateY(110%);
	transition: transform .25s ease;
}

.ct-sticky-cta.is-visible { transform: none; }

.ct-sticky-cta__text {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	line-height: 1.3;
}

.ct-sticky-cta__text strong { display: block; font-size: 15px; }
.ct-sticky-cta__text span { color: var(--ct-muted); font-size: 11.5px; }
.ct-sticky-cta .ct-btn { min-height: 44px; padding: 10px 16px; flex: none; }

@media (max-width: 768px) {
	.ct-sticky-cta { display: flex; }
	.single-casino .site-footer { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
	.ct-sticky-cta { transition: none; }
}

/* ==========================================================================
   13b. Kalkylatorer och strategitabell
   ========================================================================== */

.ct-calc {
	margin: 2em auto;
	padding: 22px 24px 18px;
	border-radius: var(--ct-radius-l);
	background: var(--ct-felt);
	color: var(--ct-on-felt);
}

.ct-calc__title {
	margin: 0 0 14px;
	font-family: var(--ct-font-display);
	font-weight: 750;
	font-size: 1.25rem;
	color: #fff;
}

.ct-calc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px 16px;
}

.ct-calc__field label {
	display: block;
	margin-bottom: 4px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ct-on-felt-muted);
}

.ct-calc__input {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: var(--ct-radius-s);
	overflow: hidden;
}

.ct-calc__input input,
.ct-calc__input select {
	flex: 1;
	min-width: 0;
	border: 0;
	border-radius: 0;
	padding: 10px 12px;
	font-size: 16px;
	font-weight: 600;
	color: var(--ct-ink);
	background: transparent;
}

.ct-calc__input input:focus,
.ct-calc__input select:focus { outline: none; }
.ct-calc__input:focus-within { box-shadow: 0 0 0 3px var(--ct-brass); }

.ct-calc__input span {
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ct-muted);
}

.ct-calc__out {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
	margin: 18px 0 0;
}

.ct-calc__out > div {
	padding: 12px 14px;
	border-radius: var(--ct-radius);
	background: rgba(0, 0, 0, .22);
}

.ct-calc__out dt {
	font-size: 13px;
	color: var(--ct-on-felt-muted);
}

.ct-calc__out dd {
	margin: 2px 0 0;
	font-family: var(--ct-font-display);
	font-weight: 760;
	font-stretch: 88%;
	font-size: 1.45rem;
	color: var(--ct-brass);
	font-variant-numeric: tabular-nums;
}

.ct-calc__note {
	margin: 14px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.ct-calc__note:empty { display: none; }

.ct-calc__fine {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ct-on-felt-muted);
}

@media (max-width: 600px) {
	.ct-calc { padding: 18px 16px 14px; }
	.ct-calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ct-calc__field label { font-size: 12.5px; }
	.ct-calc__out { grid-template-columns: 1fr; gap: 8px; }
	.ct-calc__out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; }
	.ct-calc__out dd { font-size: 1.2rem; margin: 0; text-align: right; }
}

.ct-strategy { margin: 2em auto; }
.ct-strategy .ct-calc__fine { color: var(--ct-muted); }

.ct-strategy__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 12px !important;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.ct-strategy__legend li { margin: 0; display: flex; align-items: center; gap: 6px; }

.ct-strategy__legend .ct-s {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 26px;
	border-radius: 5px;
	font-weight: 700;
	font-size: 13px;
}

.ct-table-wrap .ct-strategy__table { min-width: 0; font-size: 14px; }
@media (max-width: 600px) {
	.ct-strategy__table th,
	.ct-strategy__table td { padding: 7px 2px !important; font-size: 12.5px; }
	.ct-strategy__table tbody th { padding-left: 8px !important; }
}
.ct-strategy__table caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 6px; color: var(--ct-ink); }
.ct-strategy__table th,
.ct-strategy__table td { padding: 7px 4px; text-align: center !important; }
.ct-strategy__table tbody th { text-align: left !important; padding-left: 12px; white-space: nowrap; }
.ct-strategy__table td { font-weight: 700; border-left: 1px solid rgba(255, 255, 255, .6); }

.ct-s--h { background: #f6d9d3; color: #7d2414; }
.ct-s--s { background: #d8eedf; color: #135d38; }
.ct-s--d { background: #fbecc4; color: #6b4c05; }
.ct-s--x { background: #f3e1a6; color: #5a3f00; }
.ct-s--p { background: #d9e6f2; color: #1d4a72; }

/* ==========================================================================
   14. Blogg och arkiv
   ========================================================================== */

.blog .site-main,
.archive .site-main,
.search .site-main {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 22px;
	padding-top: 36px;
	padding-bottom: 48px;
}

.ct-posts-intro,
.ct-posts-heading {
	grid-column: 1 / -1;
	min-width: 0;
}

.ct-posts-heading {
	margin: 24px 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--ct-line);
}

.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article {
	margin: 0;
	padding: 0;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-l);
	overflow: hidden;
	background: var(--ct-paper);
}

.blog .inside-article,
.archive .inside-article,
.search .inside-article {
	padding: 0 22px 22px !important;
}

.blog .post-image,
.archive .post-image,
.search .post-image {
	margin: 0 -22px 18px;
}

.blog .post-image img,
.archive .post-image img { border-radius: 0; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.blog .entry-header,
.archive .entry-header,
.search .entry-header { padding-top: 20px; }

.blog .entry-title,
.archive .entry-title,
.search .entry-title { font-size: 1.25rem; margin: 0 0 6px; }

.blog .entry-title a,
.archive .entry-title a { color: var(--ct-ink); text-decoration: none; }

.blog .entry-summary,
.archive .entry-summary { font-size: 15.5px; color: var(--ct-muted); }

.entry-meta { font-size: 13.5px; color: var(--ct-muted); }
.entry-meta a { color: var(--ct-muted); }

.paging-navigation,
.blog .site-main > .paging-navigation,
.archive .site-main > .paging-navigation { grid-column: 1 / -1; }

.post-navigation,
.single .entry-meta.cat-links { max-width: var(--ct-measure); margin: 2em auto 0; }

.page-header { display: none; }

/* ==========================================================================
   15. Sidfot
   ========================================================================== */

.site-footer {
	background: var(--ct-felt-deep);
	color: var(--ct-on-felt-muted);
	font-size: 15px;
}

.site-footer .footer-widgets {
	background: transparent;
	color: var(--ct-on-felt-muted);
	padding-top: 52px;
	padding-bottom: 32px;
}

.site-footer .widget-title,
.site-footer h2,
.site-footer h3 {
	font-family: var(--ct-font-display);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 14px;
}

.site-footer a { color: var(--ct-on-felt); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .inside-footer-widgets { gap: 40px; }

@media (max-width: 768px) {
	.site-footer .inside-footer-widgets { gap: 8px; }
}

.site-footer .widget ul li { margin-bottom: 8px; line-height: 1.4; }
.site-footer .widget { background: transparent; }

.ct-footer-rg {
	border-top: 1px solid rgba(255, 255, 255, .09);
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ct-footer-rg__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 26px 40px;
}

@media (max-width: 768px) {
	.ct-footer-rg__inner { padding-left: 20px; padding-right: 20px; }
}

.ct-footer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-footer-badges li { margin: 0; }

.ct-footer-badges a,
.ct-footer-badges span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--ct-radius);
	font-weight: 650;
	font-size: 14px;
	color: var(--ct-on-felt);
	white-space: nowrap;
}

.ct-footer-badges a:hover { border-color: var(--ct-brass); text-decoration: none; }

.ct-footer-badges .ct-age {
	height: 26px;
	min-width: 34px;
	padding: 0 6px;
	border-color: var(--ct-brass);
	color: var(--ct-brass);
}

.ct-footer-badges .is-age {
	border: 0;
	padding: 0;
}

.ct-footer-rg__text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	max-width: 75ch;
}

@media (max-width: 860px) {
	.ct-footer-rg__inner { grid-template-columns: 1fr; gap: 16px; }
}

.site-info {
	background: transparent;
	color: var(--ct-on-felt-muted);
	font-size: 13.5px;
}

.site-info .copyright-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	width: 100%;
}

.site-info .inside-site-info {
	padding-top: 18px;
	padding-bottom: 18px;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
}

.ct-legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-legal-menu li { margin: 0; }

.generate-back-to-top {
	background: var(--ct-felt);
	border-radius: var(--ct-radius);
}

/* ==========================================================================
   16. Formulär och sök
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius-s);
	background: var(--ct-paper);
	color: var(--ct-ink);
	padding: 10px 12px;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--ct-felt-soft);
	outline: 2px solid rgba(227, 179, 65, .6);
	outline-offset: 0;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button {
	background: var(--ct-felt);
	color: #fff;
	border-radius: var(--ct-radius-s);
	font-weight: 600;
}

button:hover,
input[type="submit"]:hover,
a.button:hover {
	background: var(--ct-felt-soft);
	color: #fff;
}

.ct-sort button,
.ct-sort button:hover { color: var(--ct-ink); }
.ct-sort button[aria-pressed="true"],
.ct-sort button[aria-pressed="true"]:hover { color: #fff; background: var(--ct-felt); }
button.ct-btn,
button.ct-btn:hover { color: var(--ct-on-brass); }
button.ct-btn--ghost,
button.ct-btn--ghost:hover { color: var(--ct-felt); background: transparent; }
button.ct-btn--ghost:hover { background: var(--ct-surface); }

.screen-reader-text:focus {
	background: var(--ct-paper);
	color: var(--ct-ink);
}

/* ==========================================================================
   17. Utskrift
   ========================================================================== */

@media print {
	.ct-topbar,
	.ct-sticky-cta,
	.ct-sort,
	.main-navigation { display: none !important; }
	.ct-hero { background: none; color: #000; }
	.ct-hero__title,
	.ct-hero a { color: #000; }
}
