/*
Theme Name: KTA
Theme URI: https://kenyanteachersabroad.com/
Author: TWM Ltd
Description: A fast, lightweight theme for Kenyan Teachers Abroad. Designed like a Kenyan exercise book: white paper, ruled lines and the red margin, with story details written in the margin. Self-hosted fonts, no jQuery, built-in contact form and newsletter signup, and a comment section made for conversation.
Version: 1.3.3
Requires at least: 6.5
Tested up to: 7.1
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: kta
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--paper: #ffffff;
	--ink: #172036;          /* blue-black pen */
	--ink-2: #4a5468;        /* secondary text */
	--red: #e3262f;          /* margin line, ticks, list markers */
	--red-ink: #b91c25;      /* red that passes contrast as text */
	--green: #0a7d45;        /* links, buttons */
	--green-dark: #075d33;
	--green-bright: #00b85c; /* the A in the logo */
	--rule: #d4e0f1;         /* ruled lines */
	--rule-strong: #8792a6;  /* form borders, 3:1 on white */
	--wash: #f2f6fb;

	--ui: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--read: Literata, Georgia, "Times New Roman", serif;

	--wrap: 1240px;
	--gutter: 16px;
	--margin-col: 0px;
	--gap: 18px;
	--line: 2px;
	--measure: 42rem;
	--radius: 6px;
}

@media (min-width: 760px) {
	:root {
		--gutter: 32px;
		--margin-col: 168px;
		--gap: 32px;
	}
}

@media (min-width: 1100px) {
	:root {
		--margin-col: 200px;
		--gap: 40px;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--read);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media (min-width: 760px) {
	body {
		font-size: 1.125rem;
	}
}

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

svg {
	flex: none;
}

a {
	color: var(--green);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--green-dark);
	text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--ui);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.012em;
	color: var(--ink);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0 0 1em;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	background: var(--ink);
	color: #fff;
	font-family: var(--ui);
	font-weight: 700;
	border-radius: var(--radius);
}

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

/* ==========================================================================
   Layout: the exercise-book page
   Every page sits on a wrap with a red margin line. Rows split into
   .m (the margin, left of the line) and .p (the page, right of it).
   ========================================================================== */

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

.lined {
	position: relative;
}

.lined::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--gutter) + var(--margin-col));
	width: var(--line);
	background: var(--red);
	pointer-events: none;
}

.row > .m,
.row > .p {
	min-width: 0;
	padding-left: calc(var(--gap) + var(--line));
}

@media (min-width: 760px) {
	.row {
		display: grid;
		grid-template-columns: var(--margin-col) minmax(0, 1fr);
	}

	.row > .m {
		padding-left: 0;
		padding-right: 24px;
		text-align: right;
	}
}

.section {
	padding-block: 56px;
}

@media (min-width: 760px) {
	.section {
		padding-block: 60px;
	}
}

.section-head .p {
	padding-bottom: 8px;
}

.section-title {
	font-size: 1.5rem;
	margin: 0;
}

@media (min-width: 760px) {
	.section-title {
		font-size: 1.875rem;
	}
}

.section-foot {
	padding-top: 28px;
}

.kicker {
	display: inline-block;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--green);
	text-decoration: none;
}

.kicker:hover {
	color: var(--green-dark);
	text-decoration: underline;
}

/* ==========================================================================
   Buttons and form fields
   ========================================================================== */

.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	font-family: var(--ui);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--green);
	border: 2px solid var(--green);
	border-radius: var(--radius);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	color: #fff;
	background: var(--green-dark);
	border-color: var(--green-dark);
	text-decoration: none;
}

.button--ghost {
	color: var(--ink);
	background: var(--paper);
	border-color: var(--ink);
}

.button--ghost:hover {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	font-family: var(--ui);
	font-size: 1rem;
	line-height: 1.4;
	color: var(--ink);
	background-color: #fff;
	border: 1.5px solid var(--rule-strong);
	border-radius: var(--radius);
	appearance: none;
}

select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23172036' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

input:focus,
select:focus,
textarea:focus {
	outline: 3px solid rgba(10, 125, 69, 0.3);
	outline-offset: 0;
	border-color: var(--green);
}

::placeholder {
	color: #6b7486;
	opacity: 1;
}

label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
}

label .optional {
	font-weight: 400;
	color: var(--ink-2);
}

/* Lined paper for writing: the comment box and the contact message.
   Lines sit every --tl; text baselines land on them. */
.lined-field {
	--tl: 32px;
	display: block;
	min-height: calc(var(--tl) * 6 + 16px);
	padding: 6px 14px 10px 52px;
	font-family: var(--read);
	font-size: 1.0625rem;
	line-height: var(--tl);
	background-color: #fff;
	background-image:
		linear-gradient(to right, transparent 37px, var(--red) 37px, var(--red) 39px, transparent 39px),
		linear-gradient(to bottom, transparent calc(var(--tl) - 1px), var(--rule) calc(var(--tl) - 1px));
	background-size: 100% 100%, 100% var(--tl);
	background-position: 0 0, 0 var(--tl-shift, 30px);
	background-attachment: local, local;
	resize: vertical;
}

