/*
Theme Name: Midsouth Link
Theme URI: https://midsouthlink.net
Author: Midsouth Linked Repeater System
Description: Custom theme for the Midsouth Linked Repeater System: repeater directory, net schedule, Skywarn, EmComm Net, live status, and news. Sets up its own pages and content on activation.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: midsouthlink
*/

:root {
	--navy-950: #040c1a;
	--navy-900: #071428;
	--navy-800: #0e2244;
	--navy-700: #17325e;
	--navy-600: #2a4a80;
	--gold: #f5b819;
	--gold-600: #d99c00;
	--orange: #ee7d22;
	--red: #c8312b;
	--paper: #f6f3ec;
	--paper-2: #ece7db;
	--ink: #0c1a30;
	--ink-2: #44526a;
	--line: #d9d2c2;
	--white: #fff;

	--f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

	--wrap: 1200px;
	--gutter: clamp(1.1rem, 4vw, 2.5rem);
	--r: 14px;
	--r-sm: 8px;
	--shadow: 0 1px 2px rgba(7, 20, 40, .06), 0 8px 24px -12px rgba(7, 20, 40, .25);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; padding: .6rem 1rem; background: var(--gold); color: var(--navy-900); }

.msl-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.msl-icon { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .45em;
	font-family: var(--f-display); font-weight: 700; font-size: .9rem;
	letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
	margin: 0 0 .9rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--gold { color: var(--gold); }

/* Buttons */
.msl-btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .8rem 1.25rem; border-radius: 999px; border: 2px solid var(--gold);
	background: var(--gold); color: var(--navy-900);
	font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
	text-decoration: none; line-height: 1.1; cursor: pointer;
	transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s;
}
.msl-btn:hover { background: #ffc93a; border-color: #ffc93a; color: var(--navy-900); transform: translateY(-1px); }
.msl-btn .msl-icon { transition: transform .18s var(--ease); }
.msl-btn:hover .msl-icon { transform: translateX(3px); }
.msl-btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.msl-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); border-color: var(--white); }
.msl-btn--ghost-dark { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.msl-btn--ghost-dark:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.entry-content .msl-btn--ghost { color: var(--navy-900); border-color: var(--navy-900); }
.entry-content .msl-btn--ghost:hover { background: var(--navy-900); color: var(--white); }
.msl-btn--light { background: var(--white); border-color: var(--white); }
.msl-btn--light:hover { background: var(--gold); border-color: var(--gold); }
.msl-btn--sm { padding: .55rem .95rem; font-size: .92rem; }
.msl-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: inherit; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.msl-link:hover { color: inherit; border-color: var(--orange); }

.msl-live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: msl-pulse 2s infinite; flex: none; }
@keyframes msl-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* Alert */
.msl-alert { background: var(--red); color: var(--white); font-weight: 600; font-size: .98rem; }
.msl-alert .msl-wrap { display: flex; gap: .6rem; align-items: center; padding-block: .6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 20, 40, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--white); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__logo { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .03em; text-transform: uppercase; }
.brand__sub { font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.site-nav a { display: block; padding: .55rem .7rem; color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current_page_parent > a { color: var(--gold); }
.site-nav li:last-child > a { background: var(--gold); color: var(--navy-900); margin-left: .4rem; padding-inline: 1rem; border-radius: 999px; }
.site-nav li:last-child > a:hover { background: #ffc93a; }
.site-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--white); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; margin-inline: auto; position: relative; transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .1); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; gap: 0; }
	.site-nav a { padding: .85rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }
	.site-nav li:last-child > a { margin: 1rem 0 0; text-align: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background:
	radial-gradient(120% 80% at 78% 30%, rgba(238, 125, 34, .28) 0%, rgba(238, 125, 34, 0) 55%),
	radial-gradient(80% 60% at 90% 100%, rgba(245, 184, 25, .16) 0%, rgba(245, 184, 25, 0) 60%),
	linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
	padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__waves { position: absolute; right: -8%; top: -10%; width: min(900px, 90vw); height: auto; color: rgba(245, 184, 25, .1); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin-bottom: 1.4rem; }
.hero__title span { color: var(--gold); }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 36rem; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero__mark img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.hero__stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(2.5rem, 5vw, 4rem) 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__stats div { padding: 1.25rem 1rem 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero__stats div + div { padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero__stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.hero__stats dt { font-size: .9rem; color: rgba(255, 255, 255, .65); margin-top: .35rem; }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__mark { order: -1; }
	.hero__mark img { max-width: 220px; margin: 0; }
	.hero__stats { grid-template-columns: 1fr 1fr; }
	.hero__stats div:nth-child(3) { padding-left: 0; border-left: 0; }
	.hero__stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 1.25rem; }
}

/* Bands */
.band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band__title { font-size: clamp(2rem, 4vw, 3.1rem); text-transform: uppercase; font-weight: 800; }
.band__split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.band__split--wide { grid-template-columns: 1fr 1fr; }
.band__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
@media (max-width: 860px) { .band__split, .band__split--wide { grid-template-columns: 1fr; } }

.band--nets { background: var(--paper); }
.next-nets { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.next-net { position: relative; display: grid; grid-template-columns: 5.2rem 1fr auto; gap: 1.1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.next-net.is-next { border-color: var(--navy-900); border-width: 2px; }
.next-net__date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy-900); color: var(--white); border-radius: 10px; padding: .55rem .25rem; line-height: 1; }
.next-net__dow { font-family: var(--f-display); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.next-net__day { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; margin-top: .25rem; white-space: nowrap; }
.next-net__body h3 { font-size: 1.3rem; margin: 0 0 .2rem; }
.next-net__body p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.next-net__badge { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--navy-900); padding: .35rem .6rem; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) {
	.next-net { grid-template-columns: 4.4rem 1fr; }
	.next-net__badge { position: absolute; top: -.7rem; right: .8rem; }
}

.band--how { background: var(--navy-900); color: var(--white); }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem 1.5rem 0 0; border-top: 2px solid rgba(255, 255, 255, .14); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 3.5rem; height: 2px; background: var(--gold); }
.steps li + li { padding-left: 1.5rem; }
.steps li + li::before { left: 1.5rem; }
.steps__n { font-family: var(--f-mono); font-size: .85rem; color: var(--gold); }
.steps h3 { font-size: 1.55rem; text-transform: uppercase; margin: .5rem 0 .5rem; }
.steps p { color: rgba(255, 255, 255, .72); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; } .steps li:nth-child(3) { padding-left: 0; } .steps li:nth-child(3)::before { left: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding-left: 0; } .steps li + li::before { left: 0; } }

