/*
Theme Name: TechCafe
Theme URI: https://techcafe.ro
Author: TechCafe
Description: Temă editorială rapidă pentru reviste online de tehnologie. Un singur font self-hostat, zero jQuery, comentarii cu avatare locale, cuprins automat, date structurate și consimțământ pentru cookie-uri.
Version: 1.0.0
Requires at least: 6.4
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: techcafe
Tags: news, blog, magazine, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

@font-face {
	font-family: 'Schibsted Grotesk';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('assets/fonts/sg-roman.woff2') format('woff2');
}

@font-face {
	font-family: 'Schibsted Grotesk';
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url('assets/fonts/sg-italic.woff2') format('woff2');
}

:root {
	color-scheme: light;

	--paper: #ffffff;
	--surface: #f7f8fa;
	--surface-2: #eff1f5;
	--ink: #0b0e14;
	--ink-2: #1a2029;
	--muted: #5b6473;
	--line: #e3e6ec;
	--line-2: #d2d7e0;

	--accent: #0047ff;
	--accent-ink: #0047ff;
	--accent-soft: #edf1ff;
	--accent-contrast: #ffffff;

	--cat-news: #0047ff;
	--cat-tech: #0e7490;
	--cat-games: #6d28d9;
	--cat-film: #be185d;
	--cat-science: #047857;
	--cat-pr: #64748b;

	--radius: 8px;
	--radius-lg: 12px;
	--maxw: 1280px;
	--gut: 16px;

	--head-h: 56px;

	--z-drawer: 200;
	--z-header: 100;
	--z-consent: 300;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.has-drawer {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.028em;
	line-height: 1.15;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gut);
}

.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;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 999;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--accent-contrast);
	font-weight: 600;
	border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
	top: 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--radius);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.008em;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--solid {
	background: var(--accent);
	color: var(--accent-contrast);
}

.btn--solid:hover {
	filter: brightness(1.1);
}

.btn--ghost {
	border: 1px solid var(--line-2);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--ink);
	background: var(--surface-2);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
	transition: border-color 0.18s ease, color 0.18s ease;
}

.pill:hover,
.pill.is-done {
	border-color: var(--accent);
	color: var(--accent-ink);
}

.iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	color: var(--ink);
	transition: background-color 0.18s ease;
}

.iconbtn:hover {
	background: var(--surface-2);
}

.utilbar {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
}

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

.utilbar__date {
	display: none;
}

.utilbar__right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.utilbar__nav {
	display: none;
}

.utilbar__menu {
	display: flex;
	gap: 16px;
}

.utilbar a:hover {
	color: var(--ink);
}

.masthead {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
	.masthead {
		background: color-mix(in srgb, var(--paper) 88%, transparent);
		backdrop-filter: saturate(1.5) blur(14px);
	}
}

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: var(--head-h);
}

.masthead__brand {
	flex: 1;
	min-width: 0;
}

.masthead__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
}

.logo {
	display: inline-flex;
	align-items: baseline;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.045em;
	color: var(--ink);
}

.logo__dot {
	width: 6px;
	height: 6px;
	margin-left: 3px;
	border-radius: 50%;
	background: var(--accent);
	transform: translateY(-1px);
}

.custom-logo-link img {
	max-height: 34px;
	width: auto;
}

.burger {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: -10px;
	border-radius: var(--radius);
	flex: none;
}

.burger:hover {
	background: var(--surface-2);
}

.burger__bars {
	display: grid;
	gap: 4px;
	width: 20px;
}

.burger__bars i {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
}

.mainnav {
	display: none;
}

.searchpanel {
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.searchpanel__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-block: 12px;
}

.searchpanel .searchform {
	flex: 1;
}

.searchform {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.searchform__icon {
	position: absolute;
	left: 13px;
	color: var(--muted);
	pointer-events: none;
}

.searchform__input {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 46px;
	padding: 0 14px 0 40px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.searchform__input::placeholder {
	color: var(--muted);
}

.searchform__input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: transparent;
}

.searchform__submit {
	flex: none;
	height: 46px;
	padding: 0 16px;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--accent-contrast);
	font-size: 14.5px;
	font-weight: 600;
}

.searchform__submit:hover {
	filter: brightness(1.1);
}

.drawer {
	position: fixed;
	inset: 0;
	z-index: var(--z-drawer);
}

.drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(8, 11, 18, 0.55);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.drawer.is-open .drawer__scrim {
	opacity: 1;
}

.drawer__panel {
	position: absolute;
	inset-block: 0;
	left: 0;
	width: min(88vw, 360px);
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-right: 1px solid var(--line);
	transform: translateX(-100%);
	transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-bottom: env(safe-area-inset-bottom);
}

.drawer.is-open .drawer__panel {
	transform: translateX(0);
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px 10px 16px;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	background: var(--paper);
}

.drawer__search {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
}

.drawer__search .searchform__submit {
	display: none;
}

.drawer__nav {
	padding: 8px 0 24px;
}

.drawer__list > li {
	position: relative;
	border-bottom: 1px solid var(--line);
}

.drawer__list a {
	display: block;
	padding: 14px 52px 14px 16px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.012em;
}

.drawer__list a:hover {
	color: var(--accent-ink);
}

.drawer__list .current-menu-item > a {
	color: var(--accent-ink);
	font-weight: 600;
}

.drawer__expand {
	position: absolute;
	top: 2px;
	right: 4px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--muted);
	border-radius: var(--radius);
}

.drawer__expand svg {
	transition: transform 0.22s ease;
}

.is-expanded > .drawer__expand svg {
	transform: rotate(180deg);
}

.drawer__list .sub-menu {
	display: none;
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.drawer__list .is-expanded > .sub-menu {
	display: block;
}

.drawer__list .sub-menu a {
	padding-left: 32px;
	font-size: 15px;
	color: var(--ink-2);
}

.kicker {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cat-news);
}

.kicker.is-tech { color: var(--cat-tech); }
.kicker.is-games { color: var(--cat-games); }
.kicker.is-film { color: var(--cat-film); }
.kicker.is-science { color: var(--cat-science); }
.kicker.is-pr { color: var(--cat-pr); }
.kicker.is-default { color: var(--muted); }

.meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	font-size: 12.5px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.meta__author {
	font-weight: 600;
	color: var(--ink);
}

.meta__author:hover {
	color: var(--accent-ink);
}

.meta__sep {
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: var(--line-2);
}

.tag-pr {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 7px;
	border: 1px solid var(--line-2);
	border-radius: 4px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.tag-pr--lg {
	font-size: 10.5px;
	padding: 4px 9px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 28px;
}

.tags a {
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
}

.tags a:hover {
	border-color: var(--accent);
	color: var(--accent-ink);
}

.thumb {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface-2);
	margin-bottom: 12px;
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.thumb--empty {
	background: var(--surface-2);
}

a:hover .thumb img {
	transform: scale(1.03);
}

.hero {
	padding-top: 20px;
}

.hero__grid {
	display: grid;
	gap: 28px;
}

.lead__title {
	font-size: clamp(26px, 6.6vw, 34px);
	letter-spacing: -0.032em;
	line-height: 1.08;
	margin: 6px 0 10px;
}

.lead__link:hover .lead__title {
	color: var(--accent-ink);
}

.lead__dek {
	font-size: 16.5px;
	line-height: 1.5;
	color: var(--ink-2);
	max-width: 58ch;
	margin-bottom: 12px;
}

.hero__sub {
	display: grid;
	gap: 22px;
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.card__title {
	display: block;
	font-size: 17.5px;
	font-weight: 600;
	letter-spacing: -0.024em;
	line-height: 1.2;
	margin: 4px 0 8px;
}

.card__link:hover .card__title {
	color: var(--accent-ink);
}

.grid {
	display: grid;
	gap: 24px;
}

.rows {
	display: grid;
}

.row {
	border-bottom: 1px solid var(--line);
}

.row:last-child {
	border-bottom: 0;
}

.row__link {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 14px;
	align-items: start;
	padding: 18px 0;
}

.row .thumb {
	margin-bottom: 0;
}

.row__title {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.24;
	margin: 2px 0 6px;
}

.row__link:hover .row__title {
	color: var(--accent-ink);
}

.row__excerpt {
	display: none;
	font-size: 13.8px;
	line-height: 1.5;
	color: var(--muted);
	margin-bottom: 7px;
}

.section {
	padding: 36px 0;
	border-top: 1px solid var(--line);
	margin-top: 32px;
}

.section__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.section__bar {
	flex: none;
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background: var(--cat-news);
}

.section__bar.is-tech { background: var(--cat-tech); }
.section__bar.is-games { background: var(--cat-games); }
.section__bar.is-film { background: var(--cat-film); }
.section__bar.is-science { background: var(--cat-science); }
.section__bar.is-pr { background: var(--cat-pr); }

.section__title {
	font-size: 20px;
	letter-spacing: -0.03em;
}

.section__more {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

.section__more:hover {
	color: var(--accent-ink);
}

.section__split {
	display: grid;
	gap: 36px;
}

.sidebar {
	display: grid;
	gap: 28px;
	align-content: start;
}

.railbox--boxed {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.railbox__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.railbox__title {
	margin: 0;
	padding-bottom: 11px;
	border-bottom: 2px solid var(--ink);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	flex: 1;
}

.railbox__more {
	padding-bottom: 11px;
	border-bottom: 2px solid var(--ink);
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

.railbox__more:hover {
	color: var(--accent-ink);
}

.river__item {
	border-bottom: 1px solid var(--line);
}

.river__item:last-child {
	border-bottom: 0;
}

.river__item a {
	display: block;
	padding: 13px 0;
}

.river__date {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--accent-ink);
	font-variant-numeric: tabular-nums;
}

.river__item .kicker {
	margin-left: 8px;
	margin-bottom: 0;
	font-size: 9.5px;
}

.river__title {
	display: block;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.016em;
	line-height: 1.3;
	margin-top: 5px;
}

.river__item a:hover .river__title {
	color: var(--accent-ink);
}

.popular__item {
	border-bottom: 1px solid var(--line);
}

.popular__item:last-child {
	border-bottom: 0;
}

.popular__item a {
	display: flex;
	gap: 13px;
	padding: 13px 0;
}

.popular__n {
	flex: none;
	width: 22px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--accent-ink);
	opacity: 0.35;
	font-variant-numeric: tabular-nums;
}

.popular__title {
	display: block;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.016em;
	margin-bottom: 4px;
}

.popular__item a:hover .popular__title {
	color: var(--accent-ink);
}

.widget {
	padding-top: 4px;
}

.widget__title {
	padding-bottom: 11px;
	margin-bottom: 4px;
	border-bottom: 2px solid var(--ink);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.widget ul li {
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14.5px;
}

.progress {
	position: fixed;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 3px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	z-index: calc(var(--z-header) + 1);
	will-change: transform;
}

.article__wrap,
.listing__wrap,
.page__wrap {
	display: grid;
	gap: 40px;
	padding-top: 22px;
}

.sharerail {
	display: none;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-bottom: 14px;
	font-size: 12.5px;
	color: var(--muted);
}

.crumbs a:hover {
	color: var(--accent-ink);
}

.crumbs__sep {
	opacity: 0.5;
}

.article__title {
	font-size: clamp(27px, 7vw, 36px);
	letter-spacing: -0.032em;
	line-height: 1.06;
	margin: 6px 0 14px;
	max-width: 21ch;
}

.article__standfirst {
	font-size: 17.5px;
	line-height: 1.48;
	color: var(--ink-2);
	max-width: 58ch;
	margin-bottom: 22px;
}

.byline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.avatar {
	flex: none;
	border-radius: 50%;
	background: var(--surface-2);
}

img.avatar {
	object-fit: cover;
}

.byline__name {
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.014em;
}

.byline__name:hover {
	color: var(--accent-ink);
}

.byline__when {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 1px;
	font-size: 12.5px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.byline__actions {
	margin-left: auto;
}

.article__hero {
	margin: 24px 0 0;
}

.article__hero-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--surface-2);
}

.article__hero figcaption {
	margin-top: 9px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--muted);
}

.article__body {
	max-width: 68ch;
	margin-top: 26px;
	font-size: 17px;
	line-height: 1.68;
	color: var(--ink-2);
}

.article__body > * + * {
	margin-top: 1.15em;
}

.article__body h2 {
	margin-top: 1.9em;
	margin-bottom: -0.5em;
	font-size: 22px;
	letter-spacing: -0.028em;
	line-height: 1.2;
	color: var(--ink);
	scroll-margin-top: calc(var(--head-h) + 20px);
}

.article__body h3 {
	margin-top: 1.6em;
	margin-bottom: -0.55em;
	font-size: 18.5px;
	color: var(--ink);
	scroll-margin-top: calc(var(--head-h) + 20px);
}

.article__body a {
	color: var(--accent-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.article__body strong {
	font-weight: 600;
	color: var(--ink);
}

.article__body ul,
.article__body ol {
	padding-left: 22px;
}

.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }

.article__body li + li {
	margin-top: 0.4em;
}

.article__body li::marker {
	color: var(--muted);
}

.article__body img,
.article__body figure img {
	border-radius: var(--radius);
}

.article__body figcaption {
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.45;
}

.article__body blockquote {
	margin: 1.8em 0;
	padding: 2px 0 2px 20px;
	border-left: 3px solid var(--accent);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.38;
	letter-spacing: -0.022em;
	color: var(--ink);
}

.article__body blockquote cite,
.article__body blockquote footer {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--muted);
}

.article__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.article__body th,
.article__body td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.article__body pre {
	overflow-x: auto;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--surface-2);
	font-size: 14px;
}

.article__body code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.92em;
}

.article__body .alignwide,
.article__body .alignfull {
	max-width: 100%;
}

.toc {
	margin-top: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	max-width: 68ch;
}

.toc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
	min-height: 44px;
}

.toc__summary::-webkit-details-marker {
	display: none;
}

.toc__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

.toc__chevron {
	color: var(--muted);
	transition: transform 0.22s ease;
}

.toc[open] .toc__chevron {
	transform: rotate(180deg);
}

.toc__list {
	padding: 0 16px 14px;
	counter-reset: toc;
}

.toc__item {
	counter-increment: toc;
}

.toc__item a {
	display: block;
	padding: 8px 0 8px 26px;
	position: relative;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--ink-2);
	border-top: 1px solid var(--line);
}

.toc__item:first-child a {
	border-top: 0;
}

.toc__item a::before {
	content: counter(toc);
	position: absolute;
	left: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.toc__item a:hover,
.toc__item a.is-current {
	color: var(--accent-ink);
}

.toc__item--h3 a {
	padding-left: 42px;
	font-size: 14px;
	color: var(--muted);
}

.toc__item--h3 a::before {
	left: 16px;
}

.share {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.share:hover {
	border-color: var(--accent);
	color: var(--accent-ink);
	background: var(--accent-soft);
}

.sharebar-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	margin-bottom: 28px;
}

.sharebar-inline__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 4px;
}

.sharebar-mobile {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	display: flex;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: var(--paper);
	border-top: 1px solid var(--line);
}

.sharebar-mobile .share {
	flex: 1;
}

body.is-article {
	padding-bottom: 72px;
}

.authorbox {
	display: flex;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.authorbox__name {
	margin: 0 0 6px;
	font-size: 17px;
	letter-spacing: -0.024em;
}

.authorbox__name a:hover {
	color: var(--accent-ink);
}

.authorbox__role {
	margin: 4px 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.authorbox__bio {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-2);
	max-width: 62ch;
}

.related {
	margin-top: 44px;
	padding-top: 26px;
	border-top: 2px solid var(--ink);
}

.related__title {
	margin-bottom: 20px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.postnav {
	display: grid;
	gap: 12px;
	margin-top: 36px;
}

.postnav__item {
	display: block;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.18s ease;
}

.postnav__item:hover {
	border-color: var(--accent);
}

.postnav__label {
	display: block;
	margin-bottom: 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--muted);
}

.postnav__title {
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.postnav__item--next {
	text-align: right;
}

.listing__head {
	margin-bottom: 22px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--ink);
}

.listing__title {
	font-size: clamp(25px, 6vw, 32px);
	letter-spacing: -0.032em;
}

.listing__desc,
.listing__count {
	margin-top: 8px;
	font-size: 14.5px;
	color: var(--muted);
}

.listing__search {
	margin-top: 16px;
}

.listing .lead {
	padding-bottom: 24px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--line);
}

.pagination {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

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

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
}

.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent-ink);
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

.pagination .dots {
	border-color: transparent;
}

.empty {
	padding: 40px 0 56px;
	text-align: center;
}

.empty__title {
	font-size: 22px;
	margin-bottom: 8px;
}

.empty__text {
	color: var(--muted);
	margin-bottom: 20px;
}

.empty .searchform {
	max-width: 440px;
	margin: 0 auto;
}

.error404 {
	padding: 48px 0 64px;
	max-width: 560px;
}

.error404__code {
	font-size: 64px;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--accent);
	margin-bottom: 8px;
}

.error404__title {
	font-size: 28px;
	letter-spacing: -0.032em;
	margin-bottom: 10px;
}

.error404__text {
	color: var(--muted);
	margin-bottom: 24px;
}

.error404__recent {
	margin-top: 40px;
}

.pagelinks {
	margin-top: 24px;
	font-size: 14px;
	color: var(--muted);
}

.footer {
	margin-top: 48px;
	padding: 40px 0 28px;
	border-top: 1px solid var(--line);
	background: var(--surface);
	font-size: 14px;
}

.footer__grid {
	display: grid;
	gap: 30px;
}

.footer__desc {
	margin: 12px 0 16px;
	max-width: 34ch;
	line-height: 1.55;
	color: var(--muted);
}

.footer__title {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--muted);
}

.footer__col li {
	margin-bottom: 9px;
}

.footer__col a {
	color: var(--ink-2);
}

.footer__col a:hover {
	color: var(--accent-ink);
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	color: var(--ink-2);
}

.social a:hover {
	border-color: var(--accent);
	color: var(--accent-ink);
}

.footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
}

.footer__legal,
.footer__legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

.footer__legal a:hover,
.footer__legal-link:hover {
	color: var(--accent-ink);
}

.footer__legal-link {
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.consent {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: var(--z-consent);
	padding: 12px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
	transform: translateY(110%);
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.consent.is-visible {
	transform: translateY(0);
}

.consent__inner {
	max-width: var(--maxw);
	margin-inline: auto;
	display: grid;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: 0 12px 40px -12px rgba(8, 11, 18, 0.35);
}

.consent__title {
	font-size: 15px;
	letter-spacing: -0.02em;
	margin-bottom: 5px;
}

.consent__text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-2);
	margin: 0;
}

.consent__link {
	color: var(--accent-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

body.is-article .consent {
	bottom: 60px;
}

@media (min-width: 600px) {
	:root {
		--gut: 24px;
	}

	.utilbar__date {
		display: block;
	}

	.row__link {
		grid-template-columns: 132px 1fr;
		gap: 18px;
	}

	.row__excerpt {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hero__sub,
	.grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.consent__inner {
		grid-template-columns: 1fr auto;
		align-items: center;
		padding: 18px 22px;
	}

	.consent__actions {
		grid-template-columns: auto auto;
	}

	.postnav {
		grid-template-columns: 1fr 1fr;
	}

	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer__about {
		grid-column: 1 / -1;
	}

	.footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (min-width: 900px) {
	:root {
		--head-h: 62px;
	}

	.burger,
	.sharebar-mobile {
		display: none;
	}

	body.is-article {
		padding-bottom: 0;
	}

	body.is-article .consent {
		bottom: 0;
	}

	.mainnav {
		display: block;
		flex: 1;
		min-width: 0;
	}

	.masthead__brand {
		flex: none;
		margin-right: 20px;
	}

	.mainnav__list {
		display: flex;
		gap: 1px;
	}

	.mainnav__list > li {
		position: relative;
	}

	.mainnav__list a {
		display: block;
		padding: 8px 11px;
		border-radius: 6px;
		font-size: 14.5px;
		font-weight: 500;
		letter-spacing: -0.008em;
		white-space: nowrap;
	}

	.mainnav__list a:hover {
		background: var(--surface-2);
	}

	.mainnav__list .current-menu-item > a,
	.mainnav__list .current-menu-ancestor > a {
		color: var(--accent-ink);
		font-weight: 600;
	}

	.mainnav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 210px;
		padding: 6px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--paper);
		box-shadow: 0 12px 32px -12px rgba(8, 11, 18, 0.28);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-4px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}

	.mainnav__list > li:hover > .sub-menu,
	.mainnav__list > li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.mainnav__list .sub-menu a {
		white-space: normal;
	}

	.utilbar__nav {
		display: block;
	}

	.hero__grid,
	.section__split,
	.listing__wrap {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.article__wrap {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.page__wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.page__wrap .article {
		max-width: 760px;
	}

	.hero__rail,
	.sidebar {
		position: sticky;
		top: calc(var(--head-h) + 16px);
	}

	.hero__sub {
		grid-template-columns: repeat(3, 1fr);
	}

	.grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.lead__title {
		font-size: clamp(32px, 3.6vw, 44px);
	}

	.lead__dek {
		font-size: 18px;
	}

	.article__title {
		font-size: clamp(34px, 3.8vw, 48px);
	}

	.article__standfirst {
		font-size: 20px;
	}

	.article__body {
		font-size: 17.5px;
	}

	.article__body h2 {
		font-size: 24px;
	}

	.article__body blockquote {
		font-size: 22px;
		padding-left: 22px;
	}

	.toc__summary {
		cursor: default;
	}

	.section {
		padding: 44px 0;
		margin-top: 0;
	}

	.footer__grid {
		grid-template-columns: 1.5fr repeat(3, 1fr);
	}

	.footer__about {
		grid-column: auto;
	}

	.footer {
		padding: 48px 0 30px;
	}
}

@media (min-width: 1140px) {
	.grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}

	.article__wrap {
		grid-template-columns: 64px minmax(0, 1fr) 320px;
		gap: 44px;
	}

	.sharerail {
		display: flex;
		flex-direction: column;
		gap: 9px;
		position: sticky;
		top: calc(var(--head-h) + 24px);
	}

	.sharerail__label {
		margin-bottom: 3px;
		font-size: 9.5px;
		font-weight: 700;
		letter-spacing: 0.11em;
		text-transform: uppercase;
		text-align: center;
		color: var(--muted);
	}

	.sharebar-inline {
		display: none;
	}

	.hero__grid,
	.section__split,
	.listing__wrap {
		grid-template-columns: minmax(0, 1fr) 336px;
		gap: 40px;
	}

	.hero {
		padding-top: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.utilbar,
	.masthead,
	.drawer,
	.sidebar,
	.sharerail,
	.sharebar-inline,
	.sharebar-mobile,
	.consent,
	.related,
	.postnav,
	.progress,
	.footer {
		display: none !important;
	}

	body {
		padding: 0;
		font-size: 12pt;
	}

	.article__body a::after {
		content: ' (' attr(href) ')';
		font-size: 0.85em;
		color: #555;
	}
}

.comments {
	max-width: 68ch;
	margin-top: 44px;
	padding-top: 30px;
	border-top: 2px solid var(--ink);
}

.comments__title {
	margin-bottom: 22px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.comments__list {
	margin-bottom: 32px;
}

.comments__list .children {
	list-style: none;
	margin: 0;
	padding-left: 20px;
	border-left: 2px solid var(--line);
}

.comment-item {
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}

.comment-item:last-child {
	border-bottom: 0;
}

.comment-item__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.comment-item__who {
	min-width: 0;
}

.comment-item__author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.012em;
}

.comment-item__author a:hover {
	color: var(--accent-ink);
}

.comment-item__badge {
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.comment-item__time {
	font-size: 12px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.comment-item__time:hover {
	color: var(--accent-ink);
}

.comment-item__pending {
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--cat-film);
}

.comment-item__body {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--ink-2);
}

.comment-item__body p {
	margin-bottom: 0.7em;
}

.comment-item__body a {
	color: var(--accent-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	word-break: break-word;
}

.comment-item__actions {
	display: flex;
	gap: 16px;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
}

.comment-item__actions a {
	color: var(--muted);
}

.comment-item__actions a:hover {
	color: var(--accent-ink);
}

.avatar--generated {
	display: inline-grid;
	place-items: center;
	width: var(--avatar-size, 84px);
	height: var(--avatar-size, 84px);
	border-radius: 50%;
	background: var(--avatar-bg, var(--accent));
	color: #fff;
	font-size: calc(var(--avatar-size, 84px) * 0.4);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	flex: none;
	-webkit-user-select: none;
	user-select: none;
}

.comments__closed {
	padding: 14px 0;
	font-size: 14px;
	color: var(--muted);
}

.cform {
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.cform__title {
	margin-bottom: 6px;
	font-size: 20px;
	letter-spacing: -0.03em;
}

.cform__notes {
	margin-bottom: 18px;
	font-size: 13px;
	color: var(--muted);
}

.cform__field {
	margin-bottom: 16px;
}

.cform__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}

.cform__field .req {
	color: var(--cat-film);
}

.cform__field input,
.cform__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.cform__field input::placeholder,
.cform__field textarea::placeholder {
	color: var(--muted);
}

.cform__field input:focus,
.cform__field textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: transparent;
}

.cform__field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

.cform__hint {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--muted);
}

.cform__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 18px;
	font-size: 13.5px;
	color: var(--ink-2);
}

.comment-form-cookies-consent input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: none;
	accent-color: var(--accent);
}

.form-submit {
	margin: 0;
}

.comment-respond .logged-in-as {
	margin-bottom: 16px;
	font-size: 13.5px;
	color: var(--muted);
}

.comment-respond .logged-in-as a:hover {
	color: var(--accent-ink);
}

.comment-reply-title small {
	margin-left: 12px;
	font-size: 13px;
	font-weight: 500;
}

.comment-reply-title small a {
	color: var(--cat-film);
}

@media (min-width: 600px) {
	.cform__field--half {
		display: inline-block;
		width: calc(50% - 8px);
		vertical-align: top;
	}

	.cform__field--half:first-of-type {
		margin-right: 12px;
	}
}

.site-main {
	min-height: 50vh;
}

.lead > .meta {
	margin-top: 12px;
}

.avatar--photo {
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.avatar--lg {
	width: 64px;
	height: 64px;
	border-radius: var(--radius);
	object-fit: cover;
}

.error404 {
	margin-inline: auto;
}
