/*
Theme Name: USA Todays
Description: A fast, lightweight news theme: broadsheet-style homepage, section blocks, breaking news bar, most-read list, ad slots, dark mode, Google News sitemap and Yoast SEO support. Uses system fonts only (no font downloads).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
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: usatodays
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--paper: #ffffff;
	--paper-2: #f2f4f7;
	--ink: #0e1621;
	--ink-2: #3a4550;
	--ink-3: #66707c;
	--rule: #e2e6ea;
	--rule-strong: #0e1621;
	--accent: #d0021b;
	--brand: #0a1f44;
	--brand-ink: #ffffff;

	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	--container: 1280px;
	--gutter: 24px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0d1117;
		--paper-2: #171c24;
		--ink: #e8ecf1;
		--ink-2: #b8c0ca;
		--ink-3: #8a94a0;
		--rule: #262d37;
		--rule-strong: #e8ecf1;
		--accent: #ff4d63;
		--brand: #0a1428;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--paper: #0d1117;
	--paper-2: #171c24;
	--ink: #e8ecf1;
	--ink-2: #b8c0ca;
	--ink-3: #8a94a0;
	--rule: #262d37;
	--rule-strong: #e8ecf1;
	--accent: #ff4d63;
	--brand: #0a1428;
	color-scheme: dark;
}

@media (max-width: 720px) {
	:root { --gutter: 16px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	top: 12px;
	left: 12px;
	z-index: 200;
	padding: 10px 14px;
	background: var(--paper);
	color: var(--ink);
	font-weight: 700;
}

body.ust-locked { overflow: hidden; }

.ust-main { padding: 28px 0 0; }

.ust-empty { color: var(--ink-3); padding: 24px 0; }

/* ==========================================================================
   3. Breaking bar
   ========================================================================== */

.ust-breaking { background: #d0021b; color: #fff; font-size: 14px; }

.ust-breaking__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
}

.ust-breaking__label {
	flex: none;
	padding: 3px 8px;
	background: #fff;
	color: #d0021b;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ust-breaking__link {
	overflow: hidden;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ust-breaking__link:hover { text-decoration: underline; }

/* ==========================================================================
   4. Masthead & navigation
   ========================================================================== */

.ust-masthead { background: var(--brand); color: var(--brand-ink); }

.ust-masthead__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}

.ust-masthead__left,
.ust-masthead__right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ust-masthead__date {
	margin-right: 10px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	font-weight: 500;
}

.ust-brand__name {
	margin: 0 0 0 4px;
	color: var(--brand-ink);
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ust-brand__name strong { font-weight: 800; }
.ust-brand .custom-logo { width: auto; max-height: 44px; }

.ust-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.ust-masthead .ust-iconbtn:hover { background: rgba(255, 255, 255, 0.12); }
.ust-drawer .ust-iconbtn:hover { background: var(--paper-2); }

.ust-theme-toggle .ust-icon--sun { display: none; }
:root[data-theme="dark"] .ust-theme-toggle .ust-icon--sun { display: block; }
:root[data-theme="dark"] .ust-theme-toggle .ust-icon--moon { display: none; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ust-theme-toggle .ust-icon--sun { display: block; }
	:root:not([data-theme="light"]) .ust-theme-toggle .ust-icon--moon { display: none; }
}

.ust-searchbar {
	padding: 16px 0;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.ust-search,
.wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

.ust-search { max-width: 640px; margin: 0 auto; }

.ust-search input,
.wp-block-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ink-3);
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
}

.ust-search input:focus,
.wp-block-search__input:focus { border-color: var(--ink); outline: none; }

.ust-search button,
.wp-block-search__button {
	height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 4px;
	background: var(--brand);
	color: #fff;
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ust-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	box-shadow: 0 1px 0 var(--rule);
}

.admin-bar .ust-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .ust-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ust-nav { top: 0; } }

.ust-nav__inner {
	display: flex;
	align-items: center;
	gap: 24px;
}

.ust-nav__brand {
	display: none;
	flex: none;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ust-nav.is-stuck .ust-nav__brand { display: block; }

.ust-nav__menu {
	display: flex;
	flex: 1;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.ust-nav__menu::-webkit-scrollbar { display: none; }

.ust-nav__menu a {
	display: block;
	padding: 14px 0 11px;
	border-bottom: 3px solid transparent;
	font-size: 15px;
	font-weight: 600;
}

.ust-nav__menu a:hover { color: var(--accent); }

.ust-nav__menu .current-menu-item > a,
.ust-nav__menu .current-cat > a,
.ust-nav__menu .current-post-ancestor > a {
	border-bottom-color: var(--accent);
}

/* Drawer */

.ust-drawer { position: fixed; inset: 0; z-index: 100; }

.ust-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.ust-drawer__panel {
	position: relative;
	z-index: 1;
	width: min(360px, 88vw);
	height: 100%;
	overflow-y: auto;
	padding: 14px 24px 32px;
	background: var(--paper);
}

.ust-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 -10px 16px 0;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rule);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ust-drawer .ust-search { margin-bottom: 12px; }

.ust-drawer__menu,
.ust-drawer__menu .sub-menu { margin: 0; padding: 0; list-style: none; }

.ust-drawer__menu a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--rule);
	font-size: 17px;
	font-weight: 600;
}

