/*
Theme Name: 水鏡觀點 Water Mirror Perspectives
Theme URI: https://watermirrorinc.com/
Author: Water Mirror, Inc.
Author URI: https://watermirrorinc.com/
Description: 水鏡觀點的媒體網站佈景主題：產業解析、當地故事、人物側寫，以及行程與體驗。支援中文、英文、日文（搭配 Polylang）。
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.4.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: water-mirror-perspectives
*/

/* ---------- Base ---------- */

:root {
	--wmp-ink: var(--wp--preset--color--ink, #000000);
	--wmp-paper: var(--wp--preset--color--paper, #FFFFFF);
	--wmp-white: #FFFFFF;
	--wmp-line: var(--wp--preset--color--line, #D9D9D9);
	--wmp-muted: var(--wp--preset--color--muted, #6E6E6E);
	--wmp-soft: var(--wp--preset--color--soft, #F0F0F0);
	--wmp-accent: var(--wp--preset--color--accent, #FFC500);
	--wmp-cream: var(--wp--preset--color--cream, #FDFCF3);
	--wmp-serif: var(--wp--preset--font-family--serif);
	--wmp-gutter: 24px;
	--wmp-wide: 1240px;
}

html[lang^="ja"] {
	--wp--preset--font-family--sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
	--wp--preset--font-family--serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
}

/* English: Monocle-style pairing. Serif for headlines and article text, Helvetica for UI and meta.
   Newsreader is loaded by functions.php (wmp_font_url) on English pages. */
html[lang^="en"] {
	--wp--preset--font-family--sans: 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Yu Gothic', sans-serif;
	--wp--preset--font-family--serif: 'Newsreader', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
}

html[lang^="en"] .wp-block-post-content :is(p, li, blockquote),
html[lang^="en"] .wp-block-post-excerpt {
	font-family: var(--wp--preset--font-family--serif);
}

html[lang^="en"] .wp-block-post-content :is(p, li) {
	font-size: 1.125em;
	line-height: 1.65;
}

html[lang^="en"] .wp-block-post-content li li {
	font-size: 1em;
}

/* English: no Chinese sub-name under the brand (header and footer) */
html[lang^="en"] .wmp-brand__sub,
html[lang^="en"] .wmp-footer__sub {
	display: none;
}

body {
	background: var(--wmp-paper);
	color: var(--wmp-ink);
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wmp-main :where(*) {
	box-sizing: border-box;
}

.wmp-main :where(.is-layout-flow) > * {
	margin-block-start: 0;
}

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

a {
	text-underline-offset: 3px;
}

.wmp-wrap {
	max-width: calc(var(--wmp-wide) + 2 * var(--wmp-gutter));
	margin-inline: auto !important;
	padding-inline: var(--wmp-gutter);
}

.wmp-section {
	padding-block: clamp(40px, 6vw, 56px);
	border-bottom: 1px solid var(--wmp-line);
}

.wmp-kicker,
.wmp-kicker a {
	font-size: 12px;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--wmp-muted);
	text-decoration: none;
	line-height: 1.5;
}

.wmp-kicker--rule {
	display: block;
	color: var(--wmp-ink);
	border-bottom: 2px solid var(--wmp-ink);
	padding-bottom: 8px;
	margin-bottom: 20px;
}

.wmp-kicker--accent {
	color: var(--wmp-accent);
}

.wmp-meta {
	font-size: 13px;
	color: var(--wmp-muted);
	margin: 0;
}

.wmp-empty {
	color: var(--wmp-muted);
	font-size: 15px;
	margin: 0;
}

.wmp-btn,
.wp-block-button.wmp-btn--accent .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	background: var(--wmp-ink);
	color: var(--wmp-white) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	border: 0;
	line-height: 1.2;
}

.wmp-btn--pill {
	border-radius: 22px;
	font-size: 14px;
}

.wmp-btn--accent,
.wp-block-button.wmp-btn--accent .wp-block-button__link {
	background: var(--wmp-accent);
}

.wmp-btn:hover {
	opacity: 0.9;
}

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

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

.wmp-header {
	background: var(--wmp-white);
	border-bottom: 1px solid var(--wmp-line);
}

.wmp-header__inner {
	max-width: calc(var(--wmp-wide) + 2 * var(--wmp-gutter));
	margin: 0 auto;
	padding: 14px var(--wmp-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.wmp-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	color: var(--wmp-ink) !important;
}

.wmp-brand__logo {
	width: 56px;
	height: 32px;
	object-fit: contain;
}

.wmp-brand__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wmp-brand__name {
	font-family: var(--wmp-serif);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}

.wmp-brand__sub {
	font-size: 10.5px;
	letter-spacing: 0.06em;
	color: var(--wmp-muted);
}

.wmp-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	font-size: 15px;
	font-weight: 500;
}

.wmp-nav a {
	color: var(--wmp-ink);
	text-decoration: none;
	padding-block: 10px;
}

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

.wmp-nav a.is-accent {
	color: var(--wmp-accent);
	font-weight: 700;
}

.wmp-tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wmp-lang {
	display: flex;
	border: 1px solid var(--wmp-line);
	border-radius: 22px;
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
}

.wmp-lang a {
	min-width: 42px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wmp-ink);
	text-decoration: none;
}

.wmp-lang a.is-current {
	background: var(--wmp-ink);
	color: var(--wmp-white);
}

.wmp-iconbtn {
	width: 42px;
	height: 42px;
	border: 1px solid var(--wmp-line);
	border-radius: 21px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wmp-ink);
}

@media (max-width: 1080px) {
	.wmp-nav {
		order: 3;
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		border-top: 1px solid var(--wmp-line);
		padding-top: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.wmp-nav a {
		white-space: nowrap;
	}
}

@media (max-width: 560px) {
	.wmp-brand__sub,
	.wmp-tools .wmp-btn--pill {
		display: none;
	}

	.wmp-brand__name {
		font-size: 20px;
	}
}

/* ---------- Section heads ---------- */

.wmp-sechead {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px 16px;
	margin-bottom: 24px;
}

.wmp-sechead__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.wmp-sechead__desc {
	margin: 6px 0 0;
	font-size: 15px;
	color: var(--wmp-muted);
}

.wmp-sechead__more {
	font-size: 14px;
	white-space: nowrap;
}

.wmp-sechead--foot {
	margin: 20px 0 0;
}

/* ---------- Post lists ---------- */

.wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-post-template > li {
	margin: 0;
}

.wp-block-post-featured-image {
	margin: 0 0 12px;
	background: var(--wmp-soft);
}

.wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-title a:hover {
	text-decoration: underline;
}

.wmp-grid {
	display: grid !important;
	gap: 28px 24px;
}

.wmp-grid--4 {
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.wmp-grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.wmp-grid > li,
.wmp-grid > * {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wmp-card__title,
.wmp-grid h3 {
	font-size: 19px;
	line-height: 1.5;
	margin: 0;
}

.wmp-card__dek {
	font-size: 15px;
	color: var(--wmp-muted);
	line-height: 1.7;
}

.wmp-card__dek p {
	margin: 0;
}

/* ---------- Homepage: top ---------- */

.wmp-top {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding-top: 48px;
}

.wmp-hero {
	flex: 2 1 600px;
	min-width: 0;
}

.wmp-hero__list > li {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wmp-hero__img {
	margin-bottom: 4px;
}

.wmp-hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.35;
}

.wmp-hero__dek {
	font-size: 18px;
	line-height: 1.8;
	color: #3A3A3A;
}

.wmp-hero__dek p {
	margin: 0;
}

.wmp-weekly {
	flex: 1 1 320px;
	min-width: 0;
}

.wmp-weekly__query .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wmp-mini {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wmp-mini > li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.wmp-mini__img {
	flex: none;
	width: 112px;
	margin: 0;
}

.wmp-mini__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wmp-mini__title {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
}

/* ---------- Homepage: trips band ---------- */

.wmp-band {
	background: var(--wmp-accent);
	color: var(--wmp-white);
}

.wmp-band__inner {
	max-width: calc(var(--wmp-wide) + 2 * var(--wmp-gutter));
	margin: 0 auto;
	padding: clamp(48px, 7vw, 64px) var(--wmp-gutter);
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.wmp-band a {
	color: var(--wmp-white);
}

.wmp-band__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.wmp-band__head > div {
	max-width: 640px;
}

.wmp-band__kicker {
	font-size: 12px;
	letter-spacing: 0.08em;
	font-weight: 700;
}

.wmp-band h2 {
	color: var(--wmp-white);
	margin: 8px 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.wmp-band p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
}

.wmp-band__all,
.wmp-band__custom {
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	align-self: flex-start;
}

.wmp-band__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 24px;
}

.wmp-tripcard {
	background: var(--wmp-white);
	color: var(--wmp-ink);
	display: flex;
	flex-direction: column;
}

.wmp-tripcard__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.wmp-tripcard__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.wmp-tripcard h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.45;
}

.wmp-tripcard h3 a,
.wmp-tripcard p {
	color: var(--wmp-ink);
}

.wmp-tripcard p {
	font-size: 14px;
	color: var(--wmp-muted);
}

/* ---------- Homepage: people ---------- */

.wmp-person {
	background: var(--wmp-white);
	border: 1px solid var(--wmp-line);
	padding: 20px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wmp-person__img {
	width: 96px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0;
}

.wmp-person__title {
	margin: 0;
	font-size: 18px;
}

.wmp-person__quote {
	font-family: var(--wmp-serif);
	font-size: 15px;
	line-height: 1.7;
	color: #3A3A3A;
}

.wmp-person__quote p {
	margin: 0;
}

/* ---------- Homepage: industry + events ---------- */

.wmp-split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.wmp-split__main {
	flex: 3 1 520px;
	min-width: 0;
}

.wmp-split__side {
	flex: 2 1 320px;
	min-width: 0;
	background: var(--wmp-white);
	border: 1px solid var(--wmp-line);
	padding: 24px;
	align-self: flex-start;
}

.wmp-split__side .wmp-sechead__title {
	font-size: var(--wp--preset--font-size--large);
}

.wmp-rowlist > li {
	display: flex;
	gap: 20px;
	padding: 16px 0;
	border-top: 1px solid var(--wmp-line);
}

.wmp-row__img {
	flex: none;
	width: min(200px, 36%);
	margin: 0;
}

.wmp-row__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.wmp-row__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.45;
}

.wmp-row__dek {
	font-size: 15px;
	color: var(--wmp-muted);
	line-height: 1.7;
}

.wmp-row__dek p,
.wmp-event__dek p {
	margin: 0;
}

.wmp-events__list > li {
	padding: 14px 0;
	border-top: 1px solid var(--wmp-line);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wmp-event__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.wmp-event__dek {
	font-size: 13px;
	color: var(--wmp-muted);
}

/* ---------- Videos, newsletter ---------- */

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

.wmp-videocard {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
}

.wmp-videocard img,
.wmp-ph {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--wmp-soft);
}

.wmp-videocard__title {
	font-size: 16px;
	font-weight: 500;
}

.wmp-newsletter {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding-block: clamp(40px, 6vw, 64px);
}

.wmp-newsletter h2 {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--x-large);
}

.wmp-newsletter p {
	margin: 0;
	font-size: 15px;
	color: var(--wmp-muted);
}

.wmp-newsletter--post {
	margin-top: clamp(40px, 6vw, 64px);
	padding: 40px;
	background: var(--wmp-white);
	border: 1px solid var(--wmp-line);
}

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

.wmp-articlehead {
	max-width: calc(860px + 2 * var(--wmp-gutter));
	padding-top: clamp(40px, 6vw, 56px);
	padding-bottom: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wmp-articlehead__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.35;
}

.wmp-articlehead__dek {
	font-size: 20px;
	line-height: 1.7;
	color: #3A3A3A;
	font-style: italic;
}

.wmp-articlehead__dek p {
	margin: 0;
}

.wmp-meta--post {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-size: 14px;
	padding-top: 4px;
}

.wmp-meta__logo {
	width: 40px;
	height: 23px;
	object-fit: contain;
}

.wmp-meta__by {
	color: var(--wmp-ink);
	font-weight: 500;
}

.wmp-meta__langs a {
	color: var(--wmp-accent);
}

.wmp-articleimg .wp-block-post-featured-image {
	margin: 0;
}

.wmp-articlebody {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 56px;
	padding-top: 48px;
}

.wmp-article {
	flex: 999 1 560px;
	max-width: 680px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.wmp-content {
	font-size: 18px;
	line-height: 1.9;
	color: #2A2A2A;
}

.wmp-content > * + * {
	margin-block-start: 1.4em;
}

.wmp-content h2 {
	margin-top: 2em;
}

.wmp-content figcaption {
	font-size: 13px;
	color: var(--wmp-muted);
}

.wmp-content a {
	color: var(--wmp-accent);
}

/* Writer patterns */

.wmp-box {
	padding: 22px 24px;
}

.wmp-box > * {
	margin: 0;
}

.wmp-box > * + * {
	margin-top: 10px;
}

.wmp-box__label {
	font-size: 12px;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--wmp-muted);
}

.wmp-box--summary {
	background: var(--wmp-white);
	border: 1px solid var(--wmp-ink);
}

.wmp-box--summary .wmp-box__label {
	color: var(--wmp-ink);
}

.wmp-box__list {
	font-size: 16px;
	line-height: 1.7;
	padding-left: 1.4em;
}

.wmp-box--glossary {
	background: var(--wmp-soft);
	font-size: 15px;
	line-height: 1.7;
}

.wmp-box__term {
	font-size: 16px;
	font-weight: 700;
}

.wmp-box--deep {
	background: var(--wmp-white);
	border: 1px solid var(--wmp-line);
	padding: 28px;
	font-size: 16px;
}

.wmp-box__title {
	font-size: 22px;
}

.wmp-box__note,
.wmp-box__source {
	font-size: 13px;
	color: var(--wmp-muted);
}

.wmp-box--trip {
	background: var(--wmp-white);
	border: 1px solid var(--wmp-line);
}

.wmp-pullquote p {
	margin: 0;
}

.wmp-pullquote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-style: normal;
	color: var(--wmp-muted);
}

/* Trip call-to-action */

.wmp-tripcta {
	background: var(--wmp-accent);
	color: var(--wmp-white);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.wmp-tripcta__kicker {
	font-size: 12px;
	letter-spacing: 0.08em;
	font-weight: 700;
}

.wmp-tripcta__card {
	background: var(--wmp-white);
	color: var(--wmp-ink);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.wmp-tripcta__card h2 {
	margin: 0;
	font-size: 22px;
}

.wmp-tripcta__card p {
	margin: 0;
	font-size: 15px;
	color: var(--wmp-muted);
	line-height: 1.7;
}

.wmp-tripcta__custom {
	color: var(--wmp-white) !important;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	align-self: flex-start;
}

/* Author */

.wmp-author {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	border-top: 1px solid var(--wmp-line);
	padding-top: 28px;
}

.wmp-author img {
	flex: none;
	width: 72px;
	height: 42px;
	object-fit: contain;
}

.wmp-author__name {
	font-weight: 700;
}

.wmp-author p {
	margin: 4px 0 6px;
	font-size: 15px;
	line-height: 1.7;
	color: #3A3A3A;
}

.wmp-author__link {
	font-size: 14px;
	font-weight: 700;
	color: var(--wmp-accent);
}

/* Sidebar */

.wmp-sidebar {
	flex: 1 1 260px;
	max-width: 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.wmp-sidecard {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--wmp-white);
	border: 1px solid var(--wmp-line);
	padding: 18px;
	text-decoration: none !important;
}

.wmp-sidecard__title {
	font-family: var(--wmp-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}

.wmp-sidecard__more {
	font-size: 13px;
	color: var(--wmp-muted);
}

.wmp-share {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wmp-share__links {
	display: flex;
	gap: 10px;
}

.wmp-share__links a {
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--wmp-line);
	background: var(--wmp-white);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 900px) {
	.wmp-sidebar {
		max-width: 680px;
	}
}

.wmp-related {
	border-bottom: 0;
}

/* ---------- Archive, search, pages ---------- */

.wmp-archivehead {
	margin-bottom: 32px;
}

.wmp-archivehead__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.wmp-archivehead__desc {
	margin-top: 8px;
	color: var(--wmp-muted);
	font-size: 16px;
}

.wmp-searchform {
	margin-top: 16px;
	max-width: 560px;
}

.wmp-pagination {
	margin-top: 40px;
	gap: 16px;
	font-size: 15px;
}

.wmp-pagehead {
	max-width: calc(860px + 2 * var(--wmp-gutter));
	padding-top: clamp(40px, 6vw, 56px);
	padding-bottom: 24px;
}

.wmp-pagehead__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--huge);
}

.wmp-pagecontent {
	padding: 32px var(--wmp-gutter) clamp(48px, 7vw, 80px);
}

.wmp-404 {
	text-align: center;
	padding-block: 40px;
}

.wmp-404 h1 {
	margin: 0 0 12px;
}

.wmp-404 p {
	color: var(--wmp-muted);
	margin: 0 0 24px;
}

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

.wmp-footer {
	background: var(--wmp-ink);
	color: #E8E8E4;
}

.wmp-footer a {
	color: #E8E8E4;
	text-decoration: none;
	font-size: 14px;
}

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

.wmp-footer__inner {
	max-width: calc(var(--wmp-wide) + 2 * var(--wmp-gutter));
	margin: 0 auto;
	padding: 48px var(--wmp-gutter);
	display: flex;
	flex-wrap: wrap;
	gap: 32px 40px;
	justify-content: space-between;
}

.wmp-footer__brand {
	flex: 2 1 320px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wmp-footer__name {
	font-family: var(--wmp-serif);
	font-size: 22px;
	font-weight: 700;
}

.wmp-footer__sub {
	font-size: 12px;
	letter-spacing: 0.06em;
	color: #BDBDB8;
}

.wmp-footer__brand p {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
}

.wmp-footer__langs {
	color: #BDBDB8;
	display: flex;
	gap: 6px;
}

.wmp-footer__col {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wmp-footer__head {
	font-weight: 700;
	font-size: 14px;
}

.wmp-footer__legal {
	max-width: calc(var(--wmp-wide) + 2 * var(--wmp-gutter));
	margin: 0 auto;
	padding: 16px var(--wmp-gutter) 32px;
	font-size: 12px;
	color: #BDBDB8;
}

/* Pull quote: flush with the text column, rule above and below. */
.wmp-content blockquote,
.wmp-content .wp-block-quote {
	margin-inline: 0;
	padding: 16px 0;
	border-left: 0;
	border-top: 2px solid var(--wmp-ink);
	border-bottom: 1px solid var(--wmp-line);
}

/* Contact forms (Contact Form 7) */
.wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 8px;
	padding: 28px;
	background: var(--wmp-white);
	border: 1px solid var(--wmp-line);
}

.wpcf7 form > p {
	margin: 0;
}

.wpcf7 label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
	font-weight: 500;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #A8A8A2;
	border-radius: 0;
	background: var(--wmp-white);
	font: inherit;
	font-size: 16px;
	color: var(--wmp-ink);
	box-sizing: border-box;
}

.wpcf7 textarea {
	min-height: 140px;
}

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

.wpcf7 input[type="submit"] {
	align-self: flex-start;
	min-height: 48px;
	padding: 0 28px;
	background: var(--wmp-accent);
	color: var(--wmp-white);
	border: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	opacity: 0.9;
}

.wpcf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
}

.wpcf7-not-valid-tip {
	font-size: 13px;
	margin-top: 4px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	font-size: 14px;
}

/* Newsletter sign-up embed */
.wmp-nl-embed {
	margin-top: 8px;
}

.wmp-nl-embed iframe {
	display: block;
	width: 100%;
	max-width: 680px;
	border: 0;
	background: transparent;
}

/* Footer legal line with privacy link */
.wmp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.wmp-footer__legal a {
	font-size: 12px;
	color: #BDBDB8;
}

/* Small print under forms */
.wmp-formnote {
	font-size: 13px;
	color: var(--wmp-muted);
	line-height: 1.7;
}

/* ---------- Palette 1.2: black, white and one yellow (after Monocle) ----------
 * Yellow is only ever a background, always with black text on it.
 * Text and links stay black; yellow marks what you can act on. */

.wmp-header {
	border-bottom-color: var(--wmp-ink);
}

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

.wmp-nav a.is-accent {
	color: var(--wmp-ink);
	box-shadow: inset 0 -3px 0 var(--wmp-accent);
}

.wmp-btn--pill {
	border-radius: 0;
	background: var(--wmp-accent);
	color: var(--wmp-ink) !important;
}

.wmp-btn--accent,
.wp-block-button.wmp-btn--accent .wp-block-button__link,
.wpcf7 input[type="submit"] {
	background: var(--wmp-accent);
	color: var(--wmp-ink) !important;
}

.wmp-btn:hover,
.wpcf7 input[type="submit"]:hover {
	opacity: 1;
	background: var(--wmp-ink);
	color: var(--wmp-white) !important;
}

.wmp-band .wmp-btn:hover {
	background: var(--wmp-white);
	color: var(--wmp-ink) !important;
}

/* Black bands, like Monocle's section bars and footer */
.wmp-band,
.wmp-tripcta {
	background: var(--wmp-ink);
}

.wmp-band__kicker,
.wmp-tripcta__kicker {
	color: var(--wmp-accent);
}

/* Links in text: black, with a yellow underline */
.wmp-content a,
.wmp-meta__langs a,
.wmp-author__link,
.wmp-formnote a {
	color: var(--wmp-ink);
	text-decoration: underline;
	text-decoration-color: var(--wmp-accent);
	text-decoration-thickness: 2px;
}

.wmp-content a:hover,
.wmp-meta__langs a:hover,
.wmp-author__link:hover {
	text-decoration-color: var(--wmp-ink);
}

.wmp-kicker--accent {
	color: var(--wmp-ink);
}

/* Section heads sit under a black rule */
.wmp-sechead {
	border-top: 1px solid var(--wmp-ink);
	padding-top: 14px;
}

.wmp-sechead--foot,
.wmp-split__side .wmp-sechead {
	border-top: 0;
	padding-top: 0;
}

/* Category and search titles as a black bar */
.wmp-archivehead__title {
	display: block;
	background: var(--wmp-ink);
	color: var(--wmp-white);
	padding: 6px 14px;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Soft surfaces in Monocle's cream */
.wmp-newsletter--post,
.wmp-box--summary,
.wmp-split__side {
	background: var(--wmp-cream);
}

:focus-visible,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline-color: var(--wmp-ink);
	border-color: var(--wmp-ink);
}

/* ---------- Homepage 1.3.2: local stories + people side list ---------- */
.wmp-sidelist > li {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--wmp-line);
}
.wmp-sidelist__img {
	flex: none;
	width: 64px;
	margin: 0;
}
.wmp-sidelist__img img {
	border-radius: 50%;
}
.wmp-sidelist__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.wmp-sidelist__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}
.wmp-sidelist__dek {
	font-size: 13px;
	color: var(--wmp-muted);
	line-height: 1.6;
}
.wmp-sidelist__dek p {
	margin: 0;
}
.wmp-cards .wmp-card__dek {
	font-size: 14px;
	color: var(--wmp-muted);
	line-height: 1.7;
}
.wmp-cards .wmp-card__dek p {
	margin: 0;
}

/* ---------- Homepage 1.4: industry topic carousel ---------- */
.wmp-topics__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	border-top: 1px solid var(--wmp-ink);
	padding-top: 14px;
	margin-bottom: 18px;
}
.wmp-topics__label {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
}
.wmp-topics__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	flex: 1 1 auto;
}
.wmp-topics__tab {
	background: none;
	border: 0;
	padding: 4px 0;
	font: inherit;
	font-size: 15px;
	color: var(--wmp-muted);
	cursor: pointer;
}
.wmp-topics__tab:hover {
	color: var(--wmp-ink);
}
.wmp-topics__tab.is-active {
	color: var(--wmp-ink);
	font-weight: 700;
	box-shadow: inset 0 -3px 0 var(--wmp-accent);
}
.wmp-topics__arrows {
	display: flex;
	gap: 8px;
	margin-left: auto;
}
.wmp-topics__arrow {
	width: 36px;
	height: 36px;
	border: 1px solid var(--wmp-ink);
	background: var(--wmp-white);
	color: var(--wmp-ink);
	font-size: 16px;
	cursor: pointer;
}
.wmp-topics__arrow:hover {
	background: var(--wmp-accent);
}
.wmp-topic[hidden] {
	display: none;
}
.wmp-topic {
	display: flex;
	flex-direction: column;
	gap: 14px;
	animation: wmp-fade .35s ease;
}
@keyframes wmp-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
.wmp-topic__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	height: auto;
}
.wmp-topic__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wmp-topic__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.35;
}
.wmp-topic__title a {
	color: var(--wmp-ink);
	text-decoration: none;
}
.wmp-topic__dek {
	margin: 0;
	font-size: 17px;
	line-height: 1.8;
	color: #3A3A3A;
}
.wmp-topic__more {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}
.wmp-topic__more li {
	border-top: 1px solid var(--wmp-line);
	padding: 10px 0;
}
.wmp-topic__more a {
	color: var(--wmp-ink);
	text-decoration: none;
	font-weight: 500;
}
.wmp-topic__more a:hover,
.wmp-topic__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wmp-accent);
	text-decoration-thickness: 2px;
}
.wmp-topic__all {
	align-self: flex-start;
	font-size: 14px;
	font-weight: 700;
	color: var(--wmp-ink);
	text-decoration: underline;
	text-decoration-color: var(--wmp-accent);
	text-decoration-thickness: 2px;
}

