/*
 * Lifeprint Editorial: main stylesheet.
 *
 * Colour, font and accent tokens live in :root. The accent colour and font
 * stacks are overridden from Customize (see inc/setup.php → geb_dynamic_css).
 *
 * Contents
 *  1. Tokens & reset
 *  2. Base typography
 *  3. Layout helpers
 *  4. Header & navigation
 *  5. Search
 *  6. Media & placeholders
 *  7. Cards
 *  8. Homepage sections
 *  9. Archives
 * 10. Single article
 * 11. Article components (facts, TOC, FAQ, sources, author, share)
 * 12. Sidebar & widgets
 * 13. Ads & newsletter
 * 14. Footer
 * 15. Comments, pagination, misc
 * 16. Gutenberg blocks
 * 17. Responsive
 * 18. Motion & print
 */

/* 1. Tokens & reset ------------------------------------------------------ */

:root {
	--geb-accent: #9e2a2b;
	--geb-on-accent: #ffffff;
	--geb-bg: #faf7f2;
	--geb-surface: #ffffff;
	--geb-tint: #f2ede4;
	--geb-ink: #18181b;
	--geb-ink-2: #3a3936;
	--geb-muted: #5f5b55;
	--geb-line: #e4ddd1;
	--geb-line-strong: #18181b;
	--geb-font-head: Georgia, "Times New Roman", Times, serif;
	--geb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--geb-radius: 4px;
	--geb-gutter: 16px;
	--geb-max: 1240px;
	--geb-read: 720px;
	--geb-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 8px 24px rgba(24, 24, 27, .06);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 88px;
}

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

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* 2. Base typography ----------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--geb-font-head);
	font-weight: 700;
	line-height: 1.2;
	color: var(--geb-ink);
	margin: 0 0 .5em;
	letter-spacing: -.005em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--geb-accent);
}

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

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

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	background: var(--geb-ink);
	color: #fff;
	padding: 12px 18px;
	text-decoration: none;
	border-radius: var(--geb-radius);
}

.geb-muted {
	color: var(--geb-muted);
}

/* 3. Layout helpers ------------------------------------------------------ */

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

.geb-main {
	padding-bottom: 48px;
	min-height: 50vh;
}

.geb-grid {
	display: grid;
	gap: 28px 24px;
	grid-template-columns: 1fr;
}

.geb-stack > * + * {
	margin-top: 16px;
}

.geb-section {
	margin-top: 44px;
}

.geb-section--tinted {
	background: var(--geb-tint);
	padding: 40px 0 44px;
	margin-top: 52px;
}

.geb-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-top: 3px solid var(--geb-line-strong);
	padding-top: 10px;
	margin-bottom: 22px;
}

.geb-section__title {
	font-size: 1.5rem;
	margin: 0;
}

.geb-section__title--plain {
	font-size: 1.25rem;
	margin: 8px 0 18px;
	padding-top: 14px;
	border-top: 1px solid var(--geb-line);
}

.geb-section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--geb-accent);
	white-space: nowrap;
}

.geb-section__more:hover {
	text-decoration: underline;
}

.geb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	background: var(--geb-accent);
	color: var(--geb-on-accent);
	border: 0;
	border-radius: var(--geb-radius);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.geb-btn:hover {
	color: var(--geb-on-accent);
	filter: brightness(.9);
}

.geb-btn--small {
	min-height: 36px;
	padding: 6px 14px;
	font-size: .875rem;
}

.geb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: var(--geb-ink);
}

.geb-icon-btn:hover {
	background: var(--geb-tint);
}

.geb-icon {
	flex-shrink: 0;
}

/* Chips (sub-categories, tags, topics) */
.geb-chips {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.geb-chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--geb-line);
	border-radius: 999px;
	background: var(--geb-surface);
	font-size: .875rem;
	text-decoration: none;
	line-height: 1.3;
}

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

/* Breadcrumbs */
.geb-breadcrumbs {
	font-size: .8125rem;
	color: var(--geb-muted);
	margin-bottom: 14px;
}

.geb-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 0;
}

.geb-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.geb-breadcrumbs li + li::before {
	content: "/";
	margin: 0 8px;
	color: var(--geb-line-strong);
	opacity: .35;
}

.geb-breadcrumbs a {
	color: var(--geb-ink-2);
	text-decoration: none;
}

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

.geb-breadcrumbs [aria-current] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 32ch;
}

/* Yoast / Rank Math breadcrumb output */
.geb-breadcrumbs > span,
.geb-breadcrumbs > p {
	margin: 0;
}

/* Eyebrow / category label */
.geb-eyebrow {
	display: inline-block;
	font-family: var(--geb-font-body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--geb-accent);
	text-decoration: none;
	margin-bottom: 6px;
	line-height: 1.3;
}

a.geb-eyebrow:hover {
	text-decoration: underline;
}

/* Meta line */
.geb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: .8125rem;
	color: var(--geb-muted);
}

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

/* 4. Header & navigation ------------------------------------------------- */

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

.admin-bar .geb-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .geb-header {
		top: 32px;
	}
}

@media (max-width: 600px) {
	.admin-bar .geb-header {
		top: 0;
	}
}

.geb-header__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 64px;
}

.geb-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	margin-right: auto;
	padding: 8px 0;
}

