/*
Theme Name: Bagoly
Theme URI: https://bagoly.se/
Author: Bagoly
Description: Bagolys eget tema: natthimmel, neon och en uggla som ser dig. Startsidan byggs av mönstret "Bagoly – startsida"; ugglan, terminalen, nyhetsradarn, diskhyllan och Files-demon är kortkoder.
Version: 1.4.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bagoly
*/

:root {
	--bg-void: #03060c;
	--bg-night: #071223;
	--bg-deep: #0a1a2f;
	--bg-cyan: #00bfff;
	--bg-ice: #b0f7ff;
	--bg-frost: #e8f9ff;
	--bg-mist: #8aa4bf;
	--bg-amber: #ffb547;
	--bg-violet: #7b61ff;
	--bg-line: rgba(0, 191, 255, 0.16);
	--bg-line-strong: rgba(0, 191, 255, 0.38);
	--bg-panel: rgba(6, 15, 30, 0.9);
	--bg-mono: var(--wp--preset--font-family--mono);
	--bg-display: var(--wp--preset--font-family--display);
	--bg-header-h: 76px;
}

html { scroll-behavior: smooth; }
.bg-front, .bg-site-footer { overflow-x: clip; }
.bg-term, .bg-clock, .bg-kicker, .bg-index, .bg-menu, .bg-shelf, .bg-doc-head, .bg-cite, .bg-src, .bg-ticker, .bg-tab, .bg-news-meta, .bg-news-n, .bg-footer-meta, .bg-owl-note, .bg-owl-say, .wp-element-button { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--bg-cyan); color: var(--bg-void); }
:focus-visible { outline: 2px solid var(--bg-amber); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--bg-header-h) + 16px); }
p { overflow-wrap: break-word; hyphens: manual; }
h1, h2, h3, h4, .wp-block-heading { overflow-wrap: normal; word-break: normal; hyphens: manual; }
body .wp-site-blocks { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
body .wp-site-blocks > * { margin-block-start: 0; }
body .wp-site-blocks > main { flex: 1 0 auto; }
.bg-front .wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Night sky (behind everything) ---------- */
.bg-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-aurora span {
	position: absolute;
	width: 70vmax;
	height: 70vmax;
	border-radius: 50%;
	background: radial-gradient(circle, var(--c) 0%, transparent 62%);
	opacity: 0.2;
	will-change: transform;
	animation: bg-drift 26s ease-in-out infinite alternate;
}
.bg-aurora span:nth-child(1) { --c: #00bfff; left: -24vmax; top: -28vmax; }
.bg-aurora span:nth-child(2) { --c: #7b61ff; right: -28vmax; top: 6vmax; animation-duration: 32s; animation-delay: -8s; opacity: 0.17; }
.bg-aurora span:nth-child(3) { --c: #00ffd5; left: 22vmax; bottom: -42vmax; animation-duration: 38s; animation-delay: -16s; opacity: 0.08; }
.bg-phase-day .bg-aurora span:nth-child(2),
.bg-phase-dawn .bg-aurora span:nth-child(2) { --c: #ffb547; opacity: 0.1; }
@keyframes bg-drift {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
	100% { transform: translate3d(-4vmax, 8vmax, 0) scale(0.94); }
}
.bg-grain {
	position: absolute;
	inset: 0;
	opacity: 0.06;
	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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.bg-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
	transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
	border-bottom: 1px solid transparent;
}
.bg-site-header.is-scrolled {
	background: rgba(3, 6, 12, 0.72);
	backdrop-filter: blur(14px) saturate(1.3);
	border-bottom-color: var(--bg-line);
}
.wp-block-group.bg-nav { min-height: var(--bg-header-h); align-items: center; gap: 24px; }
.wp-block-group.bg-nav > * { margin: 0; }
.bg-home { display: inline-flex; text-decoration: none; }
.bg-logo { display: inline-flex; align-items: center; gap: 10px; }
.bg-logo-owl { width: 34px; height: auto; overflow: visible; }
.bg-logo-word { height: 30px; width: auto; fill: var(--bg-cyan); filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.35)); }
.bg-logo-owl .bg-owl-shape { fill: var(--bg-cyan); }
.bg-menu { margin-left: auto !important; }
.bg-menu-list { display: flex; align-items: center; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.bg-menu-list a {
	position: relative;
	display: inline-block;
	font-family: var(--bg-mono);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bg-mist);
	text-decoration: none;
	padding: 6px 0;
	transition: color 0.2s;
}
.bg-menu-list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--bg-cyan);
	box-shadow: 0 0 8px var(--bg-cyan);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.bg-menu-list a:hover { color: var(--bg-frost); }
.bg-menu-list a:hover::after { transform: scaleX(1); }
.bg-menu-list .bg-lang a { padding: 5px 10px; border: 1px solid var(--bg-line-strong); color: var(--bg-ice); letter-spacing: 0.1em; }
.bg-menu-list .bg-lang a::after { display: none; }
.bg-menu-list .bg-lang a:hover { border-color: var(--bg-cyan); }
.bg-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--bg-line); color: var(--bg-ice); cursor: pointer; }
.bg-burger { position: relative; width: 18px; height: 10px; }
.bg-burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.25s, top 0.25s; }
.bg-burger i:first-child { top: 0; }
.bg-burger i:last-child { top: 8.5px; }
.bg-menu.is-open .bg-burger i:first-child { top: 4.25px; transform: rotate(45deg); }
.bg-menu.is-open .bg-burger i:last-child { top: 4.25px; transform: rotate(-45deg); }
.bg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
	.bg-menu-toggle { display: inline-flex; position: relative; z-index: 2; }
	.bg-menu-list {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		justify-content: center;
		gap: 22px;
		background: rgba(3, 6, 12, 0.97);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s, visibility 0.25s;
	}
	.bg-menu-list a { font-size: 1.1rem; color: var(--bg-frost); }
	.bg-menu.is-open .bg-menu-list { opacity: 1; visibility: visible; }
}
.bg-clock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--bg-line);
	font-family: var(--bg-mono);
	font-size: 0.78rem;
	color: var(--bg-mist);
	white-space: nowrap;
}
.bg-clock span { color: var(--bg-ice); }
.bg-clock i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bg-cyan);
	box-shadow: 0 0 10px var(--bg-cyan);
	animation: bg-pulse 2.4s ease-in-out infinite;
}
.bg-phase-day .bg-clock i { background: var(--bg-amber); box-shadow: 0 0 10px var(--bg-amber); }
@keyframes bg-pulse { 50% { opacity: 0.35; } }

/* ---------- Shared type ---------- */
.wp-block-heading em {
	font-style: normal;
	color: transparent;
	-webkit-text-stroke: 1.4px var(--bg-cyan);
	text-shadow: 0 0 28px rgba(0, 191, 255, 0.25);
}
.bg-lead { font-size: var(--wp--preset--font-size--large); color: #c3d6e8; max-width: 38rem; }
/* A narrow lead directly in a section keeps to the left edge of the content instead of being centred. */
.is-layout-constrained > .bg-lead { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1240px)) / 2)) !important; }
.bg-kicker {
	font-family: var(--bg-mono);
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bg-cyan);
}
.bg-kicker::before { content: "▸ "; color: var(--bg-amber); }
.bg-index {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--bg-mono);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bg-mist);
	margin-bottom: clamp(28px, 4vw, 48px) !important;
}
.bg-index span {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 26px;
	border: 1px solid var(--bg-line-strong);
	color: var(--bg-cyan);
	letter-spacing: 0.05em;
}
.bg-index::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bg-line-strong), transparent); }

/* Buttons */
.wp-block-button__link { transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.2s; box-shadow: 0 0 0 rgba(0, 191, 255, 0); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { box-shadow: 0 0 34px rgba(0, 191, 255, 0.45); transform: translateY(-2px); }
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--bg-ice);
	border: 1px solid var(--bg-line-strong);
	padding: 14px 23px;
}
.is-style-outline > .wp-block-button__link:hover { background: rgba(0, 191, 255, 0.08); color: var(--bg-frost); border-color: var(--bg-cyan); }
.wp-block-buttons.bg-actions { gap: 12px; margin-top: 30px; }

/* Panels get a light that follows the pointer (site.js sets --mx/--my). */
.bg-term, .bg-files-demo, .bg-shelf, .wp-block-group.bg-feature, .wp-block-group.bg-linkrow {
	background-image: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), rgba(0, 191, 255, 0.09), transparent 45%);
}

