:root {
    --bg: #fcfcf4;
    --surf: #fff;
    --ink: #0d2b4d;
    --mut: #5a6577;
    --line: #e6e2d3;
    --grn: #143a66;
    --grn2: #0a2140;
    --och: #f58a1f;
    --ter: #d85f05;
    --nav: #0a2140;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #08111f;
        --surf: #0f1d33;
        --ink: #f4f1e8;
        --mut: #a7b3c6;
        --line: #22385a;
        --nav: #06142b;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #08111f;
    --surf: #0f1d33;
    --ink: #f4f1e8;
    --mut: #a7b3c6;
    --line: #22385a;
    --nav: #06142b;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
}

:root {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.55 "Noto Sans Devanagari", system-ui, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--och);
    outline-offset: 2px;
}

.w {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.pat {
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--ter) 0 14px, var(--och) 14px 28px, var(--grn) 28px 42px, #fff 42px 46px);
}

.topbar {
    background: var(--grn2);
    color: #ffffffb3;
    font-size: 13px;
}

.topbar .w {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
    gap: 10px;
}

.srch {
    display: flex;
    background: #ffffff1f;
    border-radius: 999px;
}

.srch input {
    background: none;
    border: 0;
    color: #fff;
    padding: 4px 12px;
    width: 150px;
    font: inherit;
    font-size: 13px;
}

.srch input::placeholder {
    color: #fff9;
}

.srch button, .tg {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
    font-size: 14px;
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--nav);
    color: #fff;
    box-shadow: 0 4px 18px #0004;
}

header .w {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 24px/1 "Bricolage Grotesque", sans-serif;
    flex: none;
}

