/*
Theme Name: CULTSTAFF
Theme URI: https://cultstaff.uz/
Author: CULTSTAFF
Description: CULTSTAFF tizimi uçun yengil mavzu. Dizayni kiriş sahifasiga mos; şrift va gerb mavzu içida, taşqi xizmatlarga murojaat qilmaydi. WordPress.org'dan yangilaniş kutmaydi.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cultstaff-mavzu
Update URI: false
*/

/* Onest (SIL OFL 1.1, assets/fonts/OFL.txt): lotin va kirill, özbekça harflar bilan. */
@font-face {
	font-family: "Onest";
	src: url("assets/fonts/onest-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--t-bg: #F4F6F8;
	--t-surface: #FFFFFF;
	--t-soft: #F7F9FB;
	--t-ink: #14202E;
	--t-ink-2: #4A5868;
	--t-ink-3: #5F6B7A;
	--t-line: #E1E6EC;
	--t-primary: #1E4F91;
	--t-primary-ink: #163B6E;
	--t-primary-soft: #E8EFF8;
	--t-night: #10294D;
	--t-turq: #3CC1B9;
	--t-turq-ink: #0B2A3F;
	--t-radius: 14px;
	--t-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--t-girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31.11 31.11'%3E%3Cpolygon points='31.11,15.56 26.56,20.11 26.56,26.56 20.11,26.56 15.56,31.11 11,26.56 4.56,26.56 4.56,20.11 0,15.56 4.56,11 4.56,4.56 11,4.56 15.56,0 20.11,4.56 26.56,4.56 26.56,11' fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='.6'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--t-bg);
	color: var(--t-ink);
	font-family: var(--t-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

body.cs-t-bare {
	background: var(--t-night);
}

img,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--t-primary);
	text-underline-offset: 2px;
}

a:hover {
	color: var(--t-primary-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--t-primary);
	outline-offset: 2px;
}

.cs-t-head a:focus-visible,
.cs-t-hero a:focus-visible {
	outline-color: var(--t-turq);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.cs-t-skip {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100000;
	padding: 10px 14px;
	border-radius: 8px;
	background: #FFFFFF;
	color: var(--t-primary);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(16, 41, 77, 0.25);
}

.cs-t-skip:focus {
	top: 12px;
}

.cs-t-ico {
	flex: none;
	display: block;
}

/* ---------- Sahifa tuzilişi ---------- */

.cs-t-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.cs-t-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding-right: 16px;
	padding-left: 16px;
}

.cs-t-narrow {
	max-width: 820px;
}

.cs-t-main {
	flex: 1 0 auto;
	padding: 24px 0 48px;
}

/* ---------- Tugmalar ---------- */

.cs-t-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--t-primary);
	color: #FFFFFF;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cs-t-btn:hover {
	background: var(--t-primary-ink);
	color: #FFFFFF;
}

.cs-t-btn--light {
	background: #FFFFFF;
	color: var(--t-night);
}

.cs-t-btn--light:hover {
	background: var(--t-primary-soft);
	color: var(--t-night);
}

.cs-t-btn--ghost {
	border-color: var(--t-line);
	background: var(--t-surface);
	color: var(--t-ink);
}

.cs-t-btn--ghost:hover {
	border-color: #C9D1DB;
	background: var(--t-soft);
	color: var(--t-ink);
}

.cs-t-btn--turq {
	background: var(--t-turq);
	color: var(--t-turq-ink);
}

.cs-t-btn--turq:hover {
	background: #5ACFC8;
	color: var(--t-turq-ink);
}

/* ---------- Sarlavha (header) ---------- */

.cs-t-head {
	background-color: var(--t-night);
	background-image: var(--t-girih);
	background-size: 52px 52px;
	color: #FFFFFF;
}

.cs-t-head__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.cs-t-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: #FFFFFF;
	text-decoration: none;
}

.cs-t-brand:hover {
	color: #FFFFFF;
}

.cs-t-brand img {
	flex: none;
	width: auto;
	height: 42px;
}