.geb-brand__name {
	font-family: var(--geb-font-head);
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-decoration: none;
	color: var(--geb-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geb-brand__name::after {
	content: "";
	display: inline-block;
	width: .32em;
	height: .32em;
	margin-left: .12em;
	background: var(--geb-accent);
	border-radius: 1px;
}

.geb-brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.geb-brand .custom-logo {
	max-height: 48px;
	width: auto;
}

.geb-brand__tagline {
	display: none;
	font-size: .75rem;
	color: var(--geb-muted);
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geb-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.geb-header__cta {
	display: none;
}

/* Mobile toggle */
.geb-header__toggle .geb-toggle__close,
.geb-header__toggle[aria-expanded="true"] .geb-toggle__open {
	display: none;
}

.geb-header__toggle[aria-expanded="true"] .geb-toggle__close {
	display: inline-flex;
}

/* Mobile nav drawer */
.geb-nav {
	display: none;
	position: fixed;
	inset: 64px 0 0 0;
	z-index: 99;
	background: var(--geb-surface);
	overflow-y: auto;
	padding: 8px var(--geb-gutter) 32px;
	border-top: 1px solid var(--geb-line);
}

.admin-bar .geb-nav {
	top: 110px;
}

.geb-nav.is-open {
	display: block;
}

.geb-menu,
.geb-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.geb-menu a {
	display: block;
	padding: 12px 4px;
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--geb-line);
}

.geb-menu .current-menu-item > a,
.geb-menu .current-menu-ancestor > a,
.geb-menu .current-category-ancestor > a {
	color: var(--geb-accent);
}

.geb-menu .menu-item-has-children {
	position: relative;
}

.geb-menu .menu-item-has-children > a {
	padding-right: 52px;
}

.geb-submenu-toggle {
	position: absolute;
	right: 0;
	top: 2px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--geb-ink);
	border-radius: var(--geb-radius);
}

.geb-submenu-toggle .geb-icon {
	transition: transform .2s ease;
}

.geb-submenu-toggle[aria-expanded="true"] .geb-icon {
	transform: rotate(180deg);
}

.geb-menu .sub-menu {
	display: none;
	padding-left: 14px;
}

.geb-menu .sub-menu.is-open {
	display: block;
}

.geb-menu .sub-menu a {
	font-weight: 500;
	font-size: 1rem;
}

.geb-nav__cta-mobile {
	margin-top: 20px;
	width: 100%;
}

body.geb-nav-open {
	overflow: hidden;
}

/* 5. Search -------------------------------------------------------------- */

.geb-search-panel {
	border-top: 1px solid var(--geb-line);
	background: var(--geb-surface);
	padding: 14px 0;
}

.geb-search-panel[hidden] {
	display: none;
}

.geb-search-form {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 720px;
}

.geb-search-panel .geb-search-form {
	margin-inline: auto;
}

.geb-search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
	background: var(--geb-bg);
	font-size: 1rem;
}

.geb-search-form__input:focus {
	border-color: var(--geb-ink);
	outline: 2px solid var(--geb-accent);
	outline-offset: 0;
}

.geb-search-form__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 46px;
	padding: 0 16px;
	background: var(--geb-ink);
	color: #fff;
	border: 0;
	border-radius: var(--geb-radius);
	font-weight: 600;
	cursor: pointer;
}

.geb-search-form__btn:hover {
	background: var(--geb-accent);
	color: var(--geb-on-accent);
}

.geb-search-form__label {
	display: none;
}

/* 6. Media & placeholders ------------------------------------------------ */

.geb-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--geb-tint);
	border-radius: var(--geb-radius);
}

.geb-media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

a.geb-media:hover .geb-media__img {
	transform: scale(1.03);
}

.geb-media__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 25% 20%, hsl(var(--geb-ph-hue, 20) 45% 92%), transparent 60%),
		linear-gradient(135deg, hsl(var(--geb-ph-hue, 20) 30% 86%), hsl(calc(var(--geb-ph-hue, 20) + 30) 25% 78%));
}

.geb-media__placeholder span {
	font-family: var(--geb-font-head);
	font-weight: 700;
	font-size: clamp(1.5rem, 6vw, 3.5rem);
	letter-spacing: .04em;
	color: hsl(var(--geb-ph-hue, 20) 30% 30% / .75);
}

/* 7. Cards --------------------------------------------------------------- */

.geb-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.geb-card__body {
	min-width: 0;
}

.geb-card__title {
	font-size: 1.1875rem;
	line-height: 1.25;
	margin: 0 0 8px;
}

.geb-card__title a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .25s ease;
}

.geb-card__title a:hover {
	color: var(--geb-ink);
	background-size: 100% 1px;
}

.geb-card__excerpt {
	color: var(--geb-ink-2);
	font-size: .9688rem;
	line-height: 1.55;
	margin: 0 0 10px;
}

.geb-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: .875rem;
	font-weight: 700;
	color: var(--geb-accent);
	text-decoration: none;
}

.geb-card__more:hover {
	text-decoration: underline;
}

/* Large */
.geb-card--large .geb-card__title {
	font-size: 1.625rem;
	line-height: 1.18;
}

.geb-card--large .geb-card__excerpt {
	font-size: 1.0313rem;
}

/* List */
.geb-list {
	display: flex;
	flex-direction: column;
}

.geb-card--list {
	padding: 22px 0;
	border-bottom: 1px solid var(--geb-line);
}

.geb-list > .geb-card--list:first-child {
	padding-top: 0;
}

.geb-card--list .geb-card__title {
	font-size: 1.3125rem;
}

/* Compact & mini */
.geb-card--compact,
.geb-card--mini {
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
}

.geb-card--compact .geb-card__media {
	width: 120px;
	flex: 0 0 120px;
	aspect-ratio: 3 / 2;
}

.geb-card--mini .geb-card__media {
	width: 72px;
	flex: 0 0 72px;
	aspect-ratio: 1;
}

.geb-card--mini .geb-media__placeholder span,
.geb-card--compact .geb-media__placeholder span {
	font-size: 1.125rem;
}

