/* Upper Cumberland Weather — ucweather.net. Colors are the channel's own: header blues, navy, and the green rule. */
:root {
  --navy: #06123f; --navy2: #07124a; --edge: #010a33; --blue: #1f46bd; --blue2: #0a1a5e; --cell: #2148c4; --cell2: #0d2270;
  --green: #8fe04f; --text: #fff; --dim: #c6d3f0; --muted: #8fa0c8; --card: rgba(13, 34, 112, .55); --line: rgba(143, 160, 200, .22);
  --warn: #ff1f1f; --watch: #ffd21f; --radius: 12px; --wrap: 1240px;
  --head: "Barlow Condensed", "DIN Alternate", Arial, sans-serif; --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--text); font: 16px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(1200px 600px at 85% -10%, rgba(31, 70, 189, .45), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(143, 224, 79, .08), transparent 60%), var(--navy); }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b6f08a; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #04140f; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: linear-gradient(180deg, var(--blue), var(--blue2)); border-bottom: 4px solid var(--green); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand img { height: 50px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.brand span { font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; line-height: 1; letter-spacing: .02em; }
.brand small { display: block; font-size: 13px; color: var(--green); letter-spacing: .12em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { background: rgba(0, 0, 0, .25); box-shadow: inset 0 -3px 0 var(--green); }
.nav .live-pill { display: inline-flex; align-items: center; gap: 7px; }
.nav .live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 3px rgba(255, 59, 59, .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 59, 0); } }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 8px; padding: 6px 10px; font: 700 16px var(--head); text-transform: uppercase; cursor: pointer; }
@media (max-width: 960px) {
  .brand span { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; background: var(--blue2); padding: 10px 14px 16px; border-bottom: 4px solid var(--green); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- alert banner ---------- */
.alert-bar { background: #b10f0f; border-bottom: 2px solid rgba(0, 0, 0, .35); }
.alert-bar.watch { background: #8a6d00; } .alert-bar.advisory { background: #1d4f7a; }
.alert-bar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; font-weight: 600; }
.alert-bar b { font-family: var(--head); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.alert-bar a { color: #fff; margin-left: auto; white-space: nowrap; font-weight: 700; }
.alert-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- building blocks ---------- */
main { flex: 1; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { margin-left: auto; font-weight: 700; }
.rule { height: 4px; width: 64px; background: var(--green); border-radius: 2px; margin: 0 0 14px; }
.card { background: linear-gradient(180deg, rgba(33, 72, 196, .28), rgba(13, 34, 112, .5)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #04140f; border: 0; border-radius: 10px; padding: 11px 18px; font: 700 18px var(--head); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; }
.btn:hover { background: #a8ec70; color: #04140f; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--green); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--green); font-size: 15px; }
.tag { display: inline-block; font: 700 13px var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 5px; background: var(--green); color: #04140f; }
.tag.red { background: #ff3b3b; color: #fff; }

/* ---------- home ---------- */
.hero { padding: 26px 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-cap { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.player-cap h1 { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }
.now { display: flex; flex-direction: column; gap: 14px; }
.now-temp { display: flex; align-items: center; gap: 14px; }
.now-temp img { width: 84px; height: 84px; }
.now-temp .t { font: 700 72px/1 var(--head); }
.now-temp .c { font: 700 22px/1.1 var(--head); text-transform: uppercase; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.facts span { color: var(--dim); }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(7, 150px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .strip > * { scroll-snap-align: start; } }
.day { text-align: center; padding: 14px 8px; border-radius: var(--radius); background: linear-gradient(180deg, var(--cell), var(--cell2)); border: 1px solid var(--line); }
.day .n { font: 700 20px var(--head); text-transform: uppercase; }
.day img { width: 64px; height: 64px; margin: 6px auto; }
.day .hi { font: 700 34px/1 var(--head); } .day .lo { font: 700 22px/1 var(--head); color: var(--dim); }
.day .pop { margin-top: 6px; font: 700 15px var(--head); color: #9fd3ff; min-height: 18px; text-transform: uppercase; }
.day .s { font-size: 13px; color: var(--dim); margin-top: 4px; line-height: 1.3; }
.radar-frame { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #242e3f; }
.radar-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.radar-frame .open { position: absolute; right: 14px; top: 14px; z-index: 2; }
@media (max-width: 620px) { .radar-frame { aspect-ratio: 4 / 4; } }
.outlets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .outlets { grid-template-columns: repeat(2, 1fr); } }
.outlet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 170px; text-align: center; text-decoration: none; color: #fff; }
.outlet img { max-height: 70px; width: auto; }
.outlet .cap { font: 900 15px var(--body); text-transform: uppercase; letter-spacing: .04em; }
.outlet .call { font: 700 46px/1 var(--head); color: var(--green); }
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.sponsors img { background: #fff; border-radius: 10px; padding: 8px; aspect-ratio: 3 / 1; object-fit: contain; width: 100%; }

/* ---------- forecast ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
select, input, textarea { font: 16px var(--body); color: #fff; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
select option { color: #000; }
label { font-weight: 600; }
.periods { display: grid; gap: 12px; }
.period { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: start; }
.period img { width: 70px; height: 70px; }
.period h3 { margin: 0 0 2px; font-size: 21px; }
.period .tt { font: 700 22px var(--head); }
.period.night .tt { color: var(--dim); }
.hourly { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.hour { flex: none; width: 74px; text-align: center; padding: 10px 4px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.hour .h { font: 700 15px var(--head); color: var(--dim); text-transform: uppercase; }
.hour img { width: 40px; height: 40px; margin: 4px auto; }
.hour .t { font: 700 22px var(--head); } .hour .p { font: 700 13px var(--head); color: #9fd3ff; min-height: 16px; }

/* ---------- alerts ---------- */
.alert { border-left: 6px solid var(--warn); }
.alert.sev-Moderate { border-left-color: var(--watch); } .alert.sev-Minor { border-left-color: #4fa3ff; }
.alert pre { white-space: pre-wrap; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(0, 0, 0, .3); padding: 14px; border-radius: 8px; color: var(--dim); max-height: 420px; overflow: auto; }
.alert details summary { cursor: pointer; font-weight: 700; color: var(--green); }
.empty { text-align: center; padding: 40px 20px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; }
.packages .card h3 { color: var(--green); }
.packages ul { padding-left: 18px; margin: 0; } .packages li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 40px; background: var(--edge); border-top: 4px solid var(--green); padding: 30px 0; color: var(--dim); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.site-foot img { height: 60px; width: auto; margin-bottom: 10px; }
.site-foot a { color: var(--dim); } .site-foot a:hover { color: var(--green); }
.site-foot ul { list-style: none; margin: 0; padding: 0; } .site-foot li { margin-bottom: 6px; }
.site-foot h3 { color: #fff; font-size: 18px; }

.loading { color: var(--muted); font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