.form-notice {
	padding: 12px 16px;
	margin-bottom: 20px;
	font-family: var(--ui);
	font-size: 1rem;
	border-radius: var(--radius);
	border-left: 4px solid var(--green);
	background: #e9f6ef;
}

.form-notice--error {
	border-left-color: var(--red);
	background: #fdeced;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 20;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	color: var(--ink);
	text-decoration: none;
}

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

.brand__logo {
	display: block;
	width: auto;
	height: 40px;
}

.brand__name {
	max-width: 9.5em;
	font-family: var(--ui);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.005em;
}

@media (min-width: 760px) {
	.brand__logo {
		height: 48px;
	}

	.brand__name {
		font-size: 1.0625rem;
	}
}

/* Menu button: two lines that fold into an X. */
.menu-toggle {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--ink);
	background: var(--wash);
	border: 0;
	border-radius: 14px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
	color: var(--ink);
	background: var(--rule);
}

.menu-toggle[aria-expanded="true"] {
	color: #fff;
	background: var(--ink);
}

.menu-toggle__icon {
	position: relative;
	width: 22px;
	height: 14px;
}

.menu-toggle__icon span {
	position: absolute;
	right: 0;
	height: 2.5px;
	border-radius: 2px;
	background: currentColor;
	transition: top 0.3s cubic-bezier(0.65, 0, 0.35, 1), width 0.3s cubic-bezier(0.65, 0, 0.35, 1), transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.menu-toggle__icon span:first-child {
	top: 1px;
	width: 22px;
}

.menu-toggle__icon span:last-child {
	top: 10.5px;
	width: 14px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
	top: 5.75px;
	width: 22px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
	top: 5.75px;
	width: 22px;
	transform: rotate(-45deg);
}

.site-nav .menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu a {
	display: block;
	font-family: var(--ui);
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.site-nav .menu a:hover {
	color: var(--green);
}

.site-nav__search {
	display: flex;
	align-items: center;
	position: relative;
}

.site-nav__search input {
	padding-right: 44px;
}

.site-nav__search .site-nav__search-btn {
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	min-height: 40px;
	width: 40px;
	padding: 0;
	color: var(--ink);
	background: transparent;
	border: 0;
}

.site-nav__search .site-nav__search-btn:hover {
	color: var(--green);
	background: transparent;
}

.site-nav__social:empty {
	display: none;
}

/* Phones and small tablets: the header tucks away while reading down and
   comes back on the way up; the menu opens as a full-screen page. */
@media (max-width: 899px) {
	.site-header {
		position: sticky;
		top: 0;
		transition: transform 0.3s ease;
	}

	.site-header.is-hidden {
		transform: translateY(-100%);
	}

	.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 0px);
	}

	.site-header__inner {
		min-height: 64px;
	}

	.no-js .menu-toggle {
		display: none;
	}

	.site-nav {
		background-color: var(--paper);
	}

	.js .site-nav {
		position: fixed;
		top: var(--nav-top, 64px);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 19;
		overflow-y: auto;
		overscroll-behavior: contain;
		/* The red margin carries on down the open menu. */
		background-image: linear-gradient(var(--red), var(--red));
		background-repeat: no-repeat;
		background-size: var(--line) 100%;
		background-position: var(--gutter) 0;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s;
	}

	.js .site-header.is-open .site-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
	}

	html.menu-open {
		overflow: hidden;
	}

	.site-nav__inner {
		display: flex;
		flex-direction: column;
		gap: 24px;
		min-height: 100%;
		padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)) calc(var(--gutter) + var(--gap) + var(--line));
	}

	.site-nav .menu {
		flex-direction: column;
	}

	.site-nav .menu li {
		border-bottom: 1px solid var(--rule);
	}

	.site-nav .menu a {
		padding: 20px 0 12px;
		font-size: 1.875rem;
		font-weight: 800;
		line-height: 1.1;
		letter-spacing: -0.02em;
	}

	.site-nav .menu a:hover {
		color: var(--ink);
	}

	/* The teacher's underline marks the page you are on. */
	.site-nav .menu a span {
		padding-bottom: 4px;
		background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 3px;
		transition: background-size 0.25s ease;
	}

	.site-nav .menu a:hover span,
	.site-nav .menu .current-menu-item > a span,
	.site-nav .menu .current_page_item > a span,
	.site-nav .menu a[aria-current="page"] span {
		background-size: 100% 3px;
	}

	.site-nav__cta {
		width: 100%;
		min-height: 56px;
		font-size: 1.0625rem;
	}

	.site-nav__search input {
		min-height: 52px;
	}

	/* Items settle in one after another when the menu opens. */
	.js .site-nav .menu li,
	.js .site-nav__cta,
	.js .site-nav__search,
	.js .site-nav__social {
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.js .site-header.is-open .site-nav .menu li,
	.js .site-header.is-open .site-nav__cta,
	.js .site-header.is-open .site-nav__search,
	.js .site-header.is-open .site-nav__social {
		opacity: 1;
		transform: none;
	}

	.js .site-header.is-open .site-nav .menu li:nth-child(2) { transition-delay: 0.04s; }
	.js .site-header.is-open .site-nav .menu li:nth-child(3) { transition-delay: 0.08s; }
	.js .site-header.is-open .site-nav .menu li:nth-child(4) { transition-delay: 0.12s; }
	.js .site-header.is-open .site-nav .menu li:nth-child(5) { transition-delay: 0.16s; }
	.js .site-header.is-open .site-nav .menu li:nth-child(n+6) { transition-delay: 0.2s; }
	.js .site-header.is-open .site-nav__cta { transition-delay: 0.2s; }
	.js .site-header.is-open .site-nav__search { transition-delay: 0.24s; }
	.js .site-header.is-open .site-nav__social { transition-delay: 0.28s; }
}

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

