/*
Theme Name: NDRG
Description: Dark theme for the North Devon Repeater Group.
Version: 1.0
Author: North Devon Repeater Group
Requires PHP: 8.0
Text Domain: ndrg
*/

:root {
	--bg: #07090c;
	--bg-2: #0d1117;
	--surface: #11161d;
	--surface-2: #161c25;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.14);
	--text: #e9eef3;
	--muted: #8b97a6;
	--blue: #5ec8ff;
	--sun: #f1e55a;
	--accent: var(--blue);
	--radius: 18px;
	--wrap: 1180px;
	--f-head: "Space Grotesk", system-ui, sans-serif;
	--f-body: "Inter", system-ui, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	overflow-x: clip;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #9adcff; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.kicker {
	font: 500 12px/1.4 var(--f-mono);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent);
	margin: 0 0 14px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(7, 9, 12, 0.6);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 9, 12, 0.82); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__short { font: 700 17px/1 var(--f-head); letter-spacing: 0.04em; }
.brand__long { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.nav-list a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-list .nav-cta, .nav-list .menu-item:last-child a { color: var(--bg); background: var(--text); margin-left: 6px; }
.nav-list .nav-cta:hover, .nav-list .menu-item:last-child a:hover { background: #fff; color: var(--bg); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 22px; border-radius: 999px;
	font: 600 15px/1 var(--f-body);
	transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #04121b; }
.btn--primary:hover { background: #8ad8ff; color: #04121b; }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; border-bottom: 1px solid var(--line); }
.hero__glow {
	position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px;
	background: radial-gradient(closest-side, rgba(94, 200, 255, 0.22), rgba(94, 200, 255, 0) 70%);
	pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero__lead { font-size: 19px; color: #b9c3ce; max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats div { margin: 0; }
.hero__stats dt { font: 600 26px/1 var(--f-head); letter-spacing: -0.02em; }
.hero__stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.hero__art { display: flex; justify-content: center; }
.hero__logo { width: min(440px, 100%); filter: drop-shadow(0 30px 60px rgba(94,200,255,.25)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0 88px; }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section__head p:last-child { color: var(--muted); }
.section__head--spaced { margin-top: 96px; }

/* Callsign button bar */
.callbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 72px; }
.callbar__btn {
	position: relative;
	font: 500 15px/1 var(--f-mono); letter-spacing: 0.04em;
	color: var(--text); padding: 14px 18px 14px 32px; border-radius: 12px;
	background: var(--surface); border: 1px solid var(--line);
	transition: border-color .15s, transform .15s, background .15s;
}
.callbar__btn::before {
	content: ""; position: absolute; left: 15px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
	border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.callbar__btn:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
	position: relative; display: flex; flex-direction: column;
	background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px 24px 24px; color: var(--text); overflow: hidden;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none;
	background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%);
	opacity: .55; transition: opacity .2s;
}
.card:hover { color: var(--text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
.card:hover::before { opacity: 1; }
.card__badge { position: relative; width: 150px; margin: 0 auto 24px; transition: transform .3s; }
.card:hover .card__badge { transform: scale(1.04) rotate(-2deg); }
.card__body { position: relative; display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.card__call { font: 600 24px/1 var(--f-mono); letter-spacing: 0.02em; margin: 0; }
.card__tag { color: #b9c3ce; font-size: 15px; margin: 0 0 4px; }
.card__host { color: var(--muted); font-size: 14px; margin: 0; }
.card__more { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.card__more span { display: inline-block; transition: transform .15s; }
.card:hover .card__more span { transform: translateX(4px); }
.chip {
	font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase;
	padding: 6px 9px; border-radius: 999px; color: var(--accent);
	border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
	background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ---------- Badges ---------- */
.badge img { width: 100%; height: auto; border-radius: 50%; }
.badge--drawn { aspect-ratio: 1; }
.badge__ring {
	position: relative; width: 100%; height: 100%; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
	background:
		radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 30%, #0b1320) 0 55%, transparent 55.5%),
		radial-gradient(circle at 50% 50%, #151b24 0 66%, var(--accent) 66.5% 68.5%, #151b24 69% 95%, var(--accent) 95.5% 100%);
	box-shadow: inset 0 0 0 2px rgba(0,0,0,.4);
	container-type: inline-size;
}
.badge__call { font: 700 17cqw/1 var(--f-head); letter-spacing: -0.01em; color: #f2f6fa; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.badge__mode, .badge__loc { font: 600 5.2cqw/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,.75); max-width: 60%; text-align: center; }

/* ---------- Home content (editable from the Home page) ---------- */
.home-content > * { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.home-content .ndrg-band { max-width: none; padding: 88px 0; border-top: 1px solid var(--line); }
.home-content .ndrg-band > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.home-content .ndrg-band--alt { background: var(--bg-2); }
.home-content h2 { font-size: clamp(30px, 3.6vw, 44px); }
.home-content .wp-block-columns { gap: 48px; align-items: flex-start; }
.home-content p { color: #b9c3ce; }
.home-content .is-lead { font-size: 20px; color: var(--text); }

.ndrg-hosts { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; }
.ndrg-hosts li {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px;
}
.ndrg-hosts li strong { font-family: var(--f-mono); font-weight: 500; letter-spacing: .03em; }
.ndrg-hosts li span { color: var(--muted); }

.ndrg-members { list-style: none; padding: 0 !important; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ndrg-members li { padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ndrg-members li strong { display: block; font: 600 18px/1.2 var(--f-head); margin-bottom: 4px; color: var(--text); }
.ndrg-members a { font-family: var(--f-mono); font-size: 14px; }
.ndrg-skull img { max-width: 260px; margin: 0 auto; opacity: .9; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }

.ndrg-donate {
	display: flex !important; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 36px 40px !important; border-radius: 24px; border: 1px solid var(--line-2);
	background: radial-gradient(120% 140% at 0% 0%, rgba(94,200,255,.16), transparent 60%), var(--surface);
	margin-top: 88px !important; margin-bottom: 88px !important; max-width: calc(var(--wrap) - 48px) !important;
}
.ndrg-donate h2 { margin: 0 0 6px; font-size: 28px; }
.ndrg-donate p { margin: 0; }
.ndrg-donate .wp-block-buttons { margin: 0; }
.wp-block-button__link { border-radius: 999px !important; background: var(--blue) !important; color: #04121b !important; font-weight: 600; padding: 13px 22px !important; font-size: 15px; }
.wp-block-button__link:hover { background: #8ad8ff !important; }

/* ---------- Repeater page ---------- */
.repeater__hero { position: relative; overflow: hidden; padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.repeater__glow {
	position: absolute; left: -200px; top: -300px; width: 900px; height: 900px; pointer-events: none;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
}
.repeater__hero-inner { position: relative; display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.repeater__badge { width: 100%; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--accent) 30%, transparent)); }
.back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.back:hover { color: var(--text); }
.repeater .kicker { color: var(--accent); }
.repeater__call { font: 700 clamp(52px, 8vw, 104px)/0.95 var(--f-mono); letter-spacing: -0.03em; margin-bottom: 18px; }
.repeater__tag { font-size: 20px; color: #b9c3ce; margin-bottom: 8px; }
.repeater__host { color: var(--muted); }
.repeater__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel__title { font-size: 14px; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.specs { margin: 0; }
.specs__row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.specs__row:first-child { border-top: 0; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-family: var(--f-mono); font-size: 15px; }
.specs__row.is-empty dd { color: rgba(139,151,166,.6); font-family: var(--f-body); font-style: italic; font-size: 14px; }
.others { padding-top: 40px; padding-bottom: 40px; }
.others__title { font-size: 14px; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.others .callbar { margin-bottom: 40px; }

/* ---------- Generic pages ---------- */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c3ccd6; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 40px; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__brand { display: flex; gap: 16px; align-items: center; }
.site-footer__brand p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.site-footer__logo { width: 56px; height: 56px; }
.site-footer__calls { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__calls a { font: 500 14px/1 var(--f-mono); color: var(--muted); }
.site-footer__calls a:hover { color: var(--accent); }
.site-footer__small { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer__small a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero { padding: 40px 0 64px; }
	.hero__inner { grid-template-columns: 1fr; gap: 24px; }
	.hero__art { order: -1; }
	.hero__logo { width: 220px; }
	.hero__stats { gap: 24px; flex-wrap: wrap; }
	.repeater__hero-inner { grid-template-columns: 1fr; gap: 28px; }
	.repeater__badge-wrap { max-width: 240px; }
	.repeater__body { grid-template-columns: 1fr; }
	.home-content .wp-block-columns { gap: 28px; }
}
@media (max-width: 760px) {
	.wrap { padding: 0 16px; }
	.home-content > *, .home-content .ndrg-band > * { padding-left: 16px; padding-right: 16px; }
	.nav-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 6px;
		width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; padding: 0 12px;
	}
	.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
	.site-nav {
		position: fixed; inset: 72px 0 auto; background: rgba(7,9,12,.97); border-bottom: 1px solid var(--line);
		padding: 12px 16px 20px; display: none;
	}
	.nav-open .site-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-list a { padding: 14px; font-size: 17px; }
	.nav-list .nav-cta, .nav-list .menu-item:last-child a { margin: 8px 0 0; text-align: center; }
	.brand__long { display: none; }
	.section { padding: 64px 0; }
	.callbar { margin-bottom: 48px; }
	.callbar__btn { flex: 1 1 calc(50% - 10px); text-align: center; }
	.section__head--spaced { margin-top: 64px; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.card__call { overflow-wrap: anywhere; }
	.card { padding: 20px 14px 16px; }
	.card__badge { width: 100%; max-width: 120px; margin-bottom: 16px; }
	.card__call { font-size: 18px; }
	.card__top { flex-wrap: wrap; }
	.card__tag { font-size: 13px; }
	.card__host { font-size: 12px; }
	.specs__row { grid-template-columns: 120px 1fr; }
	.ndrg-donate { padding: 28px 24px !important; margin-left: 16px !important; margin-right: 16px !important; }
	.home-content .ndrg-band { padding: 64px 0; }
}

/* ---------- Maps ---------- */
.section--map { padding-top: 0; }
.map { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #0d1117; z-index: 0; }
.map--overview { height: 520px; }
.map--single { height: 340px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(0.95) contrast(0.9) saturate(0.55); }
.map .leaflet-control-attribution { background: rgba(7,9,12,.75); color: var(--muted); font-size: 11px; }
.map .leaflet-control-attribution a { color: var(--muted); }
.map .leaflet-bar a { background: var(--surface); color: var(--text); border-bottom-color: var(--line); }
.map .leaflet-bar a:hover { background: var(--surface-2); }
.map .leaflet-bar { border: 1px solid var(--line-2); box-shadow: none; }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.map .leaflet-popup-content { font: 14px/1.5 var(--f-body); margin: 12px 16px; }
.map .leaflet-popup-content strong { font-family: var(--f-mono); }
.map .leaflet-popup-close-button { color: var(--muted) !important; }
.pin { background: none; border: 0; }
.pin__dot {
	position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
	background: var(--accent); border: 2px solid #07090c;
	box-shadow: 0 0 0 2px var(--accent), 0 0 16px 4px color-mix(in srgb, var(--accent) 60%, transparent);
}
.pin--approx .pin__dot { width: 8px; height: 8px; left: 5px; top: 5px; box-shadow: 0 0 0 1px var(--accent); }
.pin__label {
	position: absolute; left: 20px; top: -2px; white-space: nowrap;
	font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--text);
	background: rgba(7,9,12,.85); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
	padding: 5px 7px; border-radius: 6px;
}
.repeater__side { display: grid; gap: 32px; min-width: 0; }
.map-panel { margin: 0; }
.map-panel figcaption {
	display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between;
	padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius); font-size: 14px;
}
.map-panel__coords { font-family: var(--f-mono); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
	.map--overview { height: 420px; }
	.map--single { height: 280px; }
}

/* ---------- Nets ---------- */
.ndrg-nets { list-style: none; padding: 0 !important; margin: 0 0 16px; display: grid; gap: 10px; }
.ndrg-nets li {
	display: grid; gap: 2px; padding: 16px 18px 16px 20px; border-radius: 12px;
	background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.ndrg-nets strong { font: 600 17px/1.3 var(--f-head); color: var(--text); }
.ndrg-nets .net-when { font-family: var(--f-mono); font-size: 14px; color: var(--accent); }
.ndrg-nets .net-who, .ndrg-nets .net-note { font-size: 14px; color: var(--muted); }
.net-source { font-size: 13px; color: var(--muted) !important; }

/* ---------- Radio setup ---------- */
.panel__link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.setup-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px;
	padding: 28px 32px; border-radius: var(--radius); border: 1px solid var(--line-2); color: var(--text);
	background: radial-gradient(120% 160% at 100% 0%, rgba(94,200,255,.14), transparent 60%), var(--surface);
	transition: border-color .2s, transform .2s;
}
.setup-cta:hover { color: var(--text); border-color: var(--blue); transform: translateY(-2px); }
.setup-cta__text { display: grid; gap: 4px; }
.setup-cta .kicker { margin: 0; }
.setup-cta strong { font: 600 24px/1.2 var(--f-head); }
.setup-cta__text > span:last-child { color: var(--muted); font-size: 15px; }
.setup-cta__arrow { font-size: 28px; color: var(--blue); transition: transform .2s; }
.setup-cta:hover .setup-cta__arrow { transform: translateX(6px); }

.page-hero .lead { font-size: 19px; color: #b9c3ce; max-width: 40em; margin: 16px 0 0; }
.prose--wide { max-width: var(--wrap); }
.prose--wide > :not(.settings-wrap):not(.ndrg-videos):not(.ndrg-steps):not(.wp-block-columns) { max-width: 760px; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose code, .settings small { font-family: var(--f-mono); }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(94,200,255,.4); text-underline-offset: 3px; }

.settings-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 8px 0 8px; }
.settings { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.settings th, .settings td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.settings thead th { border-top: 0; font: 500 11px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: var(--bg-2); }
.settings tbody th { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.settings tbody th a { color: var(--text); text-decoration: none; border-left: 3px solid var(--accent); padding-left: 10px; }
.settings td { font-family: var(--f-mono); color: #c3ccd6; }
.settings small { color: var(--muted); font-size: 12px; }
.settings .tbc { color: rgba(139,151,166,.6); font-family: var(--f-body); font-style: italic; font-size: 13px; }
.settings-note { font-size: 13px; color: var(--muted) !important; }

.ndrg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 8px 0; }
.ndrg-steps > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ndrg-steps h3 { margin-top: 0 !important; display: flex; align-items: center; gap: 10px; }
.ndrg-steps h3 .chip { font-size: 10px; }
.ndrg-steps ol { padding-left: 20px; margin: 0; }
.ndrg-steps li { font-size: 15px; }

.ndrg-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 8px 0 16px; }
.vid { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text) !important; text-decoration: none !important; transition: transform .2s, border-color .2s; }
.vid:hover { transform: translateY(-3px); border-color: var(--line-2); }
.vid__thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.vid:hover .vid__thumb img { opacity: 1; }
.vid__thumb::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
	background: rgba(7,9,12,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat;
	border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px);
}
.vid__radio { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); padding: 14px 16px 0; }
.vid__title { font-weight: 600; font-size: 15px; line-height: 1.35; padding: 6px 16px 0; }
.vid__by { font-size: 13px; color: var(--muted); padding: 6px 16px 16px; margin-top: auto; }
@media (max-width: 760px) {
	.setup-cta { padding: 22px 20px; margin-top: 48px; }
	.setup-cta strong { font-size: 20px; }
}

@media (max-width: 760px) {
	.settings-wrap { overflow: visible; border: 0; background: none; }
	.settings { min-width: 0; }
	.settings thead { display: none; }
	.settings, .settings tbody, .settings tr, .settings th, .settings td { display: block; }
	.settings tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
	.settings th, .settings td { border: 0; padding: 4px 0; }
	.settings tbody th { font-size: 17px; padding-bottom: 8px; }
	.settings td { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; }
	.settings td::before { content: attr(data-label); font-family: var(--f-body); color: var(--muted); font-size: 13px; }
}
