/*
Theme Name: BlogAuto Editorial
Description: The theme every BlogAuto-managed blog wears: a centred masthead over a topic bar, a magazine homepage (photo mosaic, topic sections, sidebar), and an article page with a sidebar. Colours and type live in theme.json.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Author: BlogAuto
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogauto-editorial
*/

/*
 * What theme.json cannot say: layout of the custom blocks, card and tile
 * shapes, and the hero image overlapping the band into the page.
 * Colours come from theme.json's palette, so changing a colour is one line there.
 */

:root {
	--bae-radius-lg: 24px;
	--bae-radius-md: 18px;
	--bae-radius-sm: 12px;
}

/* Top-level blocks butt against each other; each section brings its own spacing. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

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

/* ---------------------------------------------------------------- Header */

/* A strip with search and page links, the centred masthead, then the topic bar. */

.bae-header {
	background: var(--wp--preset--color--base);
	padding-bottom: 20px;
}

.bae-header > * {
	margin-block: 0;
}

.bae-topbar {
	background: var(--wp--preset--color--tint);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bae-topbar__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 24px;
	padding-block: 6px;
}

.bae-topbar__row > * {
	margin: 0;
}

.bae-top-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 22px;
}

.bae-top-links a {
	display: inline-block;
	padding-block: 9px;
	font-size: 14px;
	color: var(--wp--preset--color--soft);
	text-decoration: none;
}

