/* Public Mood — shared public styles (brand tokens, header, footer, picker). */
:root {
  --brand: #053CA0;
  --brand-dark: #032A72;
  --brand-tint: #e8eefa;
  --accent: #E9A319;
  --ink: #1b1f1e;
  --muted: #5f6b68;
  --line: #dfe5e3;
  --bg: #f5f7f6;
  --card: #ffffff;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --font: "Noto Sans Telugu", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
button, input, select { font: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { background: var(--brand); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.logo { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo .te { font-size: 24px; font-weight: 800; letter-spacing: .2px; }
.logo .en { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.site-nav a:hover { background: rgba(255,255,255,.12); }
.site-nav a.active { background: var(--accent); color: #1b1f1e; }
.date-strip { background: var(--brand-dark); color: #cfe3dd; font-size: 13px; }
.date-strip .wrap { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; background: #0B1F45; color: #b7c3d9; font-size: 14px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: #e6efec; }

/* ---------- buttons / fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; text-decoration: none; font-size: 15px; min-height: 40px; }
.btn:hover { border-color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1b1f1e; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; min-height: 40px; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }

/* ---------- ePaper picker ---------- */
.ep-picker { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.ep-picker .btn { min-width: 120px; }
.ep-picker-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .ep-picker { grid-template-columns: 1fr 1fr; }
  .ep-picker .field-date { grid-column: 1 / -1; }
  .ep-picker .btn { grid-column: 1 / -1; }
  .logo .en { display: none; }
  .logo .te { font-size: 20px; }
  .site-header .wrap { gap: 10px; min-height: 52px; }
  .site-nav a { padding: 6px 9px; font-size: 14px; }
  .hide-xs { display: none; }
  .date-strip .wrap > span:last-child { display: none; }
  body.reader-page .date-strip { display: none; }
}

/* ---------- edition cover cards ---------- */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.cover { display: block; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s; }
.cover:hover { transform: translateY(-2px); }
.cover .thumb { aspect-ratio: 0.707; background: #eef1f0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover .thumb canvas, .cover .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cover .cap { padding: 10px 12px; }
.cover .cap b { display: block; font-size: 15px; }
.cover .cap span { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #1b1f1e; letter-spacing: .3px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