@media (min-width: 900px) {
	.menu-toggle {
		display: none;
	}

	.site-header__inner {
		min-height: 84px;
	}

	.site-nav__inner {
		display: flex;
		align-items: center;
		gap: 16px;
	}

	.site-nav__cta {
		order: 3;
		min-height: 42px;
		padding: 8px 16px;
		font-size: 0.9375rem;
	}

	.site-nav__social {
		display: none;
	}

	.site-nav .menu {
		gap: 4px;
	}

	.site-nav .menu a {
		position: relative;
		padding: 10px 12px;
		font-size: 1rem;
	}

	/* The teacher's underline under the current page. */
	.site-nav .menu .current-menu-item > a::after,
	.site-nav .menu .current_page_item > a::after {
		content: "";
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: 2px;
		height: 3px;
		border-radius: 2px;
		background: var(--red);
	}

	.site-nav__search input {
		width: 176px;
		min-height: 42px;
		padding-block: 8px;
		font-size: 0.9375rem;
		transition: width 0.2s ease;
	}

	.site-nav__search input:focus {
		width: 220px;
	}

	@media (min-width: 1100px) {
		.site-nav__search input {
			width: 190px;
		}
	}
}

/* ==========================================================================
   Hero: headline beside a photo carousel
   ========================================================================== */

.hero {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.hero__row {
	padding-block: 40px 48px;
}

.hero__grid {
	display: grid;
	gap: 32px;
	align-items: center;
}

.hero__title {
	max-width: 16em;
	margin: 0 0 16px;
	font-size: 2.125rem;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.024em;
}

.hero__text {
	max-width: 34em;
	margin: 0 0 28px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink-2);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (min-width: 760px) {
	.hero__row {
		padding-block: 64px 72px;
	}

	.hero__title {
		font-size: 2.75rem;
	}

	.hero__text {
		font-size: 1.1875rem;
	}
}

/* Up to 1239px the carousel sits under the text, at a comfortable width. */
@media (min-width: 760px) and (max-width: 1239px) {
	.hero--media .hero__media {
		max-width: 680px;
	}
}

/* Wide screens: text and carousel side by side, the photo stretched to the exact
   height of the text so the top of the headline and the bottom of the buttons
   line up with the top and bottom of the photo. */
@media (min-width: 1200px) {
	.hero__title {
		font-size: 3.25rem;
	}
}

@media (min-width: 1240px) {
	.hero--media .hero__grid {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 56px;
		align-items: stretch;
	}

	.hero--media .hero__title {
		font-size: 2.875rem;
		/* Trim the space above the capitals so the text starts exactly at the photo's top edge. */
		text-box: trim-start cap alphabetic;
	}

	.hero--media .hero__media {
		position: relative;
		min-height: 380px;
	}

	.hero--media .carousel {
		position: absolute;
		inset: 0;
		display: flex;
		flex-direction: column;
	}

	.hero--media .carousel__viewport {
		flex: 1;
		min-height: 0;
	}

	.hero--media .carousel__track,
	.hero--media .carousel__slide,
	.hero--media .carousel__slide figure,
	.hero--media .carousel__link {
		height: 100%;
	}

	.hero--media .carousel__img {
		height: 100%;
		aspect-ratio: auto;
	}
}

/* Browsers without text-box trimming: nudge the photo down by the same space. */
@supports not (text-box: trim-start cap alphabetic) {
	@media (min-width: 1240px) {
		.hero--media .hero__media {
			margin-top: 0.55rem;
		}
	}
}

/* ==========================================================================
   Carousel
   ========================================================================== */

.carousel {
	position: relative;
}

.carousel__viewport {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	border-radius: 10px;
	background: var(--wash);
}

.carousel__viewport::-webkit-scrollbar {
	display: none;
}

.carousel__viewport:focus-visible {
	outline-offset: 4px;
}

.carousel__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.carousel__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.carousel__slide figure {
	position: relative;
	margin: 0;
}

.carousel__link {
	display: block;
}

.carousel__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: var(--wash);
}

/* Captions sit on a soft shade at the foot of the photo. */
.carousel__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 18px 14px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	background: linear-gradient(to top, rgba(12, 18, 32, 0.78), rgba(12, 18, 32, 0));
}

.carousel__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
	font-family: var(--ui);
}

.carousel__count {
	margin-right: auto;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
}

