/*
Theme Name: Sweet Network
Theme URI: https://www.sweetmelodiesfm.com/
Author: Sweet Melodies FM
Description: Light, fast theme for the Sweet Radio Network station sites (radio-first) and News 25 (news-first). Each site keeps its own logo and colours.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sweet-network
*/

:root {
	--c1: #A80000; --c2: #9A7224; --ink: #1d1d1f; --tint: #f6f3f1;
	--text: #2b2b2b; --muted: #5c5757; --line: #e8e3e1; --bg: #fff;
	--radius: 14px; --wrap: 1200px;
	--f-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-head: Poppins, Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }
.sn-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sn-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.sn-skip:focus { left: 8px; top: 8px; }
.sn-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sn-narrow { max-width: 760px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.sn-wide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.sn-section { padding-top: 48px; padding-bottom: 48px; }
.sn-muted { color: var(--muted); }
.sn-small { font-size: 14px; color: var(--muted); }
.sn-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin-bottom: 12px; }
.sn-lead { font-size: 19px; line-height: 1.6; }
.sn-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c1); text-decoration: none; margin-bottom: 6px; }
.sn-meta { font-size: 13px; color: var(--muted); }
.sn-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 8px; animation: sn-pulse 1.6s infinite; }
@keyframes sn-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sn-dot { animation: none; } }

/* Buttons */
.sn-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--c1); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--f-body); }
.sn-btn:hover { text-decoration: none; filter: brightness(1.08); }
.sn-btn--light { background: #fff; color: var(--c1); }
.sn-more { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Header */
.sn-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .sn-header { top: 32px; }
.sn-header__row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.sn-logo img { height: 64px; width: auto; }
.sn-nav { flex: 1; }
.sn-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; }
.sn-menu a { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; padding: 10px 2px; display: inline-block; }
.sn-menu a:hover, .sn-menu .current-menu-item > a { color: var(--c1); }
.sn-navtoggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 22px; cursor: pointer; }
@media (max-width: 900px) {
	.sn-header__row { flex-wrap: wrap; gap: 12px; min-height: 70px; }
	.sn-logo img { height: 50px; }
	.sn-navtoggle { display: block; }
	.sn-btn--live { order: 2; margin-left: auto; min-height: 42px; padding: 0 14px; font-size: 14px; }
	.sn-navtoggle { order: 3; margin-left: 0; }
	.sn-nav { display: none; order: 4; flex-basis: 100%; }
	.sn-nav-open .sn-nav { display: block; }
	.sn-menu { flex-direction: column; gap: 0; padding-bottom: 12px; }
	.sn-menu a { padding: 12px 0; display: block; border-top: 1px solid var(--line); }
}

