/* Public Media Hub (/media) & Article Reader (/media/news/<slug>), layered over seed-to-cup.css */
.mmain { padding-top: 68px; }
.mhero { padding: clamp(38px, 6vw, 66px) 0 42px; border-bottom: 2px solid rgba(243,238,227,.14); background: radial-gradient(900px 500px at 85% 20%, rgba(196,22,31,.16), transparent 65%); }
.mhero .eb { color: var(--yel); display: flex; align-items: center; gap: 10px; }
.mhero .eb::before { content: ""; width: 28px; height: 3px; background: var(--yel); }
.mhero h1 { font-size: clamp(42px, 6.8vw, 84px); margin: 12px 0 6px; line-height: .95; }
.mhero h1 .r { color: var(--live); }
.mhero .np { font-size: clamp(20px, 2.4vw, 26px); opacity: .9; }
.mhero p.lead { max-width: 44em; margin-top: 14px; font-size: 17.5px; opacity: .9; }

.mbar { position: sticky; top: 68px; z-index: 8; background: rgba(10,10,10,.94); border-bottom: 2px solid rgba(243,238,227,.18); padding: 12px 0; backdrop-filter: blur(8px); }
.msec { padding: clamp(44px, 6vw, 72px) 0; border-bottom: 1px solid rgba(243,238,227,.12); scroll-margin-top: 126px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head .eb { color: var(--yel); }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin-top: 6px; }
.sec-head h2 span { color: var(--live); }
.sec-head .sdesc { max-width: 36em; font-size: 16px; opacity: .88; }
.subpills { display: flex; flex-wrap: wrap; gap: 8px; }

.mgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .mgrid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mgrid3 { grid-template-columns: 1fr; } }