/* ---------- Hero ---------- */
.wp-block-group.bg-hero {
	position: relative;
	min-height: calc(100vh - var(--bg-header-h));
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: clamp(30px, 6vh, 80px);
	padding-bottom: clamp(60px, 10vh, 120px);
}
.wp-block-group.bg-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.wp-block-columns.bg-hero-cols { gap: 3rem clamp(30px, 5vw, 80px); width: 100%; }
.bg-hero-title { font-weight: 700; margin-top: 18px !important; }
.bg-hero-title em { display: block; }
.bg-hero .bg-lead { margin-top: 26px !important; }

/* Terminal */
.bg-term {
	position: relative;
	margin-top: 38px;
	max-width: 560px;
	background-color: var(--bg-panel);
	border: 1px solid var(--bg-line);
	font-family: var(--bg-mono);
	font-size: 0.82rem;
	line-height: 1.85;
}
.bg-term::before, .bg-term::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	border: 1px solid var(--bg-cyan);
}
.bg-term::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bg-term::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.bg-term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--bg-line); color: var(--bg-mist); font-size: 0.74rem; }
.bg-term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(138, 164, 191, 0.35); }
.bg-term-bar i:first-child { background: var(--bg-amber); }
.bg-term-bar i:nth-child(2) { background: var(--bg-cyan); }
.bg-term-bar span { margin-left: 8px; }
.bg-term-body { padding: 14px 18px 16px; color: #c3d6e8; white-space: pre; overflow-x: auto; }
.bg-t-p { color: var(--bg-cyan); }
.bg-t-ok { color: var(--bg-cyan); text-shadow: 0 0 8px var(--bg-cyan); }
.bg-t-cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--bg-ice); animation: bg-blink 1s steps(1) infinite; }
@keyframes bg-blink { 50% { opacity: 0; } }
.bg-js .bg-t-line { clip-path: inset(0 100% 0 0); }
.bg-js .bg-t-line.is-on { animation: bg-type 0.7s steps(28) forwards; }
.bg-js:not(.bg-ready) .bg-t-line { animation: bg-type 0.01s 4s forwards; }
@keyframes bg-type { to { clip-path: inset(0 0 0 0); } }