.geb-card--compact .geb-card__title,
.geb-card--mini .geb-card__title {
	font-size: 1rem;
	line-height: 1.3;
	margin-bottom: 4px;
}

/* Ranked list */
.geb-ranked {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: geb-rank;
}

.geb-ranked__item {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--geb-line);
	counter-increment: geb-rank;
}

.geb-ranked__item:first-child {
	padding-top: 4px;
}

.geb-ranked__item::before {
	content: counter(geb-rank);
	font-family: var(--geb-font-head);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--geb-accent);
	min-width: 1.2em;
}

.geb-ranked__item .geb-eyebrow {
	margin-bottom: 2px;
	font-size: .6875rem;
}

.geb-ranked__item .geb-card__title {
	font-size: 1rem;
	line-height: 1.3;
	margin: 0;
}

/* 8. Homepage sections --------------------------------------------------- */

.geb-section--lead {
	margin-top: 24px;
}

.geb-hero {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.geb-hero__flag {
	display: inline-block;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 4px 8px;
	margin: 0 10px 10px 0;
	background: var(--geb-ink);
	color: #fff;
	border-radius: 2px;
	vertical-align: middle;
}

.geb-hero__title {
	font-size: clamp(1.75rem, 5.2vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -.015em;
	margin: 4px 0 14px;
}

.geb-hero__title a {
	text-decoration: none;
}

.geb-hero__title a:hover {
	color: var(--geb-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.geb-hero__excerpt {
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--geb-ink-2);
	margin-bottom: 14px;
}

.geb-hero__cta {
	margin-top: 18px;
}

.geb-top {
	display: grid;
	gap: 28px 24px;
}

.geb-home-feed {
	margin-top: 44px;
}

/* Category cards */
.geb-catcard {
	display: flex;
	flex-direction: column;
	background: var(--geb-surface);
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
	overflow: hidden;
	min-width: 0;
	transition: box-shadow .2s ease, transform .2s ease;
}

.geb-catcard:hover {
	box-shadow: var(--geb-shadow);
}

.geb-catcard .geb-media {
	border-radius: 0;
	aspect-ratio: 16 / 8;
}

.geb-catcard__body {
	padding: 16px 18px 18px;
}

.geb-catcard__title {
	font-size: 1.1875rem;
	margin: 0 0 2px;
}

.geb-catcard__title a {
	text-decoration: none;
}

.geb-catcard__title a::after {
	content: " →";
	color: var(--geb-accent);
}

.geb-catcard__count {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--geb-muted);
	margin: 0 0 8px;
}

.geb-catcard__desc {
	font-size: .9063rem;
	color: var(--geb-ink-2);
	margin: 0 0 10px;
}

.geb-catcard__list {
	list-style: none;
	margin: 0;
	padding: 10px 0 0;
	border-top: 1px solid var(--geb-line);
	font-size: .875rem;
	line-height: 1.4;
}

.geb-catcard__list li + li {
	margin-top: 6px;
}

.geb-catcard__list a {
	text-decoration: none;
	color: var(--geb-ink-2);
}

.geb-catcard__list a:hover {
	color: var(--geb-accent);
	text-decoration: underline;
}

/* 9. Archives ------------------------------------------------------------ */

.geb-archive-layout {
	display: grid;
	gap: 40px;
	margin-top: 24px;
}

.geb-archive-main {
	min-width: 0;
}

.geb-archive-head {
	padding: 24px 0 22px;
	margin-bottom: 26px;
	border-bottom: 3px solid var(--geb-line-strong);
}

.geb-archive-head__kicker {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--geb-accent);
	margin: 0 0 6px;
}

.geb-archive-head__title {
	font-size: clamp(2rem, 6vw, 3rem);
	line-height: 1.08;
	letter-spacing: -.02em;
	margin: 0;
}

.geb-archive-head__page {
	font-size: .45em;
	font-weight: 400;
	color: var(--geb-muted);
	margin-left: .4em;
	white-space: nowrap;
}

.geb-archive-head__desc {
	max-width: 680px;
	margin-top: 12px;
	font-size: 1.0625rem;
	color: var(--geb-ink-2);
}

.geb-archive-head__desc p:last-child {
	margin-bottom: 0;
}

.geb-archive-head__count {
	margin: 10px 0 0;
	color: var(--geb-muted);
}

.geb-archive-head__search {
	margin-top: 18px;
}

.geb-archive-head--author {
	border-bottom-width: 1px;
}

/* Empty state */
.geb-empty {
	padding: 28px;
	background: var(--geb-surface);
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
}

.geb-empty__title {
	font-size: 1.5rem;
}

.geb-empty__sub {
	font-size: 1rem;
	font-family: var(--geb-font-body);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--geb-muted);
	margin: 28px 0 4px;
}

.geb-empty .geb-grid {
	margin-top: 12px;
}

.geb-404 {
	padding-top: 40px;
	max-width: 900px;
}

.geb-404__code {
	font-family: var(--geb-font-head);
	font-size: 5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--geb-accent);
	margin: 0 0 8px;
}

.geb-404 .geb-empty {
	margin-top: 28px;
}

/* 10. Single article ------------------------------------------------------ */

.geb-article__head {
	max-width: calc(1100px + 2 * var(--geb-gutter));
	padding-top: 22px;
	padding-bottom: 6px;
}

.geb-article__title {
	max-width: 900px;
	font-size: clamp(2rem, 6.4vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -.02em;
	margin: 6px 0 16px;
}

.geb-article__dek {
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--geb-ink-2);
	margin: 0 0 20px;
	max-width: 680px;
}

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