.mcard-item { border: 2px solid rgba(243,238,227,.22); background: #111; display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s; }
.mcard-item:hover { border-color: var(--yel); }
.mthumb { position: relative; background: #000; aspect-ratio: 16/9; overflow: hidden; }
.mthumb.photo { aspect-ratio: 4/3; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.mcard-item:hover .mthumb img { transform: scale(1.02); }
.mplay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,10,10,.32); border: 0; cursor: pointer; color: #fff; }
.mplay span { width: 58px; height: 58px; border-radius: 50%; background: var(--yel); color: var(--black); display: grid; place-items: center; font-size: 20px; font-weight: 900; padding-left: 3px; box-shadow: 0 4px 18px rgba(0,0,0,.5); }
.mdur { position: absolute; right: 8px; bottom: 8px; background: rgba(10,10,10,.88); color: var(--bone); font: 700 12px/1 'Barlow Condensed', sans-serif; padding: 4px 7px; border: 1px solid rgba(243,238,227,.3); }
.mbody { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; color: var(--yel); }
.mbody h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.18; }
.mbody p { font-size: 15px; line-height: 1.5; opacity: .88; }
.mfoot-row { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.mempty { grid-column: 1 / -1; padding: 28px; border: 1.5px dashed rgba(243,238,227,.3); opacity: .82; }

/* Podcast banner */
.podbox { border: 2px dashed rgba(242,194,0,.6); background: rgba(242,194,0,.04); padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 720px) { .podbox { grid-template-columns: 1fr; } }
.podbox img { width: 200px; height: 200px; object-fit: cover; border: 2px solid rgba(243,238,227,.28); background: #0a0a0a; }
.podbox h2 { font-size: clamp(28px, 4vw, 44px); margin: 10px 0 8px; }
.podbox p { max-width: 40em; margin-bottom: 16px; opacity: .9; }

/* Brand kit */
.btop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
@media (max-width: 780px) { .btop { grid-template-columns: 1fr; } }
.bhero-card { border: 2px solid rgba(243,238,227,.26); background: #111; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.bhero-card h3 { font-family: 'Saira Stencil One', sans-serif; font-size: 26px; font-weight: 400; line-height: 1.1; }
.bacts { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }

.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.swatch { border: 1.5px solid rgba(243,238,227,.28); background: #111; padding: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; overflow: hidden; }
.swatch .sw-c { height: 54px; width: 100%; display: block; border-bottom: 1px solid rgba(243,238,227,.2); }
.swatch .sw-i { padding: 8px 10px; display: block; font-size: 13px; }
.swatch .sw-i b { display: block; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .06em; }

.bsub { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 18px; color: var(--yel); margin: 24px 0 12px; }
.lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 920px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lgrid { grid-template-columns: 1fr; } }
.lcard { border: 1.5px solid rgba(243,238,227,.24); background: #111; display: flex; flex-direction: column; }
.lprev { height: 150px; padding: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lprev.bone { background: var(--bone); color: var(--black); }
.lprev.ink { background: #050505; }
.lprev img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.linfo { padding: 14px; display: grid; gap: 8px; flex: 1; }
.linfo b { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: .05em; }
.linfo small { opacity: .8; font-size: 13.5px; }
.ldl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.84); }
.modal-box { position: relative; z-index: 1; width: min(920px, 100%); max-height: 90svh; overflow: auto; background: #0f0f0f; border: 2px solid var(--yel); padding: 20px; }
.modal-x { position: absolute; right: 10px; top: 8px; width: 38px; height: 38px; border: 1.5px solid rgba(243,238,227,.4); background: transparent; color: var(--bone); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-yt { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; display: block; margin-top: 12px; }
.modal-img { max-width: 100%; max-height: 70svh; display: block; margin: 12px auto; }

/* SSR Article Page */
.art-main { padding: 104px 0 64px; }
.art-wrap { max-width: 820px; }
.art-crumb { display: flex; gap: 8px; align-items: center; font: 700 13.5px/1.2 'Barlow Condensed', Mukta, sans-serif; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.art-crumb a { color: var(--yel); text-decoration: none; }
.art-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 14.5px; opacity: .88; }
.art-h1 { font-family: 'Saira Stencil One', Mukta, sans-serif; font-weight: 400; font-size: clamp(32px, 5vw, 56px); line-height: 1.06; margin-bottom: 12px; }
.art-lead { font-size: 19px; line-height: 1.5; opacity: .9; margin-bottom: 22px; }
.art-hero { margin: 0 0 26px; }
.art-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 2px solid rgba(243,238,227,.24); display: block; }
.art-hero figcaption, .art-fig figcaption { font-size: 13.5px; opacity: .75; margin-top: 6px; }
.art-body { display: grid; gap: 16px; font-size: 18px; line-height: 1.68; }
.art-body h2 { font-family: 'Barlow Condensed', Mukta, sans-serif; text-transform: uppercase; font-size: 28px; margin-top: 10px; color: var(--yel); }
.art-body h3 { font-family: 'Barlow Condensed', Mukta, sans-serif; font-size: 22px; margin-top: 6px; }
.art-body blockquote { border-left: 4px solid var(--yel); padding: 6px 16px; font-style: italic; background: rgba(242,194,0,.06); }
.art-body ul { padding-left: 22px; display: grid; gap: 6px; }
.art-body a { color: var(--yel); }
.art-fig img { width: 100%; max-height: 520px; object-fit: cover; border: 1.5px solid rgba(243,238,227,.2); display: block; }
.art-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(243,238,227,.2); display: flex; flex-wrap: wrap; gap: 12px; }
.art-more { margin-top: 42px; padding-top: 26px; border-top: 2px solid var(--live); }
.art-more h2 { font-family: 'Barlow Condensed', Mukta, sans-serif; text-transform: uppercase; font-size: 22px; margin-bottom: 14px; }
.art-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .art-mgrid { grid-template-columns: 1fr; } }
.mrel { text-decoration: none; border: 1.5px solid rgba(243,238,227,.22); background: #111; overflow: hidden; display: flex; flex-direction: column; }
.mrel img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.mrel div { padding: 10px 12px; }
.mrel small { display: block; color: var(--yel); font: 700 12px/1.2 'Barlow Condensed', sans-serif; text-transform: uppercase; margin-bottom: 4px; }
.lang .lbtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 36px; min-width: 40px; padding: 0 8px; font: 600 14px/1 'Barlow Condensed', Mukta, sans-serif; }
.lang .lbtn[aria-pressed=true] { background: var(--bone); color: var(--black); }

/* Nepali font overrides */
html[lang=ne] :is(.mbody h3, .mmeta, .bhero-card h3, .bsub, .linfo b, .art-h1, .art-body h2) { font-family: Mukta, sans-serif; font-weight: 800; text-transform: none; letter-spacing: 0; }

/* Story Timeline */
.tl-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tl-intro { max-width: 46em; margin: -8px 0 26px; font-size: 16.5px; opacity: .88; }
.tl-rail { position: relative; padding-left: 28px; border-left: 3px solid var(--live); display: grid; gap: 28px; }
@media (max-width: 600px) { .tl-rail { padding-left: 18px; } }
.tl-month { position: relative; margin-top: 6px; font-family: 'Saira Stencil One', Mukta, sans-serif; font-size: clamp(20px, 2.8vw, 28px); color: var(--yel); letter-spacing: .04em; text-transform: uppercase; }
.tl-month::before { content: ""; position: absolute; left: -37px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; background: var(--yel); border: 3px solid var(--black); border-radius: 50%; }
@media (max-width: 600px) { .tl-month::before { left: -27px; } }

.tl-item { position: relative; border: 2px solid rgba(243,238,227,.24); background: #111; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); transition: border-color .2s; }
.tl-item:hover { border-color: var(--yel); }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 24px; width: 13px; height: 13px; background: var(--live); border: 2px solid var(--bone); border-radius: 50%; z-index: 2; }
@media (max-width: 820px) { .tl-item { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tl-item::before { left: -26px; } }

.tl-media { position: relative; background: #000; width: 100%; height: 100%; min-height: 200px; overflow: hidden; display: block; }
@media (max-width: 820px) { .tl-media { height: auto; min-height: 0; aspect-ratio: 16/9; } }
.tl-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.tl-when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: 'Barlow Condensed', Mukta, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.tl-when time { color: var(--yel); font-size: 14px; }
.tl-kind { padding: 3px 8px; border: 1.5px solid currentColor; font-size: 11.5px; }
.tl-kind.k-news { color: var(--yel); border-color: var(--yel); }
.tl-kind.k-photo { color: #8ec06b; border-color: #8ec06b; }
.tl-kind.k-video { color: #ff6e75; border-color: #ff6e75; }
.tl-kind.k-podcast { color: #9bc7ff; border-color: #9bc7ff; }
.tl-body h3 { font-family: 'Barlow Condensed', Mukta, sans-serif; font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.tl-what { font-size: 16px; line-height: 1.55; opacity: .92; }
.tl-how { border-left: 3px solid var(--yel); padding: 6px 12px; background: rgba(242,194,0,.06); font-size: 15px; line-height: 1.5; }
.tl-how b { font-family: 'Barlow Condensed', Mukta, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--yel); margin-right: 6px; font-size: 13.5px; }

html[data-theme=light] .tl-rail { border-color: var(--red); }
html[data-theme=light] .tl-month { color: var(--red); }
html[data-theme=light] .tl-month::before { background: var(--red); border-color: var(--bone); }
html[data-theme=light] .tl-item { background: #fff; border-color: rgba(10,10,10,.26); color: var(--black); }
html[data-theme=light] .tl-item:hover { border-color: var(--red); }
html[data-theme=light] .tl-item::before { background: var(--red); border-color: var(--black); }
html[data-theme=light] .tl-when time, html[data-theme=light] .tl-how b { color: var(--red); }
html[data-theme=light] .tl-how { border-left-color: var(--red); background: rgba(139,0,0,.04); }
html[data-theme=light] .tl-kind.k-news { color: var(--red); border-color: var(--red); }
html[data-theme=light] .tl-kind.k-photo { color: #365721; border-color: #365721; }
html[data-theme=light] .tl-kind.k-video { color: #9c1a22; border-color: #9c1a22; }
html[data-theme=light] .tl-kind.k-podcast { color: #1d4e89; border-color: #1d4e89; }

html[lang=ne] :is(.tl-month, .tl-when, .tl-kind, .tl-body h3, .tl-how b) { font-family: Mukta, sans-serif; font-weight: 800; text-transform: none; letter-spacing: 0; }

html[data-theme=light] .mhero { border-color: rgba(10,10,10,.16); background: radial-gradient(900px 500px at 85% 20%, rgba(139,0,0,.08), transparent 65%); }
html[data-theme=light] .mhero .eb, html[data-theme=light] .sec-head .eb, html[data-theme=light] .mmeta, html[data-theme=light] .bsub, html[data-theme=light] .art-crumb a, html[data-theme=light] .art-body h2, html[data-theme=light] .mrel small { color: var(--red); }
html[data-theme=light] .mhero .eb::before { background: var(--red); }
html[data-theme=light] .mhero h1 .r, html[data-theme=light] .sec-head h2 span { color: var(--red); }
html[data-theme=light] .mbar { background: rgba(243,238,227,.94); border-color: rgba(10,10,10,.16); }
html[data-theme=light] .msec { border-color: rgba(10,10,10,.14); }
html[data-theme=light] .mcard-item, html[data-theme=light] .bhero-card, html[data-theme=light] .swatch, html[data-theme=light] .lcard, html[data-theme=light] .mrel, html[data-theme=light] .modal-box { background: #fff; border-color: rgba(10,10,10,.26); color: var(--black); }
html[data-theme=light] .mcard-item:hover { border-color: var(--red); }
html[data-theme=light] .podbox { border-color: var(--red); background: rgba(139,0,0,.04); }
html[data-theme=light] .lang .lbtn[aria-pressed=true] { background: var(--black); color: var(--bone); }
html[data-theme=light] .modal-x { color: var(--black); border-color: var(--black); }