.ust-drawer__menu a:hover { color: var(--accent); }
.ust-drawer__menu .sub-menu a { padding-left: 16px; font-size: 15px; font-weight: 500; color: var(--ink-2); }

@media (max-width: 900px) {
	.ust-masthead__bar { min-height: 58px; }
	.ust-masthead__date { display: none; }
	.ust-brand__name { font-size: 24px; }
	.ust-nav.is-stuck .ust-nav__brand { display: none; }
	.ust-nav__menu { gap: 22px; }
}

/* ==========================================================================
   5. Story cards
   ========================================================================== */

.ust-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--paper-2);
}

.ust-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ust-card__media:hover img { transform: scale(1.03); }

.ust-kicker {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ust-kicker:hover { text-decoration: underline; }

.ust-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.01em;
}

.ust-card__title a:hover,
.ust-mostread__list a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ust-card__excerpt {
	margin: 8px 0 0;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.5;
}

.ust-card__meta {
	margin-top: 8px;
	color: var(--ink-3);
	font-size: 12px;
}

.ust-card--lead .ust-card__media { margin-bottom: 16px; }

.ust-card--lead .ust-card__title {
	font-size: 38px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.ust-card--lead .ust-card__excerpt { margin-top: 12px; font-size: 17px; }

.ust-card--feature .ust-card__title {
	font-size: 27px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.ust-card--feature .ust-card__excerpt { font-size: 16px; }

.ust-card--text .ust-card__title { font-size: 17px; }

.ust-card--compact.has-post-thumbnail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px;
	gap: 16px;
	align-items: start;
}

.ust-card--compact .ust-card__media { order: 2; aspect-ratio: 3 / 2; margin: 0; }
.ust-card--compact .ust-card__title { font-size: 16px; }

.ust-card--row.has-post-thumbnail {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ust-card--row .ust-card__media { margin: 0; }
.ust-card--row .ust-card__title { font-size: 21px; }

@media (max-width: 720px) {
	.ust-card--lead .ust-card__title { font-size: 28px; }
	.ust-card--feature .ust-card__title { font-size: 23px; }
	.ust-card--row.has-post-thumbnail { grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; }
	.ust-card--row .ust-card__media { order: 2; aspect-ratio: 3 / 2; }
	.ust-card--row .ust-card__title { font-size: 17px; }
	.ust-card--row .ust-card__excerpt { display: none; }
}

/* ==========================================================================
   6. Homepage
   ========================================================================== */

.ust-top {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
	grid-template-areas: "side lead trend";
	padding-bottom: 28px;
	border-bottom: 1px solid var(--rule);
}

.ust-top__lead { grid-area: lead; padding: 0 24px; }

.ust-top__side {
	grid-area: side;
	padding-right: 24px;
	border-right: 1px solid var(--rule);
}

.ust-top__trend {
	grid-area: trend;
	padding-left: 24px;
	border-left: 1px solid var(--rule);
}

.ust-top__side .ust-card + .ust-card,
.ust-section__list .ust-card + .ust-card {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
}

@media (max-width: 1024px) {
	.ust-top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "lead lead" "side trend";
	}
	.ust-top__lead {
		margin-bottom: 24px;
		padding: 0 0 24px;
		border-bottom: 1px solid var(--rule);
	}
	.ust-top__trend { border-left: 0; }
}

@media (max-width: 720px) {
	.ust-top {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "lead" "side" "trend";
	}
	.ust-top__side {
		margin-bottom: 24px;
		padding: 0 0 24px;
		border-right: 0;
		border-bottom: 1px solid var(--rule);
	}
	.ust-top__trend { padding: 0; }
}

.ust-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 24px;
}

.ust-row--top { padding: 28px 0 0; }

@media (max-width: 1024px) { .ust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ust-row { grid-template-columns: minmax(0, 1fr); } }

.ust-section { margin-top: 48px; }

.ust-section__body {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 32px;
}

.ust-section__list { padding-left: 32px; border-left: 1px solid var(--rule); }

/* Feature story: headline beside the image keeps sections compact. */
.ust-section__main .ust-card--feature.has-post-thumbnail {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 24px;
	align-items: start;
}

.ust-section__main .ust-card--feature .ust-card__media { order: 2; margin: 0; }

