/* ==========================================================================
   YourTechRead — main stylesheet
   Editorial-led, with magazine touches.
   Palette: forest green, ink black, white, warm off-white.
   ========================================================================== */

:root {
	--ytr-paper: #FAFAF7;
	--ytr-surface: #FFFFFF;
	--ytr-sunk: #F1F1EB;
	--ytr-tile: #EEF1EC;
	--ytr-ink: #0E1311;
	--ytr-ink-2: #3B413E;
	--ytr-muted: #5B615E;
	--ytr-line: #E3E1D9;
	--ytr-rule: #0E1311;
	--ytr-green: #156C40;
	--ytr-green-text: #156C40;
	--ytr-green-hover: #0F5531;
	--ytr-green-tint: #E7F1EA;

	--ytr-night: #0E1311;
	--ytr-night-card: #18201C;
	--ytr-night-line: #2A3430;
	--ytr-night-soft: #AEB8B2;
	--ytr-pale: #DCEBDD;

	--ytr-ff-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--ytr-ff-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ytr-ff-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--ytr-wrap: 1280px;
	--ytr-gutter: 32px;
	--ytr-radius: 8px;
	--ytr-radius-sm: 4px;
	--ytr-header-h: 82px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--ytr-paper: #0F1412;
	--ytr-surface: #161C19;
	--ytr-sunk: #121815;
	--ytr-tile: #1D2521;
	--ytr-ink: #ECEFEC;
	--ytr-ink-2: #C9D0CB;
	--ytr-muted: #9AA39E;
	--ytr-line: #26302B;
	--ytr-rule: #ECEFEC;
	--ytr-green-text: #63C48C;
	--ytr-green-hover: #7FD3A2;
	--ytr-green-tint: #16251D;
	--ytr-night: #0A0E0C;
	--ytr-night-card: #141B17;
	--ytr-night-line: #26302B;
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ytr-header-h) + 16px); }

body {
	margin: 0;
	background: var(--ytr-paper);
	color: var(--ytr-ink);
	font-family: var(--ytr-ff-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ytr-green-text); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ytr-ff-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--ytr-ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--ytr-green-text); outline-offset: 2px; border-radius: 2px; }

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

.ytr-skip {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--ytr-ink); color: var(--ytr-paper);
	padding: 10px 16px; border-radius: var(--ytr-radius);
}
.ytr-skip:focus { top: 12px; color: var(--ytr-paper); }

.ytr-wrap { max-width: var(--ytr-wrap); margin-inline: auto; padding-inline: var(--ytr-gutter); }

.ytr-icon { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Small shared pieces ---------- */
.ytr-kicker {
	display: inline-flex; flex-wrap: wrap; align-items: center;
	font-family: var(--ytr-ff-mono); font-weight: 500;
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
	color: var(--ytr-green-text);
}
.ytr-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.ytr-kicker__dot { white-space: pre; }

.ytr-meta-line { font-size: 13px; color: var(--ytr-muted); }

.ytr-eyebrow {
	display: block;
	font-family: var(--ytr-ff-mono); font-weight: 500;
	font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ytr-night-soft);
}
.ytr-eyebrow--ink { color: var(--ytr-ink); }
.ytr-eyebrow--pale { color: var(--ytr-pale); }

.ytr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: 22px;
	font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.ytr-btn--ink { background: var(--ytr-ink); color: var(--ytr-paper); }
.ytr-btn--ink:hover { background: var(--ytr-green); color: #fff; }
.ytr-btn--line { background: transparent; border-color: var(--ytr-line); }
.ytr-btn--line:hover { border-color: var(--ytr-ink); color: var(--ytr-ink); }

.ytr-iconbtn {
	width: 44px; height: 44px; border-radius: 22px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ytr-surface); border: 1px solid var(--ytr-line);
	color: var(--ytr-ink); cursor: pointer; transition: border-color .15s;
}
.ytr-iconbtn:hover { border-color: var(--ytr-ink); }

