@import url("https://fonts.googleapis.com/css2?family=Mukta:wght@400;600;700&family=Noto+Serif+Devanagari:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
    --ink: #182536;
    --paper: #f8f8f5;
    --line: #d6dcd9;
    --red: #ad243d;
    --headline: Georgia, "Noto Serif Devanagari", serif;
    font-family: "Source Sans 3", Mukta, "Nirmala UI", sans-serif;
}
:lang(hi), :lang(mr) { --headline: "Noto Serif Devanagari", Georgia, serif; }
.masthead { border-top: 4px solid #c43751; background: #101827; }
.top { padding-block: 1.1rem; }
.languages { justify-content: flex-end; gap: .2rem; }
.languages a { font-size: 1rem; }
.edition-date { flex-basis: 100%; text-align: right; color: #d3dbe4; font-size: .875rem; }
.section-band { background: white; color: var(--ink); border-bottom: 1px solid var(--line); }
.sections { border: 0; flex-wrap: nowrap; overflow-x: auto; gap: clamp(.9rem, 3vw, 2.1rem); padding-block: 0; }
.sections a { white-space: nowrap; font-size: 1.05rem; padding: .72rem .1rem .55rem; border-bottom: 3px solid transparent; font-weight: 700; }
.sections a:hover, .sections a[aria-current] { color: var(--red); background: transparent; border-color: var(--red); border-radius: 0; }
.filterbar { border-color: var(--line); padding: .7rem 1rem; border-radius: .65rem; }
.filterbar select { min-width: 0; }
.filterbar button { background: #23394a; }
.breaking { background: #f8e9eb; color: #97273d; }
.breaking:hover { background: #efdae0; }
.section-head { margin: 1.65rem 0 1rem; border-bottom: 1px solid #a3adaf; }
.section-head h1 { font: 700 clamp(1.85rem, 4vw, 2.8rem)/1.5 var(--headline); margin: 0; padding-bottom: .3rem; }
.edition-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.stories { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
.story, .read { min-width: 0; border: 1px solid var(--line); border-radius: .7rem; background: white; }
.story:first-child {
    grid-column: 1/-1; display: block; min-height: 0; padding: clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(112deg,#15283a,#233f50); border: 0; border-inline-start: 5px solid #bb4057;
    border-radius: .7rem; color: #fff;
}
.story h2,.wire h2,.read h1 { font-family: var(--headline); }
.story:first-child h2,.read h1 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.52; text-wrap: balance; }
.story:first-child p { color: #e3eaf0; max-width: 70ch; font-size: 1.1rem; }
.story:first-child time { color: #c7d6e0; }
.story:first-child .kicker { color: #ffd4ae; }
.story-photo { width: 100%; max-height: 30rem; object-fit: cover; border-radius: .35rem; }
.story p,.standfirst,.article-body { line-height: 1.8; }
#national-updates { order: 1; display: grid; width: 100%; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: 1rem; align-items: start; }
#national-updates:not(:has(.wire)), .stories:has(.empty[hidden]) { display: none; }
.wire { padding: 1.1rem clamp(1rem,2vw,1.5rem); background: #fff; border: 1px solid var(--line); border-top: 4px solid #26465b; border-radius: .6rem; }
.wire:nth-child(2) { border-top-color: #ac344a; }
.wire:nth-child(3) { border-top-color: #327366; }
.wire h2 { margin: .2rem 0; font-size: clamp(1.25rem,2vw,1.55rem); line-height: 1.55; }
.wire p,.wire-source { color: #56616a; font-size: .875rem; line-height: 1.5; }
.wire ul { list-style: none; margin: .8rem 0 0; padding: 0; }
.wire li { border-top: 1px solid #e1e5e4; padding-block: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.wire li:last-child { padding-bottom: .15rem; }
.wire li a { font-weight: 600; font-size: 1.13rem; text-decoration: none; }
.wire li a:hover { color: var(--red); text-decoration: underline; }
.wire-source { display: block; margin-top: .2rem; }
.read { max-width: 54rem; padding: clamp(1.2rem,5vw,3.5rem); border-top: 4px solid #26465b; }
.article-body { font-size: 1.18rem; }
.byline { border-block: 1px solid var(--line); padding-block: .8rem; }
footer { border-top: 3px solid var(--red); }
@media (max-width: 42rem) {
    .wrap { width: calc(100% - 1.5rem); }
    .top { align-items: flex-start; flex-direction: column; gap: .4rem; padding-block: .8rem; }
    .brand img { width: 11rem; }
    .languages { justify-content: flex-start; }
    .edition-date { text-align: left; }
    .filterbar { gap: .5rem; }
    .filterbar form { display: grid; width: 100%; grid-template-columns: auto minmax(0,1fr); gap: .45rem; }
    .filterbar button { grid-column: 2; }
    .filterbar select { width: 100%; }
    .stories,#national-updates { grid-template-columns: minmax(0,1fr); }
}

/* A newsroom illustration gives text-only lead stories a distinct cover. */
.story:first-child:not(:has(.story-photo)) { position: relative; overflow: hidden; padding-inline-end: 42%; }
.story:first-child:not(:has(.story-photo))::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 39%;
    background: #dfc6a2 url("newsroom-print.jpg") center / cover no-repeat;
}
@media (max-width: 42rem) {
    .story:first-child:not(:has(.story-photo)) { padding: 0 1.15rem 1.15rem; }
    .story:first-child:not(:has(.story-photo))::after { display: none; }
    .story:first-child:not(:has(.story-photo))::before {
        content: ""; display: block; height: clamp(8rem,33vw,13rem); margin: 0 -1.15rem 1rem;
        background: #dfc6a2 url("newsroom-print.jpg") center 42% / cover no-repeat;
    }
}

.feed-picker:not([hidden]) { order: 1; display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: -.7rem; }
.feed-picker button { font: inherit; font-weight: 700; color: #25394a; background: white; border: 1px solid var(--line); border-radius: 2rem; padding: .4rem 1rem; }
.feed-picker button[aria-pressed="true"] { color: white; background: #263d50; border-color: #263d50; }
.wire[data-group="priority"] { border-top-color: #ae243e; }