.cs-t-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cs-t-brand__text strong {
	font-size: 17px;
	line-height: 21px;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.cs-t-brand__text small {
	display: none;
	font-size: 12.5px;
	line-height: 17px;
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- Pastki qism (footer) ---------- */

.cs-t-foot {
	border-top: 1px solid var(--t-line);
	background: var(--t-surface);
	color: var(--t-ink-3);
	font-size: 13px;
	line-height: 18px;
}

.cs-t-foot__in {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding-top: 18px;
	padding-bottom: 18px;
}

/* ---------- Matn (sahifa va yozuv) ---------- */

.cs-t-card {
	border: 1px solid var(--t-line);
	border-radius: var(--t-radius);
	background: var(--t-surface);
	padding: 22px 18px;
}

.cs-t-entry__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.cs-t-meta {
	margin: 6px 0 0;
	color: var(--t-ink-3);
	font-size: 14px;
	line-height: 20px;
}

.cs-t-entry__thumb {
	margin: 20px 0 0;
}

.cs-t-entry__thumb img {
	display: block;
	width: 100%;
	max-height: 520px;
	border-radius: 10px;
	object-fit: cover;
}

.cs-t-content {
	margin-top: 20px;
	color: var(--t-ink);
}

.cs-t-content > :first-child {
	margin-top: 0;
}

.cs-t-content > :last-child {
	margin-bottom: 0;
}

.cs-t-content p,
.cs-t-content ul,
.cs-t-content ol,
.cs-t-content figure,
.cs-t-content table,
.cs-t-content pre,
.cs-t-content blockquote {
	margin-top: 0;
	margin-bottom: 1.1em;
}

.cs-t-content h2,
.cs-t-content h3,
.cs-t-content h4 {
	margin: 1.6em 0 0.6em;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.cs-t-content h2 {
	font-size: 22px;
}

.cs-t-content h3 {
	font-size: 19px;
}

.cs-t-content h4 {
	font-size: 17px;
}

.cs-t-content ul,
.cs-t-content ol {
	padding-left: 1.4em;
}

.cs-t-content li + li {
	margin-top: 0.3em;
}

.cs-t-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--t-turq);
	color: var(--t-ink-2);
}

.cs-t-content > table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.cs-t-content table {
	border-collapse: collapse;
	font-size: 15px;
}

.cs-t-content th,
.cs-t-content td {
	padding: 8px 10px;
	border: 1px solid var(--t-line);
	text-align: left;
	vertical-align: top;
}

.cs-t-content th {
	background: var(--t-soft);
}

.cs-t-content pre {
	overflow-x: auto;
	padding: 14px;
	border: 1px solid var(--t-line);
	border-radius: 10px;
	background: var(--t-soft);
	font-size: 14px;
	line-height: 1.5;
}

.cs-t-content code {
	font-size: 0.92em;
}

.cs-t-content hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--t-line);
}

.cs-t-content iframe {
	max-width: 100%;
}

.cs-t-content figcaption,
.cs-t-content .wp-caption-text {
	margin-top: 6px;
	color: var(--t-ink-3);
	font-size: 14px;
	line-height: 1.45;
}

.cs-t-content .wp-caption {
	max-width: 100%;
}

.alignleft {
	float: left;
	margin: 0.3em 1.2em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.2em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.cs-t-content::after {
	content: "";
	display: table;
	clear: both;
}

.cs-t-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 24px;
	font-weight: 600;
}

.cs-t-content .wp-block-table thead {
	border-bottom: 2px solid var(--t-line);
}

.cs-t-content .wp-block-table tfoot {
	border-top: 2px solid var(--t-line);
}

.cs-t-content .wp-block-button__link {
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.cs-t-content .wp-block-button__link:not(.has-background) {
	background: var(--t-primary);
}

.cs-t-content .wp-block-button__link:not(.has-text-color) {
	color: #FFFFFF;
}

.cs-t-content .wp-block-button__link:not(.has-background):hover {
	background: var(--t-primary-ink);
}

.cs-t-content .is-style-outline > .wp-block-button__link:not(.has-background) {
	border: 2px solid var(--t-primary);
	background: transparent;
	color: var(--t-primary);
}

/* ---------- Röyxat, qidiruv ---------- */

.cs-t-pagehead {
	margin-bottom: 16px;
}

.cs-t-pagehead__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.cs-t-pagehead p {
	margin: 4px 0 0;
	color: var(--t-ink-3);
	font-size: 14px;
}

.cs-t-list {
	display: grid;
	gap: 12px;
}

.cs-t-item {
	padding: 18px;
	border: 1px solid var(--t-line);
	border-radius: var(--t-radius);
	background: var(--t-surface);
}

.cs-t-item__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
}

.cs-t-item__title a {
	color: var(--t-ink);
	text-decoration: none;
}

.cs-t-item__title a:hover {
	color: var(--t-primary);
	text-decoration: underline;
}

.cs-t-item__excerpt {
	margin-top: 8px;
	color: var(--t-ink-2);
	font-size: 15px;
	line-height: 1.55;
}

.cs-t-item__excerpt p {
	margin: 0;
}

.cs-t-empty {
	padding: 28px 20px;
	border: 1px dashed #C9D1DB;
	border-radius: var(--t-radius);
	background: var(--t-surface);
	color: var(--t-ink-2);
	text-align: center;
}

.cs-t-empty p {
	margin: 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 20px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--t-line);
	border-radius: 10px;
	background: var(--t-surface);
	color: var(--t-ink);
	font-weight: 600;
	text-decoration: none;
}

a.page-numbers:hover {
	border-color: #C9D1DB;
	color: var(--t-primary);
}

.page-numbers.current {
	border-color: var(--t-primary);
	background: var(--t-primary);
	color: #FFFFFF;
}