.carousel__btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--rule);
	border-radius: 50%;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.carousel__btn:hover {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

.carousel__pause {
	order: -1;
	margin-right: 4px;
}

/* Fade used when the slideshow loops back to the first photo. */
.carousel__viewport {
	transition: opacity 0.3s ease;
}

.carousel__viewport.is-fading {
	opacity: 0;
}

/* Without visible controls, the pause button only appears for keyboard users. */
.carousel__pause--ghost {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.carousel__pause--ghost:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

.carousel__pause .icon-play,
.carousel__pause[aria-pressed="true"] .icon-pause {
	display: none;
}

.carousel__pause[aria-pressed="true"] .icon-play {
	display: block;
}

/* ==========================================================================
   Who we are
   ========================================================================== */

.about-band__inner {
	display: grid;
	gap: 16px;
}

.about-band__body p {
	max-width: 36em;
	margin: 0 0 20px;
	font-size: 1.125rem;
	line-height: 1.65;
}

@media (min-width: 900px) {
	.about-band__inner {
		grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
		gap: 48px;
	}

	.about-band__body p {
		font-size: 1.25rem;
	}
}

/* ==========================================================================
   Story lists
   ========================================================================== */

.entry {
	padding-block: 28px;
	border-top: 1px solid var(--rule);
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	margin-bottom: 6px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--ink-2);
}

.entry__meta time {
	font-weight: 700;
	color: var(--ink);
}

@media (min-width: 760px) {
	.entry__meta {
		display: block;
		margin: 0;
		padding-top: 2px;
	}

	.entry__meta > * {
		display: block;
	}

	.entry__meta > * + * {
		margin-top: 4px;
	}
}

.entry__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

/* Phones: the story image sits full width above the title. */
.entry__thumb {
	order: -1;
}

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

.entry__text {
	max-width: var(--measure);
}

.entry__title {
	margin: 2px 0 8px;
	font-size: 1.25rem;
	line-height: 1.25;
}

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

.entry__title a:hover {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.entry__excerpt {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink-2);
}

.entry__comments {
	display: inline-block;
	margin-top: 10px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.entry__comments:hover {
	text-decoration: underline;
}

.entry__thumb {
	display: block;
}

.entry__thumb img,
.thumb-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
	background: var(--wash);
}

/* Stories with no image get a plain card with the KTA mark. */
.thumb-placeholder {
	display: grid;
	place-items: center;
	background: var(--wash);
	box-shadow: inset 0 0 0 1px var(--rule);
}

.entry__thumb .thumb-placeholder img {
	width: 44%;
	max-width: 160px;
	height: auto;
	aspect-ratio: auto;
	border-radius: 0;
	background: none;
	opacity: 0.9;
}

@media (min-width: 760px) {
	.entry {
		padding-block: 32px;
	}

	.entry__body {
		grid-template-columns: minmax(0, 1fr) 220px;
		gap: 32px;
	}

	.entry__thumb {
		order: 0;
	}

	.entry__title {
		font-size: 1.5rem;
	}

	.entry__thumb > img,
	.thumb-placeholder {
		aspect-ratio: 3 / 2;
	}
}

@media (min-width: 1100px) {
	.entry__body {
		grid-template-columns: minmax(0, 1fr) 260px;
		gap: 48px;
	}
}

/* The newest story leads, bigger. */
.entry--featured .entry__body {
	grid-template-columns: minmax(0, 1fr);
}

.entry--featured .entry__thumb {
	order: -1;
}

.entry--featured .entry__thumb > img,
.entry--featured .thumb-placeholder {
	aspect-ratio: 16 / 9;
}

.entry--featured .entry__title {
	font-size: 1.625rem;
	line-height: 1.15;
}

.entry--featured .entry__excerpt {
	font-size: 1.0625rem;
}

@media (min-width: 900px) {
	.entry--featured .entry__body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		gap: 40px;
		align-items: center;
	}

	.entry--featured.entry--text .entry__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry--featured .entry__thumb {
		order: 0;
	}

	.entry--featured .entry__title {
		font-size: 2.25rem;
	}

	.entry--featured .entry__excerpt {
		font-size: 1.125rem;
	}
}

.entries + .row .pagination {
	padding-top: 12px;
}

/* ==========================================================================
   Topics
   ========================================================================== */

.topics {
	margin: 0;
	list-style: none;
}

.topic {
	padding-block: 20px;
	border-top: 1px solid var(--rule);
}

.topic__name {
	margin: 0 0 4px;
	font-size: 1.1875rem;
}

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

.topic__name a:hover {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
}

.topic__desc {
	margin: 0 0 6px;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ink-2);
}

.topic__count {
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--green);
}

@media (min-width: 760px) {
	.topics {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 48px;
	}

	.topic {
		padding-block: 24px;
	}

	.topic__name {
		font-size: 1.3125rem;
	}
}

/* ==========================================================================
   Page headings, topic filter, pagination
   ========================================================================== */

.page-head {
	padding-block: 44px 28px;
}

@media (min-width: 760px) {
	.page-head {
		padding-block: 64px 36px;
	}
}

