/* UZ Weekly: flag colours, 1440px layout, front page */
:root {
	--uz-blue: #0099b5;       /* flag blue, decoration only */
	--uz-blue-dark: #00748a;  /* text and buttons: 5:1 on white */
	--uz-green: #1eb53a;
	--uz-green-dark: #117a28;
	--uz-red: #ce1126;
	--uz-ink: #0c2b36;
	--uz-mist: #eef7f9;
	--uz-line: #d5e4e8;
	--uz-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	/* eight-point star, the khatam of Uzbek ornament */
	--uz-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.5 3.5h5v5L24 12l-3.5 3.5v5h-5L12 24l-3.5-3.5h-5v-5L0 12l3.5-3.5v-5h5z'/%3E%3C/svg%3E");
}

/* ---------- width ---------- */
@media (min-width: 1200px) {
	.container { width: calc(100% - 48px); max-width: 1440px; }
	.page-wrap, .full-width .secondary-bar { max-width: 1410px; }
	.page-wrap.full-width { max-width: 100%; }
	.full-width .secondary-bar { width: calc(100% - 78px); }
}

/* ---------- colours of the parent theme ---------- */
body { color: #24343a; background: #fff; }
h1, h2, h3, h4, h5, h6 { color: var(--uz-ink); }
.default-layout .post-wrap .title, .post-wrap .title, .header-content-wrap .logo.text-logo { font-family: var(--uz-serif); }
.navbar-default,
.category-wrap .category-name,
.widget .title,
.latest-slider-wrap .slider-nav { background-color: var(--uz-ink); }
.main-footer, .main-footer .footer-top { background-color: var(--uz-ink); border-color: var(--uz-ink); }
.main-footer .footer-bottom { background-color: #081f28; border-color: #081f28; }
.main-footer, .main-footer .widget, .main-footer a, .main-footer p { color: #c4d6dc; }
.main-footer .widget a:hover, .main-footer .footer-bottom a:hover { color: #fff; }
.secondary-bar-wrap { border-color: var(--uz-ink); }

/* flag ribbon: blue, red line, white, red line, green */
.main-header::before,
.main-footer::before {
	content: '';
	display: block;
	height: 12px;
	background: linear-gradient(var(--uz-blue) 0 4px, var(--uz-red) 4px 5px, #fff 5px 7px, var(--uz-red) 7px 8px, var(--uz-green) 8px 12px);
}
body.has-fixed-navbar .main-header::before { display: none; }

.header-content-section { background-color: #fff; }
.header-content-wrap .logo.text-logo,
.header-content-wrap .logo.text-logo:hover { color: var(--uz-blue-dark); letter-spacing: -.01em; }

/* ---------- front page ---------- */
.uzw-home { padding: 32px 0 0; }
.uzw-home h2, .uzw-home h3 { margin: 0; }

.uzw-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--uz-blue);
	font: 700 20px/1.2 'Open Sans', sans-serif;
	color: var(--uz-ink);
}
.uzw-heading::before {
	content: '';
	flex: none;
	width: 20px;
	height: 20px;
	background: var(--uz-green);
	-webkit-mask: var(--uz-star) center / contain no-repeat;
	mask: var(--uz-star) center / contain no-repeat;
}
.uzw-heading a, .uzw-heading a:hover { color: inherit; }

.uzw-card__media { display: block; overflow: hidden; background: var(--uz-mist); aspect-ratio: 16 / 10; }
.uzw-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.uzw-card:hover .uzw-card__img { transform: scale(1.03); }
.uzw-card__body { padding-top: 12px; }
.uzw-home .uzw-card__cat { display: inline-block; color: var(--uz-green-dark); font-size: 13px; font-weight: 700; line-height: 1.4; }
.uzw-home .uzw-card__cat:hover { text-decoration: underline; }
.uzw-card__title { margin: 4px 0 6px; font: 700 20px/1.25 var(--uz-serif); }
.uzw-home .uzw-card__title { margin: 4px 0 6px; overflow-wrap: anywhere; }
.uzw-home .uzw-card__title a { color: var(--uz-ink); }
.uzw-home .uzw-card__title a:hover { color: var(--uz-blue-dark); }
.uzw-home a:focus-visible { outline: 2px solid var(--uz-blue-dark); outline-offset: 2px; }
.uzw-card__text { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.uzw-card__date { display: block; font-size: 13px; line-height: 1.4; color: #5b7078; }

.uzw-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 48px; }
.uzw-top::before, .uzw-top::after { display: none !important; }
.uzw-top__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.uzw-card--lead .uzw-card__title { font-size: 28px; line-height: 1.15; }
.uzw-top__latest .uzw-card { border-bottom: 1px solid var(--uz-line); padding: 12px 0; }
.uzw-top__latest .uzw-card:last-child { border-bottom: 0; }
.uzw-card--line .uzw-card__body { padding: 0; }
.uzw-card--line .uzw-card__title { font-size: 17px; }

.uzw-section { padding: 0 0 56px; }
.uzw-section__items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
.uzw-card--row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.uzw-card--row .uzw-card__body { padding: 0; }
.uzw-card--row .uzw-card__title { font-size: 17px; }

.uzw-section--band { margin-bottom: 56px; padding: 48px 0; background: var(--uz-blue-dark); position: relative; }
.uzw-section--band .uzw-heading { color: #fff; border-color: rgba(255, 255, 255, .45); }
.uzw-section--band .uzw-heading::before { background: #fff; }
.uzw-home .uzw-section--band .uzw-card__cat,
.uzw-home .uzw-section--band .uzw-card__title a,
.uzw-section--band .uzw-card__date { color: #fff; }
.uzw-home .uzw-section--band .uzw-card__title a:hover { color: #fff; text-decoration: underline; }
.uzw-home .uzw-section--band a:focus-visible { outline-color: #fff; }

@media (min-width: 600px) {
	.uzw-top__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uzw-section__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uzw-section--split .uzw-section__items { grid-template-columns: minmax(0, 1fr); }
	.uzw-card--lead .uzw-card__title { font-size: 36px; }
}
@media (min-width: 992px) {
	.uzw-top { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); }
	.uzw-top__side { grid-template-columns: minmax(0, 1fr); }
	.uzw-section__items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.uzw-section__items--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.uzw-section__items--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uzw-section__items--1 { grid-template-columns: minmax(0, 560px); }
	.uzw-section--split .uzw-section__items { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 40px; align-content: start; }
	.uzw-section--split .uzw-card--lead { grid-row: 1 / span 4; }
	.uzw-section--split .uzw-section__items--1 { grid-template-columns: minmax(0, 1fr); }
	.uzw-top .uzw-card--lead .uzw-card__title { font-size: 44px; }
	.uzw-card--row { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.uzw-card__img { transition: none; }
	.uzw-card:hover .uzw-card__img { transform: none; }
}

/* ---------- footer widget titles ---------- */
.main-footer .widget .title,
.main-footer .widget .wp-block-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	height: auto;
	margin: 0 0 24px;
	padding: 0 0 12px;
	background: none;
	border-bottom: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
	font: 700 20px/1.2 var(--uz-serif);
	letter-spacing: 0;
	text-transform: none;
}
.main-footer .widget .title::before,
.main-footer .widget .wp-block-heading::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--uz-green);
	-webkit-mask: var(--uz-star) center / contain no-repeat;
	mask: var(--uz-star) center / contain no-repeat;
}
.main-footer .widget .title span {
	display: inline;
	height: auto;
	padding: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}
.main-footer .widget .title span::before,
.main-footer .widget .title span::after,
.main-footer .widget .title::after { display: none; }

/* ---------- news ticker ---------- */
.uzw-ticker { display: flex; align-items: stretch; height: 48px; background: var(--uz-mist); border-top: 1px solid var(--uz-line); border-bottom: 1px solid var(--uz-line); line-height: 1.3; }
.uzw-ticker__label { display: flex; flex: none; align-items: center; gap: 10px; padding: 0 20px 0 max(24px, calc((100% - 1410px) / 2)); background: var(--uz-blue-dark); color: #fff; font-size: 15px; font-weight: 700; text-transform: capitalize; }
.uzw-ticker__label time { font-weight: 400; text-transform: none; }
.uzw-ticker__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px calc(100% - 32px), transparent); }
.uzw-ticker__track { display: flex; width: max-content; height: 100%; animation: uzw-ticker var(--uzw-time, 60s) linear infinite; }
.uzw-ticker__list { display: flex; flex: none; align-items: center; min-width: 100vw; justify-content: space-around; margin: 0; padding: 0; list-style: none; }
.uzw-ticker__list li { display: flex; align-items: center; white-space: nowrap; }
.uzw-ticker__list li::before { content: ''; width: 14px; height: 14px; margin: 0 24px; background: var(--uz-green); -webkit-mask: var(--uz-star) center / contain no-repeat; mask: var(--uz-star) center / contain no-repeat; }
.uzw-ticker .uzw-ticker__cat { margin-right: 10px; color: var(--uz-green-dark); font-size: 14px; font-weight: 700; }
.uzw-ticker .uzw-ticker__link { color: var(--uz-ink); font: 600 17px/1.3 var(--uz-serif); }
.uzw-ticker .uzw-ticker__link:hover { color: var(--uz-blue-dark); text-decoration: underline; }
.uzw-ticker:hover .uzw-ticker__track,
.uzw-ticker__view:focus-within .uzw-ticker__track,
.uzw-ticker.is-paused .uzw-ticker__track { animation-play-state: paused; }
.uzw-ticker__pause { flex: none; width: 48px; padding: 0; border: 0; background: transparent; color: var(--uz-blue-dark); font-size: 14px; cursor: pointer; }
.uzw-ticker__pause:hover { background: var(--uz-blue-dark); color: #fff; }
.uzw-ticker a:focus-visible, .uzw-ticker__pause:focus-visible { outline: 2px solid var(--uz-blue-dark); outline-offset: -2px; }
@keyframes uzw-ticker { to { transform: translateX(-50%); } }
@media (max-width: 767px) {
	.uzw-ticker__label { padding: 0 12px 0 16px; }
	.uzw-ticker__label time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.uzw-ticker__track { animation: none; }
	.uzw-ticker__view { overflow-x: auto; }
	.uzw-ticker__list[aria-hidden], .uzw-ticker__pause { display: none; }
}