.geb-byline__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.geb-byline__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: .875rem;
	min-width: 0;
}

.geb-byline__author a {
	font-weight: 700;
	text-decoration: none;
}

.geb-byline__author a:hover {
	text-decoration: underline;
}

.geb-byline__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	color: var(--geb-muted);
}

.geb-byline__updated {
	color: var(--geb-ink-2);
	font-weight: 600;
}

.geb-byline__time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.geb-article__figure {
	margin-top: 22px;
	max-width: calc(1100px + 2 * var(--geb-gutter));
}

.geb-media--wide .geb-media__img:hover {
	transform: none;
}

.geb-article__caption {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: .8125rem;
	color: var(--geb-muted);
	padding-top: 8px;
}

.geb-article__credit {
	font-style: italic;
}

.geb-article-layout {
	display: grid;
	gap: 40px;
	margin-top: 32px;
	max-width: calc(1100px + 2 * var(--geb-gutter));
}

.geb-article__main {
	min-width: 0;
	max-width: var(--geb-read);
}

.geb-article__facts {
	min-width: 0;
}

.geb-article__foot {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.geb-chips--tags {
	margin: 0;
}

.geb-page .geb-article__head,
.geb-page .geb-article__figure {
	max-width: calc(var(--geb-read) + 2 * var(--geb-gutter));
}

.geb-page-layout {
	max-width: calc(var(--geb-read) + 2 * var(--geb-gutter));
	margin-top: 28px;
}

/* Prose */
.geb-prose {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--geb-ink);
}

.geb-prose > * {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.geb-prose h2 {
	font-size: 1.75rem;
	margin: 1.9em 0 .6em;
	padding-top: .2em;
}

.geb-prose h3 {
	font-size: 1.375rem;
	margin: 1.6em 0 .5em;
}

.geb-prose h4 {
	font-size: 1.125rem;
	margin: 1.4em 0 .4em;
}

.geb-prose a {
	color: var(--geb-accent);
	text-decoration: underline;
}

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

.geb-prose ul,
.geb-prose ol {
	padding-left: 1.4em;
}

.geb-prose li + li {
	margin-top: .35em;
}

.geb-prose li::marker {
	color: var(--geb-accent);
}

.geb-prose blockquote,
.geb-prose .wp-block-quote {
	margin: 1.75em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--geb-accent);
	font-family: var(--geb-font-head);
	font-size: 1.3125rem;
	line-height: 1.5;
	color: var(--geb-ink-2);
}

.geb-prose blockquote p:last-child {
	margin-bottom: 0;
}

.geb-prose blockquote cite,
.geb-prose .wp-block-quote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--geb-font-body);
	font-size: .875rem;
	font-style: normal;
	color: var(--geb-muted);
}

.geb-prose img {
	border-radius: var(--geb-radius);
}

.geb-prose figcaption,
.geb-prose .wp-element-caption {
	font-size: .8125rem;
	color: var(--geb-muted);
	margin-top: 8px;
	text-align: left;
}

.geb-prose hr {
	border: 0;
	border-top: 1px solid var(--geb-line);
	margin: 2.5em 0;
}

.geb-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9688rem;
	line-height: 1.5;
}

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

.geb-prose thead th {
	border-bottom: 2px solid var(--geb-ink);
	font-weight: 700;
}

.geb-table-scroll,
.geb-prose .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.geb-prose code {
	font-size: .9em;
	background: var(--geb-tint);
	padding: .1em .35em;
	border-radius: 3px;
}

.geb-prose pre {
	overflow-x: auto;
	background: #1d1c1a;
	color: #f5f1ea;
	padding: 18px;
	border-radius: var(--geb-radius);
	font-size: .9rem;
	line-height: 1.6;
}

.geb-prose pre code {
	background: none;
	padding: 0;
}

.geb-prose .geb-notice,
.geb-notice {
	background: #fff6e0;
	border: 1px solid #ecd9a6;
	border-left: 4px solid #c9962c;
	padding: 14px 16px;
	border-radius: var(--geb-radius);
	font-size: .9688rem;
	line-height: 1.55;
}

.geb-page-links {
	display: flex;
	gap: 8px;
	align-items: center;
	font-weight: 600;
}

/* 11. Article components -------------------------------------------------- */

/* Quick facts */
.geb-facts {
	background: var(--geb-surface);
	border: 1px solid var(--geb-line);
	border-top: 4px solid var(--geb-accent);
	border-radius: var(--geb-radius);
	padding: 18px 20px 8px;
	margin-bottom: 32px;
}

.geb-facts__title {
	font-size: 1.1875rem;
	margin: 0 0 8px;
}

.geb-facts__table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9375rem;
	line-height: 1.45;
}

.geb-facts__table th,
.geb-facts__table td {
	padding: 9px 0;
	border-top: 1px solid var(--geb-line);
	text-align: left;
	vertical-align: top;
}

.geb-facts__table tr:first-child th,
.geb-facts__table tr:first-child td {
	border-top: 0;
}

.geb-facts__table th {
	width: 40%;
	padding-right: 12px;
	font-weight: 600;
	color: var(--geb-muted);
}

.geb-facts__table a {
	color: var(--geb-accent);
}

.geb-facts__note {
	color: var(--geb-muted);
	white-space: nowrap;
}

/* Table of contents */
.geb-toc {
	margin: 2em 0;
	background: var(--geb-tint);
	border-radius: var(--geb-radius);
	font-family: var(--geb-font-body);
	font-size: .9688rem;
	line-height: 1.45;
}

.geb-toc details {
	padding: 4px 20px;
}