.page-title {
	margin: 0 0 12px;
	font-size: 2.25rem;
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

@media (min-width: 760px) {
	.page-title {
		font-size: 3rem;
	}
}

.page-intro {
	max-width: 36em;
	margin: 0 0 20px;
	font-size: 1.125rem;
	color: var(--ink-2);
}

@media (min-width: 760px) {
	.page-intro {
		font-size: 1.25rem;
	}
}

.page-intro p:last-child {
	margin-bottom: 0;
}

.page-head__count {
	display: inline-block;
	margin-bottom: 8px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink-2);
}

@media (min-width: 760px) {
	.page-head__count {
		padding-top: 14px;
	}
}

.page-head__actions {
	margin-top: 20px;
}

.topic-filter ul {
	display: flex;
	gap: 4px 6px;
	margin: 8px 0 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
}

@media (min-width: 760px) {
	.topic-filter ul {
		flex-wrap: wrap;
		overflow: visible;
	}
}

.topic-filter a {
	display: block;
	padding: 8px 14px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
	text-decoration: none;
	border: 1.5px solid var(--rule);
	border-radius: 999px;
}

.topic-filter a:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.topic-filter a[aria-current="page"] {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-block: 28px 8px;
	font-family: var(--ui);
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	border: 1.5px solid var(--rule);
	border-radius: var(--radius);
}

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

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

.page-numbers.dots {
	border-color: transparent;
}

.empty-state {
	padding-block: 8px 48px;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 34rem;
	margin-top: 8px;
}

.search-form input {
	flex: 1;
}

/* ==========================================================================
   Single story
   ========================================================================== */

.story__head {
	display: flex;
	flex-direction: column;
	padding-block: 40px 28px;
}

.story__head .p {
	order: -1;
}

@media (min-width: 760px) {
	.story__head {
		display: grid;
		padding-block: 64px 36px;
	}

	.story__head .p {
		order: 0;
	}
}

.story__title {
	margin: 6px 0 14px;
	max-width: 20em;
	font-size: 2.125rem;
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.022em;
}

@media (min-width: 760px) {
	.story__title {
		font-size: 2.75rem;
	}
}

@media (min-width: 1100px) {
	.story__title {
		font-size: 3.5rem;
	}
}

.story__standfirst {
	max-width: 36em;
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.55;
	color: var(--ink-2);
}

@media (min-width: 760px) {
	.story__standfirst {
		font-size: 1.3125rem;
	}
}

.meta-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--ui);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--ink-2);
}

.meta-list a {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.meta-list a:hover {
	color: var(--green);
	text-decoration: underline;
}

.meta-list__author {
	color: var(--ink);
}

@media (min-width: 760px) {
	.meta-list {
		display: block;
		margin: 0;
		padding-top: 6px;
	}

	.meta-list li + li {
		margin-top: 6px;
	}
}

.story__image figure,
figure.p {
	margin: 0 0 8px;
}

.story__image img {
	display: block;
	width: 100%;
	max-height: 78vh;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--wash);
}

.story__image figcaption {
	margin-top: 8px;
	font-family: var(--ui);
	font-size: 0.875rem;
	color: var(--ink-2);
}

.story__body,
.page-body {
	padding-block: 28px 40px;
}

@media (max-width: 759px) {
	.story__body {
		display: flex;
		flex-direction: column;
	}

	.story__body .m {
		order: 2;
	}
}

/* Share links: in the margin on wide screens, after the story on phones. */
.share__label {
	margin: 0 0 10px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink);
}

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

.share__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 12px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--rule);
	border-radius: var(--radius);
	text-decoration: none;
	cursor: pointer;
}

.share__link:hover {
	color: var(--ink);
	border-color: var(--ink);
	background: #fff;
}

.share__copy.is-done {
	color: var(--green);
	border-color: var(--green);
}

@media (max-width: 759px) {
	.share {
		margin-top: 32px;
		padding-top: 24px;
		border-top: 1px solid var(--rule);
	}
}

@media (min-width: 760px) {
	.share__label {
		margin-bottom: 12px;
	}

	.share__list {
		flex-direction: column;
		align-items: stretch;
		max-width: 150px;
		margin-left: auto;
	}

	.share__list li {
		display: flex;
	}

	.share__link {
		flex: 1;
	}

	.share__label {
		text-align: right;
	}

	.share {
		align-self: start;
		position: sticky;
		top: 24px;
	}
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: var(--measure);
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.tag-list a {
	display: inline-block;
	padding: 4px 12px;
	font-family: var(--ui);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--ink-2);
	text-decoration: none;
	background: var(--wash);
	border-radius: 999px;
}

.tag-list a:hover {
	color: var(--ink);
	background: var(--rule);
}

.author-box {
	max-width: var(--measure);
	margin-top: 40px;
	padding: 24px;
	background: var(--wash);
	border-radius: 10px;
}

@media (min-width: 760px) {
	.author-box {
		padding: 28px 32px;
	}
}

.author-box__head {
	display: flex;
	gap: 16px;
	align-items: center;
}

.author-box__photo {
	flex: none;
}

.author-photo {
	display: block;
	border-radius: 50%;
	object-fit: cover;
	background: var(--rule);
}

