/* Stateline MEDIA — tema minimalis modern & profesional (light) */
:root {
  --bg: #ffffff;
  --bg2: #f7f8fa;
  --card: #ffffff;
  --ink: #14171c;
  --text: #2b3038;
  --muted: #6b7280;
  --line: #e8eaed;
  --accent: #d4202c;
  --accent-dark: #a8151f;
  --head: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); line-height: 1.28; color: var(--ink); }

/* ===== Topbar ===== */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar-right { letter-spacing: 1.5px; text-transform: uppercase; font-size: .68rem; }
.lang-switch { margin-left: 12px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: .75rem; letter-spacing: 1px; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }

/* ===== Ticker ===== */
.ticker { background: var(--bg2); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: stretch; height: 38px; }
.ticker-label {
  display: flex; align-items: center; flex-shrink: 0;
  color: var(--accent); font-family: var(--head); font-weight: 800;
  font-size: .72rem; letter-spacing: 2px; padding: 0 16px 0 0;
}
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move { display: inline-block; white-space: nowrap; animation: tick 50s linear infinite; }
.ticker-viewport:hover .ticker-move { animation-play-state: paused; }
.tick-item { display: inline-block; margin-right: 48px; font-size: .84rem; color: var(--text); }
.tick-item a { text-decoration: none; }
.tick-item a:hover { color: var(--accent); }
.tick-item::before { content: "●"; color: var(--accent); margin-right: 10px; font-size: .55rem; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } }

/* ===== Masthead & nav ===== */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 24px 16px; max-width: 1120px; margin: 0 auto; }
.brand { text-decoration: none; font-family: var(--head); font-weight: 900; letter-spacing: 2px; font-size: 1.7rem; color: var(--ink); }
.brand-stateline { color: var(--ink); }
.brand-media { color: var(--accent); }
.masthead-tag { color: var(--muted); font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; }
.mainnav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.mainnav::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 46px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.96));
  pointer-events: none;
}
.nav-inner { display: flex; gap: 2px; overflow-x: auto; }
.nav-inner a {
  color: var(--muted); text-decoration: none; font-family: var(--head);
  font-weight: 600; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 14px 12px; white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav-inner a:hover { color: var(--ink); }
.nav-inner a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-inner a.lang-link { margin-left: auto; color: var(--ink); font-weight: 800; }

/* ===== Section titles ===== */
.section { padding: 36px 0 8px; }
.section-title {
  font-size: .95rem; font-weight: 800; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--ink);
  padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 56px; height: 2px; background: var(--accent);
}

/* ===== Hero ===== */
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; }
.hero-main { position: relative; border-radius: 12px; overflow: hidden; min-height: 400px; display: block; text-decoration: none; background: var(--bg2); }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,14,.88) 0%, rgba(10,10,14,.35) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 26px;
}
.hero-main h2, .hero-main .excerpt { color: #fff; }
.hero-main h2 { font-size: 1.75rem; font-weight: 800; margin: 12px 0 8px; }
.hero-main .excerpt { color: rgba(255,255,255,.82); font-size: .95rem; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-item { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; }
.hero-item img { width: 128px; height: 92px; object-fit: cover; flex-shrink: 0; }
.hero-item .hi-body { padding: 12px 14px 12px 0; }
.hero-item h3 { font-size: .95rem; font-weight: 700; }
.hero-item .meta { font-size: .76rem; color: var(--muted); margin-top: 6px; display: block; }
.hero-item:hover h3 { color: var(--accent); }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,23,28,.10); }
.card img.cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 18px 20px 20px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin: 10px 0 8px; }
.card .excerpt { color: var(--muted); font-size: .9rem; }
.meta { display: block; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.badge {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff; background: var(--accent);
  padding: 5px 12px; border-radius: 6px;
}
.empty { color: var(--muted); padding: 60px 0; text-align: center; }

/* ===== Index rows ===== */
.index-row { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.index-row img { width: 172px; height: 100px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.index-row h3 { font-size: 1.02rem; }
.index-row:hover h3 { color: var(--accent); }

/* ===== Article ===== */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 32px 24px 10px; }
.breadcrumb { margin-bottom: 14px; font-size: .82rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article-title { font-size: 2.15rem; font-weight: 800; margin: 14px 0 10px; letter-spacing: -.01em; }
.article-meta { color: var(--muted); font-size: .86rem; margin-bottom: 22px; }
.article-meta .dot { margin: 0 8px; }
.cover-figure { margin: 0 0 26px; }
.cover-figure img { width: 100%; border-radius: 12px; }
.cover-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.cover-figure .credit a { color: var(--accent); }
.article-body h2 { font-size: 1.28rem; margin: 32px 0 12px; letter-spacing: -.01em; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body .cover-figure { margin: 24px 0; }
.factbox { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 0 0 8px; }
.factbox h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; color: var(--ink); }
.sources { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-top: 30px; }
.sources h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.sources ul { margin-left: 20px; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--text); margin: 6px 0 24px; border-left: 3px solid var(--accent); padding-left: 18px; }
.facts { margin: 0 0 28px 22px; }
.facts li { margin-bottom: 10px; }
.facts li::marker { color: var(--accent); font-weight: 800; }
.embeds h2, .share h2, .related h2 { font-size: 1.05rem; margin: 34px 0 16px; text-transform: uppercase; letter-spacing: 1.5px; }
.article-body, .sources, .factbox { overflow-wrap: break-word; }
.embed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 340px)); gap: 18px; justify-content: start; }
.embed iframe { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #000; }
.embed-alt { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.tags { margin: 28px 0 6px; }
.tag { display: inline-block; margin: 0 8px 10px 0; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; color: var(--text); background: var(--bg2); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .86rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); cursor: pointer; font-family: var(--body);
}
.share-btn:hover { border-color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 18px; padding-bottom: 44px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 0 28px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--head); font-weight: 900; letter-spacing: 2px; font-size: 1.15rem; color: var(--ink); }
.tagline { color: var(--muted); margin-top: 10px; font-size: .9rem; }
.site-footer h4 { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; color: var(--ink); }
.footer-links a { display: block; color: var(--muted); text-decoration: none; padding: 7px 0; margin-bottom: 2px; font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.socials a {
  display: inline-block; margin: 0 8px 10px 0; padding: 11px 18px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  text-decoration: none; font-weight: 600; border-radius: 8px; font-size: .84rem;
}
.socials a:hover { border-color: var(--ink); }
.copy { color: var(--muted); font-size: .78rem; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }

/* ===== Newsletter ===== */
.newsletter { margin-top: 18px; }
.newsletter h4 { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; color: var(--ink); }
.newsletter form { display: flex; gap: 8px; max-width: 320px; }
.newsletter input[type="email"] {
  flex: 1; padding: 10px 14px; font-size: .88rem; font-family: var(--body);
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.newsletter button {
  padding: 10px 18px; font-size: .86rem; font-weight: 700; font-family: var(--body);
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; cursor: pointer;
}
.newsletter button:hover { background: var(--accent-dark); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 300px; }
  .hero-main h2 { font-size: 1.4rem; }
  .article-title { font-size: 1.65rem; }
  .brand { font-size: 1.35rem; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .index-row img { width: 118px; height: 74px; }
}