/* Owl */
.bg-owl-wrap { position: relative; max-width: 460px; margin: 0 auto; cursor: pointer; }
.bg-owl-halo {
	position: absolute;
	inset: 6% 2% 10%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 191, 255, 0.3), rgba(123, 97, 255, 0.12) 42%, transparent 68%);
	animation: bg-breathe 6s ease-in-out infinite;
}
@keyframes bg-breathe { 50% { transform: scale(1.08); opacity: 0.7; } }
.bg-owl { display: block; width: 100%; height: auto; overflow: visible; }
.bg-owl-hero {
	position: relative;
	--lid: 0px;
	transform: rotate(var(--tilt, 0deg));
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
	filter: drop-shadow(0 0 18px rgba(0, 191, 255, 0.55));
	animation: bg-bob 7s ease-in-out infinite;
}
@keyframes bg-bob { 50% { translate: 0 -10px; } }
.bg-owl-shape { fill: var(--bg-cyan); }
.bg-eye-bg { fill: #02050b; }
.bg-iris { transform-box: fill-box; transform-origin: center; transition: transform 0.3s; }
.bg-core { fill: #020409; }
.bg-glint { fill: #fff; opacity: 0.9; }
.bg-pupil { transition: transform 0.12s linear; }
.bg-lid { fill: #04101f; transform: translateY(var(--lid)); transition: transform 0.16s ease; }
.bg-phase-day .bg-owl-hero { --lid: 21px; }
.bg-phase-dawn .bg-owl-hero, .bg-phase-dusk .bg-owl-hero { --lid: 9px; }
.bg-phase-night .bg-iris { transform: scale(1.12); }
.bg-owl-hero.is-awake { --lid: 0px; }
.bg-owl-hero.is-awake .bg-iris { transform: scale(1.18); }
.bg-owl-hero.is-blink { --lid: 40px; }
.bg-owl-hero.is-spin { animation: bg-spin 1.1s cubic-bezier(0.5, 0, 0.2, 1); }
@keyframes bg-spin { 0% { transform: rotate(0); } 60% { transform: rotate(370deg); } 100% { transform: rotate(360deg); } }
.bg-owl-say {
	position: absolute;
	top: 2%;
	right: 4%;
	margin: 0;
	padding: 8px 14px;
	font-family: var(--bg-mono);
	font-size: 0.9rem;
	color: var(--bg-void);
	background: var(--bg-amber);
	box-shadow: 0 0 30px rgba(255, 181, 71, 0.5);
	opacity: 0;
	transform: translateY(8px) scale(0.9);
	transition: opacity 0.2s, transform 0.25s;
	pointer-events: none;
}
.bg-owl-say.is-on { opacity: 1; transform: none; }
.bg-owl-note {
	margin: 14px 0 0;
	text-align: center;
	font-family: var(--bg-mono);
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	color: var(--bg-mist);
}
.bg-owl-note i { color: var(--bg-ice); }
/* Fråga ugglan: question form under the hero owl */
.bg-ask { position: relative; max-width: 440px; margin: 26px auto 0; }
.bg-ask-label { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-family: var(--bg-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg-ice); }
.bg-ask-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg-cyan); box-shadow: 0 0 10px var(--bg-cyan); animation: bg-ask-pulse 2.4s ease-in-out infinite; }
@keyframes bg-ask-pulse { 50% { opacity: 0.35; } }
.bg-ask-row { display: flex; border: 1px solid var(--bg-line-strong); background: rgba(3, 6, 12, 0.72); transition: border-color 0.2s, box-shadow 0.2s; }
.bg-ask-row:focus-within { border-color: var(--bg-cyan); box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.16), 0 0 30px rgba(0, 191, 255, 0.12); }
.bg-ask-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: transparent; color: var(--bg-frost); font: inherit; font-size: 0.95rem; outline: none; }
.bg-ask-row input::placeholder { color: rgba(138, 164, 191, 0.7); }
.bg-ask-btn { padding: 0 18px; border: 0; background: var(--bg-cyan); color: var(--bg-void); font-family: var(--bg-mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; cursor: pointer; transition: background 0.2s; }
.bg-ask-btn:hover { background: var(--bg-ice); }
.bg-ask-btn:disabled, .bg-ask-row input:disabled { cursor: not-allowed; opacity: 0.55; }
.bg-ask-a { position: relative; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--bg-line-strong); border-left: 3px solid var(--bg-amber); background: rgba(7, 14, 28, 0.88); color: var(--bg-frost); font-size: 0.95rem; line-height: 1.6; animation: bg-fadeup 0.35s ease both; }
.bg-ask-a::before { content: ""; position: absolute; top: -7px; left: 26px; width: 12px; height: 12px; background: inherit; border-top: 1px solid var(--bg-line-strong); border-left: 1px solid var(--bg-line-strong); transform: rotate(45deg); }
.bg-ask-a a { color: var(--bg-cyan); }
.bg-ask-a.is-thinking { color: var(--bg-mist); font-family: var(--bg-mono); font-size: 0.82rem; border-left-color: var(--bg-cyan); }
.bg-ask-a.is-error { border-left-color: #ff6b6b; color: var(--bg-mist); }
.bg-ask-dots { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: bg-ask-dots 1.2s steps(4) infinite; }
@keyframes bg-ask-dots { to { width: 1.7em; } }
.bg-ask-meta { margin: 9px 0 0; font-family: var(--bg-mono); font-size: 0.68rem; line-height: 1.5; color: var(--bg-mist); }
.bg-owl-wrap.is-thinking .bg-owl-halo { animation-duration: 1.1s; }
.bg-owl-wrap.is-thinking .bg-owl-hero { --lid: 14px; }

/* ---------- Marquee ---------- */
.wp-block-group.bg-marquee {
	overflow: hidden;
	border-top: 1px solid var(--bg-line);
	border-bottom: 1px solid var(--bg-line);
	background: rgba(0, 191, 255, 0.03);
	padding: 18px 0;
	transform: rotate(-1.2deg) scale(1.02);
}
.bg-marquee-text {
	margin: 0;
	white-space: nowrap;
	font-family: var(--bg-display);
	font-weight: 800;
	font-size: clamp(1.8rem, 5vw, 4.4rem);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(176, 247, 255, 0.55);
}
.bg-marquee-track { display: inline-flex; animation: bg-slide 46s linear infinite; }
.bg-marquee-track span { padding-right: 0.6em; }
.bg-marquee-track span:nth-child(even) { color: var(--bg-cyan); -webkit-text-stroke: 0; text-shadow: 0 0 30px rgba(0, 191, 255, 0.4); }
@keyframes bg-slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.wp-block-group.bg-section { padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(40px, 6vw, 80px); }
.wp-block-columns.bg-split { gap: 3rem clamp(32px, 6vw, 96px); }

/* Files */
.wp-block-group.bg-features { margin-top: 40px; }
.wp-block-group.bg-feature {
	counter-increment: bg-feat;
	position: relative;
	padding: 22px 20px 20px;
	border: 1px solid var(--bg-line);
	transition: border-color 0.25s, transform 0.25s;
}
.wp-block-group.bg-feature > * { margin: 0; }
.wp-block-group.bg-feature > * + * { margin-top: 10px; }
.wp-block-group.bg-feature::before {
	content: counter(bg-feat, decimal-leading-zero) " /";
	display: block;
	margin-bottom: 12px;
	font-family: var(--bg-mono);
	font-size: 0.72rem;
	color: var(--bg-amber);
	letter-spacing: 0.1em;
}
.wp-block-group.bg-feature:hover { border-color: var(--bg-line-strong); transform: translateY(-3px); }
.bg-feature p { color: var(--bg-mist); font-size: 0.95rem; line-height: 1.6; }
.wp-block-group.bg-features { counter-reset: bg-feat; }

.bg-files-demo {
	position: relative;
	padding: 22px;
	border: 1px solid var(--bg-line);
	background-color: var(--bg-panel);
}
.bg-doc { position: relative; border: 1px solid var(--bg-line); background: rgba(10, 26, 47, 0.7); overflow: hidden; }
.bg-doc-head {
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
	border-bottom: 1px solid var(--bg-line);
	font-family: var(--bg-mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	color: var(--bg-mist);
}
.bg-doc-body { position: relative; display: grid; gap: 9px; padding: 18px 16px 22px; }
.bg-doc-line { display: block; height: 7px; width: var(--w); background: rgba(138, 164, 191, 0.22); border-radius: 1px; }
.bg-doc-gap { display: block; height: 6px; }
.bg-doc-line.is-hit { background: rgba(255, 181, 71, 0.85); box-shadow: 0 0 14px rgba(255, 181, 71, 0.5); animation: bg-hit 4.5s ease-in-out infinite; }
@keyframes bg-hit { 0%, 38% { background: rgba(138, 164, 191, 0.22); box-shadow: none; } 48%, 100% { background: rgba(255, 181, 71, 0.85); box-shadow: 0 0 14px rgba(255, 181, 71, 0.5); } }
.bg-scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 46px;
	background: linear-gradient(to bottom, transparent, rgba(0, 191, 255, 0.2) 70%, rgba(0, 191, 255, 0.8) 98%, transparent);
	border-bottom: 1px solid var(--bg-cyan);
	animation: bg-scan 4.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes bg-scan { 0% { transform: translateY(-50px); } 70%, 100% { transform: translateY(260px); opacity: 0; } }
.bg-chat { margin-top: 18px; display: grid; gap: 10px; }
.bg-chat p { margin: 0; }
.bg-q {
	justify-self: end;
	max-width: 82%;
	padding: 10px 14px;
	background: rgba(176, 247, 255, 0.1);
	border: 1px solid rgba(176, 247, 255, 0.18);
	font-size: 0.92rem;
}
.bg-a {
	max-width: 92%;
	padding: 12px 14px;
	border-left: 2px solid var(--bg-cyan);
	background: rgba(0, 191, 255, 0.06);
	font-size: 0.92rem;
	min-height: 3.6em;
}
.bg-src { font-family: var(--bg-mono); font-size: 0.78rem; color: var(--bg-amber); }
.bg-cite { font-family: var(--bg-mono); font-size: 0.74rem; color: var(--bg-mist); }
.bg-cite b { color: var(--bg-amber); font-weight: 600; }
.bg-demo-note { position: absolute; top: -11px; right: 16px; margin: 0; padding: 0 8px; background: var(--bg-void); font-family: var(--bg-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg-mist); }

/* Diskrisk shelf */
.bg-shelf { position: relative; padding: 18px; border: 1px solid var(--bg-line); background-color: var(--bg-panel); font-family: var(--bg-mono); }
.bg-shelf-head { display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--bg-mist); margin-bottom: 14px; }
.bg-shelf-live { color: var(--bg-cyan); animation: bg-pulse 2s ease-in-out infinite; }
.bg-bays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bg-bay {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 12px 10px 10px;
	border: 1px solid rgba(138, 164, 191, 0.18);
	background: linear-gradient(180deg, rgba(10, 26, 47, 0.9), rgba(3, 6, 12, 0.9));
	font-size: 0.64rem;
	color: var(--bg-mist);
}
.bg-bay::before { content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 2px; background: repeating-linear-gradient(90deg, rgba(138, 164, 191, 0.25) 0 3px, transparent 3px 6px); }
.bg-bay b { font-weight: 500; color: #c3d6e8; font-size: 0.68rem; letter-spacing: 0.02em; }
.bg-led { position: absolute; top: 11px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--bg-cyan); box-shadow: 0 0 8px var(--bg-cyan); opacity: 0.35; }
.bg-led.is-on { opacity: 1; }
.bg-bay.is-risk { border-color: var(--bg-amber); box-shadow: 0 0 24px rgba(255, 181, 71, 0.25), inset 0 0 20px rgba(255, 181, 71, 0.08); }
.bg-bay.is-risk .bg-led { background: var(--bg-amber); box-shadow: 0 0 12px var(--bg-amber); opacity: 1; animation: bg-pulse 1s ease-in-out infinite; }
.bg-bay.is-risk b { color: var(--bg-amber); }
.bg-bay.is-pair { border: 1px dashed var(--bg-cyan); }
.bg-shelf-alert {
	display: grid;
	gap: 2px;
	margin-top: 14px;
	padding: 12px 14px;
	border-left: 2px solid var(--bg-amber);
	background: rgba(255, 181, 71, 0.07);
	font-size: 0.76rem;
	color: #c3d6e8;
}
.bg-shelf-alert b { color: var(--bg-amber); font-weight: 600; }
.bg-shelf-alert em { font-style: normal; color: var(--bg-amber); animation: bg-pulse 1.4s ease-in-out infinite; }
ul.bg-list { padding-left: 0; list-style: none; display: grid; gap: 12px; margin-top: 22px; }
ul.bg-list li { position: relative; padding-left: 26px; color: #c3d6e8; }
ul.bg-list li::before { content: "›"; position: absolute; left: 4px; top: -1px; font-family: var(--bg-mono); color: var(--bg-cyan); font-size: 1.1rem; }
ul.bg-list strong { color: var(--bg-frost); font-family: var(--bg-mono); font-weight: 600; font-size: 0.92em; }

/* Web */
.wp-block-image.bg-browser {
	position: relative;
	margin: 0;
	border: 1px solid var(--bg-line-strong);
	background: var(--bg-night);
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 191, 255, 0.12);
	transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
	transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wp-block-image.bg-browser:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.wp-block-image.bg-browser::before {
	content: "coastgrid.se";
	display: block;
	padding: 9px 14px 9px 64px;
	border-bottom: 1px solid var(--bg-line);
	font-family: var(--bg-mono);
	font-size: 0.72rem;
	color: var(--bg-mist);
	background:
		radial-gradient(circle at 16px 50%, var(--bg-amber) 4px, transparent 5px),
		radial-gradient(circle at 30px 50%, var(--bg-cyan) 4px, transparent 5px),
		radial-gradient(circle at 44px 50%, rgba(138, 164, 191, 0.5) 4px, transparent 5px);
}
.wp-block-image.bg-browser img { display: block; width: 100%; height: auto; }
.bg-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--bg-mono);
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bg-cyan);
}
.bg-arrow-link a::after { content: "→"; transition: transform 0.25s; }
.bg-arrow-link a:hover::after { transform: translateX(6px); }

