/* HeadlineDesk.in */
:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #14171f;
  --ink-2: #3a3f4b;
  --muted: #6c707b;
  --line: #e8e4dc;
  --line-2: #f1eee8;
  --accent: #e2401f;
  --accent-ink: #b8300f;
  --chip: #f3efe7;
  --radius: 10px;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #101217; --card: #171a21; --ink: #ecebe7; --ink-2: #c4c6cc; --muted: #8c909a;
  --line: #262a33; --line-2: #1d2028; --accent: #ff6a4a; --accent-ink: #ff8a70; --chip: #1f232b;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101217; --card: #171a21; --ink: #ecebe7; --ink-2: #c4c6cc; --muted: #8c909a;
    --line: #262a33; --line-2: #1d2028; --accent: #ff6a4a; --accent-ink: #ff8a70; --chip: #1f232b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
.lang-te { --serif: "Noto Sans Telugu", "Nirmala UI", "Gautami", var(--sans); --sans: "Noto Sans Telugu", "Nirmala UI", "Gautami", -apple-system, "Segoe UI", Roboto, sans-serif; }
.lang-hi { --serif: "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--sans); --sans: "Noto Sans Devanagari", "Nirmala UI", "Mangal", -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar { background: #14171f; color: #f3f1ec; font-size: 13px; }
:root[data-theme="dark"] .topbar { background: #07080b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: #07080b; } }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.topbar .today { opacity: .8; white-space: nowrap; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 4px 10px; border-radius: 99px; opacity: .8; }
.langs a:hover { opacity: 1; color: inherit; background: rgba(255,255,255,.08); }
.langs a[aria-current] { opacity: 1; background: var(--accent); color: #fff; font-weight: 600; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { font: 800 28px/1 var(--sans); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.logo b { color: var(--accent); font-weight: inherit; }
.logo .mark { width: 12px; height: 26px; background: var(--accent); border-radius: 3px; box-shadow: 6px 0 0 -2px var(--ink); margin-right: 6px; }
.logo:hover { color: var(--ink); }
.search { margin-left: auto; flex: 0 1 340px; }
.search input[type=search] { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: 99px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236c707b' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; color: var(--ink); font: 15px var(--sans); }
.theme { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.theme:hover { color: var(--accent); }

/* Section nav */
.sections { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.sections .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; min-height: 46px; }
.sections .wrap::-webkit-scrollbar { display: none; }
.sections a { padding: 12px 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sections a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.updated { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa45a; box-shadow: 0 0 0 0 rgba(31,164,90,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31,164,90,0); } 100% { box-shadow: 0 0 0 0 rgba(31,164,90,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

main { padding-top: 24px; padding-bottom: 40px; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.col-side { position: sticky; top: 64px; display: grid; gap: 20px; }
.sec-title { font: 800 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin: 8px 0 14px; padding-top: 12px; border-top: 3px solid var(--ink); display: flex; align-items: center; gap: 8px; }
.lang-te .sec-title, .lang-hi .sec-title { font-size: 16px; letter-spacing: 0; text-transform: none; }
.sec-title a:hover { color: var(--accent-ink); }
.page-title { font: 800 clamp(26px, 4vw, 38px)/1.15 var(--serif); letter-spacing: -.01em; margin: 6px 0 22px; }
section { margin-bottom: 34px; }

/* Stories */
.top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.story { padding: 16px 0; border-bottom: 1px solid var(--line); }
.story h3 { font: 700 19px/1.3 var(--serif); margin: 0 0 8px; letter-spacing: -.005em; }
.story-lead { grid-column: 1 / -1; padding: 4px 0 22px; }
.story-lead h3 { font-size: clamp(25px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.015em; margin-bottom: 12px; }
.story .desc { margin: 0 0 12px; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 72ch; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.src { font-weight: 700; color: var(--c, var(--ink-2)); }
:root[data-theme="dark"] .src { filter: brightness(1.6) saturate(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .src { filter: brightness(1.6) saturate(.9); } }
.badge { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.also { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.also span { font-weight: 600; }
.also a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.also a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.also i { font-style: normal; margin: 0 6px; opacity: .5; }

/* Rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 12px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 3px; }
.row > a { font: 600 17px/1.4 var(--serif); }
.row .meta { font-size: 12.5px; }
.cat { font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line); padding: 0 6px; border-radius: 4px; }
.cat:hover { border-color: currentColor; }

/* Sidebar */
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-title { font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .09em; margin: 0 0 12px; color: var(--muted); }
.lang-te .side-title, .lang-hi .side-title { font-size: 14px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); padding: 6px 11px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.chip small { color: var(--muted); font-weight: 500; font-size: 11px; }
.chip:hover { background: var(--accent); color: #fff; }
.chip:hover small { color: rgba(255,255,255,.8); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.side-links li:last-child a { border-bottom: 0; }
.side-links span { color: var(--muted); font-weight: 500; font-size: 13px; }

/* Category strips */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: border-color .15s; }
.cards li:hover { border-color: var(--ink-2); }
.cards li > a { font: 600 16px/1.38 var(--serif); }

/* By source */
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.src-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; margin: 0; }
.src-card header { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.src-card h3 { margin: 0; font-size: 16px; }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--c); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.src-card ul { list-style: none; margin: 0; padding: 0; }
.src-card li { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.4; }
.src-card li:last-child { border-bottom: 0; }
.src-card li time { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Ads */
.ad { margin: 0 0 28px; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Misc */
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-2); }
.notice h1, .notice h2 { margin-top: 0; font-family: var(--serif); color: var(--ink); }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 700; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; }
.prose h1 { font: 800 clamp(28px, 4vw, 40px)/1.15 var(--serif); margin: 6px 0 20px; }
.prose h2 { font: 700 22px/1.3 var(--serif); margin: 32px 0 8px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.table-wrap { overflow-x: auto; }
.status { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
.status th, .status td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status tr.ok td:first-child { color: #1fa45a; }
.status tr.fail td:first-child, .status tr.fail td:nth-child(6) { color: var(--accent-ink); }
.status .url { font-size: 12px; color: var(--muted); word-break: break-all; }
code { background: var(--chip); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* Footer */
.footer { border-top: 3px solid var(--ink); padding: 32px 0 40px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: grid; gap: 24px 40px; }
.footer .logo { font-size: 22px; }
.f-brand p { max-width: 560px; margin: 10px 0 0; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; font-weight: 600; color: var(--ink-2); }
.copy { grid-column: 1 / -1; margin: 0; font-size: 13px; }

/* Responsive */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 10px; }
  .col-side { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar .today { display: none; }
  .topbar .wrap { justify-content: center; }
  .masthead .wrap { flex-wrap: wrap; gap: 10px; padding: 12px 16px; min-height: 0; }
  .logo { font-size: 24px; }
  .search { order: 3; flex: 1 1 100%; }
  .theme { margin-left: auto; }
  .top-grid, .cards { grid-template-columns: 1fr; }
  .story h3 { font-size: 18px; }
  .story-lead h3 { font-size: 25px; }
  .story .desc { font-size: 16px; }
  .updated { display: none; }
}

/* ---- SEO additions: page heads, breadcrumbs, FAQ, guides ---- */
.page-head { margin: 0 0 22px; max-width: 860px; }
.page-head h1 { font: 800 clamp(24px, 3.4vw, 34px)/1.15 var(--serif); letter-spacing: -.01em; margin: 4px 0 8px; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; opacity: .6; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 24px 10px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.65; }
.guide-links { list-style: none; margin: 0; padding: 0; }
.guide-links li { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; line-height: 1.4; }
.guide-links li:last-child { border-bottom: 0; }
.guide-links time { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.more-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.mini-rows { list-style: none; margin: 0; padding: 0; }
.mini-rows li { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.4; display: grid; gap: 3px; }
.mini-rows li:last-child { border-bottom: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.guide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.guide-card .cat { justify-self: start; }
.guide-card h2 { margin: 0; font: 700 20px/1.3 var(--serif); }
.guide-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.guide-card .meta span + time::before, .guide-card .meta time + span::before { content: "·"; margin-right: 10px; }
.guide h1 { font: 800 clamp(28px, 4.2vw, 44px)/1.12 var(--serif); letter-spacing: -.015em; margin: 10px 0 12px; }
.guide .lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.byline { font-size: 14px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.byline a { font-weight: 700; color: var(--ink); }
.toc { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 0 0 26px; font-size: 15px; }
.toc ul { margin: 8px 0 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc a:hover { color: var(--accent-ink); }
.guide .prose { max-width: 70ch; }
.prose h3 { font: 700 18px/1.35 var(--serif); margin: 24px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
.prose th, .prose td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); }
.prose th { background: var(--chip); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.related { margin-top: 36px; }
.related .cards { grid-template-columns: 1fr 1fr; }
.f-col { display: grid; align-content: start; gap: 7px; font-weight: 600; color: var(--ink-2); }
.f-col h2 { font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin: 4px 0 6px; }
.footer .wrap { grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 900px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 680px) { .related .cards { grid-template-columns: 1fr; } .page-head h1 { font-size: 24px; } }

.col-side > section, .col-side > .ad { margin-bottom: 0; }
.col-side { max-height: none; }
@media (min-width: 1001px) { .col-side { position: static; } }
