/* Mithila News — a calm, premium reading experience.
   Serif headlines and body copy, generous measure, strong hierarchy, pink only as accent. */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400..700;1,8..60,400&family=Noto+Serif+Devanagari:wght@400..700&display=swap");

.app-news {
  --serif: "Source Serif 4", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --serif-deva: "Noto Serif Devanagari", "Source Serif 4", Georgia, serif;
  --news-rule: var(--ink);
  --measure: 680px;
}
.app-news .page { padding-top: 8px; }
.app-news :lang(hi), .app-news :lang(mai) { --serif: var(--serif-deva); }
.eyebrow { font-size: .82rem; font-weight: 650; color: var(--pink-ink); margin: 0 0 8px; }
.pre-line { white-space: pre-line; }
.d-block { display: block; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .i-sm { color: var(--success); margin-top: 5px; }

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding: 18px 0 6px; border-bottom: 3px double var(--news-rule); margin-bottom: 0; }
.masthead-line { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--ink-2); flex-wrap: wrap; }
.masthead-links { display: flex; gap: 14px; }
.masthead-links a { color: var(--ink-2); text-decoration: none; }
.masthead-links a:hover { color: var(--ink); text-decoration: underline; }
.masthead-title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); letter-spacing: -.02em; line-height: 1; margin: 10px 0 6px; }
.masthead-tag { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin: 0 0 10px; }