.ytr-morelink {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
	font-size: 15px; font-weight: 600; color: var(--ytr-green-text);
}
.ytr-morelink:hover .ytr-icon { transform: translateX(3px); }
.ytr-morelink .ytr-icon { transition: transform .15s; }
.ytr-morelink--light { color: #fff; border-bottom: 1px solid #fff; padding-bottom: 3px; }
.ytr-morelink--light:hover { color: #fff; }

.ytr-roundlink {
	width: 44px; height: 44px; border-radius: 22px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ytr-rule);
	transition: background-color .15s, color .15s;
}
.ytr-roundlink:hover { background: var(--ytr-ink); color: var(--ytr-paper); }

.ytr-stretch::after { content: ""; position: absolute; inset: 0; }

/* Images and placeholders */
.ytr-media {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--ytr-radius-sm); background: var(--ytr-tile);
}
.ytr-media--16x10 { aspect-ratio: 16 / 10; }
.ytr-media--16x9 { aspect-ratio: 16 / 9; }
.ytr-media--4x3 { aspect-ratio: 4 / 3; }
.ytr-media__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.ytr-media:hover .ytr-media__img, article:hover > .ytr-media .ytr-media__img { transform: scale(1.03); }
.ytr-media__ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	color: var(--ytr-green-text); opacity: .55;
}
@media (prefers-reduced-motion: reduce) {
	.ytr-media__img, .ytr-morelink .ytr-icon { transition: none; }
}

/* ---------- Header ---------- */
.ytr-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ytr-paper);
	border-bottom: 1px solid var(--ytr-rule);
}
.admin-bar .ytr-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 1200px) {
	.ytr-header { transition: transform .25s ease; will-change: transform; }
	.ytr-header--hidden { transform: translateY(-100%); }
	.admin-bar .ytr-header--hidden { transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 46px))); }
}
@media (prefers-reduced-motion: reduce) { .ytr-header { transition: none; } }
@media (max-width: 600px) { .admin-bar .ytr-header { top: 0; } }

.ytr-header__bar {
	display: flex; align-items: center; gap: 32px;
	min-height: var(--ytr-header-h);
}

.ytr-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ytr-ink); }
.ytr-brand:hover { color: var(--ytr-ink); }
.ytr-brand__name {
	font-family: var(--ytr-ff-display); font-weight: 800;
	font-size: 26px; letter-spacing: -0.03em; line-height: 1;
}
.ytr-brand__logo { max-height: 48px; width: auto; }
.ytr-mark { flex: none; border-radius: 10px; }

.ytr-nav { flex: 1 1 auto; min-width: 0; overflow: hidden; padding-block: 4px; }
.ytr-nav:focus-within, .ytr-nav:hover { overflow: visible; }
.ytr-nav__list { list-style: none; display: flex; flex-wrap: nowrap; gap: 22px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.ytr-nav__list > li { position: relative; }
.ytr-nav__list > li > a { display: inline-flex; align-items: center; min-height: 44px; }
.ytr-nav__list .current-menu-item > a,
.ytr-nav__list .current-menu-ancestor > a,
.ytr-nav__list .current-post-ancestor > a { color: var(--ytr-green-text); box-shadow: inset 0 -2px 0 var(--ytr-green-text); }
.ytr-nav__accent > a, .menu-accent > a { color: var(--ytr-green-text); }

.ytr-nav__list .sub-menu {
	list-style: none; position: absolute; left: -16px; top: 100%;
	min-width: 240px; padding: 8px; z-index: 5;
	background: var(--ytr-surface); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius);
	box-shadow: 0 16px 40px -16px rgba(14, 19, 17, .25);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.ytr-nav__list li:hover > .sub-menu,
.ytr-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ytr-nav__list .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.ytr-nav__list .sub-menu a:hover { background: var(--ytr-sunk); }

.ytr-header__tools { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }

.ytr-theme-toggle__sun { display: none; }
:root[data-theme="dark"] .ytr-theme-toggle__sun { display: inline-flex; align-items: center; gap: 8px; }
:root[data-theme="dark"] .ytr-theme-toggle__moon { display: none; }
.ytr-theme-toggle__moon { display: inline-flex; align-items: center; gap: 8px; }

.ytr-menu-btn { display: none; }

.ytr-chips { display: none; }
.ytr-chips__list {
	list-style: none; display: flex; gap: 8px;
	overflow-x: auto; scrollbar-width: none;
	padding: 0 var(--ytr-gutter) 12px;
	font-size: 13px; font-weight: 500; white-space: nowrap;
}
.ytr-chips__list::-webkit-scrollbar { display: none; }
.ytr-chips__list a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
	border: 1px solid var(--ytr-line); border-radius: 18px; background: var(--ytr-surface);
}
.ytr-chips__list .current-menu-item > a { border-color: var(--ytr-ink); }

