/* ==========================================================================
   GW ePaper — Indian ePaper theme (public site, auth, account)
   Loaded after app.css. Deep teal header with a red accent, white page on a
   grey ground, date strip, tabbed section headings and an app-style bottom
   bar on phones. Font stacks fall back to the Devanagari faces that ship with
   Windows, Android and macOS, so Hindi renders well without a font download.
   ========================================================================== */
:root {
  --brand: #0c3340;           /* header / navigation */
  --brand-dark: #082530;
  --accent: #c4161c; --accent-dark: #9a0e13; --accent-soft: #fdecec;
  --paper: #f1f2f4; --paper-2: #e9ebee; --rule: #dcdfe4; --ink: #17191d; --muted: #596069;
  --font-ui: "Mukta", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-display: "Mukta", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --bs-primary: #c4161c; --bs-primary-rgb: 196, 22, 28; --bs-link-color-rgb: 196, 22, 28; --bs-link-hover-color-rgb: 154, 14, 19;
  --radius: 4px;
}
h1, h2, h3, h4 { letter-spacing: 0; font-weight: 800; }
.brand-name { font-family: var(--font-brand); }
.lede, .lead-date { font-family: var(--font-ui); font-style: normal; }
.btn-primary { --bs-btn-focus-shadow-rgb: 196, 22, 28; }