.bae-top-links a:hover,
.bae-top-links a[aria-current="page"] {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bae-masthead {
	padding-block: 30px 26px;
}

.bae-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.bae-brand__logo img {
	display: block;
	width: auto;
	height: 64px;
}

.bae-brand__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(34px, 5vw, 48px);
	line-height: 1.05;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.bae-brand__name:hover {
	color: var(--wp--preset--color--accent);
}

/* On the homepage this is the page's H1, so it is reset to the paragraph look. */
.bae-brand__tagline {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.bae-bar {
	display: flex;
	padding-inline: 8px;
	background: var(--wp--preset--color--band);
	border-block: 1px solid var(--wp--preset--color--line);
}

.bae-bar > * {
	margin: 0;
}

.bae-topic-nav {
	min-width: 0;
	max-width: 100%;
}

/*
 * Wider than a phone the topics keep to one row: the script moves those that
 * do not fit, last first, under "More" and marks the bar `is-fitted`. Without
 * it the bar wraps onto a second row rather than hide a topic — a topic bar
 * has no visible scrollbar, and a mouse cannot swipe it. Phones scroll it
 * sideways instead (below), where a swipe is the gesture.
 */
.bae-topic-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.bae-topic-nav ul::-webkit-scrollbar {
	display: none;
}

.bae-topic-nav a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 15px;
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

.bae-topic-nav a:hover {
	color: var(--wp--preset--color--accent);
}

.bae-topic-nav a[aria-current="page"] {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.bae-topic-nav.is-fitted {
	flex: 1 1 auto;
}

.bae-topic-nav.is-fitted .bae-topic-nav__list {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.bae-topic-more {
	position: relative;
}

.bae-topic-more[hidden],
.bae-topic-nav .bae-topic-more__list[hidden] {
	display: none;
}

.bae-topic-more > button {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	margin: 0;
	padding: 0 15px;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.bae-topic-more > button::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.bae-topic-more > button[aria-expanded="true"]::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.bae-topic-more > button:hover {
	color: var(--wp--preset--color--accent);
}

/* A topic hidden under "More" is the current page: "More" carries the mark. */
.bae-topic-more.is-current > button {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.bae-topic-nav .bae-topic-more__list {
	display: block;
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	min-width: 260px;
	padding: 6px 0;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 10px 24px rgba(20, 29, 42, 0.12);
	white-space: normal;
}

.bae-topic-more__list a {
	min-height: 44px;
	padding: 0 18px;
}

/* ---------------------------------------------------------------- Search */

.bae-search {
	margin: 0;
}

.bae-topbar .bae-search {
	width: min(100%, 260px);
}

.bae-topbar .bae-search .wp-block-search__inside-wrapper {
	padding: 2px;
}

.bae-topbar .bae-search .wp-block-search__input {
	padding: 4px 12px;
	font-size: 14px;
}

.bae-topbar .bae-search .wp-block-search__button {
	width: 32px;
	height: 32px;
}

.bae-topbar .bae-search .wp-block-search__button svg {
	width: 18px;
	height: 18px;
}

.bae-search .wp-block-search__label {
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 8px;
}

.bae-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	padding: 4px;
}

.bae-search .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 8px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--wp--preset--color--ink);
	min-width: 0;
}

.bae-search .wp-block-search__button {
	margin: 0;
	padding: 0;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bae-search .wp-block-search__button svg {
	fill: currentColor;
	width: 22px;
	height: 22px;
}

.bae-search--wide {
	max-width: 560px;
	margin-top: 24px;
}

/* ------------------------------------------------------------ Bands */

.bae-band {
	background: var(--wp--preset--color--band);
}

.bae-band--title {
	padding-top: 28px;
	padding-bottom: 48px;
}

.bae-wrap {
	padding-bottom: var(--wp--preset--spacing--60);
}

.bae-wrap--home {
	padding-top: 4px;
}

/* ------------------------------------------------------------ Mosaic */

/*
 * The newest guides as photographs: three across, two rows. Each tile has the
 * photograph's own shape (16:9, what the platform generates), so the whole
 * picture and the whole title show on the first screen.
 */
.bae-mosaic {
	margin: 0 0 56px;
}

.bae-mosaic__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

/* Fewer than three guides with photos: the newest takes the whole row. */
.bae-mosaic__item--alone {
	grid-column: 1 / -1;
}

.bae-mosaic__link {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.bae-mosaic__item--alone .bae-mosaic__link {
	aspect-ratio: auto;
	height: clamp(260px, 36vw, 460px);
}

.bae-mosaic__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.bae-mosaic__link:hover .bae-mosaic__img {
	transform: scale(1.03);
}

/* A dark fade under the words, so white text reads on any photograph. */
.bae-mosaic__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(14, 22, 34, 0.9) 0%, rgba(14, 22, 34, 0.4) 50%, rgba(14, 22, 34, 0) 78%);
}

.bae-mosaic__text {
	position: absolute;
	z-index: 1;
	left: 18px;
	right: 18px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.bae-mosaic__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--base);
}

.bae-mosaic__item--alone .bae-mosaic__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 400;
	line-height: 1.12;
}

.bae-mosaic__link:hover .bae-mosaic__title {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.bae-mosaic__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.bae-pill {
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

/* Tablets: two across, three rows — three across leaves a title no room. */
@media (max-width: 1000px) {
	.bae-mosaic__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phones: one row that scrolls sideways, the next photo peeking in. */
@media (max-width: 760px) {
	.bae-mosaic__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 85%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.bae-mosaic__grid::-webkit-scrollbar {
		display: none;
	}

	.bae-mosaic__item {
		scroll-snap-align: start;
	}

	.bae-mosaic__item--alone {
		grid-column: auto;
	}

	.bae-mosaic__text {
		left: 14px;
		right: 14px;
		bottom: 12px;
	}

	.bae-mosaic__title {
		font-size: 17px;
	}

	.bae-pill {
		font-size: 11px;
		padding: 3px 9px;
	}

	.bae-topic-nav ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		white-space: nowrap;
		scrollbar-width: none;
	}

	/* The page links stay on one line beside a full-width search. */
	.bae-topbar .bae-search {
		width: 100%;
	}

	.bae-top-links {
		width: 100%;
	}

	.bae-top-links ul {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		white-space: nowrap;
		scrollbar-width: none;
		gap: 0 18px;
	}

	.bae-top-links a {
		padding-block: 6px 2px;
		font-size: 13px;
	}
}

/* ------------------------------------------------------------ Sections */

.bae-section {
	margin: 0 0 72px;
}

.bae-section__title {
	margin: 0 0 24px;
}

/* Topic tiles */

.bae-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 14px;
}

.bae-tile {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	border-radius: var(--bae-radius-md);
	background: var(--wp--preset--color--tint);
	border: 1px solid transparent;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.bae-tile:hover {
	border-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
}

.bae-tile__img {
	width: 64px;
	height: 64px;
	border-radius: var(--bae-radius-sm);
	object-fit: cover;
	flex-shrink: 0;
}

.bae-tile__name {
	display: block;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.bae-tile__count {
	display: block;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

/* Cards: the query grids, and the theme's own lists */

.bae-grid .bae-cards--query {
	column-gap: 32px;
	row-gap: 48px;
}

.bae-cards--query > li,
.bae-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bae-cards--query > li > * {
	margin: 0;
}

ul.bae-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: 48px 32px;
}

.bae-card__media {
	display: block;
	margin-bottom: 6px;
}

.bae-card__media img,
.bae-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--bae-radius-md);
}

.bae-card__topic,
.bae-card__topic a {
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.bae-card__title,
.bae-card__title a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.25;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.bae-card__title a:hover,
a.bae-card__title:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.bae-card__excerpt p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--wp--preset--color--soft);
}

.bae-card__date {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* Pagination */

.bae-pagination {
	margin-top: 56px;
	gap: 8px;
}

.bae-pagination a,
.bae-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	text-decoration: none;
}

.bae-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

/* Small horizontal cards: sidebar and "Start here" */

.bae-mini-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bae-mini__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 10px;
	margin-inline: -10px;
	border-radius: 16px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.bae-mini__link:hover {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--ink);
}