/* News radar */
.bg-news { margin-top: 34px; }
.bg-ticker { overflow: hidden; border-top: 1px solid var(--bg-line); border-bottom: 1px solid var(--bg-line); padding: 10px 0; font-family: var(--bg-mono); font-size: 0.8rem; color: var(--bg-mist); white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bg-ticker-track { display: inline-flex; animation: bg-slide 70s linear infinite; }
.bg-ticker-track span { padding-right: 46px; }
.bg-ticker-track b { color: var(--bg-cyan); font-weight: 600; margin-right: 6px; }
.bg-ticker:hover .bg-ticker-track { animation-play-state: paused; }
.bg-tabs { display: none; flex-wrap: wrap; gap: 8px; margin: 30px 0 10px; }
.bg-js .bg-tabs { display: flex; }
.bg-tab {
	font-family: var(--bg-mono);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 10px 16px;
	color: var(--bg-mist);
	background: transparent;
	border: 1px solid var(--bg-line);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.bg-tab:hover { color: var(--bg-frost); border-color: var(--bg-line-strong); }
.bg-tab[aria-selected="true"] { color: var(--bg-void); background: var(--bg-cyan); border-color: var(--bg-cyan); box-shadow: 0 0 24px rgba(0, 191, 255, 0.35); }
.bg-news-group { font-size: 1rem; margin: 30px 0 6px; color: var(--bg-cyan); }
.bg-js .bg-news-group { display: none; }
.bg-js .bg-news-panel[data-hidden] { display: none; }
.bg-news-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); column-gap: 40px; }
.bg-news-item { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--bg-line); animation: bg-fadeup 0.5s ease both; }
.bg-news-n { font-family: var(--bg-mono); font-size: 0.78rem; color: rgba(138, 164, 191, 0.6); padding-top: 3px; }
.bg-news-meta { margin: 0 0 4px; font-family: var(--bg-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--bg-mist); }
.bg-news-meta b { color: var(--bg-cyan); font-weight: 600; }
.bg-news-title { font-weight: 700; font-size: 1.02rem; line-height: 1.4; color: var(--bg-frost); text-decoration: none; }
.bg-news-title:hover { color: var(--bg-cyan); }
.bg-news-desc { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--bg-mist); }
.bg-news-updated, .bg-news-empty { margin-top: 18px; font-family: var(--bg-mono); font-size: 0.74rem; color: var(--bg-mist); }
@keyframes bg-fadeup { from { opacity: 0; transform: translateY(8px); } }

/* Links */
.wp-block-group.bg-linklist { margin-top: 40px; border-top: 1px solid var(--bg-line); }
.wp-block-group.bg-linkrow {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 40px;
	align-items: center;
	gap: 10px 30px;
	padding: 26px 8px;
	border-bottom: 1px solid var(--bg-line);
	transition: background-color 0.25s;
}
.wp-block-group.bg-linkrow > * { margin: 0; }
.wp-block-group.bg-linkrow::after { content: "↗"; font-family: var(--bg-mono); font-size: 1.2rem; color: var(--bg-mist); justify-self: end; transition: transform 0.25s, color 0.25s; }
.wp-block-group.bg-linkrow:hover { background-color: rgba(0, 191, 255, 0.04); }
.wp-block-group.bg-linkrow:hover::after { color: var(--bg-cyan); transform: translate(4px, -4px); }
.bg-l-name { font-family: var(--bg-display); font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.45rem); font-weight: 500; }
.bg-l-name a { color: var(--bg-frost); text-decoration: none; }
.bg-l-name a::after { content: ""; position: absolute; inset: 0; }
.wp-block-group.bg-linkrow:hover .bg-l-name a { color: var(--bg-cyan); }
.bg-l-desc { color: var(--bg-mist); font-size: 0.95rem; }