.geb-toc__title {
	cursor: pointer;
	padding: 12px 0;
	font-weight: 700;
	font-size: .8125rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.geb-toc__title::-webkit-details-marker {
	display: none;
}

.geb-toc__title::after {
	content: "+";
	font-size: 1.25rem;
	line-height: 1;
	color: var(--geb-accent);
}

.geb-toc details[open] .geb-toc__title::after {
	content: "–";
}

.geb-toc ol {
	margin: 0;
	padding: 0 0 0 1.2em;
}

.geb-toc__list {
	padding-bottom: 14px !important;
	counter-reset: none;
}

.geb-toc li {
	margin: 6px 0;
}

.geb-toc li::marker {
	color: var(--geb-muted);
	font-variant-numeric: tabular-nums;
}

.geb-toc a {
	color: var(--geb-ink);
	text-decoration: none;
}

.geb-toc a:hover,
.geb-toc a.is-active {
	color: var(--geb-accent);
	text-decoration: underline;
}

/* FAQ */
.geb-faq,
.geb-sources {
	margin-top: 44px;
}

.geb-faq__title,
.geb-sources__title {
	font-size: 1.625rem;
	padding-top: 10px;
	border-top: 3px solid var(--geb-line-strong);
}

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

.geb-faq__item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
}

.geb-faq__item summary::-webkit-details-marker {
	display: none;
}

.geb-faq__item summary::after {
	content: "+";
	font-size: 1.5rem;
	line-height: 1;
	color: var(--geb-accent);
	flex-shrink: 0;
}

.geb-faq__item[open] summary::after {
	content: "–";
}

.geb-faq__q {
	font-size: 1.125rem;
	margin: 0;
	line-height: 1.35;
}

.geb-faq__a {
	padding: 0 0 16px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--geb-ink-2);
}

.geb-faq__a p:last-child {
	margin-bottom: 0;
}

.geb-faq__a a {
	color: var(--geb-accent);
}

/* Sources */
.geb-sources ol {
	padding-left: 1.3em;
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--geb-ink-2);
}

.geb-sources li + li {
	margin-top: 8px;
}

.geb-sources a {
	color: var(--geb-accent);
	word-break: break-word;
}

/* Share */
.geb-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.geb-share__label {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--geb-muted);
}

.geb-share__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.geb-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--geb-line);
	border-radius: 50%;
	background: var(--geb-surface);
	color: var(--geb-ink);
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

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

.geb-share__status {
	font-size: .8125rem;
	color: var(--geb-muted);
}

/* Author box */
.geb-author {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 36px;
	padding: 22px;
	background: var(--geb-surface);
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
}

.geb-author__avatar {
	border-radius: 50%;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
}

.geb-author__body {
	min-width: 0;
}

.geb-author__kicker {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--geb-muted);
	margin: 0 0 2px;
}

.geb-author__name {
	font-size: 1.25rem;
	margin: 0 0 2px;
}

.geb-author__name a {
	text-decoration: none;
}

.geb-author__job {
	font-size: .9375rem;
	color: var(--geb-accent);
	font-weight: 600;
	margin: 0 0 8px;
}

.geb-author__bio {
	font-size: .9688rem;
	color: var(--geb-ink-2);
	margin: 0 0 10px;
}

.geb-author__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: .875rem;
	font-weight: 600;
	margin: 0;
}

.geb-author__links a {
	color: var(--geb-accent);
}

.geb-author--profile {
	margin-top: 8px;
	border: 0;
	padding: 0;
	background: none;
}

.geb-author--profile .geb-author__avatar {
	width: 96px;
	height: 96px;
}

/* Post navigation */
.geb-post-nav {
	margin-top: 36px;
}

.geb-post-nav .nav-links {
	display: grid;
	gap: 12px;
}

.geb-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
	background: var(--geb-surface);
	text-decoration: none;
}

.geb-post-nav a:hover {
	border-color: var(--geb-accent);
}

.geb-post-nav .nav-next a {
	text-align: right;
}

.geb-post-nav__label {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--geb-muted);
}

.geb-post-nav__title {
	font-family: var(--geb-font-head);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
}

.geb-related {
	margin-top: 56px;
}

/* 12. Sidebar & widgets --------------------------------------------------- */

.geb-sidebar {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.widget {
	min-width: 0;
}

.widget-title {
	font-size: 1.125rem;
	padding-top: 10px;
	border-top: 3px solid var(--geb-line-strong);
	margin-bottom: 12px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px solid var(--geb-line);
	font-size: .9688rem;
}

.widget li a {
	text-decoration: none;
}

.widget li a:hover {
	text-decoration: underline;
}

.widget .geb-ranked__item {
	padding: 14px 0;
}

/* 13. Ads & newsletter --------------------------------------------------- */

.geb-ad {
	margin: 32px auto;
	text-align: center;
	overflow: hidden;
}

.geb-ad__label {
	display: block;
	font-size: .6875rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--geb-muted);
	margin-bottom: 6px;
}

.geb-ad .widget {
	margin: 0;
}

.geb-ad--inline {
	margin: 2em 0;
	padding: 12px 0;
	border-top: 1px solid var(--geb-line);
	border-bottom: 1px solid var(--geb-line);
}

.geb-ad--sidebar,
.geb-ad--feed {
	margin: 0;
}

.geb-ad--feed {
	padding: 22px 0;
	border-bottom: 1px solid var(--geb-line);
}

.geb-newsletter {
	margin-top: 52px;
	border-radius: var(--geb-radius);
}

.geb-newsletter--band {
	background: var(--geb-ink);
	color: #f6f2ea;
	padding: 32px 24px;
}

.geb-newsletter--band .geb-newsletter__title {
	color: #fff;
}

