/* =====================================================================
   "Ochiq maʼlumotlar" sahifasi — open-data.css (pri.oliymajlis.uz)
   Faqat .od* klasslari; !important yoʻq. Uslub about-institute / statutes bilan bir xil.
   Bogʻliq fayllar: open-data.tpl, js/open-data.js
   ===================================================================== */

.od {
	--od-navy: #0b2a4a;
	--od-navy-2: #123b66;
	--od-green: #1e9e57;
	--od-text: #1a1a1a;
	--od-muted: #5c667d;
	--od-line: #e3e8ef;
	--od-soft: #f4f6f9;
	--od-focus: #1a73e8;
	--od-r: 18px;
	color: var(--od-text);
	overflow-wrap: anywhere;
}
.od *, .od *::before, .od *::after { box-sizing: border-box; }
.od ul { margin: 0; padding: 0; list-style: none; }
.od li { margin: 0; padding: 0; }
.od li::before { content: none; }
.od a:focus-visible, .od button:focus-visible { outline: 2px solid var(--od-focus); outline-offset: 2px; }
.od .od-sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================== Hero ===================== */
.od .od-hero {
	position: relative; margin-bottom: clamp(26px, 3.2vw, 40px); padding: clamp(24px, 3.6vw, 48px);
	overflow: hidden; border-radius: 24px; color: #fff;
	background:
		radial-gradient(55% 120% at 100% 0%, rgba(30, 158, 87, .28) 0%, rgba(30, 158, 87, 0) 60%),
		linear-gradient(135deg, var(--od-navy) 0%, var(--od-navy-2) 100%);
}
.od .od-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: 32px 32px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 75%); mask-image: linear-gradient(90deg, transparent 0%, #000 75%);
}
.od .od-hero > * { position: relative; z-index: 1; }
.od .od-hero__kicker {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.od .od-title { margin: 0 0 10px; color: #fff; font-size: clamp(28px, 3vw + 14px, 44px); font-weight: 800; line-height: 1.1; }
.od .od-lead { max-width: 760px; margin: 0 0 24px; color: rgba(255, 255, 255, .82); font-size: clamp(15px, .4vw + 13px, 17px); line-height: 1.55; }
.od .od-stats { display: grid; grid-template-columns: auto auto minmax(0, 1.6fr); gap: 12px; max-width: 820px; }
.od .od-stats li {
	padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .07);
}
.od .od-stats b { display: block; color: #fff; font-size: clamp(28px, 1.6vw + 18px, 40px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.od .od-stats li:nth-child(2) b { color: #7be0a6; }
.od .od-stats b.od-stats__txt { color: #fff; font-size: clamp(15px, .5vw + 12px, 18px); line-height: 1.3; }
.od .od-stats span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; line-height: 1.3; }

/* ===================== Joylashuv ===================== */
.od .od-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 340px); align-items: start; gap: clamp(20px, 2.6vw, 36px); }
.od .od-main { min-width: 0; }
.od .od-h {
	position: relative; margin: 0; padding-left: 16px;
	color: var(--od-navy); font-size: clamp(19px, .7vw + 14px, 24px); font-weight: 800; line-height: 1.25;
}
.od .od-h::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--od-green); }
.od .od-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }

/* Yil filtri — :not(#od-x) mavzuning umumiy button stilini !important'siz bekor qiladi */
.od .od-chips { display: inline-flex; flex-wrap: wrap; padding: 4px; border: 1px solid var(--od-line); border-radius: 999px; background: var(--od-soft); }
.od .od-chips[hidden] { display: none; }
.od .od-chip:not(#od-x) {
	display: inline-flex; align-items: center; justify-content: center; height: 34px; margin: 0; padding: 0 16px;
	border: 0; border-radius: 999px; background: transparent; color: var(--od-muted);
	font: inherit; font-size: 13px; font-weight: 700; box-shadow: none; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s;
}
.od .od-chip:not(#od-x):hover { background: transparent; color: var(--od-navy); }
.od .od-chip:not(#od-x)[aria-pressed="true"] { background: #fff; color: var(--od-navy); box-shadow: 0 1px 3px rgba(11, 42, 74, .14); }

/* ===================== Davr kartochkasi ===================== */
.od .od-periods { position: relative; display: grid; gap: 16px; }
.od .od-period {
	overflow: hidden; border: 1px solid var(--od-line); border-radius: var(--od-r); background: #fff;
	transition: box-shadow .2s, border-color .2s;
}
.od .od-period:hover { border-color: #d2dbe6; box-shadow: 0 14px 34px rgba(11, 42, 74, .08); }
.od .od-period[hidden] { display: none; }
.od .od-period__head {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
	padding: 18px 20px; border-bottom: 1px solid var(--od-line); background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.od .od-period__year {
	display: flex; align-items: center; justify-content: center; width: 64px; height: 56px; border-radius: 14px;
	background: var(--od-navy); color: #fff; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.od .od-period__titles { min-width: 0; }
.od .od-kind { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.od .od-kind--y  { background: #eaf6ef; color: #17603a; }
.od .od-kind--h1 { background: #eef4fb; color: #274f7d; }
.od .od-kind--q1 { background: #fff4e2; color: #8a5a00; }
.od .od-period__h { margin: 0; color: var(--od-navy); font-size: 17px; font-weight: 800; line-height: 1.3; }
.od .od-period__n { color: var(--od-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Fayl qatori */
.od .od-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 16px 20px 20px; }
.od .od-file {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
	padding: 12px 12px 12px 14px; border: 1px solid var(--od-line); border-radius: 14px; background: #fff;
	transition: border-color .15s, background-color .15s;
}
.od .od-file:hover { border-color: #cfd8e3; background: #fafbfd; }
.od .od-file__ico {
	grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
	border-radius: 12px; font-size: 18px;
}
.od .od-file--sheet .od-file__ico, .od .od-file--xlsx .od-file__ico { background: #e8f6ee; color: #188a4c; }
.od .od-file--doc .od-file__ico { background: #e9f1fc; color: #2f6db5; }
.od .od-file--pdf .od-file__ico { background: #fdecec; color: #c43c35; }
.od .od-file__name { grid-column: 2; color: var(--od-navy); font-size: 15px; font-weight: 800; line-height: 1.3; }
.od .od-file__fmt { grid-column: 2; color: var(--od-muted); font-size: 12px; font-weight: 600; }
.od .od-file__btn {
	grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px;
	border-radius: 999px; background: var(--od-navy); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
	transition: background-color .15s;
}
.od .od-file__btn:hover { background: var(--od-green); color: #fff; }
.od .od-file__btn i { font-size: 11px; }

.od .od-none { margin: 0; padding: 22px; border: 1px dashed #c9d3df; border-radius: var(--od-r); color: var(--od-muted); text-align: center; }
.od .od-none[hidden] { display: none; }

/* ===================== Masʼul xodimlar ===================== */
.od .od-side { position: sticky; top: 24px; }
.od .od-side .od-h { margin-bottom: 18px; }
.od .od-people { display: grid; gap: 12px; }
.od .od-person {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px;
	border: 1px solid var(--od-line); border-radius: var(--od-r); background: #fff;
}
.od .od-person__ico {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--od-soft); color: var(--od-green); font-size: 17px;
}
.od .od-person__task { margin: 0 0 6px; color: var(--od-muted); font-size: 13px; line-height: 1.45; }
.od .od-person__name { margin: 0 0 8px; color: var(--od-navy); font-size: 15px; font-weight: 800; line-height: 1.3; }
.od .od-person__name span { color: var(--od-muted); font-size: 13px; font-weight: 600; }
.od .od-person__tel {
	display: inline-flex; align-items: center; gap: 8px; color: var(--od-navy); font-size: 14px; font-weight: 700;
	text-decoration: none; font-variant-numeric: tabular-nums;
}
.od .od-person__tel i { color: var(--od-green); font-size: 12px; }
.od .od-person__tel:hover { color: var(--od-green); }

/* ===================== Moslashuvchanlik ===================== */
@media (max-width: 992px) {
	.od .od-layout { grid-template-columns: minmax(0, 1fr); }
	.od .od-side { position: static; }
	.od .od-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.od .od-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.od .od-stats li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
	.od .od-hero { border-radius: 20px; }
	.od .od-people { grid-template-columns: minmax(0, 1fr); }
	.od .od-period__head { grid-template-columns: auto minmax(0, 1fr); }
	.od .od-period__n { grid-column: 2; }
}
@media (max-width: 576px) {
	.od .od-hero { padding: 22px 18px; }
	.od .od-period__head { padding: 16px; gap: 12px; }
	.od .od-period__year { width: 54px; height: 48px; font-size: 16px; }
	.od .od-files { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 16px; }
	.od .od-chips { width: 100%; }
	.od .od-chip:not(#od-x) { flex: 1 1 0; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.od .od-period, .od .od-file, .od .od-file__btn, .od .od-chip:not(#od-x) { transition: none; }
}
@media print {
	.od .od-hero { color: var(--od-navy); background: none; border: 1px solid var(--od-line); }
	.od .od-hero::after, .od .od-chips { display: none; }
	.od .od-title, .od .od-stats b, .od .od-stats b.od-stats__txt { color: var(--od-navy); }
	.od .od-lead, .od .od-stats span, .od .od-hero__kicker { color: var(--od-muted); }
	.od .od-period[hidden] { display: block; }
	.od .od-file__btn { background: none; color: var(--od-navy); }
	.od .od-file__btn::after { content: " " attr(href); font-size: 9px; font-weight: 400; }
	.od .od-period { break-inside: avoid; }
}