/* ---------- Radio Tide ---------- */
.bg-radio {
	position: relative;
	margin-top: 40px;
	padding: 18px clamp(14px, 2.4vw, 26px) 22px;
	border: 1px solid var(--bg-line-strong);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px),
		#060c17;
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 6px #04080f, 0 0 0 7px var(--bg-line);
	font-family: var(--bg-mono);
}
.bg-radio-top { display: flex; align-items: center; gap: 18px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--bg-line); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--bg-mist); }
.bg-radio-brand { color: var(--bg-frost); letter-spacing: 0.28em; }
.bg-radio-brand b { color: var(--bg-cyan); font-weight: 700; }
.bg-radio-model { margin-left: auto; }
.bg-radio-top { flex-wrap: wrap; row-gap: 10px; }
/* Band switch: TIDE / STORM, like the band buttons on an old receiver */
.bg-band { display: inline-flex; border: 1px solid var(--bg-line-strong); background: rgba(3, 6, 12, 0.6); }
.bg-band button { padding: 5px 11px; border: 0; background: transparent; color: var(--bg-mist); font-family: var(--bg-mono); font-size: 0.66rem; letter-spacing: 0.18em; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.bg-band button + button { border-left: 1px solid var(--bg-line-strong); }
.bg-band button:hover { color: var(--bg-frost); }
.bg-band button[aria-pressed="true"] { background: var(--bg-cyan); color: var(--bg-void); font-weight: 700; box-shadow: 0 0 16px rgba(0, 191, 255, 0.35); }
.bg-radio[data-band="storm"] .bg-band button[aria-pressed="true"] { background: var(--bg-violet); color: #fff; box-shadow: 0 0 18px rgba(123, 97, 255, 0.55); }
.bg-radio[data-band="storm"] .bg-radio-brand b { color: #a995ff; }
.bg-dial-marks i.is-storm { background: var(--bg-violet); box-shadow: 0 0 6px var(--bg-violet); }
.bg-radio[data-band="tide"] [data-band="storm"], .bg-radio[data-band="storm"] [data-band="tide"] { display: none; }
.bg-radio-cover img { transition: opacity 0.25s; }
.bg-radio-onair { color: rgba(255, 90, 90, 0.35); transition: color 0.3s, text-shadow 0.3s; }
.bg-radio.is-playing .bg-radio-onair { color: #ff5a5a; text-shadow: 0 0 12px #ff5a5a; animation: bg-pulse 1.6s ease-in-out infinite; }
.bg-radio-face { display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; }
.bg-radio-cover { position: relative; aspect-ratio: 1; }
.bg-radio-main { position: relative; z-index: 2; min-width: 0; }
.bg-radio-cover img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
.bg-vinyl {
	position: absolute;
	inset: 4%;
	border-radius: 50%;
	background:
		radial-gradient(circle, #ffb547 0 9%, #1a1a1a 9.5% 11%, transparent 11.5%),
		repeating-radial-gradient(circle, #0c0c0c 0 2px, #161616 2px 4px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.6);
	transition: translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bg-vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, 0.09) 25%, transparent 30% 70%, rgba(255, 255, 255, 0.07) 75%, transparent 80%); }
.bg-radio.is-playing .bg-vinyl { translate: 38% 0; animation: bg-spin-disc 1.8s linear infinite; }
@keyframes bg-spin-disc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.bg-lcd {
	padding: 12px 16px 10px;
	background: radial-gradient(120% 140% at 50% 0%, rgba(0, 191, 255, 0.09), transparent 60%), #01060b;
	border: 1px solid rgba(0, 191, 255, 0.25);
	box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.8);
	color: #5fe0ff;
	text-shadow: 0 0 6px rgba(0, 191, 255, 0.85), 0 0 18px rgba(0, 191, 255, 0.35);
}
.bg-lcd-row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.bg-lcd-freq { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: 0.02em; min-width: 4.6ch; }
.bg-lcd-mhz { font-size: 0.7rem; opacity: 0.7; }
.bg-lcd-title { position: relative; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.9rem; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.bg-lcd-title span { display: inline-block; padding-left: 4px; }
.bg-radio.is-playing .bg-lcd-title span { animation: bg-lcd-scroll 14s linear infinite; }
@keyframes bg-lcd-scroll { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(min(0px, calc(-100% + 18ch))); } }
.bg-lcd-small { margin-top: 6px; font-size: 0.74rem; gap: 12px; align-items: center; }
.bg-lcd-bar { flex: 1; display: flex; }
.bg-lcd-bar input { width: 100%; accent-color: var(--bg-cyan); height: 4px; cursor: pointer; }

.bg-dial {
	position: relative;
	height: 54px;
	margin: 14px 0;
	background: linear-gradient(180deg, #0b1626, #050b14);
	border: 1px solid rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.7);
	overflow: hidden;
}
.bg-dial::before { content: ""; position: absolute; left: 4%; right: 4%; top: 30px; height: 10px; background: repeating-linear-gradient(90deg, rgba(176, 247, 255, 0.45) 0 1px, transparent 1px 10px); opacity: 0.6; }
.bg-dial-scale, .bg-dial-marks { position: absolute; left: 4%; right: 4%; top: 0; bottom: 0; }
.bg-dial-scale span { position: absolute; left: var(--p); top: 8px; transform: translateX(-50%); font-size: 0.66rem; color: rgba(176, 247, 255, 0.75); }
.bg-dial-marks i { position: absolute; left: var(--p); bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--bg-cyan); box-shadow: 0 0 6px var(--bg-cyan); }
.bg-dial-needle {
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: calc(4% + 0.92 * var(--p));
	width: 2px;
	margin-left: -1px;
	background: var(--bg-amber);
	box-shadow: 0 0 10px var(--bg-amber), 0 0 22px rgba(255, 181, 71, 0.5);
	transition: left 0.9s cubic-bezier(0.3, 1.4, 0.4, 1);
}
.bg-radio-deck { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); flex-wrap: wrap; }
.bg-meters { display: flex; gap: 10px; }
.bg-vu {
	width: clamp(104px, 12vw, 136px);
	height: auto;
	background: radial-gradient(120% 100% at 50% 100%, rgba(255, 181, 71, 0.26), rgba(255, 181, 71, 0.06) 70%), #0b0905;
	border: 1px solid rgba(255, 181, 71, 0.3);
	box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8);
}
.bg-radio.is-playing .bg-vu { background: radial-gradient(120% 100% at 50% 100%, rgba(255, 181, 71, 0.4), rgba(255, 181, 71, 0.1) 70%), #0b0905; }
.bg-vu-arc, .bg-vu-red { fill: none; stroke-width: 2; }
.bg-vu-arc { stroke: rgba(255, 230, 190, 0.75); }
.bg-vu-red { stroke: #ff5a5a; stroke-width: 3; }
.bg-vu line { stroke: rgba(255, 230, 190, 0.8); stroke-width: 1.2; }
.bg-vu line.is-red { stroke: #ff5a5a; }
.bg-vu text { font-size: 7px; fill: rgba(255, 230, 190, 0.7); font-family: var(--bg-mono); }
.bg-vu .bg-vu-ch { font-size: 9px; text-anchor: middle; fill: rgba(255, 230, 190, 0.55); }
.bg-vu .bg-vu-needle { stroke: var(--bg-frost); stroke-width: 1.6; }
.bg-vu circle { fill: #222; stroke: rgba(255, 230, 190, 0.6); }
.bg-radio-btns { display: flex; gap: 8px; }
.bg-rb {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	padding: 0;
	cursor: pointer;
	color: var(--bg-ice);
	background: linear-gradient(180deg, #17243a, #0a121f);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom-color: rgba(0, 0, 0, 0.7);
	box-shadow: 0 4px 0 #02050a, 0 6px 14px rgba(0, 0, 0, 0.5);
	transition: transform 0.08s, box-shadow 0.08s, color 0.2s;
}
.bg-rb svg { width: 20px; height: 20px; fill: currentColor; }
.bg-rb:hover { color: var(--bg-cyan); }
.bg-rb:active { transform: translateY(3px); box-shadow: 0 1px 0 #02050a, 0 2px 6px rgba(0, 0, 0, 0.5); }
.bg-rb-play { width: 64px; color: var(--bg-void); background: linear-gradient(180deg, #33d1ff, #00a3dd); box-shadow: 0 4px 0 #006a90, 0 0 26px rgba(0, 191, 255, 0.35); }
.bg-rb-play:hover { color: var(--bg-void); }
.bg-rb-play .i-pause, .bg-radio.is-playing .bg-rb-play .i-play { display: none; }
.bg-radio.is-playing .bg-rb-play .i-pause { display: block; }
.bg-knob-wrap { position: relative; display: grid; justify-items: center; gap: 6px; margin-left: auto; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--bg-mist); }
.bg-knob {
	position: relative;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, #3a4656, #1a2230, #4a5666, #1a2230, #3a4656, #1a2230, #4a5666, #1a2230, #3a4656);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7), inset 0 0 0 4px #0b121d, inset 0 2px 2px rgba(255, 255, 255, 0.15);
	transform: rotate(var(--r, 81deg));
	transition: transform 0.1s;
}
.bg-knob::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 13px; margin-left: -1.5px; border-radius: 2px; background: var(--bg-amber); box-shadow: 0 0 8px var(--bg-amber); }
.bg-knob-wrap input { position: absolute; top: 0; left: 50%; width: 58px; height: 58px; margin-left: -29px; opacity: 0; cursor: ew-resize; }
.bg-knob-wrap:focus-within .bg-knob { outline: 2px solid var(--bg-amber); outline-offset: 3px; }

.bg-radio-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 26px; border-top: 1px solid var(--bg-line); }
.bg-radio-list li { display: flex; align-items: stretch; border-bottom: 1px solid var(--bg-line); }
.bg-radio-list li .bg-radio-track { border-bottom: 0; flex: 1; min-width: 0; }
.bg-rt-dl { display: grid; place-items: center; width: 38px; flex: none; color: var(--bg-mist); transition: color 0.2s, background-color 0.2s; }
.bg-rt-dl svg, .bg-radio-album svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bg-rt-dl:hover { color: var(--bg-amber); background: rgba(255, 181, 71, 0.07); }
.bg-radio-album { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 0; font-size: 0.78rem; color: var(--bg-mist); }
.bg-radio-album a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(255, 181, 71, 0.45); color: var(--bg-amber); text-decoration: none; letter-spacing: 0.06em; transition: background-color 0.2s, box-shadow 0.2s; }
.bg-radio-album a:hover { background: rgba(255, 181, 71, 0.1); box-shadow: 0 0 24px rgba(255, 181, 71, 0.25); color: var(--bg-amber); }
.bg-radio-track {
	display: grid;
	grid-template-columns: 30px 1fr 22px auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 6px;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--bg-line);
	color: #c3d6e8;
	font-family: var(--bg-mono);
	font-size: 0.82rem;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
}
.bg-radio-track:hover { color: var(--bg-frost); background: rgba(0, 191, 255, 0.05); }
.bg-rt-n, .bg-rt-l { color: var(--bg-mist); font-size: 0.74rem; }
.bg-radio-track.is-current { color: var(--bg-cyan); }
.bg-radio-track.is-current .bg-rt-n { color: var(--bg-amber); }
.bg-rt-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; opacity: 0; }
.bg-rt-eq i { width: 3px; height: 30%; background: var(--bg-cyan); }
.bg-radio.is-playing .bg-radio-track.is-current .bg-rt-eq { opacity: 1; }
.bg-radio.is-playing .bg-radio-track.is-current .bg-rt-eq i { animation: bg-eq 0.8s ease-in-out infinite alternate; }
.bg-rt-eq i:nth-child(2) { animation-delay: -0.3s !important; }
.bg-rt-eq i:nth-child(3) { animation-delay: -0.55s !important; }
@keyframes bg-eq { from { height: 20%; } to { height: 100%; } }
/* The owl dances while the radio plays. */
.bg-playing .bg-owl-hero { animation: bg-dance 0.48s ease-in-out infinite alternate; }
@keyframes bg-dance { from { translate: 0 0; } to { translate: 0 -12px; } }
@media (max-width: 700px) {
	.bg-radio-face { grid-template-columns: 1fr; }
	.bg-radio-cover { max-width: 220px; }
	.bg-knob-wrap { margin-left: 0; }
	.bg-radio-model { display: none; }
}

/* Landing pages (Diskrisk) */
.bg-page-title { font-size: clamp(2.2rem, 0.9rem + 4.1vw, 5rem); }
/* The title shrinks with its column, so the longest word ("Kommunens", "Portskanner", about 7.6 × the font size) always fits, with room for wider font rendering. */
@supports (font-size: 1cqi) {
	:where(*):has(> .bg-page-title) { container-type: inline-size; }
	.bg-page-title { font-size: min(clamp(1.9rem, 0.9rem + 4.1vw, 5rem), 11.6cqi); }
}
.wp-block-group.bg-prose { margin-top: clamp(50px, 7vw, 90px); }
.bg-prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-top: 2.2em; }
.bg-prose p, .bg-prose li { color: #c3d6e8; }
.bg-prose strong { color: var(--bg-frost); }
.bg-prose code { font-family: var(--bg-mono); font-size: 0.9em; color: var(--bg-ice); background: rgba(0, 191, 255, 0.08); padding: 1px 6px; }

/* Tools: IP address and port scanner */
.bg-nw { white-space: nowrap; }
.bg-tool .bg-lead { margin-bottom: 34px !important; }
.bg-ck { margin-top: 10px; }
.bg-ck-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.bg-ck-tabs a { padding: 9px 16px; border: 1px solid var(--bg-line); font-family: var(--bg-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg-mist); text-decoration: none; }
.bg-ck-tabs a:hover { color: var(--bg-frost); border-color: var(--bg-line-strong); }
.bg-ck-tabs a[aria-current="page"] { color: var(--bg-void); background: var(--bg-cyan); border-color: var(--bg-cyan); box-shadow: 0 0 24px rgba(0, 191, 255, 0.35); }
.bg-ck .bg-term { max-width: none; margin-top: 0; white-space: normal; font-family: var(--wp--preset--font-family--body); font-size: 1rem; line-height: 1.6; }
.bg-ck-prompt { margin: 0; padding: 18px 22px 0; font-family: var(--bg-mono); font-size: 0.82rem; color: var(--bg-mist); font-variant-ligatures: none; }
.bg-ck-prompt span { color: var(--bg-cyan); }
.bg-ck-ip { margin: 0; padding: 6px 22px 0; font-family: var(--bg-mono); font-weight: 700; font-size: clamp(1.4rem, 0.8rem + 3vw, 3rem); line-height: 1.2; color: #5fe0ff; text-shadow: 0 0 10px rgba(0, 191, 255, 0.8), 0 0 30px rgba(0, 191, 255, 0.35); word-break: break-all; }
.bg-ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 22px 22px; }
.bg-ck-chip { padding: 4px 10px; border: 1px solid var(--bg-line); font-family: var(--bg-mono); font-size: 0.74rem; color: var(--bg-ice); }
.bg-ck-chip.is-warn { border-color: rgba(255, 181, 71, 0.6); color: var(--bg-amber); }
.bg-ck-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-family: var(--bg-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--bg-ice); background: transparent; border: 1px solid var(--bg-line-strong); cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.bg-ck-btn:hover { background: rgba(0, 191, 255, 0.08); color: var(--bg-frost); border-color: var(--bg-cyan); }
.bg-ck-btn-primary { background: var(--bg-cyan); color: var(--bg-void); border-color: var(--bg-cyan); }
.bg-ck-btn-primary:hover { background: var(--bg-ice); color: var(--bg-void); box-shadow: 0 0 30px rgba(0, 191, 255, 0.45); }
.bg-ck-btn-small { padding: 6px 12px; font-size: 0.74rem; }
.bg-ck-btn.is-done { color: #7ff0b0; border-color: rgba(127, 240, 176, 0.5); }
.bg-ck-btn[hidden] { display: none; }
.bg-ck-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 18px; margin-top: 18px; }
.bg-ck-card { padding: 24px 22px; border: 1px solid var(--bg-line); background: var(--bg-panel); }
.bg-ck-card h3 { margin: 0 0 14px; font-size: 1.1rem; }
.bg-ck-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.bg-ck-card dt { font-family: var(--bg-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg-mist); padding-top: 3px; }
.bg-ck-card dd { margin: 0; color: var(--bg-frost); word-break: break-word; }
.bg-ck-card code, .bg-ck code { font-family: var(--bg-mono); font-size: 0.92em; color: var(--bg-ice); font-variant-ligatures: none; }
.bg-ck-wide { margin-top: 18px; }
.bg-ck-chain { margin: 10px 0 0; padding-left: 20px; }
.bg-ck-muted { color: var(--bg-mist); }
.bg-ck-small { font-size: 0.85rem; }
.bg-ck-alert { margin-top: 18px; padding: 16px 20px; border-left: 2px solid var(--bg-amber); background: rgba(255, 181, 71, 0.08); }
.bg-ck-alert b { display: block; color: var(--bg-amber); margin-bottom: 6px; }
.bg-ck-alert p { margin: 0; }
.bg-ck-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding: 24px; border: 1px solid var(--bg-line); background: var(--bg-panel); text-decoration: none; color: var(--bg-frost); transition: border-color 0.2s, background 0.2s; }
.bg-ck-cta:hover { border-color: var(--bg-line-strong); background: rgba(0, 191, 255, 0.05); color: var(--bg-frost); }
.bg-ck-cta b { display: block; font-family: var(--bg-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }
.bg-ck-cta span:first-child { color: var(--bg-mist); }
.bg-ck-cta-arrow { font-family: var(--bg-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg-cyan); white-space: nowrap; }
.bg-ck-api { margin-top: 8px; }
.bg-ck-api > h3:first-child { margin-top: 0; }
.bg-ck-api .bg-ck-example { margin-top: 40px; }
.bg-ck-out { margin: 0; padding: 8px 22px 22px; font-family: var(--bg-mono); font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--bg-ice); font-variant-ligatures: none; overflow-wrap: anywhere; }
.bg-ck-api h3 { margin: 30px 0 10px; font-size: 1rem; font-weight: 500; }
.bg-ck-code { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px 10px 16px; border: 1px solid var(--bg-line); background: rgba(1, 6, 11, 0.85); overflow-x: auto; }
.bg-ck-code code { flex: 1; white-space: pre; }
.bg-ck-scanner { padding: 24px clamp(16px, 2.6vw, 30px) 26px; }
.bg-ck-scan-head { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--bg-line); }
.bg-ck-scan-head p { margin: 0; }
.bg-ck-target code { font-size: 1.15rem; color: #5fe0ff; text-shadow: 0 0 10px rgba(0, 191, 255, 0.6); }
.bg-ck-form { margin-top: 20px; }
.bg-ck-form label { display: block; margin-bottom: 8px; font-family: var(--bg-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg-mist); }
.bg-ck-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bg-ck-row input { flex: 1 1 260px; min-width: 0; padding: 11px 14px; background: rgba(1, 6, 11, 0.9); border: 1px solid var(--bg-line-strong); color: var(--bg-frost); font-family: var(--bg-mono); font-size: 0.9rem; }
.bg-ck-row input:focus { outline: none; border-color: var(--bg-cyan); box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15); }
.bg-ck [data-count] { margin: 8px 0 0; }
.bg-ck [data-count].is-warn { color: var(--bg-amber); }
.bg-ck-progress { height: 3px; margin-top: 22px; background: rgba(138, 164, 191, 0.15); overflow: hidden; }
.bg-ck-progress i { display: block; height: 100%; width: 0; background: var(--bg-cyan); box-shadow: 0 0 12px var(--bg-cyan); transition: width 0.3s; }
.bg-ck-status { margin: 12px 0 0; min-height: 1.7em; font-family: var(--bg-mono); font-size: 0.84rem; color: var(--bg-ice); }
.bg-ck-ports { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 8px; }
.bg-ck-port { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(138, 164, 191, 0.16); background: rgba(3, 6, 12, 0.6); font-family: var(--bg-mono); font-size: 0.8rem; color: var(--bg-mist); animation: bg-fadeup 0.35s ease both; }
.bg-ck-port b { color: var(--bg-frost); font-weight: 600; min-width: 4.2ch; }
.bg-ck-port i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-ck-port em { font-style: normal; font-size: 0.72rem; }
.bg-ck-port.is-open { border-color: rgba(255, 181, 71, 0.6); background: rgba(255, 181, 71, 0.08); box-shadow: 0 0 20px rgba(255, 181, 71, 0.12); }
.bg-ck-port.is-open b, .bg-ck-port.is-open em { color: var(--bg-amber); }
.bg-ck-explain { margin: 20px 0 0; }