.band--dir { background: var(--paper-2); }
.mini-dir { list-style: none; margin: 1.5rem 0 1.75rem; padding: 0; border-top: 1px solid var(--line); }
.mini-dir li { display: grid; grid-template-columns: 1fr auto 6.5rem; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mini-dir__loc { font-weight: 600; }
.mini-dir__freq { font-family: var(--f-mono); font-weight: 700; color: var(--navy-900); }
.mini-dir__tone { font-family: var(--f-mono); font-size: .86rem; color: var(--ink-2); text-align: right; }
.map-card { margin: 0; }
.map-card a { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 50px -20px rgba(7, 20, 40, .5); }
.map-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s var(--ease); }
.map-card a:hover img { transform: scale(1.03); }
.map-card__cta { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; gap: .5em; align-items: center; background: var(--navy-900); color: var(--white); padding: .65rem 1rem; border-radius: 999px; font-family: var(--f-display); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.band--skywarn { background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%); color: var(--white); position: relative; overflow: hidden; }
.band--skywarn::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 28rem; height: 28rem; background: radial-gradient(closest-side, rgba(245, 184, 25, .22), rgba(245, 184, 25, 0)); pointer-events: none; }
.band--skywarn p { color: rgba(255, 255, 255, .8); max-width: 34rem; }
.sky-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; position: relative; z-index: 1; }
.sky-facts li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem 1.4rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); background: rgba(255, 255, 255, .04); }
.sky-facts strong { font-family: var(--f-display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--gold); }
.sky-facts span { color: rgba(255, 255, 255, .85); }