.author-box .author-photo,
.author-box .avatar-initials {
	--size: 72px !important;
	width: var(--size);
	height: var(--size);
}

@media (min-width: 760px) {
	.author-box .author-photo,
	.author-box .avatar-initials {
		--size: 88px !important;
	}
}

.author-box__label {
	margin: 0 0 2px;
	font-family: var(--ui);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--ink-2);
}

.author-box__name {
	margin: 0;
	font-size: 1.375rem;
}

.author-box__name a {
	color: var(--ink);
	text-decoration: none;
}

.author-box__name a:hover {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
}

.author-box__role,
.author-head__role {
	margin: 4px 0 0;
	font-family: var(--ui);
	font-size: 0.9375rem;
	color: var(--ink-2);
}

.author-box__bio {
	margin: 16px 0 0;
	font-size: 1rem;
	line-height: 1.65;
}

.author-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.author-links a {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--rule);
	border-radius: 50%;
}

.author-links a:hover {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

.author-box__more {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
}

.author-box__more-title {
	margin: 0 0 8px;
	font-size: 1rem;
}

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

.author-box__more li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 16px;
	padding-block: 8px;
	font-family: var(--ui);
	border-bottom: 1px solid var(--rule);
}

.author-box__more li:last-child {
	border-bottom: 0;
}

.author-box__more li a {
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.author-box__more li a:hover {
	text-decoration: underline;
	text-decoration-color: var(--red);
}

.author-box__more time {
	font-size: 0.875rem;
	color: var(--ink-2);
	white-space: nowrap;
}

.author-box__all {
	display: inline-block;
	margin-top: 10px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
}

/* Author page header */
.author-head__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 28px;
	align-items: flex-start;
}

.author-head__photo .author-photo,
.author-head__photo .avatar-initials {
	--size: 96px !important;
	width: var(--size);
	height: var(--size);
}

@media (min-width: 760px) {
	.author-head__photo .author-photo,
	.author-head__photo .avatar-initials {
		--size: 128px !important;
	}
}

.author-head__text {
	flex: 1 1 320px;
	min-width: 0;
}

.author-head__text .page-title {
	margin-bottom: 4px;
}

.author-head__text .page-intro {
	margin-top: 14px;
}

/* Byline photo in the story header */
.meta-list__author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.meta-list__photo,
.meta-list__author .avatar-initials {
	--size: 32px !important;
	width: var(--size);
	height: var(--size);
	flex: none;
}

@media (min-width: 760px) {
	.meta-list__author {
		flex-direction: column;
		align-items: flex-end;
		gap: 8px;
	}

	.meta-list__photo,
	.meta-list__author .avatar-initials {
		--size: 48px !important;
	}
}

/* "Not legal advice" note on visa stories */
.story-note {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	max-width: var(--measure);
	margin: 0 0 28px;
	padding: 14px 16px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ink);
	background: var(--wash);
	border-left: 3px solid var(--ink);
	border-radius: 0 6px 6px 0;
}

.story-note svg {
	margin-top: 1px;
	color: var(--ink-2);
}

.story-note p {
	margin: 0;
}

.story-nav {
	padding-block: 8px 48px;
}

.story-nav__links {
	display: grid;
	gap: 12px;
}

@media (min-width: 760px) {
	.story-nav__links {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.story-nav__link--next {
		grid-column: 2;
		text-align: right;
	}
}

.story-nav__link {
	display: block;
	padding: 16px 0;
	color: var(--ink);
	text-decoration: none;
	border-top: 1px solid var(--rule);
}

.story-nav__link:hover {
	color: var(--ink);
}

.story-nav__label {
	display: block;
	margin-bottom: 4px;
	font-family: var(--ui);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--green);
}

.story-nav__title {
	font-family: var(--ui);
	font-size: 1.125rem;
	font-weight: 750;
	line-height: 1.3;
}

.story-nav__link:hover .story-nav__title {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
}

.related {
	padding-top: 24px;
	border-top: 1px solid var(--rule);
}

/* ==========================================================================
   Story content
   ========================================================================== */

.content {
	max-width: var(--measure);
}

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

.content > *:last-child {
	margin-bottom: 0;
}

.content h2 {
	margin-top: 2em;
	margin-bottom: 0.6em;
	font-size: 1.5rem;
}

.content h3 {
	margin-top: 1.75em;
	margin-bottom: 0.5em;
	font-size: 1.25rem;
}

.content h4,
.content h5,
.content h6 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 1.0625rem;
}

@media (min-width: 760px) {
	.content h2 {
		font-size: 1.875rem;
	}

	.content h3 {
		font-size: 1.375rem;
	}
}

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

.content li {
	margin-bottom: 0.4em;
	padding-left: 0.2em;
}

.content li::marker {
	color: var(--red);
}

.content ol > li::marker {
	font-family: var(--ui);
	font-weight: 750;
}

.content blockquote,
.content .wp-block-quote {
	margin: 2em 0;
	padding: 0 0 0 1.25em;
	font-size: 1.1875rem;
	font-style: italic;
	line-height: 1.6;
	border-left: 3px solid var(--green-bright);
}

.content blockquote p:last-of-type {
	margin-bottom: 0;
}

