/* Public article pages. Mobile first; system fonts (nothing loaded from elsewhere). */
:root {
  --text: #1f2328;
  --muted: #5f6368;
  --line: #e5e7eb;
  --accent: #1976d2;
  --breaking: #c62828;
  --surface: #ffffff;
  --page: #f6f7f9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .inner,
main,
.site-footer .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

main { padding-top: 24px; padding-bottom: 40px; }

.article {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px 20px;
}

.badge-breaking {
  display: inline-block;
  background: var(--breaking);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 12px; }

.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.media { margin: 0 -20px 20px; }
.media img,
.media video { width: 100%; height: auto; display: block; }

.lead { font-size: 1.1rem; color: var(--muted); }

.body img { max-width: 100%; height: auto; }

.get-app {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--text);
}

.card img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.card .title { font-weight: 600; line-height: 1.35; }
.card .meta { margin: 4px 0 0; font-size: 0.8rem; }

h2 { font-size: 1.2rem; margin: 0 0 16px; }

.site-footer { color: var(--muted); font-size: 0.85rem; padding: 24px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.footer-links a { color: var(--muted); }

/* Pages written in the admin (page.html): terms, privacy, … */
.languages { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.app-page h2 { margin-top: 28px; }
.app-page li { margin-bottom: 6px; }

/* The advertiser's report (ad-report.html) */
.ad-report .meta { margin-bottom: 4px; }
.status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--line); }
.status-live { background: #e6f4ea; color: #137333; }
.status-scheduled { background: #e8f0fe; color: #1a56c4; }
.status-paused { background: #fef7e0; color: #a05a00; }
.status-ended { background: var(--line); color: var(--muted); }
.creative { margin: 16px 0; }
.creative img { display: block; width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.creative.strip img { aspect-ratio: 6.4 / 1; }
.creative.card img { max-width: 480px; aspect-ratio: 16 / 9; }
.creative.full img { max-width: 220px; aspect-ratio: 9 / 16; }
.creative.square img { max-width: 160px; aspect-ratio: 1 / 1; }
.status-cancelled { background: #fdecea; color: #b3261e; }
.facts caption { text-align: left; font-weight: 600; padding: 8px 0; }
.creative figcaption { margin-top: 8px; display: grid; gap: 2px; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.figures div { background: var(--page); border-radius: 10px; padding: 12px; }
.figures .value { display: block; font-size: 1.5rem; font-weight: 700; }
.figures .label { color: var(--muted); font-size: 0.85rem; }
@media (min-width: 600px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.facts, .days { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 20px; }
.facts th, .days th { text-align: left; color: var(--muted); font-weight: 500; }
.facts th { width: 40%; }
.facts th, .facts td, .days th, .days td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.days .num { text-align: right; }
.note { color: var(--muted); font-size: 0.85rem; }