/* News header (News 25) */
.sn-breaking { background: var(--c1); color: #fff; font-size: 14px; }
.sn-breaking .sn-wrap { display: flex; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.sn-breaking strong { text-transform: uppercase; letter-spacing: .08em; }
.sn-breaking a { color: #fff; }
.sn-header--news { position: static; border-bottom: 0; }
.sn-header--news .sn-header__row { border-bottom: 4px solid var(--c1); }
.sn-header--news .sn-logo img { height: 84px; width: auto; }
.sn-header__tools { margin-left: auto; }
.sn-nav--news { background: var(--c2); }
.sn-nav--news .sn-menu { justify-content: flex-start; }
.sn-nav--news .sn-menu a { color: #fff; }
.sn-nav--news .sn-menu a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
	.sn-header__tools { display: none; }
	.sn-nav--news { display: none; }
	.sn-nav-open .sn-nav--news { display: block; }
	.sn-nav--news .sn-menu a { border-top-color: rgba(255,255,255,.2); }
}
.sn-search { display: flex; gap: 6px; }
.sn-search input { height: 44px; border: 1px solid #c9cedf; border-radius: 999px; padding: 0 16px; font-size: 15px; width: 230px; max-width: 100%; }
.sn-search button { height: 44px; border-radius: 999px; border: 0; background: var(--c1); color: #fff; padding: 0 16px; font-weight: 600; cursor: pointer; }

/* Station hero */
.sn-hero { background: var(--c1); color: #fff; }
.sn-hero h1, .sn-hero a:not(.sn-btn) { color: #fff; }
.sn-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.sn-hero--small .sn-wrap { padding-top: 48px; padding-bottom: 48px; }
.sn-hero .sn-lead { opacity: .94; max-width: 620px; }
@media (max-width: 900px) { .sn-hero__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; } }
.sn-onair { background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.sn-onair__label { color: var(--c1); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; margin-bottom: 10px; }
.sn-onair__show { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1.2; margin: 0 0 4px; }
.sn-onair__host { color: var(--muted); margin-bottom: 18px; }
.sn-onair__play { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sn-onair__next { font-size: 14px; color: var(--muted); margin: 0; }
.sn-playbtn { width: 72px; height: 72px; flex: none; border-radius: 50%; border: 0; background: var(--c1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sn-ic-pause { display: none; }
.sn-playing .sn-ic-play { display: none; }
.sn-playing .sn-ic-pause { display: block; }

/* Home grid */
.sn-home-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 56px; padding-bottom: 32px; }
@media (max-width: 900px) { .sn-home-grid { grid-template-columns: 1fr; } }
.sn-today__list { list-style: none; margin: 16px 0 0; padding: 0; }
.sn-today__list li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.sn-today__list li.is-live { background: var(--tint); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.sn-today__time { width: 74px; flex: none; font-family: var(--f-head); font-weight: 600; color: var(--c1); }
.sn-today__body { display: flex; flex-direction: column; }
.sn-sechead { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.sn-sechead h2 { margin: 0; }
.sn-sechead p { margin: 4px 0 0; }

/* Cards */
.sn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.sn-cards--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sn-cards--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sn-card { display: flex; flex-direction: column; }
.sn-card__img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); margin-bottom: 12px; }
.sn-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sn-card:hover .sn-card__img img { transform: scale(1.03); }
.sn-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tint), #fff); }
.sn-card__title { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
.sn-card__title a { color: var(--ink); text-decoration: none; }
.sn-card__title a:hover { color: var(--c1); }
.sn-card__excerpt { font-size: 15px; color: var(--muted); margin: 0 0 6px; }

/* Bands and rates */
.sn-band { background: var(--tint); padding: 56px 0; margin-top: 24px; }
.sn-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 22px; }
.sn-rate { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.sn-rate span { color: var(--muted); font-size: 14px; }
.sn-rate strong { font-family: var(--f-head); font-size: 26px; color: var(--ink); }
.sn-rate small { color: var(--muted); }
.sn-tablewrap { overflow-x: auto; margin-bottom: 32px; }
.sn-ratecard, .sn-sched { width: 100%; border-collapse: collapse; font-size: 15px; }
.sn-ratecard th, .sn-ratecard td, .sn-sched th, .sn-sched td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sn-ratecard thead th, .sn-sched thead th { background: var(--ink); color: #fff; font-weight: 600; }
.sn-ratecard td { font-variant-numeric: tabular-nums; }
.sn-ratebox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 8px 0 24px; }
.sn-ratebox { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sn-ratebox h3 { font-size: 17px; }
.sn-ratebox dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.sn-ratebox dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sn-callout { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--tint); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.sn-callout p { margin: 0; }

/* Schedule */
.sn-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sn-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #cfc8c6; background: #fff; font: 600 15px var(--f-body); cursor: pointer; color: var(--ink); }
.sn-tabs button[aria-selected="true"] { background: var(--c1); border-color: var(--c1); color: #fff; }
.sn-sched td:first-child { width: 180px; white-space: nowrap; color: var(--c1); font-weight: 600; }
.sn-sched tr.is-live { background: var(--tint); }
.sn-sched tr.is-live td:last-child strong::after { content: "  · On air now"; color: var(--c1); font-weight: 700; font-size: 13px; }
.sn-sched--news td:last-child strong { font-weight: 500; }

/* Articles and pages */
.sn-pagehead { margin-bottom: 28px; }
.sn-article__head { padding-top: 44px; }
.sn-article__img { margin: 24px auto 32px; }
.sn-article__img img { border-radius: 14px; width: 100%; }
.sn-article__img figcaption { font-size: 14px; color: var(--muted); padding: 8px 20px 0; }
.sn-prose { font-size: 18px; line-height: 1.75; padding-bottom: 32px; }
.sn-prose h2 { margin-top: 1.6em; }
.sn-prose img, .sn-prose figure { max-width: 100%; height: auto; border-radius: 10px; }
.sn-prose figure { margin: 1.5em 0; }
.sn-prose iframe { max-width: 100%; }
.sn-prose blockquote { border-left: 4px solid var(--c1); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; font-style: italic; }
.sn-prose table { width: 100%; border-collapse: collapse; }
.sn-prose td, .sn-prose th { border: 1px solid var(--line); padding: 8px; }
.sn-tags a { display: inline-block; background: var(--tint); color: var(--ink); padding: 4px 10px; border-radius: 999px; font-size: 14px; margin: 0 6px 6px 0; text-decoration: none; }
.sn-share a { margin-left: 10px; font-weight: 600; }
.wp-caption, .wp-block-image figcaption { font-size: 14px; color: var(--muted); }
.alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { margin-left: auto; margin-right: auto; }

/* News 25 homepage */
.sn-top { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding-top: 36px; padding-bottom: 36px; }
@media (max-width: 900px) { .sn-top { grid-template-columns: 1fr; } }
.sn-leadstory__img { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--tint); margin-bottom: 16px; }
.sn-leadstory__img img { width: 100%; height: 100%; object-fit: cover; }
.sn-leadstory h1 { font-size: clamp(28px, 3.6vw, 44px); }
.sn-leadstory h1 a { color: var(--ink); text-decoration: none; }
.sn-leadstory h1 a:hover { color: var(--c1); }
.sn-rail h2 { font-size: 22px; border-bottom: 3px solid var(--c1); padding-bottom: 8px; }
.sn-rail__list { list-style: none; counter-reset: rail; margin: 0; padding: 0; }
.sn-rail__list li { counter-increment: rail; display: grid; grid-template-columns: 30px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.sn-rail__list li::before { content: counter(rail); grid-row: span 2; font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--c1); }
.sn-rail__list a { color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.sn-rail__list a:hover { color: var(--c1); }

/* Contact */
.sn-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
@media (max-width: 900px) { .sn-contact { grid-template-columns: 1fr; } }
.sn-contactlist { list-style: none; margin: 0 0 24px; padding: 0; }
.sn-contactlist li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sn-panel { background: var(--tint); border-radius: var(--radius); padding: 28px; }
.sn-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.sn-form input, .sn-form select, .sn-form textarea { width: 100%; min-height: 46px; border: 1px solid #cfc8c6; border-radius: 10px; padding: 10px 14px; font: 16px var(--f-body); background: #fff; }
.sn-hp { position: absolute; left: -9999px; }
.sn-notice { background: #e8f5ec; border-left: 4px solid #1a7f3c; padding: 12px 16px; border-radius: 8px; }
.sn-notice--err { background: #fdecec; border-color: #b3261e; }

/* Footer */
.sn-footer { background: var(--ink); color: rgba(255,255,255,.82); margin-top: 0; font-size: 15px; }
.sn-footer a { color: #fff; }
.sn-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (max-width: 560px) { .sn-logo img { height: 40px; } .sn-header__row { gap: 8px; } }
@media (max-width: 900px) { .sn-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sn-footer__grid { grid-template-columns: 1fr; } }
.sn-footer__name { font-family: var(--f-head); font-weight: 700; font-size: 19px; color: #fff; }
.sn-footer__head { font-weight: 700; color: #fff; margin-bottom: 10px; }
.sn-footer__list { list-style: none; margin: 0; padding: 0; }
.sn-footer__list li { padding: 4px 0; }
.sn-footer__base { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; padding-bottom: 90px; font-size: 14px; }
.sn-social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Sticky player */
.sn-player { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
.sn-player__row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.sn-player__btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sn-player__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-player__status { font-size: 13px; opacity: .8; }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--c1); border-color: var(--c1); color: #fff; }

/* Comments */
.sn-comments { padding: 24px 0 48px; }
.sn-comments textarea, .sn-comments input[type=text], .sn-comments input[type=email], .sn-comments input[type=url] { width: 100%; border: 1px solid #cfc8c6; border-radius: 10px; padding: 10px; font: 16px var(--f-body); }
.sn-comments .submit { background: var(--c1); color: #fff; border: 0; border-radius: 999px; min-height: 44px; padding: 0 20px; font-weight: 600; cursor: pointer; }
.sn-vat { background: var(--tint); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.sn-vat input { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
/* News 25 header spacing fix */
.sn-header--news .sn-header__row { border-bottom: 0; padding-top: 16px; padding-bottom: 16px; min-height: 0; }
.sn-header--news .sn-logo { display: block; line-height: 0; }
.sn-header--news .sn-logo img { height: 76px; width: auto; }
.sn-nav--news { border-top: 4px solid var(--c1); }
@media (max-width: 900px) { .sn-header--news .sn-header__row { padding-top: 12px; padding-bottom: 12px; } .sn-header--news .sn-logo img { height: 56px; } }
/* News 25 footer */
.sn-footer--news { border-top: 4px solid var(--c1); }
.sn-nfoot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.sn-nfoot__logo { display: inline-block; line-height: 0; margin-bottom: 14px; }
.sn-nfoot__logo img { height: 64px; width: auto; }
.sn-nfoot__brand p { max-width: 34ch; }
.sn-nfoot__brand .sn-btn { margin-top: 6px; }
.sn-footer--news .sn-footer__head { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: #fff; padding-bottom: 8px; border-bottom: 2px solid var(--c1); display: inline-block; margin-bottom: 12px; }
.sn-footer--news .sn-footer__list a { color: rgba(255,255,255,.85); text-decoration: none; }
.sn-footer--news .sn-footer__list a:hover { color: #fff; text-decoration: underline; }
.sn-footer--news .sn-footer__list li { padding: 5px 0; overflow-wrap: anywhere; }
.sn-nfoot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; padding-bottom: 24px; font-size: 14px; }
.sn-nfoot__base p { margin: 0; }
.sn-nfoot__base ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.sn-nfoot__base a { color: rgba(255,255,255,.85); text-decoration: none; }
.sn-nfoot__base a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .sn-nfoot { grid-template-columns: 1fr 1fr; } .sn-nfoot__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .sn-nfoot { grid-template-columns: 1fr; gap: 28px; } }