/* ---------- 1.4.2: industry tags + even split ---------- */
.wmp-split__main,
.wmp-split__side {
	flex: 1 1 420px;
}
.wmp-sidelist__img {
	width: 96px;
}
.wmp-sidelist__img img {
	width: 96px;
	height: 96px;
	aspect-ratio: 1;
	object-fit: cover;
}
.wmp-sidelist__title {
	font-size: 18px;
}
.wmp-sidelist__dek {
	font-size: 14px;
}
.wmp-tags,
.wmp-tagcloud {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1;
}
.wmp-tags a,
.wmp-tagcloud a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--wmp-line);
	border-radius: 999px;
	color: var(--wmp-ink);
	text-decoration: none;
	font-size: 13px !important;
	background: var(--wmp-white);
}
.wmp-tags a::before,
.wmp-tagcloud a::before {
	content: "#";
	color: var(--wmp-muted);
	margin-right: 2px;
}
.wmp-tags a:hover,
.wmp-tagcloud a:hover {
	border-color: var(--wmp-ink);
}
.wmp-tags .wp-block-post-terms__separator {
	display: none;
}
.wmp-tagcloud .tag-link-count {
	color: var(--wmp-muted);
	margin-left: 4px;
}
.wmp-tagrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding-top: 18px;
}
.wmp-tagrow__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0;
}
.wmp-articlefoot-tags {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--wmp-line);
}