.lang-tabs { display: flex; justify-content: center; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.lang-tabs a { padding: 6px 14px; border-radius: 99px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 36px; display: inline-flex; align-items: center; }
.lang-tabs a:hover { background: var(--bg-soft); color: var(--ink); }
.lang-tabs a.is-active { background: var(--ink); color: var(--bg); }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 24px; background: var(--surface); }
.ticker-label { background: #B4202F; color: #fff; font-weight: 700; font-size: .82rem; padding: 10px 14px; display: flex; align-items: center; gap: 8px; flex: none; }
.ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live 1.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.ticker-track { overflow: hidden; flex: 1; position: relative; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-items { display: inline-flex; gap: 48px; padding: 10px 24px; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-items, .ticker:focus-within .ticker-items { animation-play-state: paused; }
.ticker-items a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ticker-items a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { overflow-x: auto; } .ticker-items { animation: none; } }

/* ---------- Story teasers ---------- */
.kicker { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--pink-ink); text-decoration: none; margin-bottom: 6px; letter-spacing: .01em; }
.kicker:hover { text-decoration: underline; }
.kicker-live { background: #B4202F; color: #fff; padding: 1px 7px; border-radius: 4px; font-size: .72rem; }
.story { display: grid; gap: 12px; align-content: start; }
.story-media { display: block; overflow: hidden; border-radius: 4px; background: var(--bg-soft); aspect-ratio: 3 / 2; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.story:hover .story-media img { transform: scale(1.025); }
.story-title { font-family: var(--serif); font-weight: 650; letter-spacing: -.01em; line-height: 1.22; margin: 0; font-size: 1.15rem; }
.story-title a { color: var(--ink); text-decoration: none; }
.story-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-dek { font-family: var(--serif); color: var(--ink-2); margin: 6px 0 0; font-size: 1.02rem; line-height: 1.5; }
.story-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; font-size: .8rem; color: var(--ink-3); }
.story-meta > * + *::before { content: "·"; margin-right: 12px; }
.story-lead .story-media { aspect-ratio: 16 / 10; }
.story-lead .story-title { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; }
.story-lead .story-dek { font-size: 1.15rem; max-width: 56ch; }
.story-row { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.story-row .story-media { order: 2; aspect-ratio: 3 / 2; }
.story-row .story-title { font-size: 1.3rem; }
.story-compact { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.story-compact .story-media { order: 2; aspect-ratio: 1; }
.story-compact .story-title { font-size: 1.02rem; }
.story-card .story-title { font-size: 1.12rem; }
@media (max-width: 640px) {
  .story-row { grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; }
  .story-row .story-title { font-size: 1.1rem; }
  .story-row .story-dek { display: none; }
}

/* ---------- Home grids ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--news-rule); }
.lead-side { border-left: 1px solid var(--line); padding-left: 28px; }
.lead-side .story-card .story-media { aspect-ratio: 16 / 9; }
.news-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; margin-top: 32px; }
.news-aside { display: grid; gap: 28px; align-content: start; }
.rule-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 3px solid var(--news-rule); padding-top: 10px; margin-bottom: 4px; }
.rule-head h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
.rule-head h2 a { color: var(--ink); text-decoration: none; }
.rule-head > a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.most-read { list-style: none; counter-reset: mr; margin: 0; padding: 0; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.most-read li::before { content: counter(mr); font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--pink); font-weight: 700; }
.most-read a { font-family: var(--serif); font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.most-read a:hover { text-decoration: underline; }
.newsletter-box { background: var(--pink-pale); padding: 22px; border-radius: var(--r-md); }
.newsletter-box h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.newsletter-box p { color: var(--ink-2); font-size: .95rem; }
.section-block { margin-top: 44px; }
.story-grid { --gap: 28px; margin-top: 16px; }
@media (max-width: 1000px) {
  .lead-grid, .news-cols { grid-template-columns: 1fr; }
  .lead-side { border-left: 0; padding-left: 0; }
}

/* ---------- Lists ---------- */
.list-head { padding: 24px 0 8px; border-bottom: 3px double var(--news-rule); margin-bottom: 0; }
.list-head h1 { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); letter-spacing: -.02em; margin: 0 0 8px; }
.list-intro { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.story-list-wide { max-width: 900px; }
.sections-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 24px; }
.section-card { border-top: 3px solid var(--news-rule); padding-top: 10px; }
.section-card h2 { font-family: var(--serif); font-size: 1.4rem; }
.section-card h2 a { color: var(--ink); text-decoration: none; }
.section-card ul { list-style: none; padding: 0; margin: 0; }
.section-card li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.section-card li a { font-family: var(--serif); color: var(--ink); text-decoration: none; font-weight: 600; }
.search-big { display: flex; gap: 8px; margin: 20px 0; max-width: 720px; position: relative; }
.search-big .input { min-height: 52px; font-size: 1.1rem; }
.search-big .btn { min-height: 52px; }

/* ---------- Article ---------- */
.article { margin-top: 12px; }
.article-head { max-width: 820px; margin: 24px auto 0; text-align: left; }
.article-title { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 4px 0 14px; }
.article[lang="hi"] .article-title, .article[lang="mai"] .article-title { line-height: 1.3; letter-spacing: 0; }
.article-dek { font-family: var(--serif); font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); margin: 0 0 22px; }
.byline { display: flex; justify-content: space-between; gap: 12px 24px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; }
.byline-author { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.byline-by { color: var(--ink-3); }
.byline-meta { display: flex; gap: 4px 14px; flex-wrap: wrap; color: var(--ink-3); }
.byline-meta > * + *::before { content: "·"; margin-right: 14px; }
.article-hero { margin: 28px auto 0; max-width: 1080px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--bg-soft); }
.article-hero figcaption { font-size: .85rem; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line); max-width: 820px; margin: 0 auto; }
.article-hero .credit { color: var(--ink-3); margin-left: 6px; }
.article-layout { display: grid; grid-template-columns: 140px minmax(0, var(--measure)) 140px; justify-content: center; gap: 32px; margin-top: 32px; }
.share-rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 6px; }
.share-label { font-size: .78rem; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.share-btn { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.share-btn:hover { border-color: var(--ink-3); }
.prose-news { font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; color: var(--ink); }
.article[lang="hi"] .prose-news, .article[lang="mai"] .prose-news { font-size: 1.16rem; line-height: 1.95; }
.prose-news > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .9; padding: 6px 10px 0 0; font-weight: 700; color: var(--ink); }
.article[lang="hi"] .prose-news > p:first-of-type::first-letter, .article[lang="mai"] .prose-news > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; line-height: inherit; font-weight: inherit; }
.prose-news p { margin: 0 0 1.25em; }
.prose-news h2 { font-size: 1.55rem; margin: 1.6em 0 .5em; letter-spacing: -.015em; }
.prose-news h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose-news a { color: var(--pink-ink); }
.prose-news blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--pink); font-size: 1.35rem; line-height: 1.5; font-style: italic; color: var(--ink); }
.prose-news ul, .prose-news ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose-news li { margin: .35em 0; }
.prose-news figure { margin: 1.8em 0; }
.prose-news figure img { border-radius: 4px; width: 100%; }
.prose-news figcaption { font-family: var(--font); font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.article-foot { max-width: var(--measure); margin: 8px auto 0; display: grid; gap: 14px; }
.demo-note { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--warn); background: var(--warn-bg); padding: 10px 14px; border-radius: var(--r-sm); margin: 0; }
.also-in { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-weight: 600; margin: 0; }
.also-in a { padding: 4px 12px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); text-decoration: none; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, var(--measure)); } .share-rail { position: static; display: flex; flex-wrap: wrap; order: 2; } .share-label { width: 100%; } }
@media (max-width: 640px) {
  .prose-news { font-size: 1.1rem; line-height: 1.7; }
  .article-hero { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .article-hero img { border-radius: 0; }
  .article-hero figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* ---------- Comments ---------- */
.comments { max-width: var(--measure); margin: 48px auto 0; }
.comment-form { margin: 16px 0 24px; }
.comment-list { display: grid; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.comment p { margin: 0; }
.comment-reply { margin: 12px 0 0 32px; padding: 12px 0 0 16px; border-bottom: 0; border-left: 2px solid var(--pink-soft); }
.comment-actions { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; }
.comment-actions summary { list-style: none; cursor: pointer; }
.comment-actions summary::-webkit-details-marker { display: none; }

/* ---------- Newsletter ---------- */
.newsletter-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 32px 0; }
.newsletter-page .display { font-family: var(--serif); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.025em; }
@media (max-width: 900px) { .newsletter-page { grid-template-columns: 1fr; gap: 24px; } }
.subscribe-form .lang-choice { display: flex; gap: 6px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 14px; }
.subscribe-form .lang-choice legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.subscribe-form .lang-choice label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 99px; cursor: pointer; font-size: .9rem; min-height: 36px; background: var(--surface); }
.subscribe-form .lang-choice label:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subscribe-form .lang-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.subscribe-form .lang-choice label:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.subscribe-form.is-compact .field { margin-bottom: 10px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status-page .empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-pale); color: var(--pink-ink); }

/* ---------- Desk (editorial dashboard) ---------- */
.headline-input { font-family: var(--serif); font-size: 1.5rem; font-weight: 650; line-height: 1.25; min-height: 0; }
.desk-form { border: 0; padding: 0; margin: 0; min-width: 0; }
.desk-actions { display: grid; gap: 10px; }
.editor-panel .grid-3 { align-items: start; }
.pick-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 6px; }
.review-item + .review-item { margin-top: 12px; }
.dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.dl dt { color: var(--ink-2); font-weight: 600; }
.dl dd { margin: 0; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 8px; } }

/* Workaround for a core.css layout bug (reported to lead): on desktop the empty .dash-scrim
   occupies the second grid column and pushes .dash-main below the sidebar. */
@media (min-width: 1001px) { .dash-scrim { display: none; } }
