/* =====================================================================
   "Yangi qonunlar sodda tilda" — new-laws-in-plain-language.css (mustaqil fayl) (pri.oliymajlis.uz)
   Faqat .nl* klasslari; !important yoʻq. Bogʻliq fayllar: new-laws-in-plain-language.tpl, js/new-laws-in-plain-language.js
   ===================================================================== */

.nl {
	--nl-navy: #0b2a4a;
	--nl-navy-2: #123b66;
	--nl-green: #1e9e57;
	--nl-green-2: #7be0a6;
	--nl-amber: #b7791f;
	--nl-text: #1a1a1a;
	--nl-muted: #5c667d;
	--nl-line: #e3e8ef;
	--nl-soft: #f4f6f9;
	--nl-focus: #1a73e8;
}
.nl * { box-sizing: border-box; }
.nl { color: var(--nl-text); overflow-wrap: anywhere; }
.nl.is-ready .nl-src { display: none; }
.nl a:focus-visible, .nl button:focus-visible, .nl [tabindex]:focus-visible { outline: 2px solid var(--nl-focus); outline-offset: 3px; }
.nl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nl [hidden]:not(#nl-x) { display: none; }

/* ===================== Roʻyxat: sarlavha bloki ===================== */
.nl-hero {
	position: relative; overflow: hidden; margin-bottom: 18px; padding: clamp(22px, 3.4vw, 40px); border-radius: 22px; color: #fff;
	background: radial-gradient(55% 120% at 100% 0%, rgba(30, 158, 87, .32) 0%, rgba(30, 158, 87, 0) 60%), linear-gradient(135deg, var(--nl-navy) 0%, var(--nl-navy-2) 100%);
}
.nl-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
	background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 30px 30px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 80%); mask-image: linear-gradient(90deg, transparent 0%, #000 80%);
}
.nl-hero > * { position: relative; z-index: 1; }
.nl-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.nl-kicker a {
	display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
	background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase;
}
.nl-kicker a:hover { border-color: #fff; color: #fff; }
.nl-title { margin: 0 0 10px; color: #fff; font-size: clamp(24px, 1.6vw + 14px, 36px); font-weight: 800; line-height: 1.15; }
.nl-lead { max-width: 640px; margin: 0 0 20px; color: rgba(255, 255, 255, .84); font-size: clamp(15px, .3vw + 13px, 17px); line-height: 1.6; }
.nl-hero__f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nl-hero__f li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.nl-hero__f li::before { content: none; }
.nl-hero__f i { margin-top: 2px; color: var(--nl-green-2); font-size: 16px; }
.nl-hero__f b { display: block; color: #fff; font-size: 14px; }

.nl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.nl-search { position: relative; flex: 1 1 260px; margin: 0; }
.nl-search i { position: absolute; left: 14px; top: 50%; color: var(--nl-muted); transform: translateY(-50%); pointer-events: none; }
.nl-search input { width: 100%; height: 44px; margin: 0; padding: 0 14px 0 40px; border: 1px solid #d9dfe7; border-radius: 12px; background: #fff; color: var(--nl-text); font-size: 15px; box-shadow: none; }
.nl-search input::placeholder { color: #8a94a6; opacity: 1; }
.nl-search input:focus { border-color: var(--nl-green); outline: none; box-shadow: 0 0 0 3px rgba(30, 158, 87, .15); }
.nl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nl-bar button.nl-fchip:not(#nl-x) {
	min-width: 0; height: 36px; margin: 0; padding: 0 14px; border: 1px solid var(--nl-line); border-radius: 999px; background: #fff; color: var(--nl-text);
	font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: normal; text-transform: none; box-shadow: none; transform: none; cursor: pointer;
}
.nl-bar button.nl-fchip:not(#nl-x)::before, .nl-bar button.nl-fchip:not(#nl-x)::after { display: none; }
.nl-bar button.nl-fchip.is-on:not(#nl-x) { border-color: var(--nl-navy); background: var(--nl-navy); color: #fff; }
.nl-none { margin: 0 0 18px; padding: 24px; border: 1px dashed #c3ccd8; border-radius: 16px; color: var(--nl-muted); text-align: center; }

/* ===================== Roʻyxat: kartochka ===================== */
.nl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nl-card {
	position: relative; display: flex; flex-direction: column; height: 100%; padding: 20px; border: 1px solid var(--nl-line); border-radius: 18px; background: #fff;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nl-card::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--nl-green), var(--nl-navy-2)); opacity: 0; transition: opacity .2s; }
.nl-card:hover { transform: translateY(-3px); border-color: #c9d6e4; box-shadow: 0 14px 34px rgba(11, 42, 74, .10); }
.nl-card:hover::before { opacity: 1; }
.nl-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.nl-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: rgba(30, 158, 87, .1); color: #157a43; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nl-chip--light { background: rgba(255, 255, 255, .14); color: #fff; }
.nl-card__date { display: inline-flex; align-items: center; gap: 6px; color: var(--nl-muted); font-size: 13px; }
.nl-card__t { margin: 0 0 8px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.nl-card__t a { color: var(--nl-navy); text-decoration: none; }
.nl-card__t a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.nl-card__t a:hover { color: var(--nl-green); }
.nl-card__law { display: flex; gap: 8px; margin: 0 0 8px; color: var(--nl-navy-2); font-size: 13px; font-weight: 600; line-height: 1.45; }
.nl-card__law i { margin-top: 3px; color: var(--nl-muted); }
.nl-card__text { margin: 0 0 14px; color: var(--nl-muted); font-size: 14px; line-height: 1.6; }
.nl-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.nl-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 10px; border-radius: 10px; background: var(--nl-soft); color: var(--nl-text); font-size: 12px; }
.nl-pill i { color: var(--nl-muted); }
.nl-pill__l { color: var(--nl-muted); }
.nl-pill.is-soon { background: #fff4e0; }
.nl-pill.is-soon .nl-pill__st, .nl-pill.is-soon i { color: var(--nl-amber); }
.nl-pill.is-in { background: rgba(30, 158, 87, .1); }
.nl-pill.is-in .nl-pill__st, .nl-pill.is-in i { color: #157a43; }
.nl-card__more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; color: var(--nl-navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.nl-card__more:hover { color: var(--nl-green); }
.nl-card__who { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.nl-card__who:empty { display: none; }
.nl-who__chip { display: inline-flex; padding: 3px 9px; border: 1px solid var(--nl-line); border-radius: 999px; background: #fff; color: var(--nl-text); font-size: 12px; font-weight: 600; }

/* ===================== Toʻliq maqola ===================== */
.nl-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; height: 4px; background: transparent; pointer-events: none; }
.nl-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--nl-green), #2bb673); transform: scaleX(0); transform-origin: 0 50%; }
.nl-head {
	margin-bottom: 18px; padding: clamp(22px, 3.4vw, 40px); border-radius: 22px; color: #fff;
	background: radial-gradient(55% 120% at 100% 0%, rgba(30, 158, 87, .30) 0%, rgba(30, 158, 87, 0) 60%), linear-gradient(135deg, var(--nl-navy) 0%, var(--nl-navy-2) 100%);
}
.nl-head__t { margin: 0 0 14px; color: #fff; outline: none; font-size: clamp(22px, 1.5vw + 14px, 34px); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.nl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .8); font-size: 14px; }
.nl-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.nl-meta li::before { content: none; }

.nl-passport { margin-bottom: 18px; padding: clamp(18px, 2.6vw, 26px); border: 1px solid var(--nl-line); border-left: 4px solid var(--nl-green); border-radius: 18px; background: var(--nl-soft); }
.nl-passport__h, .nl-keys__h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--nl-navy); font-size: 18px; font-weight: 800; }
.nl-passport__h i { color: var(--nl-green); }
.nl-dl { display: grid; gap: 0; margin: 0 0 14px; }
.nl-dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--nl-line); font-size: 15px; }
.nl-dl > div:first-child { border-top: 0; padding-top: 0; }
.nl-dl dt { color: var(--nl-muted); font-weight: 600; }
.nl-dl dd { margin: 0; color: var(--nl-text); font-weight: 600; }
.nl-countdown { display: inline-flex; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.nl-countdown:empty { display: none; }
.nl-countdown.is-soon { background: #fff4e0; color: var(--nl-amber); }
.nl-countdown.is-in { background: rgba(30, 158, 87, .12); color: #157a43; }
.nl-who { margin: 0 0 14px; }
.nl-who__h { margin: 0 0 8px; color: var(--nl-muted); font-size: 13px; font-weight: 700; }
.nl-who__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.nl-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 20px; border-radius: 12px;
	background: var(--nl-navy); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s;
}
.nl-btn:hover { background: var(--nl-green); color: #fff; }

.nl-keys { margin-bottom: 18px; }
.nl-keys__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nl-keys__list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--nl-line); border-radius: 16px; background: #fff; }
.nl-keys__list li::before { content: none; }
.nl-keys__n { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(30, 158, 87, .12); color: #157a43; font-weight: 800; }
.nl-keys__list p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
.nl-keys__src { font-size: 15px; line-height: 1.6; }

.nl-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--nl-line); border-radius: 16px; background: #fff; }
.nl-toc { flex: 1 1 320px; }
.nl-toc[hidden] { display: none; }
.nl-toc__h { margin: 0 0 6px; color: var(--nl-navy); font-size: 14px; font-weight: 800; }
.nl-toc ol { margin: 0; padding: 0; list-style: none; }
.nl-toc li { margin: 4px 0; font-size: 14px; }
.nl-toc li::before { content: none; }
.nl-toc .nl-toc__h4 { padding-left: 22px; font-size: 13px; }
.nl-toc__n { display: inline-block; min-width: 18px; color: var(--nl-muted); font-weight: 700; }
.nl-toc a { color: var(--nl-navy-2); text-decoration: none; }
.nl-toc a:hover { color: var(--nl-green); text-decoration: underline; }
.nl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.nl-fs { display: inline-flex; overflow: hidden; border: 1px solid var(--nl-line); border-radius: 10px; }
.nl .nl-fs button:not(#nl-x), .nl button.nl-ibtn:not(#nl-x), .nl a.nl-ibtn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; margin: 0; padding: 0 10px; border: 0; border-radius: 0;
	background: #fff; color: var(--nl-navy); font-size: 14px; font-weight: 800; line-height: 1; letter-spacing: normal; text-decoration: none; text-transform: none; box-shadow: none; transform: none; cursor: pointer;
}
.nl .nl-fs button:not(#nl-x) + button { border-left: 1px solid var(--nl-line); }
.nl button.nl-ibtn:not(#nl-x), .nl a.nl-ibtn { border: 1px solid var(--nl-line); border-radius: 10px; }
.nl .nl-fs button:not(#nl-x)::before, .nl .nl-fs button:not(#nl-x)::after, .nl button.nl-ibtn:not(#nl-x)::before, .nl button.nl-ibtn:not(#nl-x)::after { display: none; }
.nl .nl-fs button:not(#nl-x):hover, .nl button.nl-ibtn:not(#nl-x):hover, .nl a.nl-ibtn:hover { background: var(--nl-soft); color: var(--nl-navy); }
.nl button.nl-copy.is-done:not(#nl-x) { border-color: var(--nl-green); color: var(--nl-green); }

.nl-text { font-size: 100%; line-height: 1.75; }
.nl-text h3, .nl-text h4 { scroll-margin-top: 90px; color: var(--nl-navy); font-weight: 800; }
.nl-text h3 { margin: 1.6em 0 .6em; font-size: 1.35em; }
.nl-text h4 { margin: 1.3em 0 .5em; font-size: 1.12em; }
.nl-text p { margin: 0 0 1em; }
.nl-text blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--nl-green); border-radius: 0 12px 12px 0; background: var(--nl-soft); }
.nl-text img { max-width: 100%; height: auto; border-radius: 12px; }

.nl-note { display: flex; gap: 12px; margin: 24px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--nl-soft); color: var(--nl-muted); font-size: 13px; line-height: 1.55; }
.nl-note i { margin-top: 2px; color: var(--nl-navy-2); }
.nl-note p { margin: 0; }

/* ===================== Moslashuvchanlik ===================== */
@media (max-width: 991px) {
	.nl-hero__f { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.nl-keys__list { grid-template-columns: minmax(0, 1fr); }
	.nl-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.nl-actions { margin-left: 0; }
}
@media (max-width: 575px) {
	.nl-hero, .nl-head { border-radius: 16px; }
	.nl-card { padding: 16px; }
	.nl-btn { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.nl-card, .nl-card::before, .nl-btn { transition: none; }
	.nl-card:hover { transform: none; }
}
@media print {
	.nl-progress, .nl-tools, .nl-back, .nl-info, .nl-hero, .nl-list { display: none; }
	.nl-head { background: none; color: #000; padding: 0; }
	.nl-title, .nl-meta { color: #000; }
	.nl-passport { break-inside: avoid; }
}

/* ===================== Statik sahifa: qoʻshimcha ===================== */
.nl-hero { margin-bottom: 18px; }
.nl-kicker a { margin-bottom: 0; }
.nl-card { cursor: pointer; }
.nl-card__t a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.nl-card__more { pointer-events: none; }
.nl-empty { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; margin: 0; padding: 26px; border: 1px dashed #c3ccd8; border-radius: 18px; background: var(--nl-soft); color: var(--nl-muted); font-size: 16px; }
.nl-empty i { color: var(--nl-amber); font-size: 20px; }
.nl-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 14px; border: 1px solid var(--nl-line); border-radius: 999px; color: var(--nl-navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.nl-back:hover { border-color: var(--nl-navy); color: var(--nl-navy); }
.nl-head__kick { display: flex; gap: 8px; margin: 0 0 10px; }
.nl-head__kick:empty { display: none; }
.nl-passport__h, .nl-keys__h { font-size: 18px; }
.nl-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.nl-box { display: flex; align-items: flex-start; gap: 16px; padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--nl-line); border-radius: 20px; background: #fff; }
.nl-box__ico { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(30, 158, 87, .10); color: var(--nl-green); font-size: 20px; }
.nl-box__h { margin: 4px 0 10px; color: var(--nl-navy); font-size: 18px; font-weight: 800; }
.nl-box__p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.nl-quote { margin: 0 0 8px; padding-left: 14px; border-left: 3px solid var(--nl-green); font-size: 15px; line-height: 1.6; }
.nl-src-note { margin: 0 0 10px; color: var(--nl-muted); font-size: 13px; }
.nl-link { display: inline-flex; align-items: center; gap: 8px; color: var(--nl-navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.nl-link:hover { color: var(--nl-green); }
.nl.is-view .nl-info, .nl.is-view .nl-hero { display: none; }
@media (max-width: 767px) {
	.nl-grid, .nl-info { grid-template-columns: minmax(0, 1fr); }
}