/* Drawer + search dialogs */
.ytr-drawer, .ytr-search-dialog {
	border: 0; padding: 0; color: var(--ytr-ink); background: var(--ytr-paper);
	max-width: none; max-height: none;
}
.ytr-drawer::backdrop, .ytr-search-dialog::backdrop { background: rgba(14, 19, 17, .55); }
.ytr-drawer[open] {
	margin: 0 0 0 auto; height: 100dvh; width: min(380px, 92vw);
	display: flex; flex-direction: column; gap: 20px; padding: 16px 20px 28px;
	overflow-y: auto;
}
.ytr-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.ytr-drawer__head .ytr-brand__name { font-size: 21px; }
.ytr-drawer__list { list-style: none; font-family: var(--ytr-ff-display); font-weight: 700; font-size: 22px; }
.ytr-drawer__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ytr-line); }
.ytr-drawer__list .sub-menu { list-style: none; padding-left: 14px; font-family: var(--ytr-ff-body); font-weight: 500; font-size: 16px; }
.ytr-drawer__theme { align-self: flex-start; }

.ytr-search-dialog[open] { margin: 0; width: 100%; padding: 20px var(--ytr-gutter); border-bottom: 1px solid var(--ytr-rule); }
.ytr-search-dialog__inner { max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.ytr-search-dialog .ytr-search { flex: 1; }
.ytr-search-dialog .ytr-search input { height: 56px; font-size: 18px; }

/* Search form */
.ytr-search { position: relative; display: flex; }
.ytr-search input {
	width: 100%; height: 48px; padding: 0 52px 0 16px;
	font: inherit; color: var(--ytr-ink);
	background: var(--ytr-surface); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius);
}
.ytr-search input:focus { outline: none; border-color: var(--ytr-green-text); box-shadow: 0 0 0 3px var(--ytr-green-tint); }
.ytr-search button {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 42px; height: 40px; border: 0; border-radius: 6px;
	background: var(--ytr-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ytr-search button:hover { background: var(--ytr-green-hover); }

/* ---------- Homepage ---------- */
.ytr-top {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2.5fr);
	gap: 40px;
	padding-top: 36px; padding-bottom: 64px;
}

.ytr-lead { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ytr-lead__title { font-size: clamp(34px, 4.2vw, 58px); line-height: 1; letter-spacing: -0.035em; }
.ytr-lead__dek { font-size: 18px; line-height: 1.55; color: var(--ytr-ink-2); max-width: 640px; }

.ytr-second {
	display: flex; flex-direction: column; gap: 28px; min-width: 0;
	border-left: 1px solid var(--ytr-line); padding-left: 32px;
}
.ytr-story { display: flex; flex-direction: column; gap: 10px; }
.ytr-story__title { font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.ytr-start { min-width: 0; border-left: 1px solid var(--ytr-line); padding-left: 32px; }
.ytr-start__title { font-size: 24px; }
.ytr-start__sub { font-size: 14px; color: var(--ytr-muted); margin-top: 4px; }
.ytr-start__list { list-style: none; margin-top: 6px; }
.ytr-listitem { display: flex; flex-direction: column; gap: 5px; padding: 15px 0; border-bottom: 1px solid var(--ytr-line); }
.ytr-listitem:last-child { border-bottom: 0; }
.ytr-listitem .ytr-kicker { font-size: 11px; }
.ytr-listitem__title { font-size: 16px; font-weight: 600; line-height: 1.35; }

/* Section heads */
.ytr-sechead {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	border-bottom: 1px solid var(--ytr-rule); padding-bottom: 14px; margin-bottom: 28px;
}
.ytr-sechead__title { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.035em; line-height: 1; }
.ytr-sechead--dark { border-bottom: 0; padding-bottom: 0; margin-bottom: 32px; }
.ytr-sechead--dark .ytr-sechead__title { color: #fff; margin-top: 8px; font-size: clamp(34px, 4vw, 52px); }

/* Best picks */
.ytr-best { background: var(--ytr-night); color: #fff; padding: 64px 0; }
.ytr-best__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.ytr-pick {
	position: relative; display: flex; flex-direction: column; gap: 14px;
	background: var(--ytr-night-card); border: 1px solid var(--ytr-night-line); border-radius: var(--ytr-radius);
	padding: 20px; transition: border-color .15s, transform .15s;
}
.ytr-pick:hover { border-color: #4A5A52; transform: translateY(-2px); }
.ytr-pick__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ytr-pick__cat, .ytr-pick__badge {
	font-family: var(--ytr-ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ytr-night-soft);
}
.ytr-pick__badge { display: inline-flex; align-items: center; gap: 5px; color: #fff; white-space: nowrap; }
.ytr-pick__title { color: #fff; font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.ytr-pick__title a:hover { color: #fff; }
.ytr-pick__foot { margin-top: auto; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--ytr-night-line); padding-top: 14px; }
.ytr-pick__logo {
	width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none;
	background: #fff; color: var(--ytr-green); display: flex; align-items: center; justify-content: center;
}
.ytr-pick__logo img { width: 100%; height: 100%; object-fit: cover; }
.ytr-pick__meta { display: flex; flex-direction: column; font-size: 12px; color: var(--ytr-night-soft); line-height: 1.4; }
.ytr-pick__meta strong { color: #fff; font-size: 14px; font-weight: 600; }

/* Head to head */
.ytr-compare { padding-top: 64px; padding-bottom: 24px; }
.ytr-compare__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ytr-vs {
	position: relative; display: flex; flex-direction: column; gap: 14px; text-align: center;
	background: var(--ytr-surface); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); padding: 24px;
	transition: border-color .15s;
}
.ytr-vs:hover { border-color: var(--ytr-ink); }
.ytr-vs .ytr-kicker { justify-content: center; font-size: 11px; position: relative; z-index: 1; }
.ytr-vs__tiles { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ytr-vs__tile {
	width: 72px; height: 72px; border-radius: 14px; background: var(--ytr-tile);
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px;
	font-family: var(--ytr-ff-display); font-weight: 700; font-size: 13px; line-height: 1.1; color: var(--ytr-ink);
	overflow-wrap: break-word; hyphens: auto;
}
.ytr-vs__vs { font-family: var(--ytr-ff-display); font-weight: 800; font-size: 22px; color: var(--ytr-green-text); }
.ytr-vs__title { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }

.ytr-home-slot { padding-top: 40px; text-align: center; }

/* Category blocks */
.ytr-cats {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 56px; padding-top: 56px; padding-bottom: 64px;
}
.ytr-catblock { min-width: 0; }
.ytr-catblock__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	border-top: 4px solid var(--ytr-rule); padding-top: 14px; margin-bottom: 20px;
}
.ytr-catblock__title { font-size: 30px; letter-spacing: -0.03em; }
.ytr-catblock__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.ytr-catblock__lead { display: flex; flex-direction: column; gap: 10px; }
.ytr-catblock__lead h3 { font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.ytr-catblock__list { list-style: none; }
.ytr-catblock__list li { border-bottom: 1px solid var(--ytr-line); }
.ytr-catblock__list li:last-child { border-bottom: 0; }
.ytr-catblock__list a { display: block; padding: 14px 0; font-weight: 600; line-height: 1.4; }
.ytr-catblock__list li:first-child a { padding-top: 0; }

/* Most read */
.ytr-popular { background: var(--ytr-sunk); border-block: 1px solid var(--ytr-line); padding: 48px 0; }
.ytr-popular__list {
	list-style: none; margin-top: 24px;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
}
.ytr-popular__list li { display: flex; flex-direction: column; gap: 8px; }
.ytr-popular__n {
	font-family: var(--ytr-ff-display); font-weight: 800; font-size: 56px; line-height: .9;
	color: var(--ytr-green-text);
}
.ytr-popular__list a { font-weight: 600; line-height: 1.4; }

/* Newsletter */
.ytr-nl { background: var(--ytr-green); color: #fff; }
.ytr-nl__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.ytr-nl__copy { flex: 1 1 420px; }
.ytr-nl__title { color: #fff; font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.035em; line-height: .98; margin: 10px 0 12px; }
.ytr-nl__text { color: var(--ytr-pale); font-size: 17px; max-width: 520px; }
.ytr-nl__formwrap { flex: 1 1 380px; }
.ytr-nl__form label { display: block; font-size: 14px; font-weight: 500; color: var(--ytr-pale); margin-bottom: 8px; }
.ytr-nl__row { display: flex; flex-wrap: wrap; gap: 10px; }
.ytr-nl__row input, .ytr-nl__provider input[type="email"], .ytr-nl__provider input[type="text"] {
	flex: 1 1 220px; height: 54px; padding: 0 18px; border: 0; border-radius: var(--ytr-radius);
	font: inherit; font-size: 16px; color: #0E1311; background: #fff;
}
.ytr-nl__row button, .ytr-nl__provider button, .ytr-nl__provider input[type="submit"] {
	height: 54px; padding: 0 26px; border: 0; border-radius: var(--ytr-radius); cursor: pointer;
	background: #fff; color: #0E1311; font-weight: 600; font-size: 15px;
}
.ytr-nl__row button:hover, .ytr-nl__provider button:hover, .ytr-nl__provider input[type="submit"]:hover { background: var(--ytr-pale); }
.ytr-nl__note { margin-top: 10px; font-size: 13px; color: var(--ytr-pale); }

/* Empty state */
.ytr-empty { padding-block: 120px; text-align: center; }
.ytr-empty h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.ytr-empty p { color: var(--ytr-muted); }

/* ---------- Archive, search, 404 ---------- */
.ytr-archive-head { padding-top: 48px; padding-bottom: 32px; }
.ytr-archive-head__inner { border-bottom: 1px solid var(--ytr-rule); padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ytr-archive-head h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; line-height: .95; margin-top: 8px; }
.ytr-archive-head__desc { margin-top: 14px; max-width: 680px; font-size: 18px; color: var(--ytr-ink-2); }
.ytr-archive-head__count { font-family: var(--ytr-ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ytr-muted); }
.ytr-archive-head .ytr-kicker { color: var(--ytr-muted); }

.ytr-archive-lead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 48px; }
.ytr-archive-lead__text { display: flex; flex-direction: column; gap: 14px; }
.ytr-archive-lead h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; }
.ytr-archive-lead p.ytr-archive-lead__dek { font-size: 17px; color: var(--ytr-ink-2); }

.ytr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; padding-bottom: 32px; }
.ytr-gcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ytr-gcard__title { font-size: 21px; font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.ytr-gcard__excerpt { font-size: 15px; color: var(--ytr-ink-2); line-height: 1.55; }

.ytr-archive-slot { padding-bottom: 32px; text-align: center; }

.ytr-pagination { padding-block: 24px 72px; }
.ytr-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ytr-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 22px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ytr-line); font-weight: 600; font-size: 14px;
}
.ytr-pagination .page-numbers.current { background: var(--ytr-ink); color: var(--ytr-paper); border-color: var(--ytr-ink); }
.ytr-pagination a.page-numbers:hover { border-color: var(--ytr-ink); color: var(--ytr-ink); }

.ytr-noresults { padding-bottom: 96px; max-width: 640px; }
.ytr-noresults p { font-size: 17px; color: var(--ytr-ink-2); margin-bottom: 20px; }

.ytr-404 { padding-block: 96px; text-align: center; }
.ytr-404__code { font-family: var(--ytr-ff-display); font-weight: 800; font-size: clamp(96px, 18vw, 200px); line-height: .85; letter-spacing: -0.05em; color: var(--ytr-green-text); }
.ytr-404 h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 12px; }
.ytr-404 p { color: var(--ytr-ink-2); margin-bottom: 28px; }
.ytr-404 .ytr-search { max-width: 520px; margin: 0 auto 32px; }
.ytr-404__topics { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ytr-404__topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ytr-line); border-radius: 20px; font-weight: 500; font-size: 14px; background: var(--ytr-surface); }

/* Widgets (ads, sidebars, and the default WordPress widgets) */
.ytr-widget { min-width: 0; }
.ytr-widget h2, .ytr-widget .wp-block-heading,
.ytr-widget__title { font-family: var(--ytr-ff-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ytr-ink); margin: 0 0 10px; }
.ytr-sidebar .ytr-widget { border-top: 4px solid var(--ytr-rule); padding-top: 14px; }
.ytr-widget ul { list-style: none; padding: 0; margin: 0; }
.ytr-widget li { padding: 9px 0; border-top: 1px solid var(--ytr-line); font-size: 15px; font-weight: 600; line-height: 1.35; }
.ytr-widget li:first-child { border-top: 0; }
.ytr-widget li a:hover { color: var(--ytr-green-text); }
.ytr-widget .wp-block-latest-comments__comment { font-weight: 400; }
.ytr-widget .wp-block-search__label { display: none; }
.ytr-widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.ytr-widget .wp-block-search__input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit; color: var(--ytr-ink); background: var(--ytr-surface); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); }
.ytr-widget .wp-block-search__button { height: 44px; padding: 0 14px; border: 0; border-radius: var(--ytr-radius); background: var(--ytr-green); color: #fff; font-weight: 600; cursor: pointer; }
.ytr-widget img { border-radius: var(--ytr-radius-sm); }
.ytr-inline-slot .ytr-widget, .ytr-home-slot .ytr-widget, .ytr-archive-slot .ytr-widget { border: 0; padding: 0; }

/* ---------- Footer ---------- */
.ytr-footer { background: var(--ytr-night); color: var(--ytr-night-soft); }
.ytr-footer a:hover { color: #fff; }
.ytr-footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--ytr-night-line); }
.ytr-footer__brand { flex: 1 1 320px; max-width: 420px; }
.ytr-brand--footer { color: #fff; margin-bottom: 14px; }
.ytr-brand--footer:hover { color: #fff; }
.ytr-brand--footer .ytr-brand__name { font-size: 36px; }
.ytr-footer__brand p { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.ytr-footer__col { min-width: 160px; }
.ytr-footer__head { font-family: var(--ytr-ff-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ytr-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ytr-footer__col li a { display: inline-flex; align-items: center; min-height: 36px; }
.ytr-footer__bottom a { display: inline-flex; align-items: center; min-height: 36px; }
.ytr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; font-size: 13px; }

.ytr-social { display: flex; gap: 8px; }
.ytr-social a {
	width: 40px; height: 40px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ytr-night-line); color: #fff;
}
.ytr-social a:hover { border-color: #fff; }

/* Back to top */
.ytr-backtop {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	width: 48px; height: 48px; border-radius: 24px; border: 0; cursor: pointer;
	background: var(--ytr-ink); color: var(--ytr-paper);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.ytr-backtop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
	.ytr-header__cta { display: none; }
	.ytr-header__bar { gap: 24px; }
	.ytr-nav__list { gap: 18px; font-size: 14.5px; }
}

@media (max-width: 1180px) {
	.ytr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ytr-lead { grid-column: 1 / -1; }
	.ytr-second { border-left: 0; padding-left: 0; }
	.ytr-popular__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
	:root { --ytr-header-h: 68px; }
	.ytr-nav, .ytr-header__cta { display: none; }
	.ytr-menu-btn { display: inline-flex; }
	.ytr-chips { display: block; }
	.ytr-chips__list .sub-menu { display: none; }
}

@media (max-width: 1024px) {
	.ytr-cats { grid-template-columns: minmax(0, 1fr); }
	.ytr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ytr-archive-lead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 720px) {
	:root { --ytr-gutter: 16px; --ytr-header-h: 60px; }
	.ytr-header__bar { gap: 10px; }
	.ytr-brand__name { font-size: 21px; }
	.ytr-mark { width: 34px; height: 34px; border-radius: 8px; }
	.ytr-header__tools { gap: 4px; }
	.ytr-header__tools .ytr-iconbtn { border-color: transparent; background: transparent; }
	.ytr-header .ytr-theme-toggle { display: none; }

	.ytr-top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 20px; padding-bottom: 32px; }
	.ytr-lead { gap: 12px; }
	.ytr-lead__title { font-size: 32px; }
	.ytr-lead__dek { font-size: 16px; }

	.ytr-second { gap: 0; }
	.ytr-story {
		display: grid; grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "kick media" "title media" "date media";
		column-gap: 14px; row-gap: 6px; align-content: start;
		padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--ytr-line);
	}
	.ytr-second .ytr-story:first-child { margin-top: 0; }
	.ytr-story .ytr-media { grid-area: media; aspect-ratio: 4 / 3; align-self: start; }
	.ytr-story .ytr-kicker { grid-area: kick; font-size: 11px; }
	.ytr-story__title { grid-area: title; font-size: 19px; }
	.ytr-story .ytr-meta-line { grid-area: date; }

	.ytr-start { border-left: 0; padding: 18px; background: var(--ytr-surface); border: 1px solid var(--ytr-line); border-radius: var(--ytr-radius); }
	.ytr-start__title { font-size: 22px; }

	.ytr-best { padding: 40px 0; }
	.ytr-best__grid {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
		margin-right: calc(-1 * var(--ytr-gutter)); padding-right: var(--ytr-gutter); scrollbar-width: none;
	}
	.ytr-best__grid::-webkit-scrollbar { display: none; }
	.ytr-pick { flex: 0 0 78%; scroll-snap-align: start; }
	.ytr-pick__title { font-size: 21px; }
	.ytr-sechead--dark { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }

	.ytr-compare { padding-top: 40px; }
	.ytr-sechead { margin-bottom: 18px; }
	.ytr-compare__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ytr-vs { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; padding: 14px; gap: 6px 14px; }
	.ytr-vs__tiles { gap: 6px; flex: none; order: 0; }
	.ytr-vs__tile { width: 52px; height: 52px; border-radius: 10px; font-size: 10px; padding: 4px; }
	.ytr-vs__vs { font-size: 14px; }
	.ytr-vs .ytr-kicker { justify-content: flex-start; font-size: 10px; flex: 1 1 140px; order: 1; }
	.ytr-vs__title { font-size: 17px; flex: 1 1 100%; order: 2; }
	.ytr-vs .ytr-media { flex: 0 0 100%; }

	.ytr-cats { gap: 40px; padding-top: 32px; padding-bottom: 40px; }
	.ytr-catblock__title { font-size: 25px; }
	.ytr-catblock__body { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.ytr-catblock__lead .ytr-media { aspect-ratio: 16 / 9; }
	.ytr-catblock__lead h3 { font-size: 20px; margin-bottom: 4px; }
	.ytr-catblock__list li:first-child a { padding-top: 14px; }
	.ytr-catblock__list a { font-size: 15px; padding: 13px 0; }

	.ytr-popular { padding: 28px 0; }
	.ytr-popular__list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
	.ytr-popular__list li { flex-direction: row; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ytr-line); }
	.ytr-popular__list li:last-child { border-bottom: 0; }
	.ytr-popular__n { font-size: 34px; width: 28px; flex: none; }

	.ytr-nl__inner { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
	.ytr-nl__row { flex-direction: column; }
	.ytr-nl__row input, .ytr-nl__row button { flex: none; width: 100%; height: 50px; }

	.ytr-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ytr-archive-head { padding-top: 28px; padding-bottom: 24px; }

	.ytr-footer__top { gap: 28px; padding-top: 36px; }
	.ytr-footer__col { min-width: 0; flex: 1 1 40%; }
	.ytr-brand--footer .ytr-brand__name { font-size: 26px; }

	.ytr-backtop { right: 14px; bottom: 14px; }
}

/* Three-way comparisons ("A vs B vs C"): smaller tiles so all three fit (1.0.6) */
.ytr-vs__tiles--3 { gap: 8px; }
.ytr-vs__tiles--3 .ytr-vs__tile { width: 58px; height: 58px; font-size: 11px; border-radius: 12px; }
.ytr-vs__tiles--3 .ytr-vs__vs { font-size: 16px; }
@media (max-width: 720px) {
	.ytr-vs__tiles--3 { gap: 4px; }
	.ytr-vs__tiles--3 .ytr-vs__tile { width: 44px; height: 44px; font-size: 9px; }
	.ytr-vs__tiles--3 .ytr-vs__vs { font-size: 12px; }
}