.logo-img {
    height: 52px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    border-radius: 8px;
    background: #fcfcf4;
    padding: 2px 6px;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

footer .logo-img {
    height: 60px;
    max-width: 190px;
    background: #fcfcf4;
    padding: 3px 8px;
    border-radius: 8px;
}

.logo i {
    display: block;
    width: 107px;
    height: 60px;
    border-radius: 10px;
    background: #fcfcf4 url('/images/logo.jpg') center/contain no-repeat;
}

footer .logo i {
    width: 128px;
    height: 72px;
    background: #fcfcf4 url('/images/logo.jpg') center/contain no-repeat;
}

nav {
    display: flex;
    gap: 0;
    margin-left: auto;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

nav a {
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    opacity: .88;
    white-space: nowrap;
}

nav a:hover {
    background: #ffffff22;
}

nav a.jh {
    background: var(--och);
    color: #0d2b4d;
    opacity: 1;
    font-weight: 800;
}

nav a.bh {
    background: #1d5aa6;
    color: #fff;
    opacity: 1;
    font-weight: 800;
}

.burger {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.btn {
    display: inline-block;
    background: var(--ter);
    color: #fff;
    font: 800 15px "Noto Sans Devanagari";
    padding: 10px 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
}

.btn.y {
    background: var(--och);
    color: #0d2b4d;
}

.dd {
    position: relative;
    height: 76px;
    display: flex;
    align-items: center;
}

.dd > a::after {
    content: " ▾";
    font-size: 11px;
}

.sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 34px #0004;
    padding: 6px;
    display: none;
    z-index: 40;
}

.dd:hover .sub, .dd:focus-within .sub {
    display: block;
}

.sub a {
    display: block;
    color: var(--ink);
    opacity: 1;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 8px;
}

.sub a:hover {
    background: var(--bg);
    color: var(--ter);
}

/* Breaking Ticker */
.tk {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.tk.jh {
    background: #c4510a;
}

.tk.bh {
    background: #143a66;
    border-top: 1px solid #ffffff30;
}

.tk .w {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
}

.tk em {
    flex: none;
    background: #fff;
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 999px;
    position: relative;
    z-index: 2;
}

.tk.jh em {
    color: #c4510a;
}

.tk.bh em {
    color: #143a66;
}

.vp {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.tr {
    display: flex;
    width: max-content;
    animation: mq2 50s linear infinite;
}

.tr a {
    white-space: nowrap;
    padding: 0 24px 0 0;
    line-height: 42px;
}

.tr a::after {
    content: "◆";
    margin-left: 24px;
    font-size: 9px;
    opacity: .65;
}

.tr a:hover {
    text-decoration: underline;
}

.tr a b {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: 1px;
}

.tr a b.jx {
    background: #fff;
    color: #c4510a;
}

.tr a b.bi {
    background: #143a66;
    color: #fff;
}

@keyframes mq2 {
    to {
        transform: translateX(-50%);
    }
}

.tk:hover .tr, .tk:focus-within .tr, .tk.p .tr {
    animation-play-state: paused;
}

/* Hero Section */
.jhero {
    background: linear-gradient(160deg, var(--grn2), var(--grn) 60%, #2a6aa8);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.jhero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 0, #f58a1f55, transparent 40%), radial-gradient(circle, #ffffff14 2px, transparent 3px) 0 0/26px 26px;
}

.jhero .w {
    position: relative;
    padding-top: 26px;
    padding-bottom: 30px;
}

.jhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.jhead h1 {
    font: 800 clamp(26px, 4.4vw, 44px)/1.1 "Bricolage Grotesque", "Noto Sans Devanagari", sans-serif;
}

.jhead h1 span {
    color: var(--och);
}

.jhead p {
    opacity: .85;
    font-size: 14px;
    margin-top: 6px;
}

.facts {
    display: flex;
    gap: 10px;
}

.facts div {
    background: #ffffff1a;
    border: 1px solid #ffffff30;
    border-radius: 12px;
    padding: 8px 14px;
    text-align: center;
    font-size: 12px;
}

.facts b {
    display: block;
    font: 800 22px "Bricolage Grotesque";
    color: var(--och);
}

.dist {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: none;
}

.dist a {
    flex: none;
    border: 1.5px solid #ffffff55;
    background: #ffffff12;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font: 600 14px "Noto Sans Devanagari";
    white-space: nowrap;
}

.dist a[aria-current] {
    background: var(--och);
    border-color: var(--och);
    color: #0d2b4d;
    font-weight: 800;
}

.jgrid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

.th {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5%;
    color: #fff;
    isolation: isolate;
}

.th::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, #000a, transparent 60%), radial-gradient(circle at 85% 20%, #ffffff40, transparent 40%), var(--g);
}

.th::after {
    content: "▶";
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000a;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.th strong {
    font: 800 clamp(19px, 3vw, 34px)/1.2 "Noto Sans Devanagari";
    max-width: 85%;
    text-shadow: 0 2px 0 #0005;
}

.th.s strong {
    font-size: clamp(15px, 1.8vw, 20px);
}

.th i {
    position: absolute;
    top: 10px;
    left: 10px;
    font: 800 11px "Noto Sans Devanagari";
    background: var(--och);
    color: #0d2b4d;
    padding: 2px 9px;
    border-radius: 4px;
}

.g1 { --g: linear-gradient(135deg, #143a66, #ec6e08); }
.g2 { --g: linear-gradient(135deg, #2a6aa8, #0a2140); }
.g3 { --g: linear-gradient(135deg, #f58a1f, #d85f05); }
.g4 { --g: linear-gradient(135deg, #2a6aa8, #0a2140); }
.g5 { --g: linear-gradient(135deg, #0a2140, #f58a1f); }
.g6 { --g: linear-gradient(135deg, #0d2b4d, #143a66); }

.live {
    background: #ffffff14;
    border: 1px solid #ffffff30;
    border-radius: 14px;
    padding: 6px 16px;
    backdrop-filter: blur(4px);
}

.live h3 {
    font: 800 18px "Noto Sans Devanagari";
    padding: 12px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live h3::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d3a;
    box-shadow: 0 0 0 0 #ff4d3a;
    animation: pl 1.6s infinite;
}

@keyframes pl {
    70% {
        box-shadow: 0 0 0 9px #ff4d3a00;
    }
}

.live a {
    display: block;
    padding: 11px 0;
    border-top: 1px solid #ffffff26;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

.live a small {
    display: block;
    color: var(--och);
    font-size: 12px;
    font-weight: 800;
}

.cap {
    font-weight: 600;
    margin-top: 10px;
}

.meta {
    color: var(--mut);
    font-size: 13px;
}

.jhero .meta {
    color: #ffffffb3;
}

/* Grids & Cards */
main {
    padding-bottom: 10px;
}

h2.sec {
    font: 800 24px/1.2 "Bricolage Grotesque", "Noto Sans Devanagari", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 36px 0 14px;
    padding-left: 12px;
    border-left: 6px solid var(--ter);
}

h2.sec a {
    font: 600 14px "Noto Sans Devanagari";
    color: var(--grn);
}

:root[data-theme="dark"] h2.sec a {
    color: var(--och);
}

.dgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dc {
    background: var(--surf);
    border: 1px solid var(--line);
    border-top: 5px solid var(--och);
    border-radius: 14px;
    padding: 16px;
    transition: transform .2s;
}

.dc:hover {
    transform: translateY(-3px);
}

.dc:nth-child(2n) {
    border-top-color: var(--grn);
}

.dc:nth-child(3n) {
    border-top-color: var(--ter);
}

.dc h3 {
    font: 800 18px "Noto Sans Devanagari";
}

.dc p {
    font-size: 14px;
    color: var(--mut);
    margin: 4px 0 8px;
    line-height: 1.45;
}

.dc span {
    font-size: 12px;
    font-weight: 800;
    color: var(--ter);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.card .th {
    border-radius: 0;
}

.card .in {
    padding: 14px;
}

.tag {
    color: var(--ter);
    font-weight: 800;
    font-size: 12px;
}

.split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.top {
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 18px;
    counter-reset: n;
}

.top div {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    counter-increment: n;
    font-weight: 600;
    font-size: 15px;
}

.top div:first-child {
    border: 0;
}

.top div::before {
    content: counter(n);
    font: 800 28px/1 "Bricolage Grotesque";
    color: var(--ter);
    min-width: 26px;
}

.cult {
    border-radius: 18px;
    background: linear-gradient(110deg, var(--ter), #8a3a00);
    color: #fff;
    padding: 26px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 36px 0;
    position: relative;
    overflow: hidden;
}

.cult::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 26px solid #f58a1f55;
}

.cult h3 {
    font: 800 24px "Bricolage Grotesque", "Noto Sans Devanagari";
}

.cult p {
    opacity: .9;
    max-width: 520px;
}

.cult > * {
    position: relative;
    z-index: 1;
}

.bsec {
    border-left-color: #1d5aa6 !important;
}

.bi .dc {
    border-top-color: #1d5aa6;
}

.bi .dc:nth-child(2n) {
    border-top-color: var(--och);
}

.bi .dc span {
    color: #1d5aa6;
}

:root[data-theme="dark"] .bi .dc span {
    color: #7fb2ee;
}

.bculture {
    background: linear-gradient(110deg, #0a2140, #1d5aa6);
}

.bculture::after {
    border-color: #f58a1f66;
}

.shorts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.shorts .th {
    aspect-ratio: 9/14;
}

.nl {
    margin: 36px 0;
    border: 2px dashed var(--grn);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: var(--surf);
}

.nl h3 {
    font: 800 22px "Bricolage Grotesque", "Noto Sans Devanagari";
}

.nl form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 260px;
    max-width: 460px;
}

.nl input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}

/* Footer */
footer {
    background: var(--nav);
    color: #fff;
    padding: 40px 0 24px;
    margin-top: 30px;
}

.fg {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

footer h4 {
    font-size: 14px;
    color: var(--och);
    margin-bottom: 10px;
}

footer a {
    display: block;
    opacity: .8;
    font-size: 14px;
    padding: 3px 0;
}

footer small {
    display: block;
    opacity: .6;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #ffffff22;
}

/* Ads Common */
.ad {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed var(--mut);
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, transparent 0 12px, #8883 12px 13px);
    color: var(--mut);
    font-size: 13px;
    margin: 26px 0;
    overflow: hidden;
    max-width: 100%;
    transition: height .3s ease, margin .3s ease, opacity .25s ease;
}

.ad::before {
    content: "विज्ञापन";
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
}

.ad.lb { min-height: 100px; }
.ad.in { min-height: 250px; }
.ad.rect { min-height: 250px; margin-top: 0; }
.ad.tall { min-height: 600px; }
.ad.top { margin: 14px auto 0; max-width: 1168px; }

.ad .ax {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: #000a;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ad .ax:hover {
    background: var(--ter);
}

.ad.gone {
    height: 0 !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0;
    border-width: 0;
}

.anchor {
    display: none;
}

/* Article / Details Page Specific */
#prog {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: var(--och);
    z-index: 60;
}

.crumb {
    font-size: 13px;
    color: var(--mut);
    padding: 16px 0 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.crumb a {
    color: var(--grn);
    font-weight: 600;
}

:root[data-theme="dark"] .crumb a {
    color: var(--och);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.art h1 {
    font: 800 clamp(25px, 5.2vw, 40px)/1.25 "Noto Sans Devanagari", sans-serif;
    margin: 6px 0 10px;
}

.dek {
    font-size: clamp(16px, 2.4vw, 19px);
    color: var(--mut);
    margin-bottom: 14px;
}

.by {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 0;
    border-block: 1px solid var(--line);
    font-size: 13px;
    color: var(--mut);
}

.by b {
    color: var(--ink);
}

.av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--grn);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.tools {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.tools button {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surf);
    color: var(--ink);
    font: 800 14px "Noto Sans Devanagari";
    cursor: pointer;
}

.hero {
    margin: 16px 0 6px;
    aspect-ratio: 16/9;
    border-radius: 14px;
}

.hero strong {
    font-size: clamp(20px, 4vw, 32px);
}

.figc {
    font-size: 13px;
    color: var(--mut);
    margin-bottom: 18px;
}

.share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.share a, .share button {
    flex: 1 1 120px;
    text-align: center;
    padding: 11px 14px;
    border-radius: 999px;
    font: 800 14px "Noto Sans Devanagari";
    border: 0;
    cursor: pointer;
    color: #fff;
    min-height: 44px;
}

.wa { background: #1fa855; }
.fb { background: #1d5aa6; }
.cp { background: var(--ter); }

.body {
    font-size: var(--fs, 18px);
    line-height: 1.85;
}

.body p {
    margin: 0 0 1.1em;
}

.body h2 {
    font: 800 1.2em/1.4 "Noto Sans Devanagari";
    margin: 1.4em 0 .5em;
    padding-left: 10px;
    border-left: 5px solid var(--och);
}

.pts {
    background: var(--surf);
    border: 1px solid var(--line);
    border-left: 6px solid var(--ter);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 1.2em 0;
}

.pts h3 {
    font: 800 16px "Noto Sans Devanagari";
    color: var(--ter);
    margin-bottom: 6px;
}

.pts ul {
    padding-left: 18px;
}

.pts li {
    margin: 4px 0;
    font-size: .92em;
}

blockquote {
    margin: 1.3em 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(110deg, var(--grn2), var(--grn));
    color: #fff;
    font-weight: 600;
    font-size: 1.05em;
}

blockquote small {
    display: block;
    color: var(--och);
    margin-top: 6px;
    font-size: .75em;
}

.also {
    display: block;
    background: var(--surf);
    border: 1px dashed var(--ter);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 1.2em 0;
    font-weight: 700;
    font-size: .95em;
}

.also small {
    display: block;
    color: var(--ter);
    font-size: .75em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.tags a {
    border: 1px solid var(--line);
    background: var(--surf);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.side {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 22px;
}

.side .top {
    padding: 4px 16px;
}

.side .top div {
    font-size: 14px;
    padding: 12px 0;
}

.side h3 {
    font: 800 18px "Bricolage Grotesque", "Noto Sans Devanagari";
    margin-bottom: 8px;
}

.cards.four {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cards.four .th {
    aspect-ratio: 4/3;
}

.rel .card {
    transition: transform .2s;
}

.rel .card:hover {
    transform: translateY(-3px);
}

.rel .meta {
    margin-top: 6px;
}

.imp {
    background: var(--surf);
    border: 1px solid var(--line);
    border-top: 5px solid var(--ter);
    border-radius: 14px;
    padding: 10px 16px 4px;
}

.imp a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
}

.imp a:first-of-type {
    border-top: 0;
}

.imp a:hover {
    color: var(--ter);
}

.imp b {
    display: inline-block;
    background: var(--ter);
    color: #fff;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 4px;
    margin-right: 6px;
}

.side .top a {
    display: block;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .burger { display: block; }
    nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--nav);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 16px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    nav.open { display: flex; }
    nav a { padding: 12px; }
    header .w { height: 66px; }
    .logo-img { height: 44px; width: auto; max-width: 140px; }
    .logo i { width: 93px; height: 52px; }
    .sub {
        position: static;
        display: none !important;
        box-shadow: none;
        background: #ffffff14;
        border: 0;
        margin: 0 0 6px 14px;
    }
    .sub a { color: #fff; }
    .sub a:hover { background: #ffffff1f; color: #fff; }
    .dd.open .sub { display: block !important; }
    .dd > a { display: block; }
}

@media (max-width: 1000px) {
    .layout { grid-template-columns: 1fr; }
    .side { position: static; }
    .cards.four { grid-template-columns: repeat(2, 1fr); }
    .ad.tall { min-height: 250px; }
}

@media (max-width: 900px) {
    .jgrid, .split { grid-template-columns: 1fr; }
    .dgrid { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .fg { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .dgrid, .cards { grid-template-columns: 1fr; }
    .topbar .dt { display: none; }
    .srch input { width: 110px; }
    .facts { width: 100%; }
    .facts div { flex: 1; }
    .th strong { max-width: 92%; }
    h2.sec { font-size: 21px; }
    .tk { font-size: 14px; }
    .tk em { font-size: 12px; padding: 3px 9px; }
    .cards.four { grid-template-columns: 1fr; }
    .tools { margin-left: 0; width: 100%; }
    .ad.lb { min-height: 100px; }
    .ad.top { margin: 12px 16px 0; }
    .anchor {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: var(--surf);
        border-top: 2px solid var(--och);
        padding: 6px 36px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
        text-align: center;
        font-size: 12px;
        color: var(--mut);
        min-height: 62px;
    }
    .anchor button {
        position: absolute;
        right: 4px;
        top: 4px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 0;
        background: var(--line);
        color: var(--ink);
        cursor: pointer;
        font-size: 14px;
    }
    body { padding-bottom: 70px; }
}