.band--emcomm { background: var(--paper); }
.flyer-card { margin: 0; max-width: 420px; justify-self: center; transform: rotate(-2deg); }
.flyer-card img { border-radius: var(--r); box-shadow: 0 30px 60px -25px rgba(7, 20, 40, .55); }
@media (max-width: 860px) { .flyer-card { max-width: 300px; transform: none; } }

.band--news { background: var(--paper-2); }
.band--join { background: var(--orange); color: var(--navy-950); padding-block: clamp(2.75rem, 5vw, 4rem); }
.band--join .band__title { margin-bottom: .3rem; }
.band--join p { margin: 0; max-width: 38rem; font-weight: 500; }
.band--join .msl-btn--ghost { color: var(--navy-950); border-color: var(--navy-950); }
.band--join .msl-btn--ghost:hover { background: var(--navy-950); color: var(--white); }
.join { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card__body { padding: 1.4rem 1.4rem 1.2rem; }
.news-card__date { font-family: var(--f-mono); font-size: .8rem; color: var(--orange); }
.news-card__title { font-size: 1.55rem; margin: .4rem 0 .6rem; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--navy-600); }
.news-card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--white); }
.pagination .current { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* Inner page hero */
.page-hero { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: var(--white); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 3.75rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10rem; bottom: -14rem; width: 34rem; height: 34rem; border-radius: 50%; border: 1px solid rgba(245, 184, 25, .14); box-shadow: 0 0 0 4rem rgba(245, 184, 25, .03), 0 0 0 8rem rgba(245, 184, 25, .025); pointer-events: none; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; margin: 0 0 .8rem; max-width: 18ch; }
.page-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .8); max-width: 42rem; margin: 0; }
.page-hero .hero__ctas { margin-top: 1.75rem; }