.content blockquote cite,
.content .wp-block-quote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 700;
	color: var(--ink-2);
}

.content .wp-block-pullquote {
	margin: 2.5em 0;
	padding: 1.5em 0;
	border-top: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	text-align: left;
}

.content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--ui);
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 750;
	line-height: 1.3;
}

.content img {
	border-radius: 4px;
}

.content figure {
	margin-block: 2em;
	margin-inline: 0;
}

.content figcaption,
.content .wp-element-caption,
.wp-caption-text {
	margin-top: 8px;
	font-family: var(--ui);
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--ink-2);
}

.content hr,
.content .wp-block-separator {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--rule);
}

.content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--ui);
	font-size: 0.9375rem;
	line-height: 1.45;
}

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

.content th {
	font-weight: 750;
	border-bottom-color: var(--ink);
}

.content .wp-block-table {
	overflow-x: auto;
}

.content code,
.content kbd {
	padding: 0.1em 0.35em;
	font-size: 0.875em;
	background: var(--wash);
	border-radius: 4px;
}

.content pre {
	padding: 16px;
	overflow-x: auto;
	font-size: 0.875rem;
	background: var(--wash);
	border-radius: var(--radius);
}

.content pre code {
	padding: 0;
	background: none;
}

.content mark {
	padding: 0 0.15em;
	background: #fff1a8;
}

.content .wp-block-buttons {
	margin-block: 1.5em;
}

.content .wp-block-image,
.content .wp-block-embed {
	margin-block: 2em;
}

.content .wp-block-embed iframe {
	max-width: 100%;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

@media (max-width: 599px) {
	.alignleft,
	.alignright {
		float: none;
		margin-inline: 0;
	}
}

.content .alignwide,
.content .alignfull {
	max-width: none;
}

.page-links {
	margin-top: 24px;
	font-family: var(--ui);
	font-weight: 700;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
	padding-block: 40px 56px;
	border-top: 1px solid var(--rule);
}

.comments-area__count {
	display: block;
	font-family: var(--ui);
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	color: var(--red);
}

@media (max-width: 759px) {
	.comments-area .m {
		display: none;
	}
}

.comments-title {
	margin: 0 0 8px;
	font-size: 1.5rem;
}

@media (min-width: 760px) {
	.comments-title {
		font-size: 1.875rem;
	}
}

.comments-empty,
.comments-closed {
	max-width: var(--measure);
	font-size: 1rem;
	color: var(--ink-2);
}

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

.comment-list {
	max-width: var(--measure);
}

.comment-list .children {
	margin-left: 18px;
	padding-left: 18px;
	border-left: 2px solid var(--rule);
}

@media (min-width: 760px) {
	.comment-list .children {
		margin-left: 19px;
		padding-left: 32px;
	}
}

.comment-body {
	padding-block: 20px;
	border-top: 1px solid var(--rule);
}

.comment-list > li:first-child > .comment-body {
	border-top: 0;
}

.comment-list .children > li:first-child > .comment-body {
	border-top: 0;
	padding-top: 8px;
}

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

.comment-who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	font-family: var(--ui);
	line-height: 1.3;
}

.comment-author-name {
	font-weight: 750;
	color: var(--ink);
}

.comment-author-name a {
	color: inherit;
}

.comment-date {
	font-size: 0.875rem;
	color: var(--ink-2);
	text-decoration: none;
}

.comment-date:hover {
	color: var(--ink);
	text-decoration: underline;
}

.author-badge {
	padding: 1px 8px;
	font-size: 0.75rem;
	font-weight: 750;
	color: var(--green);
	border: 1.5px solid currentColor;
	border-radius: 999px;
}

.comment-content,
.comment-actions,
.comment-awaiting-moderation {
	padding-left: 52px;
}

.comment-content {
	font-size: 1rem;
	line-height: 1.65;
}

.comment-content p {
	margin-bottom: 0.75em;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-awaiting-moderation {
	margin: 0 0 6px;
	font-family: var(--ui);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--red-ink);
}

.comment-actions {
	display: flex;
	gap: 16px;
	margin-top: 8px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
}

.comment-actions a {
	text-decoration: none;
}

.comment-actions a:hover {
	text-decoration: underline;
}

.comment-actions .comment-edit-link {
	color: var(--ink-2);
}

.pingback .comment-body,
.trackback .comment-body {
	font-family: var(--ui);
	font-size: 0.9375rem;
}

/* Avatars: initials in the flag colours. */
.avatar {
	border-radius: 50%;
}

.avatar-initials {
	--size: 40px;
	display: inline-grid;
	flex: none;
	place-items: center;
	width: var(--size);
	height: var(--size);
	font-family: var(--ui);
	font-size: calc(var(--size) * 0.38);
	font-weight: 750;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--ink);
}

.avatar-initials--green {
	background: var(--green);
}

.avatar-initials--red {
	background: var(--red-ink);
}

.comments-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	padding-block: 16px;
	font-family: var(--ui);
	font-weight: 700;
}

/* The comment form. */
.comment-respond {
	max-width: var(--measure);
	margin-top: 28px;
	padding: 24px 20px;
	background: var(--wash);
	border-radius: 8px;
}

