/* ------------------------------------------------------------------
   Local TV portal — V1 "Portal Light"
   Faithful to previous_client_designs/site-localtv-news.html
   (navy + orange + off-white), with Montserrat per brand guidelines.
   ------------------------------------------------------------------ */
:root {
  --navy: #232a3d;
  --navy-2: #1b2130;
  --navy-line: #333b50;
  --orange: #e0701c;
  --orange-ink: #c25f14;
  --off: #f5f6f8;
  --paper: #ffffff;
  --edge: #e7e8ec;
  --edge-2: #dcdde2;
  --ink: #191b22;
  --sub: #5c5f6b;
  --dim: #9395a2;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 36, 0.06);
  --shadow: 0 1px 2px rgba(20, 22, 36, 0.05), 0 10px 28px -20px rgba(20, 22, 36, 0.18);
  --font: "Montserrat", "Gibson", "canada-type-gibson", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--off);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img.th {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops hqdefault's 4:3 letterbox bars to 16:9 */
  z-index: 1;
}
.wrapw { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrapw { padding: 0 16px; } }

/* ── header: navy brand bar + navy nav ── */
.brandbar { background: var(--navy); }
.brandbar .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { display: block; }
.brand-word { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.brand-word em { font-style: normal; color: var(--orange); }
.chan-name {
  color: #cfd2dc;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--navy-line);
  padding-left: 16px;
}
@media (max-width: 480px) { .chan-name { display: none; } }
.live-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 100px;
  transition: filter 0.15s;
}
.live-pill:hover { filter: brightness(1.08); }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

nav.main { background: var(--navy-2); border-top: 1px solid var(--navy-line); }
nav.main .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 46px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.main .in::-webkit-scrollbar { display: none; }
nav.main a {
  color: #c6c9d4;
  font-size: 13px;
  font-weight: 600;
  padding: 0 13px;
  height: 46px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}
nav.main a:first-child { padding-left: 0; }
nav.main a:hover { color: #fff; }
nav.main a.on { color: #fff; }
nav.main a.on::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  background: var(--orange);
}
nav.main a:first-child.on::after { left: 0; }

/* per-city section tabs (News / Sport / Crime / What's On) */
nav.sub { background: var(--paper); border-bottom: 1px solid var(--edge); }
nav.sub .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 42px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.sub .in::-webkit-scrollbar { display: none; }
nav.sub a {
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  padding: 0 13px;
  height: 42px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}
nav.sub a:first-child { padding-left: 0; }
nav.sub a:hover { color: var(--ink); }
nav.sub a.on { color: var(--orange-ink); }
nav.sub a.on::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  background: var(--orange);
}
nav.sub a:first-child.on::after { left: 0; }
@media (max-width: 640px) { nav.sub .in { padding: 0 16px; } }

/* static content pages (about, advertising, legal, how to watch) */
.prose {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 38px;
}
.prose h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 14px; }
.prose h2 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 10px;
  margin: 26px 0 10px;
}
.prose p { margin: 0 0 12px; font-size: 14.5px; }
.prose .lede { font-size: 16.5px; font-weight: 600; color: var(--navy); }
.prose .fineprint { font-size: 12px; color: var(--dim); }
.prose ul { margin: 0 0 14px 20px; font-size: 14.5px; }
.prose li { margin: 0 0 6px; }
.prose a { color: var(--orange-ink); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose .tablewrap { overflow-x: auto; margin: 0 0 14px; }
.prose table { border-collapse: collapse; font-size: 13px; min-width: 620px; width: 100%; }
.prose th, .prose td { border: 1px solid var(--edge-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th, .prose tr:first-child td { background: var(--off); font-weight: 700; }
.prose table strong { font-weight: inherit; } /* WP source wraps whole cells in <strong> */
@media (max-width: 640px) { .prose { padding: 24px 18px; } }
@media (max-width: 640px) { nav.main .in { padding: 0 16px; } }

/* section heading */
.shead { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.shead h2 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding-left: 14px;
}
.shead h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 3px;
  background: var(--orange);
}
.shead .rule { flex: 1; height: 1px; background: var(--edge-2); }
.block { padding: 30px 0; border-bottom: 1px solid var(--edge); }
.block:first-of-type { padding-top: 26px; }
.block:last-of-type { border-bottom: 0; }

/* ── TOP STORIES: lead + headline list ── */
.top { display: grid; grid-template-columns: 1fr 360px; gap: 30px; }
@media (max-width: 900px) { .top { grid-template-columns: 1fr; } }
.lead .stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e1018;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lead .stage .grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 14, 22, 0.34), transparent 55%);
}
.lead .stage .playbtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 6px 20px rgba(224, 112, 28, 0.35);
}
.lead .stage:hover .playbtn { transform: translate(-50%, -50%) scale(1.06); }
.lead .stage .playbtn svg { width: 24px; height: 24px; fill: #fff; }
.lead .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }
.lead .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 6px;
}
.lead .lk {
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 16px;
}
.lead h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.022em; line-height: 1.18; margin-top: 7px; }
.lead p { margin-top: 11px; color: var(--sub); font-size: 15px; line-height: 1.65; max-width: 60ch; }
.lead p:empty { display: none; }
.lead .stats { display: flex; gap: 14px; margin-top: 13px; font-size: 12.5px; color: var(--dim); font-weight: 500; }
.lead .stats span { display: flex; align-items: center; gap: 14px; }
.lead .stats span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.lead .stats span:first-child::before { display: none; }