@media (max-width: 1024px) {
	.ust-section__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ust-section__list { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}

@media (max-width: 720px) {
	.ust-section__main .ust-card--feature.has-post-thumbnail { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ust-section__main .ust-card--feature .ust-card__media { order: 0; margin-bottom: 12px; }
}

.ust-more { display: flex; justify-content: center; margin-top: 48px; }

.ust-btn {
	display: inline-flex;
	align-items: center;
	height: 46px;
	padding: 0 32px;
	border: 2px solid var(--ink);
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
}

.ust-btn:hover { background: var(--ink); color: var(--paper); }

/* Section headings (also used for widget titles) */

.ust-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--rule);
}

.ust-section-head__title,
.widget-title,
.widget .wp-block-heading,
.widget .wp-block-search__label,
.ust-comments__title,
.comment-reply-title {
	display: inline-block;
	margin: 0 0 -1px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--accent);
	font-family: var(--font);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ust-section-head__title a:hover { color: var(--accent); }

.ust-section-head__more {
	flex: none;
	padding-bottom: 9px;
	color: var(--ink-3);
	font-size: 13px;
	font-weight: 600;
}

.ust-section-head__more::after { content: " \2192"; }
.ust-section-head__more:hover { color: var(--ink); }

/* Most read */

.ust-mostread__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mostread;
}

.ust-mostread__list li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 6px;
	padding: 13px 0;
	border-bottom: 1px solid var(--rule);
	counter-increment: mostread;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.ust-mostread__list li:first-child { padding-top: 0; }
.ust-mostread__list li:last-child { border-bottom: 0; }

.ust-mostread__list li::before {
	content: counter(mostread);
	color: var(--accent);
	font-size: 28px;
	font-weight: 800;
	line-height: 0.95;
}

/* ==========================================================================
   7. Lists, archives, search
   ========================================================================== */

.ust-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	align-items: start;
}

.ust-layout__side > * + * { margin-top: 36px; }

@media (max-width: 1024px) {
	.ust-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

.ust-breadcrumbs {
	margin-bottom: 12px;
	color: var(--ink-3);
	font-size: 13px;
}

.ust-breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

.ust-page-head {
	margin-bottom: 4px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--rule);
}

.ust-page-head__avatar { margin-bottom: 14px; border-radius: 50%; }

.ust-page-head__label {
	margin: 0 0 6px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ust-page-head__title,
.ust-page__title {
	margin: 0;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.ust-page-head__desc { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.ust-page-head__desc p { margin: 0; }
.ust-page-head .ust-search { max-width: none; margin-top: 18px; }

.ust-river > .ust-card { padding: 24px 0; border-bottom: 1px solid var(--rule); }

.pagination { margin-top: 32px; }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
}

a.page-numbers:hover { border-color: var(--ink); }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-numbers.dots { border: 0; }

/* ==========================================================================
   8. Article
   ========================================================================== */

.ust-article__head { margin-bottom: 26px; }

.ust-article__title {
	margin: 2px 0 0;
	font-size: 44px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.028em;
}

.ust-article__dek {
	margin: 14px 0 0;
	color: var(--ink-2);
	font-size: 20px;
	line-height: 1.45;
}

.ust-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--rule);
	font-size: 14px;
}

.ust-byline__author { font-weight: 700; }
.ust-byline__author a { color: var(--accent); }
.ust-byline__author a:hover { text-decoration: underline; }

.ust-byline__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	color: var(--ink-3);
	font-size: 13px;
}

.ust-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.ust-share__label {
	margin-right: 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ust-share a,
.ust-share button {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: 4px;
	background: none;
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.ust-share a:hover,
.ust-share button:hover { border-color: var(--ink); }

.ust-article__media { margin: 0 0 30px; }
.ust-article__media img { width: 100%; }

figcaption,
.wp-element-caption {
	margin-top: 8px;
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.45;
}

.ust-article__content,
.ust-article__foot,
.ust-comments { max-width: 700px; }

.ust-article__foot {
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid var(--rule);
}

.ust-article__foot .ust-share { margin-top: 18px; }

.ust-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.ust-tags span {
	margin-right: 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ust-tags a { padding: 6px 10px; border-radius: 4px; background: var(--paper-2); font-weight: 600; }
.ust-tags a:hover { background: var(--brand); color: #fff; }

.ust-author {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	margin-top: 28px;
	padding: 20px;
	border-radius: 4px;
	background: var(--paper-2);
}

.ust-author img { border-radius: 50%; }
.ust-author__name { margin: 0; font-size: 15px; font-weight: 700; }
.ust-author__bio { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.ust-related { margin-top: 64px; }

@media (max-width: 720px) {
	.ust-article__title,
	.ust-page-head__title,
	.ust-page__title { font-size: 30px; }
	.ust-article__dek { font-size: 18px; }
}

/* Post content */

.entry-content {
	font-size: 18px;
	line-height: 1.7;
	overflow-wrap: break-word;
}

.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }

.entry-content h2 { margin: 1.6em 0 0.5em; font-size: 26px; line-height: 1.25; letter-spacing: -0.015em; }
.entry-content h3 { margin: 1.4em 0 0.4em; font-size: 21px; line-height: 1.3; }
.entry-content h4 { margin: 1.3em 0 0.4em; font-size: 18px; }

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover { text-decoration-thickness: 2px; }

.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--accent);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.45;
}

.entry-content blockquote p { margin: 0 0 0.5em; }

.entry-content blockquote cite {
	display: block;
	color: var(--ink-3);
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
}

.entry-content figure { margin: 1.6em 0; }
.entry-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--rule); }