.page-numbers.dots {
	min-width: 0;
	border-color: transparent;
	background: transparent;
}

/* ---------- 404 ---------- */

.cs-t-error {
	max-width: 560px;
	margin: 0 auto;
	padding: 32px 0 8px;
	text-align: center;
}

.cs-t-error__code {
	margin: 0;
	color: var(--t-primary);
	font-size: 76px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.cs-t-error h1 {
	margin: 14px 0 8px;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 800;
}

.cs-t-error__text {
	margin: 0 0 24px;
	color: var(--t-ink-2);
}

.cs-t-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* ---------- Boş sahifa (yönaltiriş öçirilgan bölsa) ---------- */

.cs-t-hero {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	background-color: var(--t-night);
	background-image: var(--t-girih);
	background-size: 52px 52px;
	color: #FFFFFF;
}

.admin-bar .cs-t-hero {
	min-height: calc(100vh - 46px);
	min-height: calc(100dvh - 46px);
}

.cs-t-hero__in {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 36px;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 20px 22px;
}

.cs-t-hero__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.cs-t-org {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cs-t-org img {
	flex: none;
	width: auto;
	height: 60px;
}

.cs-t-org span {
	max-width: 18em;
	font-size: 12.5px;
	line-height: 17px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.cs-t-name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.cs-t-name strong {
	font-size: 21px;
	line-height: 25px;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.cs-t-name small {
	font-size: 13px;
	line-height: 18px;
	color: rgba(255, 255, 255, 0.72);
}

.cs-t-hero__lead {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 720px;
}

.cs-t-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--t-turq);
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
}

.cs-t-kicker::before {
	content: "";
	flex: none;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--t-turq);
}

.cs-t-hero__title {
	margin: 0;
	font-size: 28px;
	line-height: 1.16;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.cs-t-hero__title span {
	color: var(--t-turq);
}

.cs-t-hero__text {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.6;
}

.cs-t-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.cs-t-chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 13.5px;
	line-height: 18px;
	font-weight: 600;
}

.cs-t-chips li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--t-turq);
}

.cs-t-hero__cta {
	min-height: 52px;
	margin-top: 8px;
	padding: 0 24px;
	font-size: 16px;
}

.cs-t-hero__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
	line-height: 18px;
}

/* ---------- Telefon: kiçik ekran ---------- */

@media (max-width: 600px) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
}

/* ---------- Planşet va kompyuter ---------- */

@media (min-width: 480px) {
	.cs-t-brand__text small {
		display: block;
	}
}

@media (min-width: 783px) {
	.admin-bar .cs-t-hero {
		min-height: calc(100vh - 32px);
		min-height: calc(100dvh - 32px);
	}
}

@media (min-width: 768px) {
	.cs-t-wrap {
		padding-right: 32px;
		padding-left: 32px;
	}

	.cs-t-head__in {
		min-height: 78px;
	}

	.cs-t-brand img {
		height: 48px;
	}

	.cs-t-main {
		padding: 44px 0 72px;
	}

	.cs-t-card {
		padding: 36px 44px 40px;
	}

	.cs-t-entry__title,
	.cs-t-pagehead__title {
		font-size: 34px;
	}

	.cs-t-content {
		margin-top: 26px;
		font-size: 17px;
		line-height: 1.7;
	}

	.cs-t-content h2 {
		font-size: 25px;
	}

	.cs-t-content h3 {
		font-size: 21px;
	}

	.cs-t-item {
		padding: 22px 26px;
	}

	.cs-t-error {
		padding-top: 56px;
	}

	.cs-t-error__code {
		font-size: 104px;
	}

	.cs-t-error h1 {
		font-size: 32px;
	}

	.cs-t-hero__in {
		padding: 40px 40px 28px;
	}

	.cs-t-hero__title {
		font-size: 40px;
	}

	.cs-t-hero__text {
		font-size: 17px;
	}
}

@media (min-width: 1024px) {
	.cs-t-hero {
		background-size: 64px 64px;
	}

	.cs-t-hero__in {
		padding: 44px clamp(40px, 5vw, 72px) 32px;
	}

	.cs-t-org {
		gap: 18px;
	}

	.cs-t-org img {
		height: 92px;
	}

	.cs-t-org span {
		font-size: 15px;
		line-height: 21px;
	}

	.cs-t-name strong {
		font-size: 26px;
		line-height: 30px;
	}

	.cs-t-name small {
		font-size: 14px;
	}

	.cs-t-hero__lead {
		gap: 18px;
	}

	.cs-t-kicker {
		font-size: 14px;
		line-height: 20px;
	}

	.cs-t-hero__title {
		font-size: clamp(40px, 4vw, 54px);
		line-height: 1.1;
	}

	.cs-t-hero__text {
		font-size: 18px;
		line-height: 1.6;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs-t-btn {
		transition: none;
	}
}