.bae-mini__img {
	width: 96px;
	height: 68px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.bae-mini__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.bae-mini__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.bae-mini__topic {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* Start here */

.bae-start {
	background: var(--wp--preset--color--tint);
	padding-block: 72px;
}

.bae-start__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding-inline: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 32px 64px;
	align-items: start;
}

.bae-start__title {
	margin: 0;
	font-size: clamp(32px, 4vw, 40px);
	line-height: 1.15;
}

.bae-start__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bae-start .bae-mini__link {
	margin: 0;
	padding: 14px;
	background: var(--wp--preset--color--base);
}

.bae-start .bae-mini__title {
	font-size: 18px;
}

.bae-start__number {
	width: 32px;
	flex-shrink: 0;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 30px;
	color: var(--wp--preset--color--accent);
}

/* ------------------------------------------------------------ Article page */

.bae-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.bae-breadcrumb a {
	color: var(--wp--preset--color--soft);
}

/*
 * The article's head sits in the article column, so the sidebar starts beside
 * it at the top and the first screen shows the latest guides too.
 */
.bae-article__head {
	margin-bottom: 28px;
}

.bae-single__title {
	max-width: 22em;
	margin: 0 0 14px;
	font-size: clamp(30px, 2.4vw + 8px, 42px);
	line-height: 1.15;
}

.bae-single__standfirst,
.bae-single__standfirst p {
	max-width: 38em;
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--wp--preset--color--soft);
}

.bae-byline {
	gap: 6px 24px;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.bae-byline > * {
	margin: 0;
}

.bae-byline__author::before {
	content: "By ";
}

.bae-byline__author a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.bae-byline__date::before {
	content: "Published ";
}

.bae-byline .wp-block-post-date {
	font-size: 15px;
}

.bae-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: flex-start;
	padding-top: 40px;
}

.bae-article {
	flex: 999 1 560px;
	min-width: 0;
}

.bae-article--page {
	padding-top: 40px;
	max-width: 760px;
}

.bae-article__image {
	margin: 0 0 36px;
}

.bae-layout--single {
	padding-top: 28px;
}

.bae-article__image img {
	border-radius: var(--bae-radius-lg);
}

.bae-article__content {
	max-width: 720px;
	font-size: 19px;
	line-height: 1.7;
	color: var(--wp--preset--color--ink);
}

.bae-article__content > * {
	margin-block: 0 22px;
}

.bae-article__content > h2 {
	margin-top: 48px;
	margin-bottom: 16px;
}

.bae-article__content > h3 {
	margin-top: 32px;
	margin-bottom: 12px;
}

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

.bae-article__content li + li {
	margin-top: 6px;
}

.bae-article__content img {
	height: auto;
	border-radius: 16px;
}

.bae-article__content figure {
	margin-block: 32px;
}

.bae-article__content figcaption {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

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

.bae-article__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.bae-article__content th,
.bae-article__content td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}

.bae-article__content th {
	background: var(--wp--preset--color--tint);
	font-weight: 600;
}

.bae-article__content blockquote {
	margin-inline: 0;
	padding: 20px 24px;
	border-radius: var(--bae-radius-md);
	background: var(--wp--preset--color--tint);
}

/* The sources box the platform writes at the end of every article. */
.bae-article__content .blogauto-sources {
	margin-top: 48px;
	padding: 24px 28px;
	border-radius: 20px;
	background: var(--wp--preset--color--tint);
	font-size: 16px;
	line-height: 1.6;
}

