@font-face {
    font-family: "Noto Sans Tamil";
    src: url("/fonts/news21/noto-sans-tamil-tamil.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
    font-family: "Noto Sans Tamil";
    src: url("/fonts/news21/noto-sans-tamil-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{color-scheme:light;--ink:#20191c;--muted:#655960;--paper:#fbf7f7;--surface:#fff;--line:#e6dadd;--brand:#a31632}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--ink:#fff2f4;--muted:#d0bfc3;--paper:#000;--surface:#171315;--line:#4a353d;--brand:#ff869d}}
:root[data-theme=dark]{color-scheme:dark;--ink:#fff2f4;--muted:#d0bfc3;--paper:#000;--surface:#171315;--line:#4a353d;--brand:#ff869d}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.8 'Noto Sans Tamil',system-ui,sans-serif}
a{color:var(--brand)} button,input{font:inherit}
button{cursor:pointer;color:var(--ink);background:var(--surface);border:1px solid var(--line);padding:.45rem .8rem;border-radius:.6rem}
button[aria-pressed=true],nav [aria-current=page]{background:var(--brand);color:var(--paper)}
:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.skip{position:absolute;left:.5rem;top:-10rem;background:var(--surface);z-index:3;padding:.6rem}
.skip:focus{top:.5rem}
.site-header{background:var(--surface);border-bottom:1px solid var(--line)}
.header-inner,main,footer{max-width:72rem;margin:auto;padding:1rem clamp(1rem,4vw,3rem)}
.header-inner,.toolbar,.story-actions,.pagination{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.brand{font-size:1.7rem;font-weight:850;text-decoration:none;color:var(--ink)}
.brand span{color:var(--brand)} .brand small{font-size:.8rem}
.breaking,.breadcrumbs{margin:0 0 1rem;padding:.65rem .9rem;border-left:3px solid var(--brand);background:var(--surface)}
.breaking strong{margin-inline-end:.75rem}
.toolbar nav{display:flex;flex-wrap:wrap;gap:.5rem}
.toolbar nav a{padding:.35rem .6rem;border-radius:.5rem;text-decoration:none}
input{max-width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:.6rem;padding:.45rem .6rem}
h1,h2{line-height:1.55;overflow-wrap:anywhere}
h1{font-size:clamp(1.6rem,4vw,2.45rem)}
.feed{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.story{background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:clamp(1rem,3vw,2rem);overflow-wrap:anywhere}
.story time,.story-actions,footer{color:var(--muted);font-size:.85rem}
.story p{white-space:pre-line}
.story-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}
.story h2 a{color:var(--ink)}
.story h2{margin:.35rem 0}
.detail{max-width:48rem;margin:auto}
.pagination{margin:1.5rem 0}
@media(max-width:48rem){.feed{grid-template-columns:1fr}.toolbar{align-items:flex-start}.story{scroll-margin-top:1rem}}

.story figure{margin:1rem 0}.story img{display:block;width:100%;height:auto;border-radius:.65rem}.story figcaption{font-size:.75rem;color:var(--muted)}
.ad-slot{min-height:110px;margin-block:1rem;grid-column:1/-1}.ad-slot ins{min-height:100px}
.timeline{max-width:48rem;margin:1.5rem auto}.timeline article{border-top:1px solid var(--line);padding-block:.75rem}.timeline time{margin-inline-start:.5rem;color:var(--muted)}
footer nav{display:flex;flex-wrap:wrap;gap:1rem}
.tags{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0}.tags li{padding:.15rem .55rem;border:1px solid var(--line);border-radius:.5rem;color:var(--muted)}
.reading-time{color:var(--muted);font-size:.85rem;margin-inline-start:.65rem}

/* Short-news reader */
.reader-home { --reader-width: 31rem; }
.reader-home .site-header { border-top: 4px solid var(--brand); }
.reader-home .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    max-width: var(--reader-width);
    gap: .5rem;
    padding-block: .45rem;
}
.reader-home .brand { grid-column: 2; font-size: clamp(1.1rem, 4vw, 1.6rem); letter-spacing: -.035em; }
.reader-home .theme { grid-column: 3; justify-self: end; min-width: 44px; min-height: 44px; }
.reader-home main, .reader-home footer { max-width: var(--reader-width); padding-inline: clamp(.75rem, 3vw, 1rem); }
.home-menu { position: relative; }
.home-menu summary { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; min-height: 44px; list-style: none; }
.home-menu summary::-webkit-details-marker { display: none; }
.home-menu summary span { font-size: .78rem; }
.home-menu-panel {
    position: absolute; z-index: 2; inset-block-start: 100%; inset-inline-start: 0;
    width: min(21rem, 85vw); padding: .85rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 .5rem 1.5rem #0002;
}
.home-topics { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .65rem; max-height: 45vh; overflow: auto; }
.home-topics a { padding: .35rem .6rem; border-radius: .35rem; font-size: .86rem; }
.home-search { display: flex; gap: .3rem; }
.home-search input { flex: 1; min-width: 0; }
.home-heading h1 { margin: 0 0 .8rem; }
.home-heading-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-feed { display: grid; gap: .85rem; }
.home-feed .story { display: flex; flex-direction: column; min-width: 0; padding: 0; border-radius: .65rem; overflow: hidden; }
.home-feed figure { margin: 0; }
.home-feed figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.home-feed figcaption { padding-inline: .8rem; }
.story-content { min-width: 0; }
.home-feed .story-content { padding: .85rem 1rem; }
.story-meta { display: flex; flex-wrap: wrap; gap: .35rem; color: var(--muted); font-size: .8rem; }
.story-meta :is(.story-meta-time, .story-meta-author, .story-view-count) {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border: 1px solid var(--ink);
    border-color: light-dark(#000, var(--ink));
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    line-height: 1.45;
    font-weight: 700;
}
.story-meta-icon { width: .95rem; height: .95rem; flex: none; }
.story-meta .story-meta-author { text-decoration: none; }
.story-meta .story-meta-author:hover { text-decoration: underline; }
.home-feed h2 { margin: 0 0 .35rem; font-size: 1.18rem; }
.home-feed h2 a { text-underline-offset: .2em; text-decoration-color: transparent; }
.home-feed h2 a:hover, .home-feed h2 a:focus-visible { text-decoration-color: currentColor; }
.home-feed .story p { margin: .65rem 0; }
.home-feed .story-actions { min-height: 44px; }
.home-empty { padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; }


/* Illustrated story cards */
.home-feed { gap: 1.05rem; }
.home-feed .story {
    --card-color: #a31632; --card-tint: #ffe4e9;
    border-radius: .65rem;
    box-shadow: 0 .125rem .4rem #190b150c;
}
.home-feed .story[data-accent="blue"] { --card-color: #164c9c; --card-tint: #e0edff; }
.home-feed .story[data-accent="violet"] { --card-color: #5d3298; --card-tint: #efe4ff; }
.home-feed .story[data-accent="gold"] { --card-color: #795000; --card-tint: #fff0c7; }
.home-feed .story[data-accent="green"] { --card-color: #155c43; --card-tint: #dff5e8; }
.home-feed .story[data-accent="pink"] { --card-color: #91225d; --card-tint: #ffe1f1; }
.story-cover {
    display: none;
    aspect-ratio: 16 / 7;
    place-items: center;
    background: linear-gradient(135deg, var(--card-tint), color-mix(in srgb, var(--card-tint), var(--card-color) 14%));
}
.home-feed .story-cover { display: grid; }
.story-cover span {
    display: grid; place-items: center; width: 4rem; height: 4rem;
    color: var(--card-color); background: #fff9; border: 1px solid #fff;
    border-radius: 1.2rem; font-size: 2rem;
}
.home-feed .story-content { padding: 1rem 1.1rem; }
.home-feed .story-content h2 { margin-top: .55rem; }
.home-feed .story-content { display: flex; flex-direction: column; }
.home-feed .story-meta { order: -1; align-items: center; }
.home-feed .story-topic {
    display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem;
    border-radius: 999px; background: var(--card-tint); color: var(--card-color);
    text-decoration: none; font-weight: 750;
}
.home-feed .story-actions { border-top: 1px solid var(--line); padding-top: .55rem; gap: .4rem; }
.home-feed .story-actions a { font-weight: 700; text-decoration: none; }
.home-feed [data-bookmark] { margin-inline-start: auto; min-height: 44px; border-radius: .65rem; }
.home-feed [data-bookmark] span { font-size: 1.15rem; line-height: 1; }

/* Category shortcuts and mixed reading rhythm */
.home-category-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem .45rem;
    margin: 0 0 1.2rem; padding: .85rem .35rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: .65rem;
}
.home-category-grid a {
    display: grid; justify-items: center; align-content: start; gap: .3rem;
    padding: .15rem .2rem; text-align: center; text-decoration: none;
    font-size: .76rem; font-weight: 700; line-height: 1.45; color: var(--ink);
}
.home-category-grid a:hover { text-decoration: underline; }
.home-category-grid a[data-accent] { --circle: #fde0e6; }
.home-category-grid a[data-accent="violet"] { --circle: #eadcff; }
.home-category-grid a[data-accent="blue"] { --circle: #d8eaff; }
.home-category-grid a[data-accent="gold"] { --circle: #ffebac; }
.home-category-grid a[data-accent="green"] { --circle: #d5f4df; }
.home-category-grid a[data-accent="pink"] { --circle: #ffdbef; }
.category-circle {
    display: grid; place-items: center; width: 2.65rem; aspect-ratio: 1;
    background: var(--circle); border: 2px solid #fff9; border-radius: 50%; font-size: 1.3rem;
}
.home-feed .story-feature { border-top: 3px solid var(--brand); }
.home-feed .story-feature h2 { font-size: clamp(1.3rem, 5vw, 1.65rem); line-height: 1.45; font-weight: 800; }
.home-feed .story-feature figure img { aspect-ratio: 4 / 3; }
.home-feed .story-compact {
    display: grid; grid-template-columns: clamp(4.5rem, 23vw, 7rem) minmax(0, 1fr);
    align-items: start; gap: .7rem; padding: .65rem;
}
.home-feed .story-compact figure img, .home-feed .story-compact .story-cover {
    aspect-ratio: 1; border-radius: .55rem;
}
.home-feed .story-compact figcaption { padding: 0; font-size: .65rem; }
.home-feed .story-compact .story-cover span { width: 2.5rem; height: 2.5rem; font-size: 1.4rem; border-radius: .65rem; }
.home-feed .story-compact .story-content { padding: 0; }
.home-feed .story-compact h2 { font-size: 1rem; }
.home-feed .story-compact p { font-size: .87rem; }
.home-feed .story-compact .story-actions { font-size: .76rem; }

.home-feed .home-section-heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .45rem 0 0;
    font-size: 1rem;
    font-weight: 800;
}
.home-section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.home-section-heading span {
    border-inline-start: 3px solid var(--brand);
    padding-inline-start: .5rem;
}
.home-feed .story-content p { line-height: 1.8; }

/* Edition navigation and headline rail */
.edition-topics {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    padding: 0 .25rem .4rem;
    margin-bottom: .9rem;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
}
.edition-topics a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: .3rem .6rem;
    min-height: 44px;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-size: .8rem;
    text-decoration: none;
}
.edition-topics a[aria-current="page"] { color: var(--brand); border-color: var(--brand); font-weight: 800; }
.edition-topics a:hover { text-decoration: underline; }
.edition-headlines { display: none; }
@media (min-width: 64rem) {
    .reader-home { --edition-width: 61rem; }
    .reader-home main, .reader-home .header-inner, .reader-home footer {
        max-width: var(--edition-width);
        padding-inline: 1.5rem;
    }
    .reader-home .header-inner { padding-block: .65rem; }
    .edition-topics {
        padding-inline: .5rem;
        background: var(--surface);
        border-block: 1px solid var(--line);
    }
    .news-edition {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
        align-items: start;
        gap: clamp(1rem, 2vw, 1.75rem);
    }
    .news-home { min-width: 0; }
    .home-category-grid { display: none; }
    .home-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-feed > :is(.home-section-heading, .story-feature, .story-compact, .home-empty) { grid-column: 1 / -1; }
    .home-feed .story-feature figure img { aspect-ratio: 16 / 8; }
    .edition-headlines {
        display: block;
        background: var(--surface);
        border: 1px solid var(--line);
        border-top: 3px solid var(--brand);
        border-radius: .45rem;
        padding: .85rem;
    }
    .edition-headlines h2 { margin: 0 0 .55rem; color: var(--brand); font-size: 1rem; font-weight: 800; }
    .edition-headlines ul { list-style: none; padding: 0; margin: 0; }
    .edition-headlines li { padding-block: .65rem; border-top: 1px solid var(--line); }
    .edition-headlines li a {
        display: flex;
        align-items: flex-start;
        gap: .55rem;
        color: var(--ink);
        font-size: .83rem;
        font-weight: 700;
        line-height: 1.6;
        text-underline-offset: .2em;
        text-decoration-color: transparent;
    }
    .edition-headlines img { flex-shrink: 0; object-fit: cover; border-radius: .3rem; }
    .edition-headlines li a:hover, .edition-headlines li a:focus-visible { text-decoration-color: currentColor; }
    .edition-headlines time { color: var(--muted); font-size: .72rem; }
}

/* Three-column short-news reader */
.reader-rail { display: none; }
@media (min-width: 64rem) {
    .reader-home { --edition-width: 61rem; }
    .reader-home .edition-topics { display: none; }
    .news-edition {
        grid-template-columns: minmax(0, 11.5rem) minmax(0, 430px) minmax(0, 16rem);
        gap: 1rem;
    }
    .reader-rail {
        display: grid;
        align-content: start;
        max-height: calc(100vh - 2rem);
        overflow: auto;
        position: sticky;
        top: 1rem;
        padding: .35rem .6rem;
        border-inline-end: 1px solid var(--line);
    }
    .reader-rail a {
        display: block;
        padding: .55rem .7rem;
        color: var(--ink);
        border-inline-start: 3px solid transparent;
        border-radius: .25rem;
        font-size: .85rem;
        text-decoration: none;
    }
    .reader-rail a[aria-current="page"] {
        color: var(--brand);
        background: var(--surface);
        border-color: var(--brand);
        font-weight: 800;
    }
    .reader-rail a:hover { text-decoration: underline; }
    .home-feed { grid-template-columns: minmax(0, 1fr); }
    .home-feed .story-compact {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }
    .home-feed .story-compact .story-content { padding: 1rem 1.1rem; }
    .home-feed .story-compact figure img, .home-feed .story-compact .story-cover {
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }
    .home-feed .story-compact h2 { font-size: 1.2rem; }
    .home-feed .story-compact p { font-size: 1rem; }
}

/* Desktop reading workspace */
@media (min-width: 64rem) {
    .reader-home .site-header { display: none; }
    .reader-home main { padding-top: .8rem; }
    .reader-rail {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: .75rem;
        padding: .75rem;
    }
    .reader-rail .reader-rail-brand {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        font-weight: 850;
        letter-spacing: -.03em;
    }
    .reader-rail-brand span { color: var(--brand); }
    .reader-rail-brand small { font-size: .7rem; letter-spacing: 0; }
    .reader-rail nav > a, .reader-theme {
        display: flex;
        align-items: center;
        gap: .5rem;
        min-height: 44px;
        padding: .45rem .5rem;
    }
    .reader-rail nav > a span, .reader-theme span {
        color: var(--brand);
        font-size: 1rem;
        flex: 0 0 1rem;
    }
    .reader-rail nav > a[aria-current="page"] {
        background: color-mix(in srgb, var(--brand) 11%, var(--surface));
    }
    .reader-theme { text-align: start; margin-top: .35rem; font-size: .8rem; }
    .edition-headlines { border-top: 0; background: transparent; padding: 0; border-inline: 0; border-bottom: 0; }
    .edition-headlines li { background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; margin-bottom: .5rem; padding: .65rem; }
    .reader-breaking { margin-bottom: 1rem; padding: .75rem; background: var(--surface); border-inline-start: 3px solid var(--brand); }
    .reader-breaking a { font-size: .84rem; }
}

/* Mobile short-news reader */
.reader-dock { display: none; }
@media (max-width: 63.999rem) {
    .reader-home {
        --dock-size: 4rem;
        padding-bottom: calc(var(--dock-size) + env(safe-area-inset-bottom));
    }
    .reader-home .site-header {
        position: relative;
        z-index: 5;
        padding-top: env(safe-area-inset-top);
    }
    .reader-home .edition-topics { margin-bottom: .55rem; }
    .reader-home:has(.home-category-grid) .edition-topics { display: none; }
    .reader-home .home-category-grid { margin-bottom: .65rem; }
    .reader-dock {
        position: fixed;
        inset: auto 0 0;
        z-index: 6;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: var(--reader-width);
        min-height: var(--dock-size);
        margin-inline: auto;
        padding: .3rem max(.25rem, env(safe-area-inset-right)) calc(.3rem + env(safe-area-inset-bottom)) max(.25rem, env(safe-area-inset-left));
        background: var(--surface);
        border: 1px solid var(--line);
        border-bottom: 0;
        border-radius: .8rem .8rem 0 0;
        box-shadow: 0 -.3rem 1rem #190b151a;
    }
    .reader-dock a {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: .1rem;
        min-height: 48px;
        padding-inline: .15rem;
        color: var(--ink);
        border-radius: .55rem;
        text-align: center;
        text-decoration: none;
        line-height: 1.35;
        font-size: .68rem;
        font-weight: 700;
    }
    .reader-dock a[aria-current="page"] { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
    .reader-dock a span { font-size: 1.18rem; line-height: 1.1; }
    .home-menu-panel { max-height: 65vh; overflow: auto; }
    .home-menu-panel .home-topics { max-height: 38vh; }
    .home-feed .story { scroll-margin-top: .4rem; }
}
@media (max-width: 37.5rem) {
    .home-feed .story-compact { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
    .home-feed .story-compact figure img, .home-feed .story-compact .story-cover { aspect-ratio: 16 / 9; border-radius: 0; }
    .home-feed .story-compact figcaption { padding-inline: .8rem; }
    .home-feed .story-compact .story-content { padding: 1rem 1.1rem; }
    .home-feed .story-compact h2 { font-size: 1.15rem; }
    .home-feed .story-compact p { font-size: .94rem; }
}
@media (max-width: 37.5rem) and (prefers-reduced-motion: no-preference) and (pointer: coarse) {
    html:has(.reader-home):not(:has(.home-menu[open])) {
        scroll-snap-type: y proximity;
    }
    .home-feed .story { scroll-snap-align: start; }
}

/* Full-height Shorts edition */
.reader-home {
    --shorts-red: #e8192c;
    --shorts-purple: #6016a8;
    --shorts-panel: #f1f1f2;
    --shorts-picked: #e8192c26;
    --shorts-brand-gradient: linear-gradient(95deg, var(--shorts-red), var(--shorts-purple));
    background: var(--surface);
}
:root[data-theme="dark"] .reader-home { --shorts-panel: #2b2227; --shorts-picked: #ff6b8136; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .reader-home { --shorts-panel: #2b2227; --shorts-picked: #ff6b8136; }
}
.reader-home .home-feed { gap: 0; }
.reader-home .home-feed > .story {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 14px 18px;
    margin-block: 0 .55rem;
    border: 0;
    border-bottom: 4px solid transparent;
    border-radius: 16px;
    background: linear-gradient(var(--shorts-panel), var(--shorts-panel)) padding-box, var(--shorts-brand-gradient) border-box;
    box-shadow: none;
}
.reader-home .home-feed figure img, .reader-home .home-feed .story-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    object-fit: cover;
}
.reader-home .home-feed figcaption { padding: 0 .1rem; }
.reader-home .home-feed .story-content { padding: .6rem .1rem 0; }
.reader-home .home-feed .story-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .35rem; }
.reader-home .home-feed .story-topic {
    color: #fff;
    background: var(--shorts-brand-gradient);
    border-radius: .4rem;
    font-size: .72rem;
}
.reader-home .home-feed :is(h1, h2) { font-size: 1.125rem; line-height: 1.6; margin: .25rem 0 .5rem; font-weight: 800; }
.reader-home .home-feed .story p { margin: 0 0 .45rem; font-size: 1rem; line-height: 1.65; }
.reader-home .home-feed .story-meta { order: 0; font-size: .71rem; }
.reader-home .home-feed .story-actions { margin-top: .4rem; padding-top: .35rem; font-size: .78rem; }
.reader-home .home-feed .story-actions:has([data-bookmark][hidden]):not(:has(a)) { display: none; }
@media (max-width: 63.999rem) {
    .reader-home main { max-width: none; padding: .45rem .65rem; }
    .reader-home .home-feed > .story { margin-block-end: .7rem; }
}
@media (min-width: 64rem) {
    .reader-home { --edition-width: 970px; }
    .reader-home main { padding: 0; }
    .news-edition { grid-template-columns: 220px minmax(0, 430px) 320px; gap: 0; }
    .news-edition .news-home { border-inline: 1px solid var(--line); padding: 28px 14px 0; }
    .reader-rail {
        min-height: 100svh;
        top: 0;
        border: 0;
        border-radius: 0;
        padding: 24px 16px;
    }
    .reader-rail .reader-rail-brand { font-size: 1.6rem; margin-bottom: .95rem; }
    .reader-rail nav > a, .reader-theme {
        padding: .55rem .85rem;
        min-height: 44px;
        border-radius: 12px;
    }
    .reader-rail nav > a[aria-current="page"] { color: var(--ink); background: var(--shorts-picked); border-color: transparent; }
    .edition-headlines { padding: 20px 24px 40px; }
    .edition-headlines ol { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; counter-reset: headlines; }
    .edition-headlines li { counter-increment: headlines; margin: 0; border: 0; padding: .65rem .75rem .65rem 2.6rem; background: var(--shorts-panel); position: relative; }
    .edition-headlines li::before { content: counter(headlines); position: absolute; left: 1rem; top: .65rem; font-weight: 800; color: var(--brand); }
    .edition-headlines .headline-list-unnumbered li { padding-inline-start: .75rem; }
    .edition-headlines .headline-list-unnumbered li::before { content: none; }
    .edition-headlines ol:not(.headline-list-unnumbered) li img { display: none; }
    .reader-breaking { border: 0; padding: 0; margin-bottom: 2rem; }
    .reader-breaking img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
    .reader-breaking .reader-feature-link { display: block; margin-top: .65rem; background: var(--shorts-red); color: white; border-radius: .5rem; text-align: center; padding: .45rem; text-decoration: none; font-weight: 700; }
}

@media (min-width: 64rem) {
    .edition-headlines { position: sticky; top: 0; }
}
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
    html:has(.reader-home) { scroll-snap-type: y proximity; scroll-padding-top: 28px; }
    .reader-home .home-feed > .story { scroll-snap-align: start; }
}

.edition-headlines li a > span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.edition-headlines .headline-list-unnumbered li a > span {
    -webkit-line-clamp: 3;
}

.short-player {
    display: grid;
    justify-items: center;
    gap: .65rem;
    padding: .75rem;
    border-radius: 14px;
    background: var(--paper);
}
.short-player > a { text-align: center; padding: .45rem .65rem; font-weight: 800; }
.short-player iframe { width: min(100%, 315px); aspect-ratio: 9 / 16; border: 0; border-radius: .55rem; }
.short-player.short-playing figure { display: none; }
.reader-home .home-feed .story-infocard figure img { aspect-ratio: auto; object-fit: contain; }

.edition-policy {
    margin-top: 1rem;
    padding-top: .7rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .72rem;
}
.policy-links { display: flex; flex-wrap: wrap; column-gap: .55rem; row-gap: .2rem; }
.policy-links a { color: inherit; text-underline-offset: .15em; }
.edition-policy p { margin: .4rem 0 0; }
@media (min-width: 64rem) {
    .reader-home > footer { display: none; }
}

.pagination a[rel="next"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: .45rem 1rem;
    border: 1px solid var(--brand);
    border-radius: .55rem;
    background: var(--brand);
    color: var(--paper);
    font-weight: 750;
    text-decoration: none;
}
.pagination a[rel="next"]:hover {
    background: var(--surface);
    color: var(--brand);
}

.pagination a[rel="next"] {
    grid-column: 2;
    justify-self: center;
}
.pagination:has(a[rel="next"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .4rem;
}
.pagination:has(a[rel="next"]) a[rel="prev"] {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.reader-video-bulletin p { color: var(--ink); font-size: .82rem; font-weight: 700; margin: .6rem 0 0; }
.reader-breaking .bulletin-player { padding: 0; display: block; background: transparent; }
.reader-breaking .bulletin-player figure { margin: 0; }
.reader-breaking .bulletin-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; }

.channel-shorts { display: grid; gap: .85rem; margin-bottom: 1rem; }
.channel-short h2 { margin: 0 0 .45rem; font-size: 1.1rem; }
.channel-short .short-player figure { width: 100%; margin: 0; }
.channel-short .short-player figure img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Portrait channel videos */
.channel-shorts { gap: 1rem; padding-bottom: .25rem; }
.channel-short {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #161217;
    color: #fff;
}
.channel-short .short-player-channel {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border-radius: inherit;
    background: #161217;
}
.channel-short .short-player-channel figure { height: 100%; margin: 0; }
.channel-short .short-player-channel figure img {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
}
.channel-short .short-player-channel::after {
    position: absolute;
    inset: 55% 0 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(transparent, #000e);
}
.channel-short h2 {
    position: absolute;
    z-index: 2;
    inset: auto .9rem .8rem;
    margin: 0;
    color: #fff;
    font-size: clamp(1.05rem, 4vw, 1.4rem);
    line-height: 1.55;
    pointer-events: none;
}
.channel-short .short-player-channel > a[data-youtube-short] {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    color: transparent;
    font-size: 0;
}
.channel-short .short-player-channel > a[data-youtube-short] span {
    display: grid;
    place-items: center;
    width: 3.6rem;
    aspect-ratio: 1;
    border: 1px solid #fffc;
    border-radius: 50%;
    background: #0009;
    color: white;
    font-size: 1.35rem;
}
.channel-short .short-player-channel > a:focus-visible { outline-offset: -4px; }
.channel-short:has(.short-playing) h2 {
    position: static;
    padding: .75rem .9rem 0;
}
.channel-short .short-playing { aspect-ratio: auto; }
.channel-short .short-playing::after { display: none; }
.channel-short .short-playing iframe {
    display: block;
    width: 100%;
    margin-inline: auto;
    border-radius: 0;
}
.channel-short .short-playing > a { display: block; color: white; font-size: .82rem; }
@media (max-width: 37.5rem) and (prefers-reduced-motion: no-preference) and (pointer: coarse) {
    .channel-short { scroll-snap-align: start; }
}

.edition-headlines .ad-slot-sidebar {
    width: 300px;
    height: 250px;
    margin: 0 0 1.1rem;
    margin-inline: calc((100% - 300px) / 2);
}
.edition-headlines .ad-slot-sidebar.ad-slot-banner img { width: 300px; height: 250px; object-fit: contain; }
.edition-headlines .ad-slot-reserved {
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: .65rem;
    background: var(--paper);
    color: var(--muted);
    font-size: .72rem;
}

html:has(.reader-article) { scroll-snap-type: none; }
.reader-article > footer { padding-bottom: 1rem; }

.story-toolbar { flex-wrap: wrap; }
.story-toolbar .story-share { display: flex; gap: .3rem; margin-inline-start: auto; }
.story-share :is(a, button:not([hidden])) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
}
.story-share :is(a, button):hover { filter: brightness(.85); }
.story-share svg { width: 1.15rem; height: 1.15rem; }
.story-share-facebook { background: #1762cb; }
.story-share-x { background: #171717; }
.story-share-whatsapp { background: #007951; }
.story-share-copy { background: #5d3298; }
.story-share-copy:not([data-copied]) .copy-check-icon,
.story-share-copy[data-copied] .copy-link-icon { display: none; }

.reader-rail a.reader-category-button,
.home-topics a.reader-category-button {
    --topic-ink: var(--category-ink, #86162f);
    --topic-bg: var(--category-bg, #ffe5eb);
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    box-sizing: border-box;
    padding: .35rem .55rem;
    border: 1px solid transparent;
    border-radius: .45rem;
    background: var(--topic-bg);
    color: var(--topic-ink);
    font-weight: 700;
    text-decoration: none;
}
.home-topics a.reader-category-button { flex: 0 0 100%; }
.edition-topics a.reader-category-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .35rem;
    padding: .45rem .65rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    background: var(--category-bg, #ffe5eb);
    color: var(--category-ink, #86162f);
    font-weight: 700;
    white-space: nowrap;
}
.edition-topics a.reader-category-button[aria-current="page"] {
    background: #a31632;
    color: #fff;
}
.reader-category-button[data-accent="blue"] { --category-ink: #164c9c; --category-bg: #e0edff; }
.reader-category-button[data-accent="violet"] { --category-ink: #5d3298; --category-bg: #efe4ff; }
.reader-category-button[data-accent="gold"] { --category-ink: #795000; --category-bg: #fff0c7; }
.reader-category-button[data-accent="green"] { --category-ink: #155c43; --category-bg: #dff5e8; }
.reader-category-button[data-accent="pink"] { --category-ink: #91225d; --category-bg: #ffe1f1; }
.reader-rail a.reader-category-button:is(:hover, [aria-current="page"]),
.home-topics a.reader-category-button:is(:hover, [aria-current="page"]) {
    border-color: var(--topic-ink);
}
.reader-rail a.reader-category-button {
    --topic-ink: var(--brand);
    --topic-bg: transparent;
    min-height: 44px;
    margin: .12rem 0;
    padding: .45rem .5rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
    font-weight: 500;
}
.reader-rail a.reader-category-button span {
    color: var(--brand);
    font-size: 1rem;
    flex: 0 0 1rem;
}
.reader-rail a.reader-category-button:is(:hover, [aria-current="page"]) {
    border-color: transparent;
    background: color-mix(in srgb, var(--brand) 11%, var(--surface));
}

html:has(.reader-home),
.reader-home :is(.reader-rail, .home-menu-panel, .home-topics, .edition-topics) {
    scrollbar-width: none;
}
html:has(.reader-home)::-webkit-scrollbar,
.reader-home :is(.reader-rail, .home-menu-panel, .home-topics, .edition-topics)::-webkit-scrollbar {
    display: none;
}


.article-related { margin-block: 1rem; }

.reader-rail nav > a.reader-primary-link {
    gap: .75rem;
    min-height: 44px;
    margin-block: .25rem;
    border: 0;
    border-radius: 12px;
    padding: .55rem .85rem;
    background: transparent;
    color: var(--muted);
    font-size: .9rem;
}
.reader-rail nav > a.reader-primary-link[aria-current="page"] {
    background: var(--shorts-picked);
    color: var(--ink);
    font-weight: 800;
}
.reader-rail nav > a.reader-primary-link:hover {
    background: color-mix(in srgb, var(--shorts-picked), var(--surface) 55%);
    color: var(--ink);
    text-decoration: none;
}
.language-row { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) .65rem; }
.language-switch { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; font-size: .72rem; }
.language-switch a { color: var(--muted); text-decoration: none; padding: .25rem .4rem; border-radius: .4rem; }
.language-switch a:hover { color: var(--ink); background: var(--paper); }
.language-switch a[aria-current="page"] { color: var(--brand); font-weight: 800; }
.reader-rail > .language-switch {
    flex-wrap: nowrap;
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid var(--line);
}
.reader-rail > .language-switch > a {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding-inline: .3rem;
    text-align: center;
    white-space: nowrap;
    font-size: .75rem;
}
.language-row .language-switch { justify-content: center; }
.language-row .language-switch a[aria-current="page"] {
    background: var(--brand);
    color: var(--surface);
}
.home-topics .reader-menu-icon { color: currentColor; }
.reader-menu-icon { width: 1.2rem; height: 1.2rem; flex: 0 0 1.2rem; color: var(--ink); }
.reader-rail .reader-theme {
    width: 100%;
    margin-top: .55rem;
    flex-wrap: nowrap;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding-block: .75rem .45rem;
    padding-inline: .85rem;
    gap: .75rem;
    color: var(--muted);
    background: transparent;
    font-size: .9rem;
}
.reader-rail .reader-theme [data-theme-action] { white-space: nowrap; }

.article-search {
    display: flex;
    gap: .45rem;
    margin-block: .7rem 1rem;
}
.article-search input { flex: 1; min-width: 0; }
.article-search button { min-height: 44px; }

.brand:has(.newsbit-wordmark),
.reader-rail .reader-rail-brand:has(.newsbit-wordmark) {
    display: inline-flex;
    width: fit-content;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding: .35rem .45rem;
    border-radius: .35rem;
    background: #fff;
    color: #111;
    line-height: 1;
    text-decoration: none;
}
.brand .newsbit-wordmark,
.reader-rail .reader-rail-brand .newsbit-wordmark {
    color: #111;
    font-size: clamp(1.3rem, 4.5vw, 1.7rem);
    font-weight: 850;
    letter-spacing: -.055em;
}
.brand .newsbit-dot,
.reader-rail .reader-rail-brand .newsbit-dot { color: #e8192c; }
.brand .newsbit-tagline,
.reader-rail .reader-rail-brand .newsbit-tagline {
    color: #111;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .06em;
}

:root { --newsbit-logo-ink: #111; --newsbit-logo-surface: #fff; --newsbit-logo-dot: #e8192c; }
:root[data-theme="dark"] { --newsbit-logo-ink: #fff; --newsbit-logo-surface: transparent; --newsbit-logo-dot: #ff536b; }
[data-theme-toggle] .theme-icon-sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .theme-icon-sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .theme-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --newsbit-logo-ink: #fff; --newsbit-logo-surface: transparent; --newsbit-logo-dot: #ff536b; }
    :root:not([data-theme="light"]) [data-theme-toggle] .theme-icon-sun { display: block; }
    :root:not([data-theme="light"]) [data-theme-toggle] .theme-icon-moon { display: none; }
}
.brand:has(.newsbit-wordmark),
.reader-rail .reader-rail-brand:has(.newsbit-wordmark) { background: var(--newsbit-logo-surface); color: var(--newsbit-logo-ink); }
.brand :is(.newsbit-wordmark, .newsbit-tagline),
.reader-rail .reader-rail-brand :is(.newsbit-wordmark, .newsbit-tagline) { color: var(--newsbit-logo-ink); }
.brand .newsbit-dot,
.reader-rail .reader-rail-brand .newsbit-dot { color: var(--newsbit-logo-dot); }
.theme[data-theme-toggle] { display: grid; place-items: center; }
.theme[data-theme-toggle] [data-theme-action] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.story-details p { margin-block: 1rem; white-space: pre-line; }
 
.story-details { overflow-wrap: anywhere; }
.story-details img { display: block; max-width: 100%; height: auto; margin-block: 1rem; }
.story-details figure { margin-inline: 0; }
.story-details :is(h2, h3) { margin-block: 1.25rem .5rem; font-weight: 700; }
.story-details :is(ol, ul) { padding-inline-start: 1.5rem; }
.story-details ul { list-style: disc; }
.story-details ol { list-style: decimal; }
.story-details blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 3px solid currentColor; }
.story-details :is(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
.story-details :is(th, td) { padding: .4rem .65rem; border: 1px solid currentColor; }
.story-details a { text-decoration: underline; }

:root .reader-tech {
    --ink: light-dark(#161e2c, #edf4ff);
    --muted: light-dark(#4c5c74, #b9c9e1);
    --paper: light-dark(#f4f8ff, #0b1220);
    --surface: light-dark(#fff, #141f32);
    --line: light-dark(#cedcf0, #344864);
    --brand: light-dark(#1749a5, #90bbff);
    --newsbit-logo-dot: light-dark(#2463c5, #90bbff);
    --shorts-red: #1955b7;
    --shorts-purple: #234486;
}
:root .reader-home.reader-tech {
    --shorts-panel: light-dark(#fff, #1c1c1f);
    --shorts-picked: light-dark(#dceaff, #243c64);
}
.reader-tech .reader-category-button {
    --category-ink: light-dark(#164c9c, #c4dcff);
    --category-bg: light-dark(#e0edff, #243c64);
}
.reader-tech .edition-topics a.reader-category-button[aria-current="page"] { background: #1749a5; }
.reader-tech .home-feed .story[data-accent] { --card-color: #164c9c; --card-tint: #e0edff; }
.reader-tech .home-feed .story-cover { background: light-dark(#f1f1f2, #29292d); }
.reader-tech .home-category-grid a[data-accent] { --circle: #d8eaff; }
.reader-tech .story-share-copy { background: #1749a5; }
.article-translations { margin-block: .75rem 1.25rem; }
.article-translations ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.article-translations a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .35rem .65rem;
    border-radius: .4rem;
    color: #fff;
    background: linear-gradient(100deg, #c5163b, #611a9d);
    font-size: .875rem;
    line-height: 1.3;
    font-weight: 750;
    text-decoration: none;
}
.article-translations a:hover { background: linear-gradient(100deg, #a71132, #501381); color: #fff; }
.reader-tech .article-translations a { background: var(--shorts-brand-gradient); }
.reader-tech .article-translations a:hover { background: #123776; }
.article-translations a:focus-visible { outline-offset: 3px; }
.site-brand-logo { display: block; width: auto; max-width: min(100%, 220px); height: auto; max-height: 48px; object-fit: contain; }
.ad-slot-banner img { display: block; max-width: 100%; height: auto; margin-inline: auto; }

.analytics-consent { position: fixed; z-index: 15; inset-inline: 1rem; bottom: 4.75rem; width: min(calc(100% - 2rem), 28rem); margin-inline-start: auto; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); box-shadow: 0 4px 20px #0003; }
.analytics-consent h2, .analytics-consent p { margin: 0 0 .5rem; }
.analytics-consent h2 { font-size: 1rem; }
.analytics-consent button, [data-analytics-preferences] { min-height: 44px; }
[data-analytics-allow] { color: var(--surface); background: var(--brand); border-color: var(--brand); }
