/* Mana Ooru News — public site & app
   Palette from village life: Godavari river teal, pasupu (turmeric), kumkum, paddy green. */
:root {
  --river: #0E3B43;
  --river-2: #1B5560;
  --pasupu: #F2B705;
  --pasupu-soft: #FFF4CC;
  --kumkum: #C8102E;
  --paddy: #2F6B2F;
  --surface: #F4F7F5;
  --paper: #FFFFFF;
  --ink: #0F2226;
  --muted: #5B6B6E;
  --line: #DCE4E2;
  --focus: #F2B705;
  --radius-s: 6px;
  --radius-m: 12px;
  --tabbar-h: 62px;
  --font: "Anek Telugu", "Noto Sans Telugu", "Noto Sans Telugu UI", "Kohinoor Telugu", "Telugu Sangam MN", "Nirmala UI", "Gautami", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0B1A1D; --paper: #11252A; --ink: #E7EFEE; --muted: #97ABAD; --line: #24413F;
    --river: #0A2E35; --river-2: #7FC3CC; --pasupu-soft: #3A2F08; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-variation-settings: "wdth" 100;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
.lang-te body, body.lang-te { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 0;
  background: var(--river); color: #fff; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--river-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--paper); }
.btn--yellow { background: var(--pasupu); color: #1d1600; }
.btn--yellow:hover { background: #ffc61a; }
.btn--red { background: var(--kumkum); }
.btn--red:hover { background: #a50d26; }
.btn--wa { background: #1F8F4E; }
.btn--wa:hover { background: #18773f; }
.btn--wide { display: flex; width: 100%; margin: 16px 0; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; font-size: 18px; }
.iconbtn:hover { background: rgba(255,255,255,.12); }
.pillbtn { border: 0; background: var(--pasupu); color: #1d1600; font: 700 14px/1 var(--font); padding: 10px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }

/* ---------- Install bar ---------- */
.installbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.installbar img { border-radius: 10px; flex: none; }
.installbar__text { flex: 1; min-width: 0; line-height: 1.3; }
.installbar__text strong { display: block; font-size: 16px; }
.installbar__text span { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.installbar__x { color: var(--muted); width: 36px; height: 36px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--river); color: #fff; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
.masthead__inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1; }
.brand img { border-radius: 8px; flex: none; }
.brand__name {
  font-weight: 750; font-size: 22px; line-height: 1.1; letter-spacing: -.01em;
  font-variation-settings: "wdth" 78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topnav { display: none; gap: 4px; }
.topnav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: rgba(255,255,255,.85); }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topnav a.is-on { color: var(--river); background: var(--pasupu); }
.masthead__tools { display: flex; align-items: center; gap: 4px; flex: none; }
.bell { position: relative; }
.bell.is-on { color: var(--pasupu); }
.bell__dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--kumkum); box-shadow: 0 0 0 2px var(--river); }
.langsw { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.langsw a { text-decoration: none; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1.2; color: rgba(255,255,255,.8); }
.langsw a.is-on { background: #fff; color: var(--river); }

/* ---------- Ticker: the turmeric threshold band ---------- */
.ticker {
  background: var(--pasupu); color: #241a00; overflow: hidden; position: relative;
  border-bottom: 3px solid var(--kumkum); font-weight: 600; font-size: 16px;
}
.ticker__track { display: flex; width: max-content; animation: tick var(--tick-dur, 40s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; flex: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 14px; padding: 9px 28px 9px 0; white-space: nowrap; }
.ticker__item a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ticker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kumkum); flex: none; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; width: auto; overflow-x: auto; }
  .ticker__run[aria-hidden] { display: none; }
}

.offline-note { background: var(--ink); color: var(--surface); text-align: center; font-size: 14px; padding: 6px; }
.notice { background: var(--pasupu-soft); border-left: 4px solid var(--pasupu); padding: 10px 14px; border-radius: var(--radius-s); margin: 12px 0; }

/* ---------- Category chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  --c: var(--river); flex: none; display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--c); }
.chip.is-on { background: var(--river); color: #fff; box-shadow: none; }

.catchip {
  --c: var(--river); display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3;
  color: var(--c); padding-left: 10px; position: relative;
}
.catchip::before { content: ""; position: absolute; left: 0; top: .35em; width: 5px; height: .8em; border-radius: 2px; background: var(--c); }
@media (prefers-color-scheme: dark) { .catchip { filter: brightness(1.6) saturate(.8); } }
.flag { font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 4px; }
.flag--imp { background: var(--kumkum); color: #fff; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 22px; }
.byline { color: var(--muted); font-size: 14px; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Layout ---------- */
.main { min-height: 50vh; }
.layout { display: grid; gap: 24px; padding-top: 10px; }
.layout__main { min-width: 0; }
.sechead {
  font-size: 22px; font-weight: 750; font-variation-settings: "wdth" 85; line-height: 1.2;
  margin: 28px 0 8px; display: flex; align-items: baseline; gap: 10px;
}
.sechead .count { font-size: 15px; color: var(--muted); font-weight: 600; }
.sechead--local { color: var(--paddy); }
@media (prefers-color-scheme: dark) { .sechead--local { color: #8BC88B; } }

/* Lead story */
.lead { margin-top: 8px; }
.lead__media { display: block; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__text { padding: 12px 2px 0; }
.lead__title { font-size: clamp(26px, 6.4vw, 40px); line-height: 1.15; font-weight: 780; font-variation-settings: "wdth" 80; margin: 6px 0 8px; letter-spacing: -.01em; }
.lang-te .lead__title { line-height: 1.3; }
.lead__title a, .row__title a, .tile__title a { text-decoration: none; }
.lead__title a:hover, .row__title a:hover, .tile__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead__sum { margin: 0; color: var(--muted); font-size: 17px; max-width: 64ch; }

/* Local news strip */
.strip__track { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.tile { scroll-snap-align: start; }
.tile__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--line); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 8px 0 0; }
.lang-te .tile__title { line-height: 1.45; }

/* Feed rows */
.feed { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 104px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row__title { font-size: 18px; line-height: 1.32; font-weight: 700; margin: 4px 0 0; }
.lang-te .row__title { line-height: 1.5; }
.row__media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row.is-new { animation: rowin .5s ease-out; }
@keyframes rowin { from { background: var(--pasupu-soft); } to { background: transparent; } }
.noimg { --c: var(--river); width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; background: color-mix(in srgb, var(--c) 14%, var(--paper)); }
.noimg--lg { font-size: 72px; }

/* Sidebar */
.weathermini {
  display: grid; grid-template-columns: 1fr auto; text-decoration: none; background: var(--river); color: #fff;
  border-radius: var(--radius-m); padding: 16px 18px; margin-top: 8px;
}
.weathermini__place { font-weight: 600; opacity: .85; }
.weathermini__temp { grid-row: span 2; font-size: 44px; font-weight: 300; line-height: 1; align-self: center; font-variation-settings: "wdth" 75; }
.weathermini__desc { font-size: 15px; color: var(--pasupu); }
.alertbox { margin-top: 14px; padding: 16px 18px; border-radius: var(--radius-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.alertbox p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.alertbox .btn { width: 100%; }
.alertbox.is-on { box-shadow: inset 0 0 0 2px var(--paddy); }
.mostread ol { margin: 0; padding: 0; list-style: none; counter-reset: mr; border-top: 1px solid var(--line); }
.mostread li { counter-increment: mr; display: grid; grid-template-columns: 36px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.4; }
.mostread li::before { content: counter(mr); font-size: 26px; font-weight: 300; color: var(--kumkum); line-height: 1; font-variation-settings: "wdth" 75; }
.mostread a { text-decoration: none; }
.mostread a:hover { text-decoration: underline; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0; }

/* ---------- Article ---------- */
.story { padding-top: 18px; }
.story__title { font-size: clamp(28px, 7vw, 44px); line-height: 1.15; font-weight: 780; font-variation-settings: "wdth" 80; margin: 8px 0 10px; letter-spacing: -.01em; }
.lang-te .story__title { line-height: 1.32; }
.story__dek { font-size: 19px; color: var(--muted); margin: 0 0 8px; line-height: 1.55; }
.story__byline { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.story__hero { margin: 16px -16px 0; }
.story__hero img { width: 100%; cursor: zoom-in; }
.prose { font-size: 18.5px; line-height: 1.75; margin-top: 18px; max-width: 68ch; }
.lang-te .prose { line-height: 1.9; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3 { line-height: 1.3; margin: 1.4em 0 .5em; font-variation-settings: "wdth" 85; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--pasupu); font-size: 20px; }
.prose a { color: var(--river-2); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 20px 0; border-radius: var(--radius-m); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tags a { text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }
.tags a:hover { box-shadow: inset 0 0 0 1.5px var(--river-2); }
.tags small { color: var(--muted); font-weight: 500; }
.sharebar { display: flex; gap: 10px; margin: 18px 0 8px; }
.sharebar .btn { flex: 1; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(4,12,14,.94); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 6px; }
.lightbox .iconbtn { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; color: #fff; }

/* Comments */
.cform { display: grid; gap: 10px; margin-bottom: 18px; }
.cform input, .cform textarea, .searchbox input {
  width: 100%; font: inherit; font-size: 17px; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.cform input:focus, .cform textarea:focus, .searchbox input:focus { outline: none; border-color: var(--river-2); }
.cform .btn { justify-self: start; }
.cform__msg { margin: 0; font-weight: 600; color: var(--paddy); }
.cform__msg.is-err { color: var(--kumkum); }
.hp { position: absolute; left: -9999px; }
.clist { list-style: none; margin: 0; padding: 0; }
.clist li { padding: 12px 0; border-top: 1px solid var(--line); }
.clist li.is-new { animation: rowin 1.2s ease-out; }
.clist p { margin: 0; }
.clist__who { font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.clist__who time { color: var(--muted); font-size: 13px; }

/* Listing pages */
.pagehead { --c: var(--river); display: flex; align-items: center; gap: 12px; padding: 18px 0 6px; }
.pagehead h1 { margin: 0; font-size: 32px; line-height: 1.2; font-variation-settings: "wdth" 80; }
.pagehead__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--c) 16%, var(--paper)); }
.catgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.catcard {
  --c: var(--river); display: grid; gap: 2px; text-decoration: none; padding: 14px; border-radius: var(--radius-m);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); border-top: 4px solid var(--c);
}
.catcard:hover { box-shadow: inset 0 0 0 1.5px var(--c); }
.catcard__icon { font-size: 26px; }
.catcard__name { font-weight: 700; font-size: 18px; line-height: 1.3; }
.catcard__meta { color: var(--muted); font-size: 13px; }
.searchbox { display: flex; gap: 8px; padding: 18px 0 4px; }

/* ---------- Footer & tab bar ---------- */
.sitefoot { background: var(--paper); border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; font-size: 15px; color: var(--muted); }
.sitefoot strong { color: var(--ink); font-size: 18px; }
.sitefoot p { margin: 4px 0; }
.sitefoot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: grid; justify-items: center; gap: 1px; padding: 8px 2px 6px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; min-height: var(--tabbar-h); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.is-on { color: var(--river-2); }
.tabbar a.is-on svg { stroke-width: 2.4; }
.tabbar__world.is-on svg { color: var(--kumkum); }

/* ---------- Popup, sheet, toast ---------- */
.popup, .sheet { position: fixed; inset: 0; z-index: 70; background: rgba(4,14,16,.6); display: grid; place-items: center; padding: 20px; }
.popup__card { position: relative; width: min(440px, 100%); max-height: 88vh; overflow: auto; background: var(--paper); border-radius: 16px; animation: pop .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.popup__img { width: 100%; max-height: 50vh; object-fit: cover; }
.popup__body { padding: 18px 20px 20px; border-top: 5px solid var(--pasupu); }
.popup__body h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; font-variation-settings: "wdth" 85; }
.popup__body p { margin: 0 0 14px; }
.popup__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.popup__actions .btn { flex: 1; }
.popup__x { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.45); color: #fff; z-index: 1; }
.sheet { place-items: end center; padding: 0; }
.sheet__card { width: min(520px, 100%); background: var(--paper); border-radius: 16px 16px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet__steps { display: flex; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.sheet__steps span { background: var(--surface); padding: 6px 12px; border-radius: 8px; }
.sheet .btn { width: 100%; margin: 6px 0 0; }
.sheet__head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.sheet__head img { border-radius: 14px; flex: none; }
.sheet__head h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.sheet__head p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 80;
  background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); font-weight: 600; font-size: 15px;
}
.toast a { color: var(--pasupu); }
.toast--alert { background: var(--kumkum); color: #fff; }
.toast--alert a { color: #fff; }
@media (prefers-reduced-motion: reduce) { .popup__card, .row.is-new, .clist li.is-new { animation: none; } }

/* ---------- Mana Prapancham ---------- */
.world-hero { background: var(--river); color: #fff; padding: 22px 0 26px; }
.world-hero h1 { margin: 0; font-size: 34px; font-variation-settings: "wdth" 78; line-height: 1.15; }
.world-hero__date { color: var(--pasupu); font-weight: 600; margin: 2px 0 0; }
.wnow { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin-top: 18px; }
.wnow__icon { font-size: 60px; line-height: 1; grid-row: span 2; }
.wnow__temp { font-size: 64px; font-weight: 300; line-height: 1; font-variation-settings: "wdth" 75; }
.wnow__desc { font-size: 18px; }
.wstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 16px; font-size: 15px; }
.wstats div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); padding: 6px 0; }
.wstats dt { opacity: .75; } .wstats dd { margin: 0; font-weight: 700; }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 6px; overflow-x: auto; margin-top: 18px; padding-bottom: 4px; scrollbar-width: none; }
.hours div { text-align: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 4px; font-size: 14px; line-height: 1.3; }
.hours b { display: block; font-size: 17px; }
.hours .rain { color: #9FD8FF; font-size: 12px; }
.wsection { margin-top: 8px; }
.days { border-top: 1px solid var(--line); }
.days div { display: grid; grid-template-columns: 1fr 34px 60px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.days .bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #6CB4C2, var(--pasupu), var(--kumkum)); }
.days .rain { color: #2B7A9B; font-size: 14px; }
.cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cities button {
  display: grid; grid-template-columns: 1fr auto; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--paper); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; padding: 10px 12px;
}
.cities button.is-on { box-shadow: inset 0 0 0 2px var(--river-2); }
.cities b { font-size: 20px; font-weight: 600; }
.cities small { grid-column: 1 / -1; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.qinfo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qinfo div { background: var(--paper); border-radius: 10px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.qinfo span { display: block; font-size: 14px; color: var(--muted); }
.qinfo b { font-size: 19px; }
.tabs { display: flex; gap: 6px; margin: 4px 0 6px; }
.tabs button { font: 600 15px var(--font); border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--river); color: #fff; box-shadow: none; }
.headlines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.headlines li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.headlines a { text-decoration: none; font-weight: 600; line-height: 1.45; display: block; }
.headlines a:hover { text-decoration: underline; }
.headlines small { color: var(--muted); font-size: 13px; }
.skeleton { color: var(--muted); padding: 12px 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .strip__track { grid-auto-columns: 40%; }
  .row { grid-template-columns: 1fr 150px; }
  .row__media { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .catgrid { grid-template-columns: repeat(3, 1fr); }
  .story__hero { margin: 16px 0 0; } .story__hero img { border-radius: var(--radius-m); }
  .cities { grid-template-columns: repeat(4, 1fr); }
  .qinfo { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .layout__side { position: sticky; top: 76px; align-self: start; }
  .lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: center; }
  .lead__text { padding: 0; }
  .strip__track { grid-auto-columns: 28%; }
  .toast { bottom: 24px; }
  .world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 19px; font-variation-settings: "wdth" 75; }
  .masthead__inner { gap: 8px; }
  .langsw a { padding: 5px 8px; }
}

.pillbtn__short { display: none; }
@media (max-width: 520px) {
  .pillbtn__long { display: none; }
  .pillbtn__short { display: inline; }
  .pillbtn { padding: 9px 11px; }
  .brand { min-width: 96px; }
  .installbar { gap: 10px; padding: 8px 8px 8px 12px; }
  .installbar__text strong { font-size: 15px; }
  .installbar__text span { font-size: 13px; line-height: 1.35; }
}
/* While the install bar is on screen, the header button is redundant */
.installbar:not([hidden]) ~ .masthead #installTop { display: none; }
