:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --ink: #0c172a;
  --muted: #64748b;
  --muted-dark: #475569;
  --line: #dbe3ee;
  --line-strong: #b9c7d8;
  --navy: #091526;
  --navy-soft: #12243b;
  --red: #d92535;
  --red-dark: #aa1425;
  --gold: #d58b12;
  --green: #16a36b;
  --shadow-sm: 0 5px 18px rgba(15, 31, 55, .07);
  --shadow-md: 0 16px 38px rgba(15, 31, 55, .11);
  --radius: 16px;
  --radius-sm: 10px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d18;
  --surface: #101b2d;
  --surface-soft: #17263b;
  --ink: #f8fafc;
  --muted: #9cafc4;
  --muted-dark: #c0cede;
  --line: #263b55;
  --line-strong: #3e5875;
  --navy: #050b14;
  --navy-soft: #142944;
  --shadow-sm: 0 5px 18px rgba(0, 0, 0, .2);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 12% 0%, #fff 0, var(--bg) 40rem); color: var(--ink); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32; background-image: linear-gradient(rgba(12, 23, 42, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 23, 42, .025) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 65%); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(217, 37, 53, .35); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.site-header { position: sticky; top: 0; z-index: 10; color: var(--ink); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); box-shadow: 0 4px 22px rgba(12, 23, 42, .06); backdrop-filter: blur(16px); transition: background .25s, color .25s, border-color .25s; }
