/* NepalUnlock News — main stylesheet */
:root {
	--nu-red: #d71920;
	--nu-red-dark: #a50f15;
	--nu-ink: #111418;
	--nu-text: #1d2127;
	--nu-muted: #5f6670;
	--nu-line: #e4e6ea;
	--nu-bg: #f4f5f7;
	--nu-card: #ffffff;
	--nu-black: #0b0d10;
	--nu-radius: 6px;
	--nu-wrap: 1240px;
	--nu-font: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--nu-font); font-size: 18px; line-height: 1.6; color: var(--nu-text); background: var(--nu-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nu-red); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .4em; color: var(--nu-ink); font-weight: 700; }
button { font: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nu-skip { position: absolute; left: -999px; top: 0; background: var(--nu-red); color: #fff; padding: 8px 14px; z-index: 1000; }
.nu-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.nu-wrap { max-width: var(--nu-wrap); margin: 0 auto; padding: 0 16px; }

/* Top bar */
.nu-topbar { background: var(--nu-black); color: #cfd3d8; font-size: 14px; }
.nu-topbar__in { display: flex; align-items: center; gap: 18px; min-height: 36px; flex-wrap: wrap; }
.nu-weather:empty { display: none; }
.nu-weather::before { content: "☁ "; }
.nu-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nu-lang { display: flex; gap: 2px; }
.nu-lang ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nu-lang a { padding: 2px 10px; border-radius: 3px; color: #fff; }
.nu-lang a[aria-current], .nu-lang .current-lang a { background: var(--nu-red); }
.nu-social { display: flex; gap: 10px; flex-wrap: wrap; }
.nu-social a { font-size: 13px; color: #fff; opacity: .85; }
.nu-social a:hover { opacity: 1; color: #fff; }

/* Masthead */
.nu-masthead { background: #fff; border-bottom: 1px solid var(--nu-line); }
.nu-masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.nu-brand { display: flex; align-items: center; gap: 14px; }
.nu-brand__logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.nu-brand__text { display: flex; flex-direction: column; }
.nu-brand__name { font-size: 40px; font-weight: 800; letter-spacing: .5px; line-height: 1; color: var(--nu-ink); font-style: italic; }
.nu-brand__name b { color: var(--nu-red); }
.nu-brand__tag { font-size: 17px; color: var(--nu-muted); margin-top: 6px; }
.nu-brand:hover { color: inherit; }

/* Nav */
.nu-nav { background: var(--nu-red); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.admin-bar .nu-nav { top: 32px; }
.nu-nav__in { display: flex; align-items: center; }
.nu-menu { display: flex; flex-wrap: nowrap; overflow-x: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: none; flex: 1; }
.nu-menu::-webkit-scrollbar { display: none; }
.nu-menu > li { position: relative; }
.nu-menu a { display: block; color: #fff; padding: 12px 14px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.nu-menu a:hover, .nu-menu .current-menu-item > a, .nu-menu .current-cat > a { background: var(--nu-red-dark); color: #fff; }
.nu-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; list-style: none; margin: 0; padding: 6px 0; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 0 0 6px 6px; }
.nu-menu .sub-menu a { color: var(--nu-text); font-weight: 500; padding: 8px 16px; }
.nu-menu .sub-menu a:hover { background: var(--nu-bg); color: var(--nu-red); }
.nu-menu li:hover > .sub-menu, .nu-menu li:focus-within > .sub-menu { display: block; }
.nu-nav__toggle, .nu-nav__search { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.nu-nav__toggle { display: none; }
.nu-nav__toggle span:first-child, .nu-nav__toggle span:first-child::before, .nu-nav__toggle span:first-child::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; }
.nu-nav__toggle span:first-child::before { position: absolute; top: -7px; }
.nu-nav__toggle span:first-child::after { position: absolute; top: 7px; }
.nu-nav__search::before { content: ""; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; display: block; box-shadow: 6px 6px 0 -4px #fff; }
.nu-searchbar { background: #fff; padding: 12px 0; border-bottom: 1px solid var(--nu-line); }
.nu-searchform { display: flex; gap: 8px; max-width: 640px; }
.nu-searchform input { flex: 1; font: inherit; padding: 8px 12px; border: 1px solid #c9cdd3; border-radius: var(--nu-radius); }
.nu-searchform button, .nu-btn { background: var(--nu-red); color: #fff; border: 0; padding: 8px 18px; border-radius: var(--nu-radius); font-weight: 700; display: inline-block; }
.nu-btn:hover { background: var(--nu-red-dark); color: #fff; }

/* Ticker */
.nu-ticker { background: #fff; border-bottom: 1px solid var(--nu-line); }
.nu-ticker__in { display: flex; align-items: center; gap: 12px; height: 42px; overflow: hidden; }
.nu-ticker__label { background: var(--nu-black); color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 3px; flex: none; position: relative; }
.nu-ticker__label::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--nu-red); margin-left: 8px; animation: nu-pulse 1.2s infinite; }
@keyframes nu-pulse { 50% { opacity: .2; } }
.nu-ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.nu-ticker__track ul { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; white-space: nowrap; width: max-content; animation: nu-scroll 60s linear infinite; }
.nu-ticker__track:hover ul { animation-play-state: paused; }
.nu-ticker__track li::before { content: "◆"; color: var(--nu-red); font-size: 10px; margin-right: 10px; vertical-align: 2px; }
@keyframes nu-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nu-ticker__track ul { animation: none; } .nu-ticker__track { overflow-x: auto; scrollbar-width: none; } .nu-ticker__track::-webkit-scrollbar { display: none; } }

/* Layout */
.nu-main { padding: 20px 0 40px; }
.nu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.nu-sidebar { position: sticky; top: 60px; display: flex; flex-direction: column; gap: 18px; }
.nu-grid { display: grid; gap: 18px; }
.nu-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nu-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nu-section { background: var(--nu-card); border-radius: var(--nu-radius); padding: 18px; margin-bottom: 22px; }
.nu-sec-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--nu-line); margin-bottom: 16px; }
.nu-sec-head h2 { font-size: 26px; margin: 0; padding-bottom: 6px; border-bottom: 3px solid var(--nu-red); margin-bottom: -2px; }
.nu-sec-head a { font-size: 15px; color: var(--nu-red); font-weight: 700; }
.nu-empty { color: var(--nu-muted); }

/* Lead */
.nu-lead { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; background: var(--nu-card); border-radius: var(--nu-radius); padding: 18px; margin-bottom: 22px; }
.nu-lead__side { display: flex; flex-direction: column; gap: 14px; }
.nu-lead__side .nu-story--thumb + .nu-story--thumb { border-top: 1px solid var(--nu-line); padding-top: 14px; }

/* Story cards */
.nu-story { display: flex; flex-direction: column; gap: 8px; }
.nu-story__media { display: block; overflow: hidden; border-radius: var(--nu-radius); background: #e9ebee; aspect-ratio: 16 / 9; position: relative; }
.nu-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nu-story:hover .nu-story__media img { transform: scale(1.03); }
.nu-story__media.is-video::after { content: "▶"; position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--nu-red); color: #fff; display: grid; place-items: center; font-size: 14px; }
.nu-story__cat { font-size: 14px; color: var(--nu-red); font-weight: 700; }
.nu-story__title { font-size: 20px; margin: 0; }
.nu-story__excerpt { margin: 0; color: #3b4149; font-size: 17px; }
.nu-story__time { font-size: 13px; color: var(--nu-muted); }
.nu-story--hero .nu-story__title { font-size: 34px; line-height: 1.25; }
.nu-story--thumb { flex-direction: row; gap: 12px; align-items: flex-start; }
.nu-story--thumb .nu-story__media { flex: 0 0 120px; aspect-ratio: 3 / 2; }
.nu-story--thumb .nu-story__title { font-size: 17px; }
.nu-story--list { flex-direction: row; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--nu-line); }
.nu-story--list .nu-story__media { flex: 0 0 240px; }
.nu-story--list .nu-story__title { font-size: 22px; }
.nu-story--text { padding: 10px 0; border-bottom: 1px solid var(--nu-line); }
.nu-story--text:last-child { border-bottom: 0; }
.nu-story--text .nu-story__title { font-size: 18px; }

/* Feature blocks */
.nu-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.nu-feature__main .nu-story__title { font-size: 24px; }
.nu-listgrid { gap: 14px 24px; }

/* Province tabs */
.nu-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.nu-tabs button { border: 1px solid var(--nu-line); background: #fff; padding: 6px 14px; border-radius: 30px; white-space: nowrap; font-weight: 600; }
.nu-tabs button[aria-selected="true"] { background: var(--nu-red); border-color: var(--nu-red); color: #fff; }

/* Video */
.nu-video { background: var(--nu-black); color: #fff; }
.nu-video .nu-sec-head { border-color: #2a2f36; }
.nu-video .nu-sec-head h2, .nu-video .nu-story__title { color: #fff; }
.nu-video__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.nu-video__in:has(> :only-child) { grid-template-columns: 1fr; }
.nu-fb { background: #fff; border-radius: var(--nu-radius); overflow: hidden; max-width: 340px; }

/* Opinion */
.nu-op { text-align: center; }
.nu-op__avatar { border-radius: 50%; margin: 0 auto 8px; }
.nu-op__author { color: var(--nu-red); font-weight: 700; margin: 0; font-size: 15px; }
.nu-op h3 { font-size: 18px; }

/* Sidebar boxes */
.nu-box { background: var(--nu-card); border-radius: var(--nu-radius); padding: 16px; }
.nu-box__title { font-size: 20px; border-left: 4px solid var(--nu-red); padding-left: 10px; margin-bottom: 12px; }
.nu-box__note { font-size: 13px; color: var(--nu-muted); margin: 8px 0 0; }
.nu-mostread ol { counter-reset: nu; list-style: none; margin: 0; padding: 0; }
.nu-mostread li { counter-increment: nu; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nu-line); font-weight: 600; line-height: 1.4; }
.nu-mostread li:last-child { border-bottom: 0; }
.nu-mostread li::before { content: counter(nu); font-size: 28px; font-weight: 800; color: var(--nu-red); line-height: 1; min-width: 24px; }
.nu-forex table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nu-forex th, .nu-forex td { padding: 6px 4px; border-bottom: 1px solid var(--nu-line); text-align: right; }
.nu-forex th:first-child, .nu-forex td:first-child { text-align: left; }
.nu-forex th { color: var(--nu-muted); font-weight: 600; }
.nu-nepse__row { display: flex; align-items: baseline; gap: 12px; }
.nu-nepse__row strong { font-size: 32px; color: var(--nu-ink); }
.nu-nepse__chg { font-weight: 700; }
.nu-nepse__chg.is-up { color: #12833a; }
.nu-nepse__chg.is-down { color: var(--nu-red); }
.nu-nepse.is-compact { background: var(--nu-bg); margin-bottom: 8px; }
.nu-gold ul { list-style: none; margin: 0; padding: 0; }
.nu-gold li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--nu-line); }
.nu-gold li:last-child { border-bottom: 0; }

/* Ads */
.nu-ad { text-align: center; margin: 0 auto 22px; }
.nu-ad__label { display: block; font-size: 11px; color: var(--nu-muted); letter-spacing: 1px; text-transform: uppercase; }
.nu-masthead .nu-ad { margin: 0; }

/* Article */
.nu-article { background: var(--nu-card); border-radius: var(--nu-radius); padding: 24px 28px; margin-bottom: 22px; }
.nu-crumbs { font-size: 14px; color: var(--nu-muted); display: flex; gap: 8px; margin-bottom: 10px; }
.nu-crumbs a { color: var(--nu-red); font-weight: 600; }
.nu-flag { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; padding: 2px 10px; border-radius: 3px; margin-bottom: 8px; }
.nu-flag--breaking { background: var(--nu-red); }
.nu-flag--opinion { background: #4a5568; }
.nu-article__title { font-size: 40px; line-height: 1.25; }
.nu-article__dek { font-size: 21px; color: #3b4149; margin: 0 0 14px; }
.nu-article__meta { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--nu-line); border-bottom: 1px solid var(--nu-line); margin-bottom: 14px; }
.nu-article__meta img { border-radius: 50%; }
.nu-article__author { font-weight: 700; color: var(--nu-red); }
.nu-article__times { font-size: 14px; color: var(--nu-muted); }
.nu-share { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.nu-share a, .nu-share button { font-size: 14px; font-weight: 700; color: #fff; padding: 6px 14px; border-radius: 30px; border: 0; }
.nu-share__fb { background: #1877f2; }
.nu-share__wa { background: #25d366; }
.nu-share__viber { background: #7360f2; }
.nu-share__x { background: #111; }
.nu-share__copy { background: #6b7280; }
.nu-share a:hover { color: #fff; opacity: .9; }
.nu-article__figure { margin: 0 0 18px; }
.nu-article__figure img { width: 100%; border-radius: var(--nu-radius); }
.nu-article__figure figcaption { font-size: 14px; color: var(--nu-muted); padding-top: 6px; }
.nu-article__content { font-size: 20px; line-height: 1.85; }
.nu-article__content p { margin: 0 0 1.1em; }
.nu-article__content a { color: var(--nu-red); text-decoration: underline; }
.nu-article__content h2 { font-size: 26px; margin-top: 1.2em; }
.nu-article__content blockquote { border-left: 4px solid var(--nu-red); margin: 1em 0; padding: 4px 18px; color: #3b4149; background: var(--nu-bg); }
.nu-article__content iframe { max-width: 100%; }
.nu-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.nu-tags a { background: var(--nu-bg); padding: 3px 12px; border-radius: 30px; font-size: 14px; }
.nu-article__foot { font-size: 15px; color: var(--nu-muted); border-top: 1px solid var(--nu-line); padding-top: 10px; }
.nu-article__foot a { color: var(--nu-red); font-weight: 700; }
.nu-authorbox { display: flex; gap: 14px; background: var(--nu-bg); border-radius: var(--nu-radius); padding: 14px; margin-top: 14px; }
.nu-authorbox img { border-radius: 50%; }
.nu-authorbox p { margin: 4px 0 0; font-size: 15px; }

/* Archive */
.nu-archive-head { background: var(--nu-card); border-radius: var(--nu-radius); padding: 18px; margin-bottom: 22px; border-top: 4px solid var(--nu-red); }
.nu-archive-head h1 { font-size: 34px; margin: 0; }
.nu-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nu-subcats a { background: var(--nu-bg); padding: 4px 12px; border-radius: 30px; font-size: 15px; font-weight: 600; }
.nu-archive-lead, .nu-archive-list { background: var(--nu-card); border-radius: var(--nu-radius); padding: 18px; margin-bottom: 18px; }
.nu-archive-list { padding-top: 4px; }
.nu-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nu-pagination .page-numbers { background: #fff; padding: 6px 12px; border-radius: var(--nu-radius); border: 1px solid var(--nu-line); }
.nu-pagination .current { background: var(--nu-red); color: #fff; border-color: var(--nu-red); }
.nu-404 { text-align: center; }
.nu-404 h1 { font-size: 96px; color: var(--nu-red); margin: 0; }
.nu-404 .nu-searchform { margin: 16px auto; }
.nu-404 .nu-section { text-align: left; margin-top: 30px; }

/* Footer */
.nu-footer { background: var(--nu-black); color: #c4c9cf; margin-top: 20px; }
.nu-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.nu-footer h4 { color: #fff; font-size: 18px; border-bottom: 2px solid var(--nu-red); display: inline-block; padding-bottom: 4px; }
.nu-footer ul { list-style: none; margin: 0; padding: 0; }
.nu-footer li { padding: 3px 0; }
.nu-footer a:hover { color: #fff; }
.nu-footer__brand img { border-radius: 50%; margin-bottom: 8px; }
.nu-footer__name { font-size: 26px; font-weight: 800; font-style: italic; color: #fff; margin: 0; }
.nu-footer__name b { color: var(--nu-red); }
.nu-footer__cats { columns: 2; }
.nu-footer__info span { color: #8b929a; }
.nu-footer__bottom { border-top: 1px solid #22272e; padding: 14px 0; font-size: 14px; }
.nu-footer__bottom span { float: right; color: #8b929a; }
.nu-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--nu-red); color: #fff; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 60; }

/* Responsive */
@media (max-width: 1100px) {
	.nu-layout { grid-template-columns: 1fr; }
	.nu-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nu-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	body { font-size: 17px; }
	.nu-lead, .nu-feature, .nu-video__in { grid-template-columns: 1fr; }
	.nu-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nu-story--hero .nu-story__title { font-size: 26px; }
	.nu-article { padding: 18px; }
	.nu-article__title { font-size: 30px; }
	.nu-article__content { font-size: 19px; }
	.nu-footer__grid { grid-template-columns: 1fr 1fr; }
	.nu-nav__toggle { display: grid; }
	.nu-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--nu-red); flex-direction: column; overflow: visible; max-height: 75vh; overflow-y: auto; }
	.nu-nav.is-open .nu-menu { display: flex; }
	.nu-nav__in { position: relative; justify-content: space-between; }
	.nu-menu .sub-menu { position: static; display: block; background: var(--nu-red-dark); box-shadow: none; border-radius: 0; }
	.nu-menu .sub-menu a { color: #fff; padding-left: 28px; }
}
@media (max-width: 560px) {
	.nu-wrap { padding: 0 12px; }
	.nu-brand__logo { width: 60px; height: 60px; }
	.nu-brand__name { font-size: 28px; }
	.nu-brand__tag { font-size: 15px; }
	.nu-topbar__right { margin-left: 0; }
	.nu-social--top { display: none; }
	.nu-grid--2, .nu-grid--3, .nu-grid--4, .nu-sidebar { grid-template-columns: 1fr; }
	.nu-story--list .nu-story__media { flex-basis: 120px; }
	.nu-story--list .nu-story__title { font-size: 18px; }
	.nu-story--list .nu-story__excerpt { display: none; }
	.nu-section, .nu-lead { padding: 14px; }
	.nu-footer__grid { grid-template-columns: 1fr; }
	.nu-footer__bottom span { float: none; display: block; }
}