.headlines {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-self: start;
  overflow: hidden;
}
.headlines .hl-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--navy);
  letter-spacing: 0.01em;
}
.headlines .hl-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.headlines .hl-list { display: flex; flex-direction: column; padding: 6px 16px; }
.headlines .hl { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--edge); cursor: pointer; }
.headlines .hl:first-child { border-top: 0; }
.headlines .hl .thumb {
  position: relative;
  width: 110px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0e1018;
}
.headlines .hl .thumb .pb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s;
}
.headlines .hl:hover .thumb .pb { transform: translate(-50%, -50%) scale(1.08); }
.headlines .hl .thumb .pb svg { width: 13px; height: 13px; fill: #fff; }
.headlines .hl h3 { font-size: 13.5px; font-weight: 700; line-height: 1.32; letter-spacing: -0.01em; }
.headlines .hl:hover h3 { color: var(--orange-ink); }
.headlines .hl .hk {
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

/* story grid (cards) */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .grid { grid-template-columns: 1fr; } }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.three { grid-template-columns: 1fr; } }
.card { cursor: pointer; }
.card .t {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #0e1018;
}
.card .t .pb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 4px 14px rgba(224, 112, 28, 0.3);
}
.card:hover .t .pb { transform: translate(-50%, -50%) scale(1.08); }
.card .t .pb svg { width: 16px; height: 16px; fill: #fff; }
.card .cbody { margin-top: 11px; }
.card .ck { color: var(--orange); font-weight: 700; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.card h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.015em;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover h3 { color: var(--orange-ink); }
.card .date { font-size: 12px; color: var(--dim); margin-top: 8px; font-weight: 500; }

/* ── watch band ── */
.watchband { background: var(--navy); margin: 8px 0 0; padding: 34px 0; }
.wb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.wb-head h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.wb-head h2 .livedot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.wb-duo { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .wb-duo { grid-template-columns: 1fr; } }
.wb-stack { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.wb-card { cursor: pointer; }
.wb-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e1018;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}
.wb-media .wb-grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 14, 22, 0.85) 0%, rgba(12, 14, 22, 0.15) 45%, transparent 68%);
}
.wb-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 6; }
.wb-media .pb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 6px 20px rgba(224, 112, 28, 0.4);
}
.wb-card:hover .wb-media .pb { transform: translate(-50%, -50%) scale(1.07); }
.wb-media .pb svg { width: 20px; height: 20px; fill: #fff; }
.primary .wb-media .pb { width: 72px; height: 72px; }
.primary .wb-media .pb svg { width: 26px; height: 26px; }
.wb-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 33, 48, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.wb-flag svg { width: 11px; height: 11px; fill: #fff; }
.wb-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 5; }
.wb-cap .wk { color: var(--orange); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.wb-cap h3 { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; margin-top: 5px; }
.primary .wb-cap h3 { font-size: 20px; letter-spacing: -0.02em; }
@media (max-width: 520px) { .primary .wb-cap h3 { font-size: 16px; } }
.wb-stack .wb-media .pb { width: 46px; height: 46px; }
.wb-stack .wb-media .pb svg { width: 17px; height: 17px; }
.wb-stack .wb-cap { left: 14px; right: 14px; bottom: 12px; }
.wb-stack .wb-cap h3 { font-size: 13px; }
.wb-stack .wb-cap .wk { font-size: 10px; }

/* numbered latest updates */
.latest { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 760px) { .latest { grid-template-columns: 1fr; } }
.lu { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--edge); cursor: pointer; align-items: baseline; }
.lu .n { font-size: 16px; font-weight: 800; color: var(--orange); width: 22px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lu h3 { font-size: 14px; font-weight: 600; line-height: 1.35; }
.lu:hover h3 { color: var(--orange-ink); }
.lu .vflag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 8px;
}
.lu .vflag svg { width: 9px; height: 9px; fill: var(--orange); }

/* channel tiles (homepage) */
.chans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.chan {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 14px 12px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.chan img { width: 100%; height: auto; aspect-ratio: 236 / 207; border-radius: 9%; }
.chan span {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sub);
}
.chan:hover { transform: translateY(-4px); border-color: rgba(224, 112, 28, 0.5); box-shadow: var(--shadow); }
.chan:hover span { color: var(--orange-ink); }

/* ── watch on TV band ── */
.tvband { background: var(--navy); color: #fff; padding: 44px 0; }
.tvband .in { max-width: 1200px; margin: 0 auto; padding: 0 28px; text-align: center; }
.tvband h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
.tvband .nums { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.tvband .num b { display: block; color: var(--orange); font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.tvband .num span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: #c6c9d4; }

/* footer */
footer { background: var(--navy-2); color: #c6c9d4; }
footer .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 28px 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}
footer .col b { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 10px; }
footer .col a { display: block; padding: 4px 0; }
footer .col a:hover { color: var(--orange); }
footer .attribution {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px 30px;
  font-size: 12px;
  color: #9a9db0;
}
footer .attribution a { color: #c6c9d4; }
footer .attribution a:hover { color: var(--orange); }
.pageend { text-align: center; color: var(--dim); font-size: 12px; padding: 18px; background: var(--navy-2); border-top: 1px solid var(--navy-line); }

/* videos that can't be embedded open on YouTube — mark with an arrow */
[data-embed="0"] h3::after { content: " \2197"; color: var(--dim); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
