/* Texas Talk — TCTXNews.com */
:root {
  --navy: #0a1c38;
  --navy-dark: #061224;
  --navy-light: #14305c;
  --red: #c8102e;
  --red-dark: #9c0b23;
  --gold: #f2b705;
  --white: #ffffff;
  --paper: #f7f5f0;
  --ink: #14181f;
  --muted: #5c6470;
  --line: #e3ded4;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 18, 36, 0.12);
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; }

/* ---------- Countdown bar ---------- */
.countdown-bar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.85rem;
  border-bottom: 3px solid var(--red);
}
.countdown-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  padding-top: 8px; padding-bottom: 8px;
}
.cd-label { font-weight: 700; letter-spacing: 0.04em; }
.cd-time {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  color: var(--gold); letter-spacing: 0.06em;
}
.cd-sub { color: #b9c4d6; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-dark); overflow: hidden; }
.hero img { width: 100%; height: clamp(320px, 52vw, 560px); object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 max(20px, calc((100vw - 1140px) / 2 + 20px)) 40px;
  background: linear-gradient(to top, rgba(6, 18, 36, 0.88) 0%, rgba(6, 18, 36, 0.35) 55%, rgba(6, 18, 36, 0.05) 100%);
  color: var(--white);
}
.hero-kicker {
  margin: 0 0 6px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; font-size: 0.78rem; color: var(--gold);
}
.hero-title {
  margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02;
  text-transform: uppercase; letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.hero-sub { margin: 0 0 20px; max-width: 620px; font-size: 1.06rem; color: #e8edf5; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(200, 16, 46, 0.4); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: rgba(10, 28, 56, 0.08); }

/* ---------- Nav ---------- */
.main-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); border-bottom: 3px solid var(--red);
  box-shadow: 0 4px 16px rgba(6, 18, 36, 0.35);
}
.nav-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-top: 0; padding-bottom: 0; }
.nav-inner a {
  color: #dbe3f0; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 14px 12px; white-space: nowrap;
}
.nav-inner a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; color: var(--white) !important; font-size: 1.02rem !important; }
.nav-cta { margin-left: auto; background: var(--red); color: var(--white) !important; border-radius: 999px; padding: 8px 18px !important; margin-top: 6px; margin-bottom: 6px; }
.nav-cta:hover { background: var(--red-dark) !important; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.kicker {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
  border-bottom: 3px solid var(--red); padding-bottom: 4px; margin-bottom: 10px;
}
.section-head h2 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--navy-dark);
}
.section-sub { margin: 0; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }

/* ---------- Voter hub ---------- */
.vote-band { background: linear-gradient(180deg, #fff 0%, #fdf8ee 100%); border-bottom: 4px solid var(--navy); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px;
}
.card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-dark); text-transform: uppercase; letter-spacing: 0.02em; }
.card p { margin: 0 0 16px; }
.vote-card { border-top: 5px solid var(--red); }
.vote-links { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.vote-links a { color: var(--navy-light); font-weight: 600; font-size: 0.92rem; }

.poll-search-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.loc-search {
  flex: 1 1 160px; padding: 12px 14px; font-size: 1rem;
  border: 2px solid var(--line); border-radius: 10px; font-family: var(--font-body);
}
.loc-search:focus { outline: none; border-color: var(--navy-light); }
#poll-map { height: 300px; border-radius: 10px; border: 1px solid var(--line); z-index: 1; }
.loc-results { margin-top: 14px; max-height: 260px; overflow-y: auto; }
.nearest-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.nearest-item:last-child { border-bottom: none; }
.nearest-item .dist { float: right; color: var(--red); font-weight: 700; font-size: 0.88rem; }
.nearest-item a { color: var(--navy-light); font-weight: 700; }

.dates-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 700px) { .dates-strip { grid-template-columns: repeat(2, 1fr); } }
.date-chip {
  background: var(--navy); color: var(--white); border-radius: 12px;
  padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.date-chip.hot { background: var(--red); }
.date-big { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; }
.date-small { font-size: 0.8rem; color: #cfd8e8; }
.date-chip.hot .date-small { color: #ffe3e8; }

/* ---------- Pinned story ---------- */
.pinned-band { background: var(--navy-dark); color: #e8edf5; }
.pinned-band .section-head h2 { color: var(--white); }
.pinned-band .section-sub { color: #aebbcf; }
.pinned-kicker { color: var(--gold); border-color: var(--gold); }
.pinned-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  border-top: 6px solid var(--red);
}
.pinned-card img.pinned-img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; display: block; }
.pinned-credit { margin: 0; padding: 8px 30px 0; font-size: 0.78rem; color: var(--muted); font-style: italic; }
.pinned-body { padding: 30px; }
.pinned-tag {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.pinned-body h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.2; color: var(--navy-dark); }
.pinned-body p { margin: 0 0 12px; }
.pinned-facts { margin: 18px 0; padding: 0; list-style: none; }
.pinned-facts li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; font-size: 0.96rem; }
.pinned-facts li::before { content: "▸"; position: absolute; left: 6px; color: var(--red); font-weight: 700; }
.pinned-sources { font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.pinned-sources a { color: var(--navy-light); }

/* ---------- Most talked about ---------- */
.toppost-featured { display: grid; grid-template-columns: 280px 1fr; gap: 0; overflow: hidden; padding: 0; }
@media (max-width: 700px) { .toppost-featured { grid-template-columns: 1fr; } }
.toppost-featured .card-img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.toppost-featured .card-body { padding: 26px; }
.card-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--navy); color: var(--white);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.card-text { font-size: 1.02rem; white-space: pre-line; }
.eng-big { display: flex; gap: 16px; margin: 14px 0; font-weight: 700; color: var(--navy); }
.card-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.card-link { font-weight: 700; color: var(--red); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Social grid ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .social-grid { grid-template-columns: 1fr; } }
.social-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.12s ease;
}
.social-card:hover { transform: translateY(-3px); }
.social-card .card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.social-card .page-badge-tt { background: var(--red); }
.social-card .page-badge-tc { background: var(--navy-light); }
.social-text { font-size: 0.93rem; white-space: pre-line; flex: 1; }
.social-meta { font-size: 0.8rem; color: var(--muted); }

/* ---------- Headlines ---------- */
.feed-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--navy-dark); border-bottom: 3px solid var(--red);
  padding-bottom: 8px; margin: 0 0 6px;
}
.news-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; }
.news-item h4 { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.35; }
.news-item h4 a { color: var(--ink); text-decoration: none; }
.news-item h4 a:hover { color: var(--red); }
.news-item .dek { margin: 0 0 4px; color: var(--muted); font-size: 0.92rem; }
.news-item .src { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Alerts ---------- */
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 12px 0; }
#sms-form .loc-search { width: 100%; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #aebbcf; padding: 40px 0 28px; border-top: 4px solid var(--red); }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-tag { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: #aebbcf; letter-spacing: 0; margin-left: 8px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.footer-links a { color: #dbe3f0; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-fine { font-size: 0.78rem; color: #7e8ba1; margin: 0; }