.geb-newsletter--band a {
	color: #fff;
}

.geb-newsletter--box {
	margin-top: 36px;
	padding: 24px;
	background: var(--geb-tint);
	border-left: 4px solid var(--geb-accent);
}

.geb-newsletter__inner {
	display: grid;
	gap: 18px;
	align-items: center;
}

.geb-newsletter__title {
	font-size: 1.5rem;
	margin-bottom: 6px;
}

.geb-newsletter__copy p {
	margin: 0;
	opacity: .9;
}

.geb-newsletter__form .widget-title {
	display: none;
}

.geb-newsletter__form input[type="email"],
.geb-newsletter__form input[type="text"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
	background: #fff;
	color: var(--geb-ink);
}

.geb-newsletter__form input[type="submit"],
.geb-newsletter__form button {
	min-height: 46px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--geb-radius);
	background: var(--geb-accent);
	color: var(--geb-on-accent);
	font-weight: 700;
	cursor: pointer;
}

/* 14. Footer ------------------------------------------------------------- */

.geb-footer {
	margin-top: 64px;
	background: #151513;
	color: #d9d4ca;
	font-size: .9375rem;
}

.geb-footer a {
	color: #f2ede4;
	text-decoration: none;
}

.geb-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.geb-footer :focus-visible {
	outline-color: #fff;
}

.geb-footer__grid {
	display: grid;
	gap: 32px;
	padding-top: 44px;
	padding-bottom: 32px;
}

.geb-footer__name {
	font-family: var(--geb-font-head);
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff !important;
}

.geb-footer__about {
	margin: 12px 0 18px;
	max-width: 420px;
	line-height: 1.6;
	color: #bdb7ab;
}

.geb-footer__heading {
	font-family: var(--geb-font-body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #9d978b;
	margin-bottom: 12px;
}

.geb-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.geb-footer__list li + li {
	margin-top: 8px;
}

.geb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 18px;
	padding-bottom: 24px;
	border-top: 1px solid #2c2b28;
	font-size: .8125rem;
	color: #9d978b;
}

.geb-footer__bottom p {
	margin: 0;
}

.geb-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.geb-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #3a3935;
	border-radius: 50%;
}

.geb-social a:hover {
	border-color: #fff;
	text-decoration: none;
}

.geb-ad--footer {
	margin-bottom: 0;
}

/* 15. Comments, pagination, misc ----------------------------------------- */

.geb-pagination {
	margin-top: 36px;
}

.geb-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.geb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
	background: var(--geb-surface);
	text-decoration: none;
	font-weight: 600;
	font-size: .9375rem;
}

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

.geb-pagination .page-numbers.current {
	background: var(--geb-ink);
	border-color: var(--geb-ink);
	color: #fff;
}

.geb-pagination .page-numbers.dots {
	border: 0;
	background: none;
	min-width: 24px;
}

.geb-comments {
	margin-top: 44px;
}

.geb-comments__title {
	font-size: 1.375rem;
	padding-top: 10px;
	border-top: 3px solid var(--geb-line-strong);
}

.geb-comments__list,
.geb-comments__list .children {
	list-style: none;
	padding: 0;
	margin: 0;
}

.geb-comments__list .children {
	padding-left: 20px;
	border-left: 2px solid var(--geb-line);
}

.geb-comments .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--geb-line);
}

.geb-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.geb-comments .comment-author .avatar {
	border-radius: 50%;
}

.geb-comments .says {
	display: none;
}

.geb-comments .comment-metadata {
	font-size: .8125rem;
	color: var(--geb-muted);
	margin: 4px 0 8px;
}

.geb-comments .comment-metadata a {
	color: inherit;
}

.geb-comments .reply a {
	font-size: .875rem;
	font-weight: 700;
	color: var(--geb-accent);
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: .9375rem;
	margin-bottom: 4px;
}

.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(--geb-line);
	border-radius: var(--geb-radius);
	background: var(--geb-surface);
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

/* 16. Gutenberg blocks ---------------------------------------------------- */

.alignleft {
	float: left;
	margin: .3em 1.4em 1em 0;
	max-width: 50%;
}

.alignright {
	float: right;
	margin: .3em 0 1em 1.4em;
	max-width: 50%;
}

.aligncenter {
	margin-inline: auto;
	text-align: center;
}

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

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

.wp-block-image img {
	height: auto;
}

.wp-block-gallery {
	margin-bottom: 1.5em;
}

.wp-block-embed {
	margin: 1.75em 0;
}

.wp-block-pullquote {
	border-top: 3px solid var(--geb-ink);
	border-bottom: 3px solid var(--geb-ink);
	padding: 1.5em 0;
	font-family: var(--geb-font-head);
}

.wp-block-button__link {
	background: var(--geb-accent);
	color: var(--geb-on-accent);
	border-radius: var(--geb-radius);
	text-decoration: none !important;
	padding: 12px 22px;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--geb-line);
}

.sticky {
	position: relative;
}

.bypostauthor {
	position: relative;
}

.gallery-caption {
	font-size: .8125rem;
}

/* 17. Responsive ---------------------------------------------------------- */

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

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

	.geb-card--list {
		flex-direction: row;
		align-items: flex-start;
		gap: 22px;
	}

	.geb-card--list .geb-card__media {
		width: 38%;
		flex: 0 0 38%;
		max-width: 300px;
	}

	.geb-search-form__label {
		display: inline;
	}

	.geb-brand__tagline {
		display: block;
	}

	.geb-post-nav .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.geb-post-nav .nav-next {
		grid-column: 2;
	}

	.geb-newsletter--band {
		padding: 40px;
	}
}