.utility-bar { color: var(--muted-dark); background: #f1f5f9; border-bottom: 1px solid var(--line); font-size: .68rem; letter-spacing: .05em; transition: background .25s, color .25s, border-color .25s; }
.utility-inner { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.utility-end { display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 0 auto; }
.utility-social { display: inline-flex; align-items: center; gap: 9px; }
.utility-social a { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--muted-dark); text-decoration: none; transition: color .2s, transform .2s; }
.utility-social a:hover { color: var(--red); transform: translateY(-1px); }
.utility-social svg { display: block; width: 15px; height: 15px; fill: currentColor; }
.utility-live { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 800; letter-spacing: .11em; }
.utility-live i { width: 6px; height: 6px; border-radius: 50%; background: #16a36b; box-shadow: 0 0 0 4px rgba(22, 163, 107, .18); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-mark { width: 66px; height: 66px; flex: 0 0 66px; overflow: hidden; border: 2px solid rgba(217, 37, 53, .3); border-radius: 14px; background: var(--red); box-shadow: 0 8px 22px rgba(217, 37, 53, .24); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.35rem; font-weight: 900; letter-spacing: .08em; white-space: nowrap; color: var(--ink); }
.brand-copy em { color: var(--red); font-style: normal; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.brand-copy small.brand-slogan { display: block; width: clamp(300px, 34vw, 520px); overflow: hidden; padding: 2px 0; margin-top: 5px; color: var(--muted-dark); line-height: 1.4; font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.brand-slogan-track { display: flex; width: max-content; animation: brand-slogan-scroll 24s linear infinite; }
.brand-slogan-track > span { display: block; flex: 0 0 auto; margin-right: 38px; white-space: nowrap; color: transparent; background: linear-gradient(90deg, #d92535, #ff574f, #ff8248, #f59e0b, #f4cf49, #91c83e, #16a36b, #12a6a6, #168bc8, #326be3, #6758e8, #9453d1, #d24caa, #ee6484, #d92535); background-size: 100% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: brand-slogan-color 18s linear infinite, brand-slogan-blink 2s ease-in-out infinite; }
.brand-slogan:hover .brand-slogan-track { animation-play-state: paused; }
.brand-slogan:hover .brand-slogan-track > span { animation-play-state: paused; }
@keyframes brand-slogan-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes brand-slogan-color { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes brand-slogan-blink { 0%, 100% { opacity: 1; } 50% { opacity: .86; } }
@media (prefers-reduced-motion: reduce) {
  .brand-slogan-track { animation: none; }
  .brand-slogan-track > span { color: var(--muted-dark); background: none; -webkit-text-fill-color: currentColor; animation: none; }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.district-back-link { position: absolute; top: 50%; right: calc(100% + 12px); flex: 0 0 auto; white-space: nowrap; font-size: .82rem; line-height: 1.2; padding: 9px 13px; transform: translateY(-50%); }
.header-actions select { min-width: 112px; }
select, input, textarea { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; }
.site-header select { color: var(--ink); background: var(--surface-soft); border-color: var(--line); }
.site-header select option { color: #0c172a; background: #ffffff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 17px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 8px 18px rgba(170, 20, 37, .18); transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(170, 20, 37, .24); }
.button-muted { background: var(--surface-soft); color: var(--ink); border-color: var(--line); box-shadow: none; }
.button-muted:hover { background: var(--line); color: var(--red-dark); box-shadow: none; }
.button-light { color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); box-shadow: none; }
.button-light:hover { color: var(--red-dark); background: var(--line); border-color: var(--line-strong); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 42px; min-height: 40px; padding: 8px 11px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.icon-button:hover { color: var(--red-dark); background: var(--line); border-color: var(--line-strong); }
.theme-icon-svg { display: block; width: 19px; height: 19px; flex-shrink: 0; transition: transform .25s ease, color .2s ease; }
.icon-button:hover .theme-icon-svg { transform: scale(1.1); }
.sun-icon { color: #d97706; }
.moon-icon { color: #f59e0b; }
:root[data-theme="dark"] .moon-icon { color: #ffd166; }
:root[data-theme="dark"] .sun-icon { color: #fbbf24; }
#saved-count { min-width: 1.1em; color: var(--red-dark); font-weight: 800; font-size: .76rem; }
.category-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 13px 80px; scrollbar-width: thin; }
.category { border: 1px solid transparent; border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--muted-dark); font-size: .86rem; font-weight: 700; white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.category:hover { color: var(--ink); border-color: var(--line); background: var(--surface-soft); }
.category.active { color: #fff; background: var(--red); box-shadow: 0 5px 14px rgba(217, 37, 53, .24); }
.ticker { color: #fff; background: linear-gradient(90deg, #8e1424, var(--red), #8e1424); border-bottom: 1px solid rgba(95, 5, 17, .25); }
.ticker-row { display: flex; align-items: center; gap: 14px; min-height: 42px; overflow: hidden; white-space: nowrap; }
.ticker-row strong { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; letter-spacing: .14em; }
.ticker-row strong { flex: 0 0 auto; }
.ticker-row strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); animation: pulse 1.6s infinite; }
#ticker-items { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #ffe9eb; font-size: .88rem; }
#district-ticker { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #ffe9eb; font-size: .88rem; }
.ticker-track { display: flex; width: max-content; animation: ticker-marquee 38s linear infinite; }
.ticker-group { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; padding-right: 48px; }
.ticker-group > span { display: inline-block; }
.ticker-group b { color: #ffb9c0; }
#ticker-items:hover .ticker-track { animation-play-state: paused; }
#district-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  #ticker-items { overflow-x: auto; }
  #district-ticker { overflow-x: auto; }
}
@keyframes pulse { 50% { opacity: .42; transform: scale(.78); } }
.district-page main .shell { width: min(1480px, calc(100% - 32px)); }
.hero-section { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .85fr); gap: 22px; padding: 32px 0 18px; }
.hero-card, .live-card, .panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.hero-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 360px; }
.hero-card .media-frame { min-height: 360px; border-radius: 0; }
.hero-copy { align-self: center; padding: 34px; }
.hero-copy h1 { margin: 8px 0 14px; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.035em; }
.hero-copy p { display: -webkit-box; overflow: hidden; margin-bottom: 22px; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.live-card { padding: 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: background .25s, color .25s, border-color .25s; }
.live-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-card .section-kicker { color: var(--red); }
.live-card h2 { margin: 9px 0 17px; font-size: 1.45rem; color: var(--ink); }
.live-card .muted { color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; color: #128053; background: rgba(22, 163, 107, .08); border: 1px solid rgba(22, 163, 107, .25); border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #16a36b; box-shadow: 0 0 0 4px rgba(22, 163, 107, .16); }
.media-placeholder { display: grid; min-height: 0; aspect-ratio: 16 / 9; place-items: center; padding: 0; color: var(--muted-dark); background: var(--surface-soft); border: 1px dashed var(--line-strong); border-radius: 12px; }
.media-placeholder iframe { display: block; width: 100%; height: 100%; min-height: 0; max-width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.headline-strip-section { display: flex; align-items: center; gap: 20px; padding: 16px 18px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.strip-label { display: grid; flex: 0 0 132px; gap: 4px; padding-right: 16px; border-right: 1px solid var(--line); }
.strip-label strong { font-size: .9rem; }
.headline-strip { display: grid; flex: 1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.headline-item { display: grid; grid-template-columns: 28px 1fr; gap: 9px; min-width: 0; padding: 0 13px; color: var(--ink); background: none; border: 0; border-right: 1px solid var(--line); text-align: left; }
.headline-item:first-child { padding-left: 0; }
.headline-item:last-child { border-right: 0; }
.headline-item > span { color: var(--red); font-size: .72rem; font-weight: 900; }
.headline-item strong { display: -webkit-box; overflow: hidden; font-size: .78rem; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.headline-item:hover strong { color: var(--red-dark); }
.content-section { padding: 26px 0 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h1, .section-heading h2 { margin: 5px 0 0; letter-spacing: -.025em; }
.section-heading h1 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.section-heading h2 { font-size: 1.45rem; }
.section-intro { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.section-kicker, .tag { color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.search-box { position: relative; display: block; width: min(310px, 100%); }
.search-box input { width: 100%; padding-left: 38px; box-shadow: var(--shadow-sm); }
.search-icon { position: absolute; top: 7px; left: 13px; z-index: 1; color: var(--muted); font-size: 1.35rem; pointer-events: none; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card, .video-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .22s, border-color .22s, box-shadow .22s; }
.article-card:hover, .video-card:hover { transform: translateY(-5px); border-color: rgba(217, 37, 53, .45); box-shadow: var(--shadow-md); }
.article-card { position: relative; cursor: pointer; }
.save-article { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; color: #fff; background: rgba(9, 21, 38, .78); border: 1px solid rgba(255, 255, 255, .26); border-radius: 50%; font-size: 1.15rem; line-height: 1; backdrop-filter: blur(6px); }
.save-article:hover { color: #ffd36a; background: rgba(9, 21, 38, .94); }
.article-body, .video-card > div:last-child { padding: 16px 17px 18px; }
.article-body h3 { display: -webkit-box; overflow: hidden; margin: 7px 0 9px; line-height: 1.23; letter-spacing: -.018em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-body p { display: -webkit-box; overflow: hidden; min-height: 48px; margin-bottom: 12px; color: var(--muted); font-size: .91rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
small, .muted { color: var(--muted); font-size: .8rem; }
.article-card small { display: block; line-height: 1.4; }
.media-frame { position: relative; display: grid; overflow: hidden; min-height: 150px; place-items: center; background: linear-gradient(135deg, #132942, #d92535); }
.media-frame img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .45s; }
.article-card:hover .media-frame img, .video-card:hover .media-frame img { transform: scale(1.035); }
.article-card .media-frame, .video-card .media-frame { aspect-ratio: 16 / 10; min-height: 0; }
.media-fallback::after, .media-failed::after { content: ""; position: absolute; inset: 0; opacity: .23; background: radial-gradient(circle at 80% 15%, #fff 0 2px, transparent 3px), radial-gradient(circle at 20% 70%, #fff 0 1px, transparent 2px); }
.media-fallback-label { position: absolute; z-index: 1; display: grid; inset: 0; place-items: center; color: rgba(255, 255, 255, .88); font-size: .72rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.media-frame:not(.media-fallback):not(.media-failed) .media-fallback-label { display: none; }
.media-failed img { display: none; }
.hero-card .media-frame { place-items: stretch; background: linear-gradient(145deg, #b6172b, #122943 75%); }
.hero-card .media-frame img { min-height: 360px; object-fit: cover; }
.hero-card .media-fallback-label { font-size: 1rem; }
.empty-state { display: grid; min-height: 140px; place-items: center; padding: 30px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; background: rgba(255, 255, 255, .62); text-align: center; }
.split-section { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 22px; align-items: start; padding-top: 0 !important; margin-top: -12px; }
.community-section { display: grid; gap: 22px; padding-top: 0 !important; margin-top: -12px; }
.community-section .poll-panel { margin-top: 0; }
.poll-panel { align-self: start; height: fit-content; margin-top: -4px; transition: max-height 0.3s ease, padding 0.3s ease; }
.poll-panel.no-poll { padding: 18px 22px; }
.poll-panel.no-poll h2 { font-size: 1.1rem; color: var(--muted); margin-bottom: 4px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video-card h3 { display: -webkit-box; overflow: hidden; margin: 7px 0; font-size: 1rem; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.social-card { display: block; }
.social-embed { overflow: hidden; aspect-ratio: 16 / 9; min-height: 0; background: #07101d; }
.social-embed iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; }
.facebook-embed { display: grid; place-items: center; padding: 8px; background: var(--surface-soft); }
.social-description { display: -webkit-box; overflow: hidden; min-height: 42px; margin: 6px 0 11px; color: var(--muted); font-size: .86rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.social-actions { display: flex; margin-top: 12px; }
.social-actions .button { padding: 7px 11px; font-size: .75rem; }
.pagination-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.panel { padding: 23px; }
.panel > h2 { margin-top: 5px; }
#poll-options { display: grid; gap: 8px; margin-top: 10px; }
#poll-options.poll-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#poll-options.poll-options-3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
#poll-options.poll-options-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#poll-options.poll-options-many { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (max-width: 520px) {
  #poll-options.poll-options-2,
  #poll-options.poll-options-3,
  #poll-options.poll-options-4,
  #poll-options.poll-options-many { grid-template-columns: 1fr; }
}
.poll-option { display: flex; flex-direction: column; justify-content: space-between; width: 100%; margin: 0; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 11px; text-align: left; min-height: 42px; box-sizing: border-box; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.poll-option:hover { transform: translateY(-2px); border-color: var(--red); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.poll-option.selected { border-color: var(--red); background: rgba(217, 37, 53, .08); box-shadow: 0 0 0 2px rgba(217, 37, 53, .14); }
.poll-option-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.poll-option-row > strong { font-size: 0.82rem; line-height: 1.25; font-weight: 600; word-break: break-word; }
.poll-option-row > span { color: var(--red-dark); font-weight: 800; font-size: 0.78rem; flex-shrink: 0; }
.poll-result-track { display: block; height: 5px; margin-top: 6px; overflow: hidden; background: var(--line); border-radius: 99px; width: 100%; }
.poll-result-track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%); border-radius: inherit; transition: width .35s ease; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); align-items: center; gap: 24px; margin-bottom: 36px; background: linear-gradient(135deg, #fff, #fff5f5); border-color: #f2cbd0; }
.newsletter h2 { margin: 5px 0 7px; }
.inline-form { display: flex; gap: 9px; }
.inline-form input { flex: 1; min-width: 0; }
.status { min-height: 1.4em; margin-bottom: 0; color: var(--green); font-size: .85rem; }
.status.error { color: var(--red-dark); }
.site-footer { position: relative; color: #dbe7f4; background: var(--navy); border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 34px; padding: 46px 0 38px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { color: #fff; font-size: 1.15rem; letter-spacing: .1em; }
.footer-brand small { margin-top: 4px; color: #96abc3; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.site-footer p { margin: 0 0 13px; color: #9eb1c7; font-size: .86rem; }
.footer-motto { color: #ffadb5 !important; font-style: italic; }
.footer-live-link { display: inline-flex; margin-top: 6px; color: #ffadb5; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.footer-title { margin: 3px 0 15px; color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: flex-start; gap: 8px; color: #a8b9cd; font-size: .84rem; text-decoration: none; transition: color .2s, transform .2s; }
.footer-links a:hover { color: #fff; transform: translateX(2px); }
.contact-icon { width: 17px; color: #ff8e99; text-align: center; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { padding: 7px 10px; color: #dce7f3; border: 1px solid #2b425d; border-radius: 999px; font-size: .74rem; text-decoration: none; transition: background .2s, border-color .2s; }
.social-links a:hover { border-color: #ff8e99; background: rgba(217, 37, 53, .18); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0 22px; color: #8095ad; border-top: 1px solid #20364f; font-size: .74rem; }
.notice { padding: 13px 17px; color: #7c2d12; background: #fff7ed; border-bottom: 1px solid #fed7aa; text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.article-dialog { width: min(850px, calc(100% - 30px)); max-height: 90vh; padding: 32px; color: var(--ink); background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
.article-dialog::backdrop { background: rgba(3, 10, 20, .72); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 15px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 1.5rem; line-height: 1; }
.article-dialog h1 { margin: 9px 0 8px; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.1; }
.article-dialog .media-frame { min-height: 260px; margin: 18px 0; border-radius: 12px; }
.article-dialog .media-frame img { max-height: 420px; }
.lead { color: var(--muted-dark); font-size: 1.12rem; }
.article-copy { color: var(--muted-dark); }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 17px 0 20px; }
.button-outline { color: var(--red-dark); background: transparent; border-color: #efb1b8; box-shadow: none; }
.button-outline:hover { color: #fff; background: var(--red); }
.saved-dialog { width: min(700px, calc(100% - 30px)); max-height: 80vh; padding: 32px; color: var(--ink); background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
.saved-dialog::backdrop { background: rgba(3, 10, 20, .72); backdrop-filter: blur(3px); }
.saved-dialog h2 { margin: 5px 0 18px; }
.saved-list { display: grid; gap: 9px; }
.saved-item { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.saved-open { display: grid; flex: 1; gap: 3px; min-width: 0; color: var(--ink); background: none; border: 0; text-align: left; }
.saved-open strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-remove { flex: 0 0 30px; width: 30px; height: 30px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.1rem; }
.saved-remove:hover { color: var(--red); border-color: var(--red); }
.admin-body { background: radial-gradient(circle at 50% 0, #fff 0, var(--bg) 34rem); }
.reporter-main { padding: clamp(26px, 5vw, 54px) 0 76px; }
.reporter-intro { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.reporter-intro h1 { margin: 5px 0 8px; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.04em; }
.reporter-intro p { margin: 0; }
.reporter-login-panel { padding: 30px; }
.reporter-login-panel h2 { margin: 5px 0; }
.reporter-login-panel .stack-form label, .reporter-story-form label { color: var(--muted-dark); font-size: .84rem; font-weight: 750; }
.reporter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 0 20px; }
.reporter-toolbar h2 { margin: 4px 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.reporter-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); gap: 20px; align-items: start; }
.reporter-story-form { gap: 10px; padding: clamp(18px, 3vw, 30px); }
.reporter-story-form input, .reporter-story-form select, .reporter-story-form textarea { width: 100%; }
.reporter-story-form textarea { min-height: 100px; }
.reporter-story-form textarea.reporter-story-copy { min-height: 220px; }
.reporter-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.reporter-form-heading h3 { margin: 0; }
.reporter-form-heading p { margin: 4px 0 0; font-size: .84rem; }
.reporter-form-heading .status-chip { flex: 0 0 auto; }
.reporter-field { display: grid; gap: 6px; }
.reporter-language-tabs { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.reporter-language-tab { flex: 1; min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: 9px 12px; background: transparent; color: var(--muted-dark); font-weight: 800; cursor: pointer; }
.reporter-language-tab span { margin-left: 5px; color: var(--red); font-size: .68rem; text-transform: uppercase; }
.reporter-language-tab.active, .reporter-language-tab:hover { border-color: var(--red); background: var(--red); color: #fff; }
.reporter-language-tab.active span, .reporter-language-tab:hover span { color: #fff; }
.reporter-language-help { margin: -2px 0 0; font-size: .82rem; }
.reporter-language-panel { display: none; gap: 8px; margin: 0; }
.reporter-language-panel.active { display: grid; }
.reporter-language-panel label { margin-top: 4px; font-size: .84rem; font-weight: 750; }
.reporter-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 8px; }
.reporter-form-footer p { margin: 0; font-size: .84rem; }
.reporter-drafts-panel { position: sticky; top: 22px; padding: 20px; }
.reporter-drafts-panel .list-heading { align-items: center; }
.reporter-drafts-panel .list-heading h3 { margin: 1px 0 0; }
.reporter-draft-item { display: grid; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.reporter-draft-item:last-child { border-bottom: 0; }
.reporter-draft-item .status-chip { justify-self: start; }
.reporter-draft-item h4 { margin: 0; line-height: 1.35; }
.reporter-draft-item p, .reporter-draft-item small { margin: 0; color: var(--muted); }
.reporter-edit-draft { justify-self: start; margin-top: 3px; padding: 8px 12px; font-size: .82rem; }
@media (max-width: 900px) {
  .reporter-layout { grid-template-columns: 1fr; }
  .reporter-drafts-panel { position: static; }
}
@media (max-width: 700px) {
  .reporter-body .reporter-header-row { align-items: center; flex-direction: row; }
  .reporter-header-row .brand { flex: 1; }
  .reporter-header-row .brand-mark { width: 50px; height: 50px; flex-basis: 50px; }
  .reporter-header-row .brand-copy strong { font-size: 1rem; }
  .reporter-header-row .brand-copy small { font-size: .52rem; }
  .reporter-home-link { padding: 8px 10px; font-size: .76rem; }
  .reporter-toolbar, .reporter-form-footer { align-items: flex-start; flex-direction: column; }
  .reporter-toolbar .toolbar-actions { width: 100%; }
  .reporter-toolbar .toolbar-actions .button { flex: 1; }
  .reporter-form-heading { flex-direction: column; }
  .reporter-language-tab { padding-inline: 7px; font-size: .78rem; }
  .reporter-login-panel { padding: 22px; }
}
.admin-main { padding: 38px 0 72px; }
.admin-toolbar { align-items: flex-end; padding: 14px 0 28px; }
.toolbar-actions, .admin-header-actions, .form-actions, .item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.admin-toolbar h1 { margin: 5px 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.narrow-panel { width: min(500px, 100%); margin: 9vh auto; }
.stack-form { display: grid; gap: 12px; }
.stack-form h2 { margin: 0 0 3px; font-size: 1.2rem; }
.stack-form textarea { min-height: 108px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-grid .panel { box-shadow: var(--shadow-sm); }
#ticker-form { grid-column: 1 / -1; }
#ticker-form .form-row { grid-template-columns: minmax(0, 1.8fr) minmax(150px, 1fr) minmax(100px, .7fr); align-items: end; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0 0 24px; }
.dashboard-card { position: relative; display: grid; gap: 7px; min-height: 112px; padding: 16px 17px; overflow: hidden; background: linear-gradient(145deg, var(--surface), var(--surface-soft)); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.dashboard-card::after { position: absolute; right: -24px; bottom: -36px; width: 105px; height: 105px; content: ''; border: 1px solid rgba(217, 37, 53, .12); border-radius: 50%; }
.dashboard-card:hover { border-color: rgba(217, 37, 53, .42); box-shadow: 0 14px 28px rgba(8, 21, 39, .12); transform: translateY(-2px); }
.dashboard-card-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.dashboard-icon { display: grid; width: 25px; height: 25px; place-items: center; color: var(--red); background: rgba(217, 37, 53, .1); border-radius: 8px; font-size: .9rem; }
.dashboard-card span, .dashboard-card small { color: var(--muted); font-size: .78rem; }
.dashboard-card strong { color: var(--ink); font-size: 2rem; line-height: 1; letter-spacing: -.05em; }
.dashboard-card small { max-width: 22ch; }
.dashboard-card-primary { border-color: rgba(217, 37, 53, .3); }
.dashboard-card-primary .dashboard-icon { color: #fff; background: var(--red); }
.dashboard-card-attention { border-color: rgba(214, 145, 18, .38); }
.dashboard-card-attention .dashboard-icon { color: #8b5a00; background: rgba(214, 145, 18, .18); }
.dashboard-card-muted { background: var(--surface-soft); }
.button-sm { padding: 8px 12px; font-size: .78rem; }
.admin-nav { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 20px; padding: 5px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; }
.admin-tab { padding: 10px 16px; color: var(--muted-dark); background: transparent; border: 0; border-radius: 999px; white-space: nowrap; font-weight: 800; cursor: pointer; }
.admin-tab.active, .admin-tab:hover { color: #fff; background: var(--navy); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-list-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "articles videos" "articles tickers" "polls polls"; gap: 18px; align-items: stretch; }
.admin-list-grid > .panel:nth-child(1) { grid-area: articles; }
.admin-list-grid > .panel:nth-child(2) { grid-area: videos; }
.admin-list-grid > .panel:nth-child(3) { grid-area: tickers; }
.admin-list-grid > .panel:nth-child(4) { grid-area: polls; }
.admin-list-grid .panel { min-width: 0; min-height: 0; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-self: stretch; }
.list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.list-heading h3 { margin: 0; }
.list-search-box { margin: 8px 0 4px; }
.list-search-box input {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.list-search-box input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(217, 37, 53, 0.14);
  background: #fff;
}
:root[data-theme="dark"] .list-search-box input {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
:root[data-theme="dark"] .list-search-box input:focus {
  background: #0f1c30;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.admin-list::-webkit-scrollbar {
  width: 5px;
}
.admin-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}
.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-list-item:hover {
  background: #fff;
  border-color: rgba(217, 37, 53, 0.3);
}
:root[data-theme="dark"] .admin-list-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.admin-list-item > div:first-child { display: grid; gap: 3px; min-width: 0; flex: 1; }
.admin-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.84rem; }
.admin-list-item small { color: var(--muted); font-size: .74rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: nowrap !important;
  margin-left: auto;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.text-button:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  text-decoration: none;
}
.text-button.danger {
  color: #b42318;
  background: #fef2f2;
  border-color: #fecaca;
}
.text-button.danger:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}
:root[data-theme="dark"] .text-button {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
:root[data-theme="dark"] .text-button:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
:root[data-theme="dark"] .text-button.danger {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}
:root[data-theme="dark"] .text-button.danger:hover {
  color: #fff;
  background: #dc2626;
}
.status-chip { display: inline-block; padding: 2px 7px; border-radius: 999px; color: #fff; background: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.status-chip.published { background: #16804b; }
.status-chip.draft { color: #7c2d12; background: #fed7aa; }
.image-preview { display: grid; place-items: center; min-height: 100px; overflow: hidden; color: var(--muted); background: var(--surface-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; }
.image-preview img { width: 100%; height: 150px; object-fit: cover; }
.file-field { display: grid; gap: 6px; min-width: 0; color: var(--text); }
.file-field input[type="file"] { width: 100%; padding: 10px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.file-field small { color: var(--muted); font-size: .82rem; }
.form-options { align-items: center; }
.form-options label { display: flex; align-items: center; gap: 7px; color: var(--muted-dark); font-size: .9rem; }
.admin-header-actions .button { white-space: nowrap; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted-dark); }
.disabled-panel { opacity: .55; }
:root[data-theme="dark"] body { background: radial-gradient(circle at 12% 0%, #14243a 0, var(--bg) 38rem); }
:root[data-theme="dark"] .site-header { color: #fff; background: rgba(9, 21, 38, .96); border-bottom-color: rgba(255, 255, 255, .1); box-shadow: 0 8px 28px rgba(4, 12, 25, .12); }
:root[data-theme="dark"] .utility-bar { color: #a9b9ce; background: #06101d; border-bottom-color: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .utility-live { color: #ffadb5; }
:root[data-theme="dark"] .utility-live i { background: #32d583; box-shadow: 0 0 0 4px rgba(50, 213, 131, .14); }
:root[data-theme="dark"] .brand { color: #fff; }
:root[data-theme="dark"] .brand-mark { border-color: rgba(255, 255, 255, .42); }
:root[data-theme="dark"] .brand-copy strong { color: #fff; }
:root[data-theme="dark"] .brand-copy em { color: #ff8490; }
:root[data-theme="dark"] .brand-copy small { color: #a9b9ce; }
:root[data-theme="dark"] .site-header select { color: #fff; background: var(--navy-soft); border-color: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] select option, :root[data-theme="dark"] .site-header select option { color: #ffffff; background: #0b172a; }
:root[data-theme="dark"] .icon-button { color: #e7eef7; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .icon-button:hover { color: #fff; background: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] #saved-count { color: #ffadb5; }
:root[data-theme="dark"] .category { color: #a9b9ce; }
:root[data-theme="dark"] .category:hover { color: #fff; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .live-card { color: #fff; background: linear-gradient(145deg, var(--navy), #132a45); border-color: #1e3b5c; box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .live-card .section-kicker { color: #ff9ba4; }
:root[data-theme="dark"] .live-card h2 { color: #fff; }
:root[data-theme="dark"] .live-card .muted { color: #9db0c8; }
:root[data-theme="dark"] .live-pill { color: #b9f6d9; background: transparent; border-color: rgba(185, 246, 217, .28); }
:root[data-theme="dark"] .live-pill i { background: #32d583; box-shadow: 0 0 0 4px rgba(50, 213, 131, .16); }
:root[data-theme="dark"] .media-placeholder { color: #9db0c8; background: #07101d; border-color: #2a496a; }
:root[data-theme="dark"] .button-light { color: var(--navy); background: #fff; }
:root[data-theme="dark"] .button-light:hover { color: var(--red-dark); background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .16); }
:root[data-theme="dark"] .button-muted { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .button-muted:hover { background: rgba(255, 255, 255, .14); color: #fff; }
:root[data-theme="dark"] .empty-state { background: rgba(16, 27, 45, .68); }
:root[data-theme="dark"] .newsletter { background: linear-gradient(135deg, var(--surface), #2a1a29); border-color: #5c3040; }
:root[data-theme="dark"] .button-outline { color: #ffadb5; border-color: #8a4a55; }
:root[data-theme="dark"] .admin-body { background: radial-gradient(circle at 50% 0, #14243a 0, var(--bg) 34rem); }
:root[data-theme="dark"] .admin-tab.active, :root[data-theme="dark"] .admin-tab:hover { background: #d33b4a; }
:root[data-theme="dark"] .status-chip.draft { color: #ffd7bd; background: #643623; }
@media (max-width: 900px) {
  .hero-section, .split-section { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-card { min-height: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 1360px) {
  .district-page .district-back-link { position: static; transform: none; }
  .district-page .header-row { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
  .district-page .district-brand { flex: 1 1 380px; }
  .district-page .header-actions { margin-left: auto; }
  .headline-strip-section { align-items: stretch; flex-direction: column; gap: 10px; }
  .strip-label { display: flex; align-items: baseline; flex: 0 0 auto; gap: 10px; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .headline-strip { width: 100%; grid-template-columns: repeat(5, minmax(132px, 1fr)); overflow-x: auto; padding-bottom: 5px; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1180px); }
  .header-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .header-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .header-actions select { flex: 1 1 112px; }
  .header-actions .button, .header-actions .header-action-btn { flex: 1 0 auto; justify-content: center; }
  .category-nav { padding-left: 0; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card .media-frame, .hero-card .media-frame img { min-height: 240px; }
  .hero-copy { padding: 24px; }
  .utility-inner { overflow: hidden; white-space: nowrap; }
  .utility-inner span:nth-child(2) { display: none; }
  .headline-strip-section { align-items: flex-start; gap: 13px; }
  .strip-label { width: 100%; }
  .headline-strip { grid-template-columns: repeat(5, minmax(145px, 1fr)); padding-bottom: 8px; }
  .headline-item:first-child { padding-left: 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { display: grid; grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions, .admin-header-actions { width: 100%; }
  .toolbar-actions .button, .admin-header-actions .button { flex: 1; }
  .admin-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-list-grid { grid-template-columns: 1fr; grid-template-areas: none; }
  .admin-list-grid > .panel:nth-child(n) { grid-area: auto; }
}
@media (max-width: 480px) {
  .brand-copy strong { font-size: 1.05rem; }
  .brand-copy small { font-size: .55rem; }
  .brand-copy small.brand-slogan { width: min(68vw, 360px); font-size: .74rem; }
  .brand-mark { width: 58px; height: 58px; flex-basis: 58px; }
  .article-grid, .video-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 27px; }
  .footer-about { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .form-group-row { grid-template-columns: 1fr; }
  .article-dialog { padding: 25px 20px; }
}

/* Keep dense editorial controls usable on narrow screens. */
@media (max-width: 600px) {
  .admin-list-item { align-items: flex-start; flex-wrap: wrap; }
  .admin-list-item .item-actions { width: 100%; margin-left: 0; flex-wrap: wrap !important; }
  .admin-list-item .item-actions .text-button { flex: 1 1 auto; min-width: 68px; }
}

@media (max-width: 780px) {
  #ticker-form { grid-column: auto; }
  #ticker-form .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   3-COLUMN LAYOUT (Extreme Left Sponsors | Main Feed | Extreme Right WB Map)
   ========================================================================== */
.main-layout-container {
  width: min(1880px, calc(100% - 20px));
  margin: 0 auto;
  display: grid;
  grid-template-areas: "left main map";
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr) minmax(290px, 330px);
  gap: 18px;
  align-items: start;
  padding: 20px 0 36px;
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-animated-container { scroll-behavior: auto; }
  .sponsor-card.is-current .sponsor-info strong { animation: none; }
}
.main-news-column { grid-area: main; min-width: 0; }
.left-sidebar-stack { position: sticky; top: 184px; grid-area: left; display: flex; flex-direction: column; gap: 16px; min-width: 0; max-height: calc(100vh - 204px); overflow-y: auto; align-self: start; scrollbar-width: thin; overscroll-behavior: contain; }
.left-sidebar-stack > * { flex: 0 0 auto; }
.sidebar-live-card { padding: 16px; }
.sidebar-live-card h2 { margin: 7px 0 12px; font-size: 1.22rem; }
.sidebar-live-card .media-placeholder { min-height: 0; padding: 0; font-size: .85rem; text-align: center; }
.sidebar-live-card .media-placeholder iframe { height: 100%; }
.sidebar-live-card .muted { margin: 10px 0 0; font-size: .76rem; line-height: 1.45; }
.podcasts-sidebar { height: 202px; min-height: 202px; padding: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); gap: 7px; }
.podcasts-sidebar .sidebar-header { flex: 0 0 auto; margin-bottom: 0; padding-bottom: 6px; }
.podcasts-sidebar > .carousel-controls { margin-top: 6px; }
.podcasts-sidebar .sidebar-header h2 { font-size: 1rem; }
.featured-podcasts { display: flex; flex: 1 1 auto; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.featured-podcasts::-webkit-scrollbar, .sponsors-animated-container::-webkit-scrollbar { display: none; }
.podcast-episode { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 11px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.podcast-episode:first-child { border-top: 0; padding-top: 0; }
.podcast-cover { display: block; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, var(--red), #182d49); }
.podcast-cover-fallback { display: grid; place-items: center; color: #fff; font-size: 1.65rem; }
.podcast-episode-copy { min-width: 0; }
.podcast-episode-copy h3 { margin: 0; font-size: .88rem; line-height: 1.35; }
.podcast-episode-copy p { margin: 5px 0 8px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.podcast-facebook-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--red-dark); font-size: .74rem; font-weight: 800; text-decoration: none; }
.podcast-facebook-link:hover { text-decoration: underline; }
.podcast-episode-copy audio { display: block; width: 100%; height: 34px; margin-top: 8px; }
.podcast-empty { margin: 0; color: var(--muted); font-size: .82rem; }
.featured-podcasts > .podcast-episode { box-sizing: border-box; flex: 0 0 100%; min-width: 0; height: 100%; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 9px; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); scroll-snap-align: start; }
.featured-podcasts > .podcast-episode:first-child { padding: 8px; }
.featured-podcasts .podcast-cover { width: 56px; height: 56px; border-radius: 9px; }
.podcast-episode-copy h3, .podcast-episode-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
.podcast-episode-copy h3 { -webkit-line-clamp: 2; }
.podcast-episode-copy p { -webkit-line-clamp: 2; margin: 4px 0 0; }
.featured-podcasts .podcast-episode-copy audio { height: 30px; margin-top: 5px; }
.carousel-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; min-height: 28px; }
.carousel-arrow { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font: 700 1.2rem/1 sans-serif; cursor: pointer; }
.carousel-arrow:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.carousel-arrow:disabled { opacity: .4; cursor: default; }
.carousel-position { min-width: 38px; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; text-align: center; }

@media (max-width: 1280px) {
  .main-layout-container {
    width: min(100% - 20px, 1280px);
    grid-template-columns: 230px minmax(0, 1fr) 275px;
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .main-layout-container {
    grid-template-areas: "main" "left" "map";
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .left-sidebar-stack { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-height: none; overflow: visible; }
  .sponsors-sidebar { grid-column: 1 / -1; }
  .sponsors-sidebar, .wb-map-sidebar {
    position: static;
    max-height: none;
  }
  .wb-map-sidebar { grid-area: map; }
}

@media (max-width: 700px) {
  .left-sidebar-stack { grid-template-columns: minmax(0, 1fr); }
  .sponsors-sidebar { grid-column: auto; }
  .headline-strip-section { padding: 14px; }
}

/* --------------------------------------------------------------------------
   EXTREME LEFT SIDEBAR: SPONSORS & PARTNERS
   -------------------------------------------------------------------------- */
.sponsors-sidebar {
  height: auto;
  min-height: 220px;
  position: static;
  max-height: none;
  overflow: visible;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: thin;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.sidebar-header .section-kicker {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sidebar-header h2 {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}

.sponsor-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sponsor-live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 107, 0.2);
  animation: pulse 1.6s infinite;
}

.sponsors-animated-container {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  flex: 0 0 112px;
  height: 112px;
}

.sponsor-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.sponsors-animated-container > .sponsor-empty-card { box-sizing: border-box; flex: 0 0 100%; height: 100%; padding: 12px; }

.sponsor-empty-card .empty-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.sponsor-empty-card strong {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.sponsor-empty-card p {
  font-size: 0.78rem;
  color: var(--muted-dark);
  margin: 0;
  line-height: 1.35;
}

.sponsor-card {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--ink);
  background: radial-gradient(ellipse at 0% 100%, rgba(217, 37, 53, .14), transparent 62%), linear-gradient(135deg, var(--surface), var(--surface-soft));
  border: 1px solid rgba(217, 37, 53, .34);
  border-top: 3px solid var(--red);
  box-shadow: 0 8px 20px rgba(170, 20, 37, .14), inset 0 0 0 1px rgba(217, 37, 53, .06);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  scroll-snap-align: start;
}

.sponsor-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(170, 20, 37, .24), inset 0 0 0 1px rgba(217, 37, 53, .12);
  border-color: rgba(217, 37, 53, .72);
}
.sponsor-info { min-width: 0; }
.sponsor-card.is-current .sponsor-info strong { animation: sponsor-name-enter .75s ease-out both; }
@keyframes sponsor-name-enter { from { color: var(--red); text-shadow: 0 0 12px rgba(217, 37, 53, .5); transform: translateX(-16px); } to { color: var(--ink); text-shadow: 0 0 0 transparent; transform: translateX(0); } }

.sponsor-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(30deg);
  animation: sponsorShimmer 4s infinite linear;
  pointer-events: none;
  z-index: -1;
}

@keyframes sponsorShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.sponsor-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 12%, var(--surface));
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  backdrop-filter: blur(4px);
}

.sponsor-top-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  min-width: 0;
}

.sponsor-logo-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.sponsor-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sponsor-logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.sponsor-info strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sponsor-info small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-dark);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-info {
  min-width: 0;
  flex: 1;
}

/* Multilingual article editor */
.article-language-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.article-language-tab {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted-dark);
  font-weight: 800;
  cursor: pointer;
}

.article-language-tab.active,
.article-language-tab:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.article-language-panel { display: none; gap: 8px; }
.article-language-panel.active { display: grid; }
.article-language-panel label { margin-top: 4px; font-size: .78rem; font-weight: 800; color: var(--ink); }
.field-language { color: var(--red); font-size: .72rem; margin-left: 4px; }
.article-content-editor { min-height: 230px; line-height: 1.65; resize: vertical; }
.article-form-spacer { flex: 1; }
.article-editor-tools { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .75rem; }
.article-live-preview { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--ink); line-height: 1.55; }
.article-live-preview strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.article-live-preview p { margin: 7px 0; color: var(--muted-dark); }

@media (max-width: 600px) {
  .article-editor-tools { flex-direction: column; gap: 3px; }
  .article-language-tab { padding-inline: 7px; font-size: .78rem; }
}

/* --------------------------------------------------------------------------
   EXTREME RIGHT SIDEBAR: WEST BENGAL MAP & ALL 23 DISTRICTS
   -------------------------------------------------------------------------- */
.wb-map-sidebar {
  position: sticky;
  top: 184px;
  max-height: calc(100vh - 204px);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

.sidebar-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.district-count-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.wb-map-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.wb-leaflet-map {
  width: 100%;
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0d1a2d;
}

.wb-leaflet-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #0d1a2d;
  font: inherit;
}

.wb-leaflet-map .leaflet-control-zoom a,
.wb-leaflet-map .leaflet-control-attribution {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.92);
}

.wb-leaflet-map .leaflet-control-attribution {
  font-size: 9px;
}

.wb-leaflet-map .leaflet-tooltip {
  border: 1px solid var(--red);
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.wb-map-region-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.region-pill {
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.region-pill:hover, .region-pill.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.wb-map-svg-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.wb-svg-main {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}

.wb-district-group {
  cursor: pointer;
}

.wb-district-path {
  cursor: pointer;
  transition: fill 0.25s, stroke 0.25s, filter 0.25s, opacity 0.25s;
}

.wb-district-group:hover .wb-district-path,
.wb-district-path:hover {
  fill: var(--red) !important;
  stroke: #ffffff !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 10px rgba(217, 37, 53, 0.7));
  opacity: 1 !important;
}

.wb-district-tooltip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  z-index: 10;
  animation: fadeInTooltip 0.2s ease-out;
}

@keyframes fadeInTooltip {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wb-district-tooltip strong {
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1.1;
}

.wb-district-tooltip span {
  font-size: 0.75rem;
  color: #ffadb5;
  font-weight: 700;
}

.wb-district-tooltip small {
  font-size: 0.68rem;
  color: #a9b9ce;
  margin-top: 2px;
}

.wb-district-tooltip .tooltip-action {
  font-size: 0.68rem;
  font-weight: 800;
  color: #32d583;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.district-search-wrapper input {
  width: 100%;
  font-size: 0.8rem;
  padding: 8px 10px;
}

.wb-district-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.wb-district-list[hidden] { display: none; }
.district-search-empty { grid-column: 1 / -1; margin: 0; padding: 8px 4px; color: var(--muted); font-size: .78rem; }

.district-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.district-chip:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.district-chip.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* --------------------------------------------------------------------------
   DEDICATED DISTRICT PAGE STYLES (district.html)
   -------------------------------------------------------------------------- */
.district-hero-section {
  padding-top: 24px;
}

.district-hero-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.district-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.district-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.district-region-pill {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--red);
  background: rgba(217, 37, 53, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 37, 53, 0.2);
}

.district-hero-header h1 {
  margin: 4px 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.district-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 650px;
  margin: 4px 0 0;
}

.district-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.district-select-wrapper label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.district-select {
  min-width: 220px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.district-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-item span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-item strong {
  font-size: 1.1rem;
  color: var(--ink);
}

.status-live-text {
  color: var(--green) !important;
}

.district-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.district-map-sidebar { position: sticky; top: var(--district-sticky-top, 184px); max-height: calc(100vh - var(--district-sticky-top, 184px) - 14px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; z-index: 1; }

@media (max-width: 900px) {
  .district-content-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .district-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .district-map-sidebar { position: static; max-height: none; overflow: visible; }
}

.mini-wb-map-box {
  margin-top: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.district-leaflet-map {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1a2d;
}

.district-leaflet-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #0d1a2d;
}

.mini-map-path {
  cursor: pointer;
  transition: fill 0.2s, stroke-width 0.2s;
}

.mini-map-path:hover {
  fill: var(--red);
  stroke: #ffffff;
  stroke-width: 2px;
}

.mini-map-path.active {
  fill: var(--red);
  stroke: #ffffff;
  stroke-width: 2px;
}

.district-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  max-height: 180px;
  overflow-y: auto;
}

/* Responsive layouts for the public newsroom across desktop, tablet, and phone widths. */
@media (min-width: 1881px) {
  .main-layout-container { width: min(2040px, calc(100% - 48px)); gap: 24px; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr) minmax(300px, 360px); }
  .shell { width: min(1480px, calc(100% - 48px)); }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .main-layout-container {
    width: min(100% - 32px, 1168px);
    grid-template-areas: "main map" "left left";
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 16px;
  }
  .left-sidebar-stack { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; }
  .main-news-column .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .shell { width: min(100% - 32px, 960px); }
  .header-row { flex-wrap: wrap; gap: 12px 20px; }
  .header-row > .brand { flex: 1 1 100%; }
  .header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .main-layout-container { width: min(100% - 32px, 960px); }
  .main-news-column .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-leaflet-map { height: clamp(320px, 55vw, 430px); }
}

@media (max-width: 700px) {
  .shell, .main-layout-container { width: calc(100% - 24px); }
  .utility-inner { gap: 8px; font-size: .62rem; }
  .utility-end { gap: 7px; }
  .utility-social { gap: 5px; }
  .utility-social a { width: 16px; }
  .header-row { align-items: stretch; }
  .header-row > .brand { width: 100%; }
  .brand { gap: 10px; }
  .header-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .header-actions select { min-width: 0; width: 100%; }
  .header-actions .icon-button { min-width: 0; }
  .header-actions .header-action-btn { min-width: 0; padding-inline: 8px; white-space: normal; text-align: center; }
  .header-action-btn .jobs-label { flex-wrap: wrap; justify-content: center; }
  .category-nav { gap: 5px; scroll-snap-type: x proximity; }
  .category { scroll-snap-align: start; padding: 7px 11px; }
  .ticker-row { gap: 9px; }
  .ticker-row strong { letter-spacing: .08em; }
  .headline-strip-section { overflow: hidden; }
  .headline-strip { grid-template-columns: repeat(5, minmax(132px, 1fr)); }
  .section-heading { gap: 12px; }
  .main-news-column .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .article-body, .video-card > div:last-child { padding: 13px; }
  .left-sidebar-stack { gap: 12px; }
  .wb-leaflet-map { height: clamp(280px, 88vw, 400px); }
  .map-leaflet-container, .wb-map-box { min-width: 0; }
}

@media (max-width: 480px) {
  .shell, .main-layout-container { width: calc(100% - 20px); }
  .utility-live { letter-spacing: .04em; }
  .utility-end #sync-status { display: none; }
  .header-row { padding: 10px 0; }
  .brand-mark { width: 50px; height: 50px; flex-basis: 50px; border-radius: 11px; }
  .brand-copy strong { font-size: clamp(.88rem, 4.4vw, 1.05rem); letter-spacing: .04em; }
  .brand-copy small.brand-slogan { width: min(68vw, 320px); font-size: .68rem; }
  .header-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-actions .header-action-btn { min-height: 40px; }
  .category-nav { margin-inline: 0; width: 100%; padding-inline: 10px; }
  .main-layout-container { gap: 14px; padding-top: 14px; }
  .main-news-column .article-grid, .main-news-column .video-grid { grid-template-columns: minmax(0, 1fr); }
  .headline-strip-section { padding: 12px; }
  .headline-strip { grid-template-columns: repeat(5, minmax(116px, 1fr)); }
  .content-section { padding: 20px 0 26px; }
  .section-heading h1 { font-size: 1.5rem; }
  .newsletter { padding: 16px; }
  .inline-form { gap: 8px; }
  .inline-form input, .inline-form button { width: 100%; }
  .wb-map-sidebar { padding: 12px; }
  .wb-map-box { padding: 8px; }
  .district-region-filters, .wb-map-region-filter { flex-wrap: wrap; }
  .wb-leaflet-map { height: min(96vw, 360px); min-height: 250px; }
}

@media (max-width: 360px) {
  .utility-social { display: none; }
  .brand { gap: 8px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy small.brand-slogan { width: calc(100vw - 92px); font-size: .64rem; }
  .header-actions .header-action-btn { font-size: .72rem; }
  .main-news-column .article-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .utility-inner { padding: 3px 0; }
  .header-row { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; padding: 6px 0; }
  .header-row > .brand { flex: 1 1 100%; }
  .category-nav { gap: 4px; padding-bottom: 5px; }
  .category { padding: 4px 8px; font-size: .76rem; }
  .header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    justify-content: flex-start;
    overflow: visible;
    padding: 2px 0;
  }
  .header-actions > * { flex: 0 0 auto !important; }
  .header-actions select#language { width: 78px; min-width: 78px; min-height: 36px; padding: 6px 5px; }
  .header-actions .icon-button { width: 36px; min-width: 36px; min-height: 36px; padding: 5px; }
  .header-actions .header-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; min-height: 36px; padding: 5px; font-size: .7rem; white-space: nowrap; }
  .header-actions .subscribers-btn { gap: 3px; }
  .header-actions .sub-badge > span, .header-actions .jobs-label > span { display: none; }
  .header-actions .sub-badge { display: inline-flex; align-items: center; }
}

@media (max-width: 700px) {
  .district-page .header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand back" "actions actions";
    align-items: center;
    gap: 6px 8px;
  }
  .district-page .district-brand { grid-area: brand; flex: initial; min-width: 0; }
  .district-page .district-back-link { position: static; grid-area: back; transform: none; padding: 6px 9px; font-size: .72rem; }
  .district-page .header-actions { grid-area: actions; width: 100%; margin-left: 0; }
}

@media (max-width: 480px) {
  .header-row { padding: 5px 0; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 9px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy small.brand-slogan { margin-top: 3px; font-size: .58rem; }
  .utility-social { display: none; }
  .district-page .district-back-link { padding: 5px 8px; }
}

/* Floating Edge Drawer Buttons for Mobile */
.mobile-edge-bar {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-edge-bar {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 99;
    pointer-events: none;
  }
  .edge-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    background: var(--navy);
    border: 2px solid var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
}

/* Header Subscriber & Careers buttons */
.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.subscribers-btn {
  background: linear-gradient(135deg, rgba(217, 37, 53, 0.12), rgba(217, 37, 53, 0.04));
  border-color: rgba(217, 37, 53, 0.35);
  color: var(--red);
}

.subscribers-btn:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red-dark);
  box-shadow: 0 4px 14px rgba(217, 37, 53, 0.35);
  transform: translateY(-1px);
}

.sub-badge strong {
  font-size: 0.85rem;
  font-weight: 900;
}

.jobs-btn {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
  border-color: rgba(37, 99, 235, 0.35);
  color: #2563eb;
}

[data-theme="dark"] .jobs-btn {
  color: #60a5fa;
}

.jobs-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.hiring-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: #10b981;
  color: #ffffff;
  text-transform: uppercase;
  margin-left: 2px;
  animation: pulse-hire 2s infinite;
}

@keyframes pulse-hire {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.06); }
}

/* Modals styling */
.custom-modal {
  border: 0;
  background: transparent;
  padding: 16px;
  max-width: 580px;
  width: 100%;
}

.custom-modal::backdrop {
  background: rgba(9, 17, 31, 0.82);
  backdrop-filter: blur(8px);
}

.custom-modal .dialog-card {
  position: relative;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 26px;
  color: var(--ink);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header-hero {
  border-radius: 14px;
  padding: 20px;
  color: #ffffff;
  margin-bottom: 20px;
}

.modal-header-hero.sub-hero {
  background: linear-gradient(135deg, #091526, #d92535);
}

.modal-header-hero.jobs-hero {
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.modal-header-hero h2 {
  margin: 6px 0 4px;
  font-size: 1.45rem;
  color: #ffffff;
}

.modal-header-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.88rem;
}

.sub-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.sub-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.sub-stat-card strong {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--red);
}

.sub-stat-card small {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.modal-form .form-group {
  margin-bottom: 14px;
}

.modal-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
}

.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 37, 53, 0.15);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.job-opening-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.job-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
}

.job-info small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.button-sm {
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
}

/* Authentic West Bengal Map Vector Container Fixes */
.wb-svg-main {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.wb-svg-mini {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

.wb-district-path {
  transition: fill 0.2s ease, filter 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.wb-district-path:hover {
  fill: var(--red) !important;
  stroke: #ffffff !important;
  stroke-width: 3px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(217, 37, 53, 0.8));
}



.edge-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; text-decoration: none; background: #128c4a; border-color: #25d366; }
.edge-whatsapp svg { display: block; flex: 0 0 21px; width: 21px; height: 21px; fill: #fff; color: #fff; overflow: visible; }
.edge-whatsapp:hover { background: #075e36; }