/* Entry content */
.entry { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.entry--narrow { max-width: 820px; }
.entry-content > * { max-width: 760px; }
.entry-content > .wp-block-shortcode, .entry-content > .alignwide, .entry-content > .alignfull, .entry-content > .msl-dir, .entry-content > .msl-nets, .entry-content > .msl-map, .entry-content > .msl-status, .entry-content > .msl-planned, .entry-content > .msl-stats, .entry-content > .msl-affiliates, .entry-content > .msl-timeline, .entry-content > .msl-form, .entry-content > .wp-block-image, .entry-content > .wp-block-columns { max-width: none; }
.entry-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); text-transform: uppercase; font-weight: 800; margin-top: 3.25rem; }
.entry-content h3 { font-size: 1.6rem; margin-top: 2.25rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content li::marker { color: var(--orange); }
.entry-content .msl-muted { color: var(--ink-2); font-size: .95rem; }
.entry-content .msl-callout { background: #fff4da; border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.entry-content img.msl-flyer { max-width: 440px; width: 100%; border-radius: var(--r); box-shadow: var(--shadow); margin-top: 2.5rem; }
.entry-thumb { margin: 0 0 2rem; } .entry-thumb img { border-radius: var(--r); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; }
.post-nav a { text-decoration: none; }

/* Repeater directory */
.msl-dir__bar { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-bottom: 1rem; }
.msl-search { flex: 1 1 280px; }
.msl-search input { width: 100%; font: inherit; padding: .8rem 1rem .8rem 2.6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2344526a' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem 50%; }
.msl-search input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(245, 184, 25, .45); }
.msl-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.msl-chip { font: inherit; font-weight: 600; font-size: .9rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.msl-chip:hover { border-color: var(--navy-700); }
.msl-chip.is-on { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.msl-dir__count { font-size: .9rem; color: var(--ink-2); margin: 0 0 .75rem; }
.msl-table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.msl-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.msl-table th { text-align: left; font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--navy-900); padding: .85rem 1rem; }
.msl-table td { padding: .85rem 1rem; border-top: 1px solid var(--paper-2); vertical-align: top; }
.msl-table tbody tr:hover { background: #fbf8f1; }
.msl-loc strong { font-weight: 600; } .msl-loc span { color: var(--ink-2); }
.msl-loc small { display: block; color: var(--ink-2); font-size: .85rem; }
.msl-call { font-family: var(--f-mono); font-weight: 500; font-size: .92rem; }
.msl-freq { font-family: var(--f-mono); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.msl-freq abbr { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: .82em; }
.msl-tone { font-family: var(--f-mono); font-size: .92rem; white-space: nowrap; }
.msl-band { display: inline-block; font-family: var(--f-mono); font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; background: var(--paper-2); color: var(--navy-800); }
.msl-tag { font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .45rem; border-radius: 4px; margin-left: .4rem; }
.msl-tag--off { background: #fde2e0; color: var(--red); }
.msl-fineprint { font-size: .88rem; color: var(--ink-2); margin-top: .9rem; }
.msl-empty { padding: 1.25rem; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); background: var(--white); }

@media (max-width: 720px) {
	.msl-table-wrap { border: 0; background: none; overflow: visible; }
	.msl-table thead { display: none; }
	.msl-table, .msl-table tbody { display: block; }
	.msl-table tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .85rem 1rem; margin-bottom: .55rem; }
	.msl-table td { padding: 0; border: 0; }
	.msl-table td.msl-loc { grid-column: 1 / -1; font-size: 1.05rem; }
	.msl-table td[data-label="Call"] { grid-column: 1; grid-row: 2; color: var(--ink-2); }
	.msl-table td.msl-freq { grid-column: 2; grid-row: 2; text-align: right; font-size: 1.05rem; }
	.msl-table td.msl-tone { grid-column: 2; text-align: right; }
	.msl-table td[data-label="Band"] { grid-column: 1; grid-row: 3; }
	.msl-table td[data-label="Offset"]::before, .msl-table td[data-label="Node"]::before { content: attr(data-label) ": "; color: var(--ink-2); font-size: .85rem; }
}

.msl-planned { list-style: none; padding: 0 !important; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .65rem; }
.msl-planned li { margin: 0; padding: 1rem 1.1rem; border: 1px dashed var(--navy-600); border-radius: var(--r-sm); background: rgba(255, 255, 255, .6); display: flex; flex-direction: column; gap: .2rem; }
.msl-planned__where { font-weight: 700; }
.msl-planned__meta { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-2); }

.msl-map { margin: 1.25rem 0 0; }
.msl-map { max-width: 820px !important; }
.msl-map img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.msl-map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.25rem; align-items: center; margin-top: .9rem; color: var(--ink-2); font-size: .92rem; }

/* Nets */
.msl-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .9rem; }
.msl-net { display: grid; grid-template-columns: 8.2rem 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.msl-net__when { background: var(--navy-900); color: var(--white); padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.msl-net__label { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; color: var(--gold); }
.msl-net__time { font-family: var(--f-mono); font-size: .88rem; }
.msl-net__time abbr { text-decoration: none; color: rgba(255, 255, 255, .65); }
.msl-net__body { padding: 1rem 1.15rem; }
.msl-net__body h3 { font-size: 1.35rem; margin: 0 0 .3rem !important; }
.msl-net__body p { margin: 0 0 .3rem; color: var(--ink-2); font-size: .95rem; }
.msl-net__next { font-family: var(--f-mono); font-size: .82rem !important; color: var(--orange) !important; }

.msl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.25rem 0 1.5rem; }
.msl-stats div { background: var(--navy-900); color: var(--white); border-radius: var(--r); padding: 1.15rem 1.2rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.msl-stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.msl-stats dt { font-size: .9rem; color: rgba(255, 255, 255, .78); margin-top: .4rem; }
@media (max-width: 720px) { .msl-stats { grid-template-columns: 1fr 1fr; } }

/* Timeline */
.msl-timeline { list-style: none; padding: 0 !important; margin: 1.5rem 0 0; position: relative; }
.msl-timeline::before { content: ""; position: absolute; left: 6.25rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.msl-timeline li { display: grid; grid-template-columns: 6.25rem 1fr; gap: 1.75rem; position: relative; margin: 0; padding: 0 0 1.6rem; }
.msl-timeline li::after { content: ""; position: absolute; left: calc(6.25rem - 6px); top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--navy-900); }
.msl-timeline__year { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--navy-900); text-align: right; padding-right: .75rem; line-height: 1.3; }
.msl-timeline p { margin: 0; max-width: 40rem; }
@media (max-width: 520px) {
	.msl-timeline::before { left: 5px; }
	.msl-timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.75rem; }
	.msl-timeline li::after { left: -1px; }
	.msl-timeline__year { text-align: left; }
}

.msl-affiliates { list-style: none; padding: 0 !important; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .6rem; }
.msl-affiliates li { margin: 0; padding: 1rem 1.15rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-sm); font-weight: 600; }