@media (min-width: 768px) {
	.geb-hero {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		gap: 32px;
		align-items: center;
	}

	.geb-footer__grid {
		grid-template-columns: 2fr 1fr 1fr;
	}

	.geb-newsletter__inner {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.geb-section {
		margin-top: 56px;
	}
}

@media (min-width: 900px) {
	.geb-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.geb-top {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: start;
	}

	.geb-top--single {
		grid-template-columns: 1fr;
	}

	.geb-top__rest {
		gap: 24px 20px;
	}

	.geb-top__rest .geb-card__title {
		font-size: 1.0625rem;
	}
}

@media (min-width: 1024px) {
	.geb-header__bar {
		min-height: 72px;
		gap: 20px;
	}

	.geb-header__toggle {
		display: none;
	}

	.geb-header__cta {
		display: inline-flex;
	}

	.geb-nav__cta-mobile {
		display: none !important;
	}

	/* Desktop nav */
	.geb-nav {
		display: block;
		position: static;
		inset: auto;
		padding: 0;
		border: 0;
		overflow: visible;
		background: none;
	}

	.geb-menu {
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.geb-menu > li > a {
		padding: 10px 12px;
		font-size: .9375rem;
		border: 0;
		border-radius: var(--geb-radius);
		white-space: nowrap;
	}

	.geb-menu > li > a:hover {
		background: var(--geb-tint);
		color: var(--geb-ink);
	}

	.geb-menu > .current-menu-item > a,
	.geb-menu > .current-menu-ancestor > a,
	.geb-menu > .current-category-ancestor > a {
		color: var(--geb-ink);
		box-shadow: inset 0 -3px 0 var(--geb-accent);
		border-radius: 0;
	}

	.geb-menu .menu-item-has-children > a {
		padding-right: 30px;
	}

	.geb-submenu-toggle {
		width: 28px;
		height: 28px;
		top: 50%;
		right: 2px;
		transform: translateY(-50%);
	}

	.geb-menu .sub-menu {
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		min-width: 240px;
		max-height: 70vh;
		overflow-y: auto;
		padding: 8px;
		background: var(--geb-surface);
		border: 1px solid var(--geb-line);
		border-radius: var(--geb-radius);
		box-shadow: var(--geb-shadow);
		z-index: 110;
	}

	.geb-menu > li:last-child .sub-menu,
	.geb-menu > li:nth-last-child(2) .sub-menu {
		left: auto;
		right: 0;
	}

	.geb-menu .menu-item-has-children:hover > .sub-menu,
	.geb-menu .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}

	.geb-menu .sub-menu a {
		padding: 9px 12px;
		border: 0;
		border-radius: var(--geb-radius);
		font-size: .9375rem;
		white-space: normal;
	}

	.geb-menu .sub-menu a:hover {
		background: var(--geb-tint);
		color: var(--geb-ink);
	}

	.geb-menu .sub-menu .sub-menu {
		position: static;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 12px;
	}

	.geb-menu .sub-menu .geb-submenu-toggle {
		display: none;
	}

	.geb-menu .sub-menu .sub-menu {
		display: block;
	}

	/* Stacked header */
	.geb-header-stacked .geb-header__bar {
		flex-wrap: wrap;
		justify-content: center;
		padding-top: 10px;
	}

	.geb-header-stacked .geb-brand {
		order: 1;
		flex: 1 0 100%;
		align-items: center;
		text-align: center;
		margin: 0;
		padding: 10px 0 6px;
	}

	.geb-header-stacked .geb-brand__name {
		font-size: 2.25rem;
	}

	.geb-header-stacked .geb-nav {
		order: 2;
		flex: 1;
		border-top: 1px solid var(--geb-line);
		padding: 4px 0;
	}

	.geb-header-stacked .geb-menu {
		justify-content: center;
	}

	.geb-header-stacked .geb-header__actions {
		order: 3;
		border-top: 1px solid var(--geb-line);
		padding: 4px 0;
		align-self: stretch;
	}

	.geb-brand__name {
		font-size: 1.5rem;
	}

	/* Layout with sidebar */
	.geb-archive-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 56px;
	}

	.geb-no-sidebar .geb-archive-layout:not(.geb-home-feed) {
		grid-template-columns: minmax(0, 1fr);
		max-width: calc(860px + 2 * var(--geb-gutter));
	}

	.geb-article-layout {
		grid-template-columns: minmax(0, var(--geb-read)) 300px;
		justify-content: space-between;
		gap: 56px;
	}

	.geb-no-sidebar .geb-article-layout {
		grid-template-columns: minmax(0, var(--geb-read));
		justify-content: center;
	}

	.geb-no-sidebar .geb-article__head {
		max-width: calc(var(--geb-read) + 2 * var(--geb-gutter));
	}

	.geb-article-layout.has-side-facts {
		grid-template-areas:
			"main facts"
			"main side";
		grid-template-rows: auto 1fr;
		row-gap: 32px;
	}

	.geb-article-layout.has-side-facts .geb-article__main {
		grid-area: main;
	}

	.geb-article-layout.has-side-facts .geb-article__facts {
		grid-area: facts;
	}

	.geb-article-layout.has-side-facts .geb-sidebar {
		grid-area: side;
	}

	.geb-article-layout.has-side-facts .geb-facts {
		margin-bottom: 0;
	}

	.geb-article-layout .geb-sidebar {
		position: sticky;
		top: 96px;
		align-self: start;
	}

	.admin-bar .geb-article-layout .geb-sidebar {
		top: 128px;
	}

	.geb-hero__title {
		font-size: 2.75rem;
	}

	.geb-card--list .geb-card__title {
		font-size: 1.4375rem;
	}

	.geb-card--large .geb-card__title {
		font-size: 1.875rem;
	}

	.geb-catcards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1440px) {
	:root {
		--geb-max: 1320px;
	}
}