/* header ------------------------------------------------------------------ */
.utility-bar { background: var(--brand-dark); }
.utility-bar .container-gw { min-height: 32px; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.masthead .container-gw { display: flex; align-items: center; gap: var(--s-4); min-height: 74px; }
.masthead-search { flex: 1; max-width: 420px; margin-inline: auto; display: none; }
.masthead-search .form-control { border-radius: 999px 0 0 999px; border-right: 0; padding-left: 1.1rem; }
.masthead-search .btn { border-radius: 0 999px 999px 0; }
.masthead-actions { margin-left: auto; display: flex; gap: var(--s-2); align-items: center; }
@media (min-width: 768px) { .masthead-search { display: flex; } }

.site-header { background: var(--brand); border-bottom: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.site-header .container-gw { min-height: 46px; gap: 0; }
.site-nav { display: flex; margin: 0; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: #fff; padding: .7rem 1rem; font-weight: 700; font-size: .95rem; border-bottom: 0; white-space: nowrap; }
.site-nav a:hover { background: rgba(255, 255, 255, .12); border-bottom: 0; color: #fff; }
.site-nav a[aria-current="page"] { background: var(--accent); color: #fff; border-bottom: 0; }
.site-nav .nav-sep { width: 1px; background: rgba(255, 255, 255, .28); margin: 10px 6px; flex-shrink: 0; }
.site-nav a.nav-paper { font-weight: 500; }
.nav-toggle { margin-left: 4px; color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; flex-shrink: 0; }
.nav-toggle:hover { background: rgba(255, 255, 255, .15); color: #fff; border-color: #fff; }
@media (min-width: 992px) { .nav-toggle { display: none; } }

.date-strip { background: var(--surface); border-bottom: 1px solid var(--rule); }
.date-strip .container-gw { display: flex; align-items: center; gap: var(--s-2); overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.date-strip .container-gw::-webkit-scrollbar { display: none; }
.date-strip-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; margin-right: 4px; }
.date-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 5px 10px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); line-height: 1.15; background: var(--surface); }
.date-chip b { font-size: 1.05rem; font-weight: 800; }
.date-chip span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.date-chip:hover { border-color: var(--accent); color: var(--accent); }
.date-chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.date-chip[aria-current="true"] span { color: #ffd9da; }
.date-strip form { margin-left: auto; flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.date-strip input[type="date"] { padding: .3rem .5rem; font-size: .88rem; width: auto; }

/* sections ---------------------------------------------------------------- */
.section-head { border-top: 0; border-bottom: 2px solid var(--brand); padding-top: 0; align-items: flex-end; margin-bottom: var(--s-4); }
.section-head h2 { background: var(--brand); color: #fff; font-size: 1.05rem; padding: 7px 16px 6px; border-radius: var(--radius) var(--radius) 0 0; }
.section-head a { padding-bottom: 5px; }
.band { background: var(--paper-2); }
.section { padding-block: var(--s-6); }
.page-head { padding-block: var(--s-5) var(--s-4); }
.kicker { background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 2px; letter-spacing: .08em; }
.sub-card .kicker { background: transparent; padding: 0; }
.auth-box .kicker { background: transparent; padding: 0; color: var(--accent); }
.auth-aside { background: var(--brand); }

.lead-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-top: var(--s-4); padding-inline: var(--s-4); }
@media (min-width: 768px) { .lead-wrap { padding-inline: var(--s-6); } }
.lead { padding-block: var(--s-5); }
.edition-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.edition-card:hover { border-color: #c5c9d0; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); }
.edition-card a.cover:hover, .edition-card a.cover:focus-visible { transform: none; }
.cover { box-shadow: var(--shadow-1); border-color: var(--rule); background: #e6e8eb; }
.edition-card-title { font-size: 1rem; }
.paper-chip { border-left: 3px solid var(--accent); }
.paper-chip strong { font-family: var(--font-ui); font-weight: 800; }
.finder, .plan-card { border-top-color: var(--brand); }
.plan-card.is-highlighted { border-top-color: var(--accent); }
.plan-name, .plan-price, .stat-value, .auth-quote, .error-code { font-family: var(--font-ui); font-weight: 800; }
.btn-ink { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); }
.btn-wa { --bs-btn-bg: #128c4b; --bs-btn-border-color: #128c4b; --bs-btn-color: #fff; --bs-btn-hover-bg: #0d6f3b; --bs-btn-hover-border-color: #0d6f3b; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #0d6f3b; --bs-btn-active-color: #fff; }
.account-nav li a[aria-current="page"], .tabs-gw a[aria-current="page"], .btn-quiet.is-active { background: var(--brand); border-color: var(--brand); }
.sub-card { background: var(--brand); }
.avatar, .paper-chip-logo { background: var(--brand); }
.site-footer { background: var(--brand-dark); border-top: 4px solid var(--accent); margin-top: var(--s-7); }

/* app-style bottom bar on phones ------------------------------------------ */
.app-tabs { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 62px; }
  .app-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 1030; background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom); }
  .app-tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px 6px; font-size: .68rem; font-weight: 700; color: var(--muted); text-decoration: none; }
  .app-tabs a .bi { font-size: 1.2rem; }
  .app-tabs a[aria-current="page"] { color: var(--accent); }
  .masthead .container-gw { min-height: 58px; }
  .masthead-actions .btn-quiet { display: none; }
  .edition-grid { gap: var(--s-3); }
  .section-head h2 { font-size: .98rem; padding-inline: 12px; }
  .lead-wrap { margin-inline: calc(var(--s-4) * -1); border-inline: 0; border-radius: 0; margin-top: 0; }
  .auth-shell { padding-bottom: 0; }
}
@media print { .masthead, .date-strip, .app-tabs { display: none !important; } }

/* header / footer refinements --------------------------------------------- */
body { font-size: 16.5px; line-height: 1.55; }
.utility-bar { font-size: .84rem; font-weight: 500; }
.utility-bar time { color: #dfe7ea; }
.brand-name { font-size: 1.6rem; line-height: 1; }
.brand-tag { font-family: var(--font-ui); font-weight: 600; letter-spacing: .14em; }
.brand-mark { width: 42px; height: 42px; }
.masthead-search .form-control { font-size: .95rem; }
.site-nav a { font-size: 1rem; letter-spacing: .01em; }
.site-footer { font-size: .97rem; line-height: 1.6; }
.site-footer h2 { font-family: var(--font-ui); font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: #fff; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-grid { padding-block: var(--s-6); gap: var(--s-5) var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: auto; } }
.footer-links { gap: .5rem; }
.footer-links a { display: inline-block; padding-block: 1px; }
.site-footer .brand-name { font-size: 1.5rem; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .14); font-size: .88rem; align-items: center; }
.footer-bottom a { color: #fff; font-weight: 700; }
@media (max-width: 767px) { .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; } .brand-name { font-size: 1.4rem; } .brand-mark { width: 38px; height: 38px; } }

/* desktop refinements ----------------------------------------------------- */
@media (min-width: 992px) {
  :root { --container: 1280px; }
  .masthead .container-gw { min-height: 84px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-name { font-size: 1.9rem; }
  .masthead-search { max-width: 480px; }
  .masthead-search .form-control, .masthead-search .btn { height: 44px; }
  .masthead-actions .btn { padding: .5rem 1.15rem; font-size: .98rem; }
  .site-nav a { padding: .8rem 1.15rem; font-size: 1.04rem; }
  .date-chip { min-width: 70px; padding: 6px 12px; }
  .edition-grid { gap: var(--s-5); }
  .edition-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lead { grid-template-columns: 320px 1fr; }
  .page-head h1 { font-size: 2.3rem; }
}