/* Radar with a detective owl */
.bg-ck-scan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.bg-scanradar { position: relative; width: 280px; aspect-ratio: 1; margin-top: 20px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 191, 255, 0.1), rgba(3, 6, 12, 0.95) 70%); border: 1px solid var(--bg-line-strong); box-shadow: 0 0 40px rgba(0, 191, 255, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.6); overflow: visible; }
.bg-radar-rings { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 31px, rgba(0, 191, 255, 0.16) 32px 33px), linear-gradient(transparent 49.7%, rgba(0, 191, 255, 0.14) 50%, transparent 50.3%), linear-gradient(90deg, transparent 49.7%, rgba(0, 191, 255, 0.14) 50%, transparent 50.3%); }
.bg-radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0, 191, 255, 0.45), rgba(0, 191, 255, 0) 70deg, transparent 360deg); opacity: 0; transition: opacity 0.4s; }
.is-scanning .bg-radar-sweep { opacity: 1; animation: bg-sweep 2.2s linear infinite; }
@keyframes bg-sweep { to { transform: rotate(360deg); } }
.bg-radar-blips { position: absolute; inset: 0; }
.bg-blip { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: rgba(138, 164, 191, 0.5); animation: bg-blip-in 0.5s ease-out; }
.bg-blip.is-open { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--bg-amber); box-shadow: 0 0 14px var(--bg-amber), 0 0 30px rgba(255, 181, 71, 0.5); animation: bg-blip-in 0.5s ease-out, bg-pulse 1.4s 0.5s ease-in-out infinite; }
@keyframes bg-blip-in { from { transform: scale(3); opacity: 0; } }
.bg-radar-owl { position: absolute; left: 50%; top: 50%; width: 92px; transform: translate(-50%, -54%); filter: drop-shadow(0 0 14px rgba(0, 191, 255, 0.55)); }
.bg-owl-radar { --lid: 0px; }
.bg-mag-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.bg-mag { position: absolute; width: 54px; height: 54px; left: 34px; top: -10px; filter: drop-shadow(0 0 10px rgba(255, 181, 71, 0.6)); transition: transform 0.4s; }
.is-scanning .bg-mag-orbit { animation: bg-orbit 3.2s linear infinite; }
.is-scanning .bg-mag { animation: bg-counter 3.2s linear infinite; }
@keyframes bg-orbit { to { transform: rotate(360deg); } }
@keyframes bg-counter { to { transform: rotate(-360deg); } }
.bg-radar-say { position: absolute; left: 50%; top: calc(100% + 14px); width: 280px; margin: 0; transform: translateX(-50%); text-align: center; font-family: var(--bg-mono); font-size: 0.78rem; color: var(--bg-mist); transition: color 0.2s; }
.bg-radar-say.is-hit { color: var(--bg-amber); }
@media (max-width: 900px) {
	.bg-ck-scan-grid { grid-template-columns: 1fr; }
	.bg-scanradar { width: min(260px, 80vw); margin: 10px auto 40px; }
	.bg-radar-say { width: min(280px, 90vw); }
}