.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th,
.entry-content td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content th { border-bottom-color: var(--rule-strong); }

.entry-content pre { overflow: auto; padding: 16px; background: var(--paper-2); font-size: 14px; }

.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.ust-pagelinks { font-size: 14px; font-weight: 600; }
.ust-pagelinks a { margin: 0 4px; text-decoration: underline; }

/* Ads: reserved height prevents layout shift (CLS) while ads load. */

.ust-ad { text-align: center; }

.ust-ad::before {
	content: "Advertisement";
	display: block;
	margin-bottom: 8px;
	color: var(--ink-3);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ust-ad .widget-title { display: none; }
.ust-ad--header { padding-top: 20px; }
.ust-ad--header .widget { min-height: 90px; }
.ust-ad--article { margin: 2em 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ust-ad--article .widget { min-height: 250px; }

@media (max-width: 720px) {
	.ust-ad--header .widget { min-height: 100px; }
}

/* Widgets */

.widget { font-size: 15px; }
.widget-title,
.widget .wp-block-heading,
.widget .wp-block-search__label { margin-bottom: 14px; }
.widget > .widget-title,
.widget .wp-block-heading,
.widget .wp-block-search__label { display: table; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.widget a:hover { color: var(--accent); }

/* ==========================================================================
   9. Comments
   ========================================================================== */

.ust-comments { margin-top: 48px; font-size: 15px; }

.ust-comments__title,
.comment-reply-title { margin-bottom: 16px; }

.comment-reply-title small { margin-left: 8px; font-size: 13px; letter-spacing: 0; }

.ust-comments__list,
.ust-comments__list .children { margin: 0; padding: 0; list-style: none; }
.ust-comments__list .children { padding-left: 24px; }

.comment-body { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 8px; color: var(--ink-3); font-size: 12px; }
.comment-content { font-size: 16px; }
.reply a { color: var(--accent); font-size: 13px; font-weight: 700; }

.comment-respond { margin-top: 32px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ink-3);
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}

.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

.comment-form .submit {
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 4px;
	background: var(--brand);
	color: #fff;
	font-family: var(--font);
	font-weight: 700;
	cursor: pointer;
}

/* ==========================================================================
   10. Pages & 404
   ========================================================================== */

.ust-page,
.ust-404 { max-width: 760px; margin: 0 auto; }
.ust-page__title { margin-bottom: 24px; }
.ust-404 { padding: 24px 0 8px; }
.ust-404 p { color: var(--ink-2); }
.ust-404 .ust-search { margin: 20px 0 0; }

/* ==========================================================================
   11. Footer
   ========================================================================== */

.ust-footer {
	margin-top: 72px;
	background: var(--brand);
	color: rgba(255, 255, 255, 0.9);
}

.ust-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 48px;
	padding: 48px 0 36px;
}

.ust-footer__name {
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ust-footer__brand p { max-width: 320px; margin: 10px 0 0; color: rgba(255, 255, 255, 0.65); font-size: 14px; }

.ust-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 3;
	column-gap: 32px;
}

.ust-footer__menu li { padding: 6px 0; break-inside: avoid; }
.ust-footer__menu a { font-size: 14px; font-weight: 500; }
.ust-footer__menu a:hover,
.ust-footer__bottom a:hover { text-decoration: underline; }

.ust-footer__widgets { grid-column: 1 / -1; }
.ust-footer .widget-title { color: #fff; }
.ust-footer .widget li { border-bottom-color: rgba(255, 255, 255, 0.12); }

.ust-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 18px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
}

.ust-footer__bottom p { margin: 0; }

@media (max-width: 720px) {
	.ust-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ust-footer__menu { columns: 2; }
}

@media print {
	.ust-breaking,
	.ust-masthead,
	.ust-nav,
	.ust-drawer,
	.ust-layout__side,
	.ust-share,
	.ust-ad,
	.ust-related,
	.ust-comments,
	.ust-footer { display: none !important; }
	.ust-layout { display: block; }
}
