/* =====================================================================
   "Tadbirlar rejasi" — events-plan.css (pri.oliymajlis.uz)
   Faqat .lp* klasslari; !important ishlatilmagan. Bogʻliq fayllar: events-plan.tpl, js/events-plan.js
   ===================================================================== */

.ev {
	container-type: inline-size;
	--ev-navy: #0b2a4a;
	--ev-navy-2: #123b66;
	--ev-blue: #4a7fb5;
	--ev-green: #1e9e57;
	--ev-violet: #7c5cc4;
	--ev-gold: #b7791f;
	--ev-red: #c0392b;
	--ev-text: #1a1a1a;
	--ev-muted: #5c667d;
	--ev-line: #e3e8ef;
	--ev-soft: #f4f6f9;
	--ev-focus: #1a73e8;
	color: var(--ev-text);
	overflow-wrap: break-word;
}
.ev *, .ev *::before, .ev *::after { box-sizing: border-box; }
.ev ul, .ev ol { margin: 0; padding: 0; list-style: none; }
.ev li { margin: 0; padding: 0; }
.ev li::before { content: none; }
.ev a { text-decoration: none; }
.ev [hidden]:not(#ev-x) { display: none; }
.ev a:focus-visible, .ev button:focus-visible, .ev input:focus-visible, .ev select:focus-visible, .ev textarea:focus-visible, .ev [tabindex]:focus-visible { outline: 2px solid var(--ev-focus); outline-offset: 3px; }
.ev button:not(#ev-x) { width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; transform: none; color: inherit; font: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none; white-space: normal; text-align: left; cursor: pointer; }
.ev button:not(#ev-x)::before, .ev button:not(#ev-x)::after { display: none; }

/* ===================== Hero ===================== */
.ev .ev-hero {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
	overflow: hidden; padding: clamp(26px, 4vw, 48px); border-radius: 24px; color: #fff;
	background:
		radial-gradient(45% 110% at 100% 0%, rgba(183, 121, 31, .3) 0%, rgba(183, 121, 31, 0) 60%),
		radial-gradient(40% 90% at 8% 100%, rgba(30, 158, 87, .24) 0%, rgba(30, 158, 87, 0) 60%),
		linear-gradient(135deg, var(--ev-navy) 0%, var(--ev-navy-2) 100%);
}
.ev .ev-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 26px); }
.ev .ev-hero > * { position: relative; z-index: 1; }
.ev .ev-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; }
.ev .ev-title { margin: 0 0 14px; color: #fff; font-size: clamp(26px, 2.2vw + 14px, 40px); font-weight: 800; line-height: 1.15; }
.ev .ev-lead { margin: 0; color: rgba(255, 255, 255, .84); font-size: clamp(15px, .3vw + 13px, 17px); line-height: 1.6; }
.ev .ev-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ev .ev-keys { display: grid; gap: 10px; }
.ev .ev-key { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .07); }
.ev .ev-key__ic { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #f2c76b; font-size: 18px; }
.ev .ev-key__b { display: flex; flex-direction: column; min-width: 0; }
.ev .ev-key__l { color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ev .ev-key b { color: #fff; font-size: 19px; font-weight: 800; line-height: 1.25; }
.ev .ev-key small { color: rgba(255, 255, 255, .78); font-size: 13px; }

/* Tugmalar */
.ev .ev-btn:not(#ev-x) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: var(--ev-navy); font-size: 14px; font-weight: 700; line-height: 1.3; transition: transform .2s, background-color .2s, border-color .2s; }
.ev .ev-btn:not(#ev-x):hover { transform: translateY(-2px); color: var(--ev-navy); }
.ev .ev-btn--dark:not(#ev-x) { background: var(--ev-navy); color: #fff; }
.ev .ev-btn--dark:not(#ev-x):hover { background: var(--ev-navy-2); color: #fff; }
.ev .ev-btn--line:not(#ev-x) { border-color: var(--ev-line); background: #fff; color: var(--ev-navy); }
.ev .ev-btn--line:not(#ev-x):hover { border-color: var(--ev-blue); }
.ev .ev-btn.is-done:not(#ev-x) { background: var(--ev-green); }

/* ===================== Umumiy ===================== */
.ev .ev-sec { margin-top: clamp(32px, 4vw, 48px); scroll-margin-top: 90px; }
.ev .ev-h { margin: 0 0 14px; color: var(--ev-navy); font-size: clamp(21px, 1vw + 15px, 28px); font-weight: 800; line-height: 1.2; }
.ev .ev-sub { margin: -6px 0 16px; color: var(--ev-muted); font-size: 15px; line-height: 1.55; }

/* ===================== Keyingi tadbir ===================== */
.ev .ev-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.ev .ev-next { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 4px; align-items: center; padding: 18px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(255, 255, 255, .08); }
.ev .ev-next__l { grid-column: 1 / -1; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ev .ev-next__d { grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 16px; background: #fff; color: var(--ev-navy); }
.ev .ev-next__day { font-size: 30px; font-weight: 800; line-height: 1; }
.ev .ev-next__mon { margin-top: 4px; color: var(--ev-muted); font-size: 11px; font-weight: 700; text-align: center; }
.ev .ev-next__t { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.3; }
.ev .ev-next__in { align-self: start; justify-self: start; padding: 2px 10px; border-radius: 999px; background: #f2c76b; color: var(--ev-navy); font-size: 12px; font-weight: 800; }

/* ===================== Boshqaruv ===================== */
.ev .ev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.ev .ev-head .ev-h { margin: 0; }
.ev .ev-count { color: var(--ev-muted); font-size: .7em; font-weight: 700; }
.ev .ev-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.ev .ev-segs { display: inline-flex; padding: 3px; border: 1px solid var(--ev-line); border-radius: 12px; background: var(--ev-soft); }
.ev .ev-seg:not(#ev-x) { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; color: var(--ev-muted); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s; }
.ev .ev-seg:not(#ev-x):hover { color: var(--ev-navy); }
.ev .ev-seg:not(#ev-x)[aria-pressed="true"] { background: #fff; color: var(--ev-navy); box-shadow: 0 1px 3px rgba(11, 42, 74, .15); }
.ev .ev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ev .ev-chip:not(#ev-x) { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--ev-line); border-radius: 999px; background: #fff; color: var(--ev-navy); font-size: 13px; font-weight: 700; transition: background-color .2s, border-color .2s; }
.ev .ev-chip > i { color: var(--ev-blue); }
.ev .ev-chip:not(#ev-x):hover { border-color: var(--ev-navy-2); }
.ev .ev-chip:not(#ev-x)[aria-pressed="true"] { border-color: var(--ev-navy); background: var(--ev-navy); color: #fff; }
.ev .ev-chip[aria-pressed="true"] > i { color: #fff; }

/* ===================== Roʻyxat ===================== */
.ev .ev-mh { margin: 22px 0 10px; color: var(--ev-navy); font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ev .ev-mh:first-child { margin-top: 0; }
.ev .ev-es { display: grid; gap: 10px; }
.ev .ev-e { --c: var(--ev-blue); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--ev-line); border-left: 4px solid var(--c); border-radius: 14px; background: #fff; animation: ev-in .3s ease backwards; transition: box-shadow .2s; }
.ev .ev-e:hover { box-shadow: 0 10px 24px rgba(11, 42, 74, .08); }
.ev .ev-e--round { --c: var(--ev-gold); }
.ev .ev-e--sem { --c: var(--ev-green); }
.ev .ev-e--pres { --c: var(--ev-violet); }
.ev .ev-e--meet { --c: #2b8a9e; }
.ev .ev-e--other { --c: #8a94a6; }
.ev .ev-e.is-past { opacity: .72; }
.ev .ev-e.is-today { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.ev .ev-e__date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 72px; border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--ev-navy); text-align: center; }
.ev .ev-e__date b { font-size: 26px; font-weight: 800; line-height: 1; }
.ev .ev-e__date span { margin-top: 3px; font-size: 11px; font-weight: 700; }
.ev .ev-e__date small { color: var(--ev-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ev .ev-e__b { min-width: 0; }
.ev .ev-e__m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; }
.ev .ev-e__type { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.ev .ev-e__rel { padding: 1px 8px; border-radius: 999px; background: var(--ev-soft); color: var(--ev-muted); font-size: 11px; font-weight: 700; }
.ev .ev-e.is-today .ev-e__rel { background: var(--c); color: #fff; }
.ev .ev-e__t { margin: 0 0 6px; color: var(--ev-navy); font-size: 16px; font-weight: 800; line-height: 1.35; }
.ev .ev-e__info { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--ev-muted); font-size: 13px; }
.ev .ev-e__info i { margin-right: 6px; color: var(--c); }
.ev .ev-e__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.ev .ev-e__a:empty { display: none; }
.ev .ev-ics:not(#ev-x) { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ev-line); border-radius: 999px; background: #fff; color: var(--ev-navy); font-size: 12px; font-weight: 700; transition: border-color .2s, background-color .2s; }
.ev .ev-ics:not(#ev-x):hover { border-color: var(--c); background: var(--ev-soft); }
.ev .ev-more { color: var(--ev-navy-2); font-size: 13px; font-weight: 700; }
.ev .ev-empty { display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px; border: 1px dashed #c9d3e1; border-radius: 14px; background: var(--ev-soft); color: var(--ev-muted); }
@keyframes ev-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ===================== Kalendar ===================== */
.ev .ev-cal { padding: 16px; border: 1px solid var(--ev-line); border-radius: 18px; background: #fff; }
.ev .ev-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ev .ev-cal__m { color: var(--ev-navy); font-size: 17px; font-weight: 800; }
.ev .ev-cal__btn:not(#ev-x) { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--ev-line); border-radius: 10px; background: #fff; color: var(--ev-navy); }
.ev .ev-cal__btn:not(#ev-x):hover { background: var(--ev-soft); }
.ev .ev-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev .ev-wd { padding: 4px 0; color: var(--ev-muted); font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.ev .ev-dc:not(#ev-x) { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 52px; padding: 8px 2px; border: 1px solid transparent; border-radius: 10px; background: var(--ev-soft); color: var(--ev-muted); font-size: 14px; font-weight: 600; text-align: center; cursor: default; }
.ev .ev-dc.is-blank { background: none; }
.ev .ev-dc.has-ev:not(#ev-x) { background: #fff; border-color: var(--ev-line); color: var(--ev-navy); font-weight: 800; cursor: pointer; }
.ev .ev-dc.has-ev:not(#ev-x):hover { border-color: var(--ev-navy-2); }
.ev .ev-dc.is-today:not(#ev-x) { box-shadow: inset 0 0 0 2px var(--ev-gold); }
.ev .ev-dc.is-sel:not(#ev-x) { border-color: var(--ev-navy); background: var(--ev-navy); color: #fff; }
.ev .ev-dots { display: flex; gap: 3px; font-style: normal; }
.ev .ev-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--ev-blue); }
.ev .ev-dot--round { background: var(--ev-gold); }
.ev .ev-dot--sem { background: var(--ev-green); }
.ev .ev-dot--pres { background: var(--ev-violet); }
.ev .ev-dot--meet { background: #2b8a9e; }
.ev .ev-dot--other { background: #8a94a6; }
.ev .ev-dc.is-sel .ev-dot { box-shadow: 0 0 0 1.5px #fff; }
.ev .ev-cal__day { margin-top: 14px; }

/* Qutilar ichidagi tugma */
.ev .ev-box .ev-btn:not(#ev-x) { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--ev-navy); color: #fff; font-size: 14px; font-weight: 700; }
.ev .ev-box .ev-btn:not(#ev-x):hover { background: var(--ev-navy-2); color: #fff; }

@container (max-width: 860px) {
	.ev .ev-hero { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 560px) {
	.ev .ev-e { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.ev .ev-e__date { height: 60px; }
	.ev .ev-e__date b { font-size: 21px; }
	.ev .ev-head { flex-direction: column; align-items: flex-start; }
	.ev .ev-dc:not(#ev-x) { min-height: 42px; padding: 6px 0; font-size: 13px; }
	.ev .ev-cal { padding: 10px; }
}

/* ===================== Qutilar ===================== */
.ev .ev-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ev .ev-box { padding: 22px; border: 1px solid var(--ev-line); border-radius: 18px; background: #fff; }
.ev .ev-box__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--ev-navy); font-size: 18px; font-weight: 800; line-height: 1.3; scroll-margin-top: 90px; }
.ev .ev-box__h i { color: var(--ev-blue); }
.ev .ev-box__p { margin: 0 0 14px; color: var(--ev-muted); font-size: 14px; line-height: 1.6; }
.ev .ev-note { margin: 14px 0 0; }

.ev .ev-laws { display: grid; gap: 10px; }
.ev .ev-laws li { padding-left: 14px; border-left: 3px solid var(--ev-line); font-size: 14px; line-height: 1.45; }
.ev .ev-laws li > span { display: block; color: var(--ev-muted); font-size: 12px; }
.ev .ev-laws a, .ev .ev-rels a { color: var(--ev-navy-2); font-weight: 700; }
.ev .ev-laws a:hover { text-decoration: underline; }
.ev .ev-rels { display: grid; gap: 8px; }
.ev .ev-rels a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--ev-line); border-radius: 12px; font-size: 14px; line-height: 1.35; transition: border-color .2s, background-color .2s; }
.ev .ev-rels a:hover { border-color: var(--ev-blue); background: var(--ev-soft); }
.ev .ev-rels i { width: 18px; color: var(--ev-blue); text-align: center; }

/* {static} */
.ev .ev-static { font-size: 15px; line-height: 1.6; }
.ev .ev-static > :first-child { margin-top: 0; }
.ev .ev-static table { width: 100%; margin: 0 0 16px; border: 1px solid var(--ev-line); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; font-size: 14px; }
.ev .ev-static th, .ev .ev-static td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--ev-line); text-align: left; vertical-align: top; }
.ev .ev-static table tr:not(#ev-x), .ev .ev-static table td:not(#ev-x) { background: transparent; }
.ev .ev-static th { background: var(--ev-soft); color: var(--ev-navy); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ev .ev-static tr:last-child td { border-bottom: 0; }
.ev .ev-static a { color: var(--ev-navy-2); text-decoration: underline; text-underline-offset: 2px; }
.ev .ev-tw { max-width: 100%; overflow-x: auto; }

/* ===================== Moslashuvchanlik ===================== */

@media (max-width: 991.98px) {
	.ev .ev-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
	.ev .ev-static table, .ev .ev-static tbody, .ev .ev-static tr, .ev .ev-static td { display: block; width: 100%; }
	.ev .ev-static table { border: 0; background: none; overflow: visible; }
	.ev .ev-static thead { display: none; }
	.ev .ev-static tr { margin-bottom: 10px; border: 1px solid var(--ev-line); border-radius: 14px; background: #fff; overflow: hidden; }
	.ev .ev-static tr:has(> th) { display: none; }
	.ev .ev-static td { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 10px; padding: 9px 14px; }
	.ev .ev-static td[data-label]::before { content: attr(data-label); color: var(--ev-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
	.ev .ev-tw { overflow: visible; }
}
@media (max-width: 575.98px) {
	.ev .ev-box { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ev *, .ev *::before, .ev *::after { transition: none; animation: none; }
}