.bae-article__content .blogauto-sources h2 {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--large);
}

.bae-article__content .blogauto-sources a {
	overflow-wrap: anywhere;
}

/* Sidebar */

.bae-sidebar {
	flex: 1 1 280px;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.bae-sidebar > * {
	margin: 0;
}

.bae-side-block__title {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--large);
}

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

.bae-topic-list__title {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
}

.bae-sidebar .bae-topic-list {
	padding: 24px;
	border-radius: 20px;
	background: var(--wp--preset--color--band);
}

.bae-sidebar .bae-topic-list li + li {
	border-top: 1px solid var(--wp--preset--color--line);
}

.bae-topic-list a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 16px;
}

.bae-topic-list a:hover,
.bae-topic-list a.is-active {
	color: var(--wp--preset--color--accent);
}

.bae-topic-list a.is-active {
	font-weight: 600;
}

.bae-topic-list__count {
	color: var(--wp--preset--color--muted);
}

.bae-related {
	padding-top: 72px;
	margin-bottom: 0;
}

/* ------------------------------------------------------------ Homepage */

.bae-layout--home {
	padding-top: 0;
}

.bae-home-main {
	flex: 999 1 600px;
	min-width: 0;
}

.bae-home-main > * {
	margin-block: 0;
}

/* A section title over a rule, with a short accent bar under its start. */
.bae-section-head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0 0 26px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bae-section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 3px;
	background: var(--wp--preset--color--accent);
}

.bae-section-head__title {
	margin: 0;
	font-size: clamp(26px, 2.6vw, 30px);
	line-height: 1.2;
}

.bae-section-head__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.bae-section-head__title a:hover {
	color: var(--wp--preset--color--accent);
}

.bae-section-head__more {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
}

.bae-topic-section {
	margin: 0 0 64px;
}

.bae-topic-section__body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 28px 32px;
	align-items: start;
}

.bae-lead {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bae-lead > * {
	margin: 0;
}

.bae-lead__media {
	display: block;
	margin-bottom: 4px;
}

.bae-lead__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--bae-radius-md);
}

.bae-lead__title {
	font-size: clamp(22px, 2.2vw, 26px);
	line-height: 1.22;
}

.bae-lead__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.bae-lead__title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.bae-lead__excerpt {
	font-size: 16px;
	line-height: 1.55;
	color: var(--wp--preset--color--soft);
}

.bae-lead__date,
.bae-list__date {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

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

.bae-list li + li {
	border-top: 1px solid var(--wp--preset--color--band);
}

.bae-list__link {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding-block: 16px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.bae-list li:first-child .bae-list__link {
	padding-top: 0;
}

.bae-list__img {
	width: 124px;
	height: 84px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.bae-list__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.bae-list__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.bae-list__link:hover .bae-list__title {
	color: var(--wp--preset--color--accent);
}

.bae-latest {
	margin-bottom: 0;
}

.bae-about {
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
}

.bae-about__text {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--soft);
}

.bae-about__more {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
}

/* Archive */

.bae-archive__title {
	margin: 0;
}

.bae-archive__description {
	max-width: 42em;
	margin-top: 16px;
	font-size: 19px;
	color: var(--wp--preset--color--soft);
}

.bae-archive .bae-wrap {
	padding-top: 48px;
}

/* ------------------------------------------------------------ Footer */

.bae-footer {
	background: var(--wp--preset--color--band);
	padding-top: 56px;
	padding-bottom: 32px;
}

.bae-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 32px 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bae-footer__grid > *,
.bae-footer__brand > * {
	margin: 0;
}

.bae-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bae-footer__title {
	font-size: 26px;
}

.bae-footer__tagline {
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--soft);
}

.bae-footer .bae-topic-list a {
	justify-content: flex-start;
	padding: 5px 0;
}

.bae-footer .bae-topic-list__title,
.bae-footer__pages .bae-topic-list__title {
	font-size: 20px;
}

.bae-footer__pages .wp-block-page-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bae-footer__pages .wp-block-page-list a {
	display: inline-block;
	padding: 5px 0;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 16px;
}

.bae-footer__pages .wp-block-page-list a:hover {
	color: var(--wp--preset--color--accent);
}

.bae-footer__credit {
	margin: 20px 0 0;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}