/* 18. Motion & print ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	a.geb-media:hover .geb-media__img {
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media print {
	.geb-header,
	.geb-footer,
	.geb-sidebar,
	.geb-share,
	.geb-ad,
	.geb-newsletter,
	.geb-related,
	.geb-post-nav,
	.geb-comments {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 12pt;
	}

	.geb-prose a::after {
		content: " (" attr(href) ")";
		font-size: .8em;
	}
}

/* Contact form ------------------------------------------------------------ */

.geb-contact {
	margin-top: 1.5em;
}

.geb-contact__form {
	display: grid;
	gap: 4px 20px;
	grid-template-columns: 1fr;
	font-family: var(--geb-font-body);
	font-size: 1rem;
}

.geb-contact__row {
	margin: 0 0 14px;
}

.geb-contact__row label {
	display: block;
	font-weight: 600;
	font-size: .9375rem;
	margin-bottom: 6px;
}

.geb-contact__form input[type="text"],
.geb-contact__form input[type="email"],
.geb-contact__form select,
.geb-contact__form textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--geb-line);
	border-radius: var(--geb-radius);
	background: var(--geb-surface);
	font-size: 1rem;
}

.geb-contact__form textarea {
	min-height: 160px;
	resize: vertical;
}

.geb-contact__form input:focus,
.geb-contact__form select:focus,
.geb-contact__form textarea:focus {
	border-color: var(--geb-ink);
	outline: 2px solid var(--geb-accent);
	outline-offset: 0;
}

.geb-contact__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.geb-contact__note {
	font-size: .875rem;
	margin: 6px 0 0;
}

.geb-contact__status {
	padding: 14px 16px;
	border-radius: var(--geb-radius);
	font-weight: 600;
}

.geb-contact__status--ok {
	background: #e8f5ec;
	border: 1px solid #a6d9b5;
	color: #145c2c;
}

.geb-contact__status--err {
	background: #fdecec;
	border: 1px solid #f0b4b4;
	color: #8a1f1f;
}

@media (min-width: 600px) {
	.geb-contact__form {
		grid-template-columns: 1fr 1fr;
	}

	.geb-contact__row--full,
	.geb-contact__note {
		grid-column: 1 / -1;
	}
}

/* 19. Simplified browsing (1.1.0) ---------------------------------------- */
/*
 * Post grid used on the homepage, category, tag, author and search pages and
 * for related stories. Photos are uncropped uploads framed here, with the
 * focus a little above centre so faces are not cut off.
 */

.geb-media__img {
	object-position: 50% 22%;
}

.geb-postgrid {
	gap: 28px 24px;
	align-items: stretch;
}

.geb-card--post {
	height: 100%;
	gap: 0;
	background: var(--geb-surface);
	border: 1px solid var(--geb-line);
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.geb-card--post:hover {
	box-shadow: var(--geb-shadow);
}

.geb-card--post .geb-card__media {
	aspect-ratio: 3 / 2;
	border-radius: 0;
}

.geb-card--post .geb-media__placeholder span {
	font-size: 2.5rem;
}

.geb-card--post .geb-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
	padding: 18px 20px 20px;
}

.geb-card--post .geb-card__title {
	font-size: 1.25rem;
	line-height: 1.28;
	margin: 0 0 10px;
}

.geb-card--post .geb-meta {
	margin-bottom: 12px;
}

.geb-card--post .geb-card__excerpt {
	margin: 0 0 16px;
	font-size: .9688rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.geb-card--post .geb-card__more {
	margin-top: auto;
}

.geb-home-latest {
	margin-top: 48px;
}

.geb-home--simple .geb-pagination {
	margin-top: 40px;
}

/* Grids use the full width when there is no sidebar. */
.geb-listing-grid.geb-no-sidebar .geb-archive-layout:not(.geb-home-feed) {
	max-width: var(--geb-max);
}

.geb-listing-grid .geb-archive-head {
	margin-bottom: 30px;
}

/* Single article without sidebar: one centred reading column. */
.geb-no-sidebar .geb-article__head,
.geb-no-sidebar .geb-article__figure {
	max-width: calc(var(--geb-read) + 2 * var(--geb-gutter));
}

.geb-no-sidebar .geb-article__title {
	font-size: clamp(1.875rem, 5vw, 2.625rem);
	line-height: 1.12;
}

.geb-no-sidebar .geb-article-layout {
	margin-top: 28px;
}

.geb-media--natural {
	aspect-ratio: auto;
}

.geb-media--natural .geb-media__img {
	height: auto;
	max-height: min(75vh, 640px);
	object-fit: cover;
}

.geb-no-sidebar .geb-article__main {
	margin-inline: auto;
}

.geb-related .geb-card--post .geb-card__title {
	font-size: 1.125rem;
}

/* Footer: topics in two short columns instead of one long list. */
.geb-footer {
	margin-top: 72px;
}

.geb-footer__grid > nav:nth-child(2) .geb-footer__list {
	columns: 2;
	column-gap: 24px;
}

.geb-footer__grid > nav:nth-child(2) .geb-footer__list li {
	break-inside: avoid;
	margin: 0 0 8px;
}

/* Phones */
@media (max-width: 599px) {
	.geb-card--post .geb-card__body {
		padding: 16px 16px 18px;
	}

	.geb-card--post .geb-card__title {
		font-size: 1.1875rem;
	}

	.geb-postgrid {
		gap: 20px;
	}

	.geb-home-latest {
		margin-top: 36px;
	}
}