@media (min-width: 760px) {
	.comment-respond {
		padding: 32px;
	}
}

.comment-list .comment-respond {
	margin: 12px 0 8px;
}

.comment-reply-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 0 0 8px;
	font-size: 1.375rem;
}

.comment-reply-title small a {
	font-family: var(--ui);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--red-ink);
}

.comment-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 16px;
}

.comment-form > p {
	margin: 0 0 18px;
}

.comment-notes,
.logged-in-as {
	font-family: var(--ui);
	font-size: 0.9375rem;
	color: var(--ink-2);
}

.logged-in-as a {
	color: var(--ink-2);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.comment-form-cookies-consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--green);
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
	color: var(--ink-2);
}

.comment-form .form-submit {
	margin-bottom: 0;
}

@media (min-width: 600px) {
	.comment-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.comment-form > * {
		grid-column: 1 / -1;
	}

	.comment-form > .comment-form-author {
		grid-column: 1;
	}

	.comment-form > .comment-form-email {
		grid-column: 2;
	}
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
	display: grid;
	gap: 36px;
}

@media (min-width: 1000px) {
	.contact-layout {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 56px;
		align-items: start;
	}
}

.contact-details {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--ui);
	font-size: 1rem;
}

.contact-details li {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-block: 10px;
	border-top: 1px solid var(--rule);
}

.contact-details svg {
	color: var(--red);
}

.contact-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 16px;
	padding: 24px 20px;
	background: var(--wash);
	border-radius: 8px;
}

@media (min-width: 600px) {
	.contact-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 32px;
	}

	.contact-form > * {
		grid-column: 1 / -1;
	}

	.contact-form > .field--half {
		grid-column: auto;
	}
}

.contact-form .field {
	margin: 0 0 18px;
}

.contact-form .field--submit {
	margin: 0;
}

/* ==========================================================================
   Full width template
   ========================================================================== */

.full-width {
	padding-block: 48px 72px;
}

.full-width__head {
	margin-bottom: 32px;
}

.content--wide {
	max-width: none;
}

/* ==========================================================================
   Newsletter band: the exercise-book cover
   ========================================================================== */

.newsletter {
	padding-block: 48px;
	color: #fff;
	background: var(--ink);
}

@media (min-width: 760px) {
	.newsletter {
		padding-block: 64px;
	}
}

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

@media (min-width: 900px) {
	.newsletter__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 48px;
		align-items: center;
	}
}

.newsletter h2 {
	margin: 0 0 8px;
	font-size: 1.625rem;
	color: #fff;
}

@media (min-width: 760px) {
	.newsletter h2 {
		font-size: 2rem;
	}
}

.newsletter p {
	margin: 0;
	color: #cdd5e3;
}

.newsletter a {
	color: #fff;
}

.subscribe-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.subscribe-form input[type="email"] {
	flex: 1 1 240px;
	border-color: #fff;
}

.subscribe-form .button,
.newsletter .button--light {
	color: var(--ink);
	background: #fff;
	border-color: #fff;
}

.subscribe-form .button:hover,
.newsletter .button--light:hover {
	color: #fff;
	background: var(--green);
	border-color: var(--green);
}

.subscribe-form input:focus {
	outline-color: rgba(255, 255, 255, 0.45);
	border-color: #fff;
}

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

.subscribe-form__notice {
	flex-basis: 100%;
	margin: 4px 0 0;
	font-family: var(--ui);
	font-weight: 700;
	color: #fff !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding-block: 48px 28px;
	font-family: var(--ui);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ink-2);
}

.footer-grid {
	display: grid;
	gap: 32px;
}

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

	.footer-about {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1100px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
		gap: 40px;
	}

	.footer-about {
		grid-column: auto;
	}
}

.footer-about p {
	max-width: 30em;
	margin: 16px 0;
}

.brand--footer .brand__logo {
	height: 52px;
}

.footer-col h2 {
	margin: 0 0 10px;
	font-size: 1rem;
	color: var(--ink);
}

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

.footer-list li {
	margin: 0;
}

.footer-list a {
	display: inline-block;
	padding-block: 5px;
	color: var(--ink);
	text-decoration: none;
}

.footer-list a:hover {
	color: var(--green);
	text-decoration: underline;
}

.footer-list--contact li {
	display: flex;
	gap: 8px;
	align-items: center;
}

.footer-list--contact svg {
	color: var(--red);
}

.footer-list--contact span {
	padding-block: 5px;
}

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

.social a {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--ink);
	border: 1.5px solid var(--rule);
	border-radius: 50%;
}

.social a:hover {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

.social--contact {
	margin-top: 24px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
}

.footer-bottom p {
	margin: 0;
}

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

/* ==========================================================================
   WordPress core classes
   ========================================================================== */

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

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.gallery-item {
	margin: 0;
}

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}

/* ==========================================================================
   Motion and print
   ========================================================================== */

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

}

@media print {
	.site-header,
	.site-footer,
	.newsletter,
	.share,
	.comment-respond,
	.related,
	.story-nav {
		display: none !important;
	}

	.lined::before {
		display: none;
	}
}