/* Status */
.msl-status__card { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; background: var(--navy-900); color: var(--white); border-radius: var(--r); padding: 1.6rem 1.75rem; }
.msl-status__card .msl-live-dot { width: .9rem; height: .9rem; }
.msl-status__card > div { flex: 1 1 280px; }
.msl-status__card h3 { color: var(--white); margin: 0 0 .3rem !important; font-size: 1.6rem; }
.msl-status__card p { margin: 0; color: rgba(255, 255, 255, .75); }
.msl-status__frame { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.msl-status__frame iframe { display: block; width: 100%; height: 80vh; min-height: 560px; border: 0; }

/* Forms */
.msl-form { display: grid; gap: 1rem; max-width: 760px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.msl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .msl-form__row { grid-template-columns: 1fr; } }
.msl-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.msl-req { color: var(--orange); }
.msl-opt { font-weight: 400; color: var(--ink-2); }
.msl-form input, .msl-form select, .msl-form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); width: 100%; }
.msl-form input:focus, .msl-form select:focus, .msl-form textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(245, 184, 25, .45); background: var(--white); }
.msl-form button { justify-self: start; }
.msl-hp { position: absolute !important; left: -9999px; }
.msl-notice { padding: 1rem 1.2rem; border-radius: var(--r-sm); margin-bottom: 1rem; max-width: 760px; }
.msl-notice--ok { background: #e3f6ea; border: 1px solid #a8dcb9; }
.msl-notice--err { background: #fde2e0; border: 1px solid #f1aaa5; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: .96rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand img { width: 88px; margin-bottom: 1rem; }
.site-footer__slogan { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; color: var(--gold); line-height: 1.15; max-width: 22rem; }
.site-footer__brand p:last-child { max-width: 26rem; }
.site-footer__h { font-family: var(--f-display); font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem 1.75rem; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.site-footer__base p { margin: 0; max-width: 46rem; }
.site-footer__base ul { display: flex; gap: 1rem; }

/* WP core alignment & captions */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--ink-2); }
.wp-block-image img { border-radius: var(--r-sm); }
.wp-block-quote { border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; }
.wp-block-button__link { background: var(--gold); color: var(--navy-900); border-radius: 999px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.comment-list { list-style: none; padding: 0; }
.comment-respond { margin-top: 3rem; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; max-width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.comment-form .submit { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--gold); color: var(--navy-900); border: 0; border-radius: 999px; padding: .8rem 1.3rem; cursor: pointer; }