/* Files page */
.wp-block-group.bg-steps { margin-top: 40px; counter-reset: bg-step; }
.wp-block-group.bg-step { position: relative; counter-increment: bg-step; padding: 64px 20px 22px; border-top: 1px solid var(--bg-line-strong); }
.wp-block-group.bg-step > * { margin: 0; }
.wp-block-group.bg-step > * + * { margin-top: 10px; }
.wp-block-group.bg-step::before {
	content: counter(bg-step);
	position: absolute;
	top: -19px;
	left: 20px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--bg-cyan);
	background: var(--bg-void);
	color: var(--bg-cyan);
	font-family: var(--bg-mono);
	font-size: 0.9rem;
	box-shadow: 0 0 18px rgba(0, 191, 255, 0.35);
}
.wp-block-group.bg-step::after { content: ""; position: absolute; top: -1px; left: 0; width: 46%; height: 1px; background: var(--bg-cyan); box-shadow: 0 0 10px var(--bg-cyan); animation: bg-flow 3.2s ease-in-out infinite; }
.wp-block-group.bg-step:nth-child(2)::after { animation-delay: 0.8s; }
.wp-block-group.bg-step:nth-child(3)::after { animation-delay: 1.6s; }
.wp-block-group.bg-step:nth-child(4)::after { animation-delay: 2.4s; }
@keyframes bg-flow { 0% { transform: scaleX(0); transform-origin: left; opacity: 1; } 50% { transform: scaleX(1); transform-origin: left; opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.bg-step p { color: var(--bg-mist); font-size: 0.95rem; line-height: 1.6; }
.wp-block-group.bg-today { margin-top: 40px; max-width: 720px; padding: 24px 26px; border-left: 2px solid var(--bg-cyan); background: rgba(0, 191, 255, 0.06); }
.wp-block-group.bg-today > * { margin: 0; }
.wp-block-group.bg-today > * + * { margin-top: 8px; }
.bg-today h3 { color: var(--bg-cyan); font-family: var(--bg-mono); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.bg-subhead { margin-top: 48px !important; font-family: var(--bg-mono); font-size: 0.85rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg-mist); }
.bg-tag { display: inline-block; padding: 2px 8px; border: 1px solid rgba(255, 181, 71, 0.5); color: var(--bg-amber); font-family: var(--bg-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.bg-note { margin-top: 26px !important; font-family: var(--bg-mono); font-size: 0.8rem; color: var(--bg-mist); max-width: 760px; }
.bg-quote { margin-top: 44px !important; max-width: 820px; padding: 22px 0 22px 26px; border-left: 2px solid var(--bg-amber); font-size: var(--wp--preset--font-size--large); color: #c3d6e8; }
.bg-quote strong { color: var(--bg-amber); font-weight: 600; }
.wp-block-group.bg-glossary { margin-top: 34px; }
.bg-glossary p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--bg-line); color: var(--bg-mist); font-size: 0.95rem; }
.bg-glossary strong { color: var(--bg-frost); font-family: var(--bg-mono); font-weight: 600; }
.wp-block-group.bg-cta { text-align: left; }
.wp-block-group.bg-cta h2 { font-size: clamp(2.2rem, 0.9rem + 4.4vw, 5.4rem); }
.bg-files-page .bg-feature h3 { font-size: 1.1rem; }
.bg-ok { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; background: rgba(80, 220, 140, 0.12); border: 1px solid rgba(80, 220, 140, 0.4); color: #7ff0b0; font-family: var(--bg-mono); font-size: 0.72rem; }
.bg-cite a { color: var(--bg-cyan); text-decoration: none; margin-left: 8px; }

/* ---------- Behind the owl: an old photograph ---------- */
.wp-block-image.bg-oldphoto {
	position: relative;
	margin: 0;
	padding: 14px 14px 46px;
	background: #efe6d2;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2);
	transform: rotate(-2.2deg);
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wp-block-image.bg-oldphoto::before, .wp-block-image.bg-oldphoto::after {
	content: "";
	position: absolute;
	top: -12px;
	width: 92px;
	height: 26px;
	background: rgba(232, 249, 255, 0.28);
	border: 1px solid rgba(232, 249, 255, 0.22);
	backdrop-filter: blur(2px);
}
.wp-block-image.bg-oldphoto::before { left: 8%; transform: rotate(-6deg); }
.wp-block-image.bg-oldphoto::after { right: 8%; transform: rotate(5deg); }
.wp-block-image.bg-oldphoto img { display: block; width: 100%; height: auto; filter: sepia(0.75) contrast(1.08) brightness(0.95) saturate(0.8); transition: filter 0.9s ease; }
.wp-block-image.bg-oldphoto:hover { transform: rotate(0deg) scale(1.01); }
.wp-block-image.bg-oldphoto:hover img { filter: none; }
/* The same engineer in three eras: the pictures lie on top of each other and fade. */
.bg-eras-stack { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.wp-block-image.bg-oldphoto .bg-eras-stack .bg-era { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, filter 0.9s ease; }
.wp-block-image.bg-oldphoto .bg-eras-stack .bg-era.is-on { opacity: 1; }
.bg-eras-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.bg-eras-nav button { padding: 7px 14px; border: 1px solid var(--bg-line-strong); background: rgba(7, 14, 28, 0.6); color: var(--bg-mist); font-family: var(--bg-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.bg-eras-nav button:hover, .bg-eras-nav button:focus-visible { color: var(--bg-frost); border-color: var(--bg-cyan); }
.bg-eras-nav button[aria-pressed="true"] { color: #04111d; background: var(--bg-cyan); border-color: var(--bg-cyan); }
@media (prefers-reduced-motion: reduce) { .wp-block-image.bg-oldphoto .bg-eras-stack .bg-era { transition: none; } }
.wp-block-image.bg-oldphoto figcaption {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	margin: 0;
	font-family: var(--bg-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: #5b4a32;
	text-align: left;
}

/* Mini player: the radio follows you around the site. */
.bg-mini {
	position: fixed;
	left: clamp(10px, 2vw, 22px);
	bottom: clamp(10px, 2vw, 22px);
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100vw - 20px);
	padding: 6px 6px 6px 6px;
	background: rgba(4, 9, 18, 0.94);
	border: 1px solid var(--bg-line-strong);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 calc(10px + var(--lv, 0) * 40px) rgba(0, 191, 255, calc(0.15 + var(--lv, 0) * 0.5));
	font-family: var(--bg-mono);
	animation: bg-mini-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bg-mini[hidden] { display: none; }
.bg-mini.is-waiting .bg-mini-play { animation: bg-pulse 1.2s ease-in-out infinite; box-shadow: 0 0 24px rgba(0, 191, 255, 0.6); }
@keyframes bg-mini-in { from { opacity: 0; transform: translateY(16px); } }
.bg-mini-open { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 8px 0 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; }
.bg-mini-open img { width: 44px; height: 44px; object-fit: cover; flex: none; }
.bg-mini-meta { display: grid; min-width: 0; }
.bg-mini-meta b { font-weight: 600; font-size: 0.8rem; color: var(--bg-frost); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.bg-mini-meta i { font-style: normal; font-size: 0.66rem; letter-spacing: 0.12em; color: var(--bg-mist); }
.bg-mini-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; margin: 0 6px; }
.bg-mini-eq i { width: 3px; height: 20%; background: var(--bg-cyan); }
.bg-mini.is-playing .bg-mini-eq i { animation: bg-eq 0.7s ease-in-out infinite alternate; }
.bg-mini-eq i:nth-child(2) { animation-delay: -0.25s !important; }
.bg-mini-eq i:nth-child(3) { animation-delay: -0.5s !important; }
.bg-mini-eq i:nth-child(4) { animation-delay: -0.12s !important; }
.bg-mini-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: linear-gradient(180deg, #17243a, #0a121f); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--bg-ice); cursor: pointer; }
.bg-mini-btn svg { width: 16px; height: 16px; fill: currentColor; }
.bg-mini-play { background: linear-gradient(180deg, #33d1ff, #00a3dd); color: var(--bg-void); }
.bg-mini-play .i-pause, .bg-mini.is-playing .bg-mini-play .i-play { display: none; }
.bg-mini.is-playing .bg-mini-play .i-pause { display: block; }
.bg-radio-audio { display: none; }
/* A thin line at the top while a page is fetched. */
.bg-loading::after {
	content: "";
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100;
	height: 2px;
	width: 40%;
	background: var(--bg-cyan);
	box-shadow: 0 0 12px var(--bg-cyan);
	animation: bg-load 0.9s ease-in-out infinite;
}
@keyframes bg-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Footer ---------- */
.wp-block-group.bg-footer {
	position: relative;
	overflow: hidden;
	margin-top: clamp(80px, 10vw, 140px);
	padding-top: clamp(60px, 8vw, 110px);
	padding-bottom: 36px;
	border-top: 1px solid var(--bg-line);
}
.wp-block-group.bg-footer > * { position: relative; z-index: 1; }
.bg-footer-owl { position: absolute !important; z-index: 0 !important; right: -4%; bottom: -30%; width: min(520px, 70vw); margin: 0 !important; opacity: 0.07; pointer-events: none; }
.bg-footer-owl .bg-owl-shape { fill: var(--bg-cyan); }
.wp-block-group.bg-footer-row { gap: 20px; align-items: flex-end; }
.wp-block-group.bg-footer-row > * { margin: 0; }
.bg-footer-big { font-family: var(--bg-display); font-weight: 800; font-size: clamp(3rem, 1rem + 9vw, 9rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--bg-frost); }
.bg-footer-big span { color: transparent; -webkit-text-stroke: 1.4px var(--bg-cyan); }
.bg-footer-meta { font-family: var(--bg-mono); font-size: 0.78rem; line-height: 1.9; color: var(--bg-mist); text-align: right; }
.bg-footer-meta i { color: var(--bg-ice); }
.bg-footer-meta a { color: var(--bg-ice); }

/* The cookie the owl eats */
.bg-cookie { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: transparent; border: 1px solid rgba(255, 181, 71, 0.35); color: var(--bg-amber); font-family: var(--bg-mono); font-size: 0.78rem; letter-spacing: 0.08em; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.2s; }
.bg-cookie:hover { border-color: var(--bg-amber); background: rgba(255, 181, 71, 0.08); transform: rotate(-3deg); }
.bg-cookie-img { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 8px rgba(255, 181, 71, 0.45)); transition: transform 0.3s; }
.bg-cookie:hover .bg-cookie-img { transform: rotate(-20deg) scale(1.1); }
.bg-cookie.is-gone .bg-cookie-img { opacity: 0.25; }
.bg-cookie-fly { position: fixed; z-index: 200; width: 44px; height: 44px; pointer-events: none; }
.bg-cookie-fly svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(255, 181, 71, 0.7)); }
.bg-crumb { position: fixed; z-index: 199; width: 6px; height: 6px; border-radius: 2px; background: #d9944a; pointer-events: none; }
.bg-crumb:nth-child(3n) { background: #3a2211; width: 4px; height: 4px; }
.bg-cookie-say {
	position: fixed;
	z-index: 201;
	max-width: min(340px, calc(100vw - 32px));
	padding: 12px 16px;
	background: var(--bg-amber);
	color: var(--bg-void);
	font-family: var(--bg-mono);
	font-size: 0.82rem;
	line-height: 1.5;
	box-shadow: 0 0 40px rgba(255, 181, 71, 0.45), 0 20px 40px rgba(0, 0, 0, 0.5);
	animation: bg-say-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bg-say-in { from { opacity: 0; transform: translateY(10px) scale(0.95); } }
.bg-owl.is-chomp { animation: bg-chomp 0.18s ease-in-out 4 alternate; }
.bg-footer-owl { transition: opacity 0.4s; }
.bg-footer-owl:has(.is-chomp) { opacity: 0.45; }
@keyframes bg-chomp { to { transform: scale(1.06, 0.94); } }

/* ---------- Subpages ---------- */
.wp-block-group.bg-main { padding-top: clamp(50px, 8vw, 100px); padding-bottom: 40px; }

/* ---------- Scroll reveal (only when JavaScript runs) ---------- */
.bg-js .bg-reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease; }
.bg-js .bg-reveal.is-in { opacity: 1; transform: none; filter: none; }
.bg-js:not(.bg-ready) .bg-reveal { animation: bg-show 0.01s 4s forwards; }
@keyframes bg-show { to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.bg-js .bg-reveal { opacity: 1; transform: none; filter: none; }
	.bg-js .bg-t-line { clip-path: none; }
	.bg-marquee-track, .bg-ticker-track { animation: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
	.bg-clock { display: none; }
}
@media (max-width: 781px) {
	.bg-hero-owl { order: -1; }
	.bg-owl-wrap { max-width: 250px; }
	.wp-block-group.bg-hero { min-height: auto; padding-top: 20px; }
	.bg-split-rev > .wp-block-column:first-child { order: 2; }
	.wp-block-image.bg-browser { transform: none; }
	.wp-block-group.bg-linkrow { grid-template-columns: 1fr 30px; }
	.bg-l-desc { grid-column: 1; }
	.wp-block-group.bg-linkrow::after { grid-row: 1 / span 2; grid-column: 2; }
	.bg-footer-meta { text-align: left; }
	.bg-term { font-size: 0.74rem; }
}
@media (max-width: 480px) {
	.bg-bays { grid-template-columns: repeat(3, 1fr); }
	.bg-logo-word { height: 24px; }
}

/* Short presentation under the 1935 picture */
.bg-bio { margin-top: 28px; padding: 18px 20px 4px; border-left: 3px solid var(--bg-amber); background: rgba(7, 14, 28, 0.6); }
.bg-bio-kicker { margin: 0; font-family: var(--bg-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bg-amber); }
.bg-bio-name { margin: 4px 0 8px; font-size: 1.2rem; }
.bg-bio p:not(.bg-bio-kicker) { font-size: 0.95rem; line-height: 1.65; color: var(--bg-frost); }

/* Fråga Bagoly Files (public) */
.bg-files-ask-in { max-width: var(--wp--style--global--wide-size, 1240px); margin: 0 auto; }
.bg-ask-files { max-width: 760px; margin: 26px 0 0; }
.bg-fa-text { margin: 0; }
.bg-fa-quote { color: var(--bg-ice); font-style: italic; quotes: "«" "»"; }
.bg-fa-ref { font-family: var(--bg-mono); font-size: 0.68em; margin-left: 1px; }
.bg-fa-ref a { color: var(--bg-amber); text-decoration: none; }
.bg-fa-src-h { margin: 14px 0 6px; font-family: var(--bg-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg-mist); }
.bg-fa-sources { margin: 0; padding-left: 1.4em; font-size: 0.86rem; line-height: 1.55; color: var(--bg-mist); }
.bg-fa-sources b { color: var(--bg-frost); font-weight: 600; }
.bg-fa-sources a { color: var(--bg-cyan); white-space: nowrap; }
.bg-fa-sources li:target { color: var(--bg-frost); }

/* The list of websites in the Webb section (2026-11-15). */
.bg-sites { margin: .5rem 0 1.1rem; padding-left: 1.15rem; display: grid; gap: .45rem; }
.bg-sites li { padding-left: .15rem; }
