/*
Theme Name: The African Theatre Magazine
Theme URI: https://www.theafricantheatremagazine.com/
Author: Avance Africa
Description: The magazine's own theme. Replaces JNews with plain WordPress templates and no page builder, reproducing the existing design. Site functionality lives in the TATM Core plugin so nothing is ever tied to a theme again.
Version: 3.51.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tatm
Tags: magazine, news, blog
*/

/* ==========================================================================
   Design tokens
   Read out of the live site's compiled CSS (option `jeg-dynamic-css`), not
   invented. The palette is near-monochrome: black headings, near-black body,
   grey meta, with red used once as a rule across the top of the page.
   ========================================================================== */

:root {
	--tatm-text: #2b2b2b;
	--tatm-heading: #000000;
	--tatm-muted: #999999;
	--tatm-meta: #a0a0a0;
	--tatm-bg: #ffffff;

	/* The magazine's red. One 3px rule, top of page. Used sparingly, as today. */
	--tatm-red: #e92026;

	/* The fullest statement of the brand palette on the site is the three-colour
	   bar above each team card. Kept as tokens so it can be reused deliberately. */
	--tatm-brand-red: #ed1c24;
	--tatm-brand-gold: #d4af00;
	--tatm-brand-purple: #6f2f84;

	--tatm-progress: #8f76b7;
	--tatm-submenu-hover: #dd3333;

	--tatm-rule: #e5e5e5;
	--tatm-well: #f5f5f5;

	--tatm-footer-bg: #000000;
	--tatm-footer-text: #ffffff;
	--tatm-footer-link-hover: #888888;

	/* Body copy is PT Serif. Post titles, the menu and block headings are NOT:
	   the live site asks for a font called Woodford Bourne but declares it with
	   an empty src, so no file is ever fetched and Helvetica takes over. This
	   stack reproduces what readers actually see rather than what was intended. */
	--tatm-font-body: "PT Serif", Georgia, "Times New Roman", serif;
	--tatm-font-display: Helvetica, Arial, sans-serif;

	--tatm-container: 1170px;
	--tatm-gutter: 20px;
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

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

body {
	margin: 0;
	background: var(--tatm-bg);
	color: var(--tatm-text);
	font-family: var(--tatm-font-body);
	font-size: 14px;
	line-height: 1.6em;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--tatm-heading);
	font-family: var(--tatm-font-body);
	font-weight: 700;
}

h1 { font-size: 2.25em; line-height: 1.25; letter-spacing: -.02em; margin: .67em 0 .5em; }
h2 { font-size: 1.953em; line-height: 1.35; }
h3 { font-size: 1.563em; line-height: 1.4; }
h4 { font-size: 1.25em;  line-height: 1.5; }
h5 { font-size: 1.1em;   line-height: 1.6; }
h6 { font-size: .85em; }

a { color: var(--tatm-heading); text-decoration: none; }
a:hover { color: var(--tatm-red); }

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

/* The entry content underlines its links - jnews_entry_link_underline is on. */
.tatm-entry-content a { text-decoration: underline; }

/* ==========================================================================
   Layout
   ========================================================================== */

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

@media (max-width: 1199px) { :root { --tatm-container: 970px; } }
@media (max-width: 991px)  { :root { --tatm-container: 750px; } }

.tatm-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }

/* Every sidebar on this site is on the right - 8/4 of a 12-column grid. */
.tatm-main   { width: 66.666667%; padding: 0 15px; }
.tatm-aside  { width: 33.333333%; padding: 0 15px 0 45px; }

@media (max-width: 991px) {
	.tatm-main, .tatm-aside { width: 100%; padding: 0 15px; }
	.tatm-aside { margin-top: 40px; }
}

.tatm-content { padding: 40px 0 60px; }

/* ==========================================================================
   The red rule - the one place the brand colour appears in the chrome
   ========================================================================== */

.tatm-topbar { background: #000; border-top: 3px solid var(--tatm-red); }

.tatm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 30px;
	/* The live site leaves topbar text at #757575 on black, which is close to
	   unreadable. Reproducing the layout, not the contrast failure. */
	color: #cfcfcf;
	font-family: var(--tatm-font-display);
	font-size: 11px;
	letter-spacing: .03em;
}

.tatm-topbar a { color: #cfcfcf; }
.tatm-topbar a:hover { color: #fff; }
.tatm-topbar__date { text-transform: uppercase; }

.tatm-topbar__socials { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }

.tatm-topbar__btn {
	display: inline-block;
	height: 26px;
	line-height: 26px;
	padding: 0 14px;
	background: var(--tatm-red);
	color: #fff !important;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.tatm-topbar__btn:hover { background: var(--tatm-brand-red); }

/* ==========================================================================
   Midbar - logo left, menu centre, search right
   ========================================================================== */

.tatm-midbar { background: #fff; }

.tatm-midbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 126px;
}

.tatm-branding { flex: 0 0 auto; }
.tatm-branding img { height: 114px; width: auto; }

.tatm-branding__text {
	font-family: var(--tatm-font-display);
	font-size: 28px;
	font-weight: 700;
	color: #000;
	text-transform: uppercase;
	letter-spacing: -.01em;
}

.tatm-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.tatm-midbar__actions { flex: 0 0 auto; }

/* ==========================================================================
   Main menu
   ========================================================================== */

.tatm-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.tatm-nav__list li { position: relative; }

.tatm-nav__list > li > a {
	display: block;
	padding: 0 16px;
	font-family: var(--tatm-font-display);
	font-size: 1em;
	font-weight: 600;
	line-height: 50px;
	text-transform: uppercase;
	color: #000;
}

/* Menu style 1 - a bar that grows under the active item. */
.tatm-nav__list > li > a::before {
	content: "";
	position: absolute;
	left: 16px; right: 16px; bottom: 12px;
	height: 2px;
	background: #000;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.tatm-nav__list > li:hover > a::before,
.tatm-nav__list > li.current-menu-item > a::before { transform: scaleX(1); }

/* Submenus - two levels, no mega menu: every mega-menu row on the site is disabled. */
.tatm-nav__list ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 50;
}
.tatm-nav__list li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }

.tatm-nav__list ul a {
	display: block;
	padding: 8px 18px;
	font-family: var(--tatm-font-display);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #000;
}
.tatm-nav__list ul a:hover { color: var(--tatm-submenu-hover); }

.tatm-search-toggle {
	background: none;
	border: 0;
	padding: 6px;
	cursor: pointer;
	color: #000;
	font-size: 18px;
	line-height: 1;
}

/* ==========================================================================
   Mobile header
   ========================================================================== */

.tatm-mobile-bar { display: none; background: #fff; border-top: 3px solid var(--tatm-red); }

.tatm-mobile-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: 12px;
}
.tatm-mobile-bar .tatm-branding img { height: 48px; }

.tatm-burger {
	background: none; border: 0; padding: 8px; cursor: pointer;
	color: #000; font-size: 20px; line-height: 1;
}

@media (max-width: 991px) {
	.tatm-topbar, .tatm-midbar { display: none; }
	.tatm-mobile-bar { display: block; }
}

.tatm-drawer {
	position: fixed; inset: 0 0 0 auto;
	width: min(84vw, 340px);
	background: #fff;
	padding: 24px 20px;
	transform: translateX(100%);
	transition: transform .3s ease;
	z-index: 1000;
	overflow-y: auto;
	box-shadow: -4px 0 24px rgba(0, 0, 0, .18);
}
.tatm-drawer.is-open { transform: translateX(0); }

.tatm-drawer__list { list-style: none; margin: 0 0 24px; padding: 0; }
.tatm-drawer__list a {
	display: block;
	padding: 11px 0;
	border-bottom: 1px solid var(--tatm-rule);
	font-family: var(--tatm-font-display);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}
.tatm-drawer__list ul { list-style: none; margin: 0; padding: 0 0 0 16px; }

.tatm-drawer__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 24px; cursor: pointer; }

.tatm-overlay {
	position: fixed; inset: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0; visibility: hidden;
	transition: opacity .3s ease, visibility .3s;
	z-index: 999;
}
.tatm-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Article listings
   ========================================================================== */

.tatm-block-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	padding-bottom: 8px;
	border-bottom: 2px solid #000;
}
.tatm-block-heading h2,
.tatm-block-heading h1 {
	margin: 0;
	font-family: var(--tatm-font-display);
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.tatm-list { display: grid; gap: 30px; }
.tatm-list--grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 767px) { .tatm-list--grid { grid-template-columns: 1fr; } }

.tatm-card__thumb { display: block; margin-bottom: 12px; overflow: hidden; background: var(--tatm-well); }
.tatm-card__thumb img { width: 100%; transition: transform .4s ease; }
.tatm-card:hover .tatm-card__thumb img { transform: scale(1.04); }

.tatm-card__title {
	margin: 0 0 8px;
	font-family: var(--tatm-font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
}
.tatm-card__title a { color: #000; }
.tatm-card__title a:hover { color: var(--tatm-red); }

.tatm-card__excerpt { margin: 0; font-size: 14px; line-height: 1.6; }

/* Smaller variant used in sidebars and secondary rails. */
.tatm-card--sm { display: flex; gap: 14px; align-items: flex-start; }
.tatm-card--sm .tatm-card__thumb { flex: 0 0 120px; margin: 0; }
.tatm-card--sm .tatm-card__title { font-size: 15px; }

/* ==========================================================================
   Meta
   ========================================================================== */

.tatm-meta {
	font-family: var(--tatm-font-display);
	font-size: 11px;
	text-transform: uppercase;
	color: var(--tatm-meta);
	letter-spacing: .03em;
}
.tatm-meta a { color: var(--tatm-meta); }
.tatm-meta a:hover { color: #000; }
.tatm-meta > * + *::before { content: "\00b7"; margin: 0 7px; color: var(--tatm-rule); }

.tatm-category {
	display: inline-block;
	padding: 3px 9px;
	background: #000;
	color: #fff !important;
	font-family: var(--tatm-font-display);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.tatm-category:hover { background: var(--tatm-red); }

/* ==========================================================================
   Single article - template 4: full-bleed hero, title overlaid
   ========================================================================== */

.tatm-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
	background: #111 center/cover no-repeat;
	color: #fff;
}
.tatm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.78) 100%);
}
.tatm-hero__inner { position: relative; z-index: 1; padding: 60px 0 48px; max-width: 900px; }

.tatm-hero__title {
	margin: 14px 0 10px;
	color: #fff;
	font-family: var(--tatm-font-display);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
}
.tatm-hero__subtitle {
	margin: 0 0 14px;
	color: rgba(255,255,255,.88);
	font-family: var(--tatm-font-body);
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
}
.tatm-hero .tatm-meta, .tatm-hero .tatm-meta a { color: rgba(255,255,255,.75); }
.tatm-hero .tatm-meta a:hover { color: #fff; }

@media (max-width: 767px) {
	.tatm-hero { min-height: 360px; }
	.tatm-hero__title { font-size: 28px; }
}

/* No featured image - fall back to a plain header rather than an empty black band. */
.tatm-entry-header { padding: 48px 0 10px; }
.tatm-entry-header .tatm-hero__title { color: #000; }

.tatm-entry-content { font-size: 16px; line-height: 1.75; }
.tatm-entry-content p { font-family: var(--tatm-font-body); margin: 0 0 1.4em; }
.tatm-entry-content img { margin: 1.6em 0; }
.tatm-entry-content blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--tatm-red);
	font-size: 19px;
	font-style: italic;
	color: #000;
}

/* Reading progress bar - bottom of the viewport, as configured. */
.tatm-progress {
	position: fixed; left: 0; bottom: 0;
	height: 3px; width: 0;
	background: var(--tatm-progress);
	z-index: 900;
	transition: width .1s linear;
}

/* ==========================================================================
   Share buttons (markup comes from the TATM Core plugin)
   ========================================================================== */

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

.tatm-share__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--tatm-rule);
	font-family: var(--tatm-font-display);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #000;
}
.tatm-share__link:hover { background: #000; color: #fff; border-color: #000; }
.tatm-share__count { color: var(--tatm-muted); font-weight: 400; }
.tatm-share__link:hover .tatm-share__count { color: rgba(255,255,255,.7); }

.tatm-share__total { margin-bottom: 10px; font-family: var(--tatm-font-display); }
.tatm-share__total-n { font-size: 22px; font-weight: 700; }
.tatm-share__total-label { font-size: 11px; text-transform: uppercase; color: var(--tatm-muted); margin-left: 6px; }

.tatm-share--float .tatm-share__list { flex-direction: column; }
.tatm-share--float .tatm-share__label { display: none; }
.tatm-share--float .tatm-share__link { width: 44px; height: 44px; padding: 0; justify-content: center; }

@media (min-width: 1024px) {
	.tatm-share--float {
		position: sticky;
		top: 100px;
		float: left;
		margin-left: -90px;
		width: 60px;
	}
}
@media (max-width: 1023px) { .tatm-share--float { display: none; } }

/* ==========================================================================
   Author box, related, sidebar, pagination
   ========================================================================== */

.tatm-authorbox {
	display: flex;
	gap: 20px;
	margin: 46px 0;
	padding: 24px;
	background: var(--tatm-well);
}
.tatm-authorbox img { border-radius: 50%; flex: 0 0 80px; }
.tatm-authorbox__name { font-family: var(--tatm-font-display); font-size: 16px; font-weight: 700; margin: 0 0 6px; text-transform: uppercase; }
.tatm-authorbox p { margin: 0; font-size: 14px; }

.tatm-widget { margin-bottom: 38px; }
.tatm-widget .widget-title,
.tatm-widget h2 {
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #000;
	font-family: var(--tatm-font-display);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}
.tatm-widget ul { list-style: none; margin: 0; padding: 0; }
.tatm-widget li { padding: 7px 0; border-bottom: 1px solid var(--tatm-rule); }

.tatm-pagination { display: flex; gap: 6px; justify-content: center; margin: 48px 0 0; }
.tatm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px; height: 38px;
	padding: 0 10px;
	border: 1px solid var(--tatm-rule);
	font-family: var(--tatm-font-display);
	font-size: 12px;
	font-weight: 700;
}
.tatm-pagination .page-numbers.current,
.tatm-pagination .page-numbers:hover { background: #000; color: #fff; border-color: #000; }

/* ==========================================================================
   Buttons and forms
   ========================================================================== */

.tatm-btn,
button, input[type="submit"] {
	display: inline-block;
	height: 40px;
	line-height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-family: var(--tatm-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}
.tatm-btn:hover,
button:hover, input[type="submit"]:hover { background: var(--tatm-red); color: #fff; }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tatm-rule);
	border-radius: 0;
	font-family: var(--tatm-font-body);
	font-size: 14px;
	background: #fff;
	color: #000;
}

/* ==========================================================================
   Footer - layout 5: dark, three widget columns, social above, copyright below
   ========================================================================== */

.tatm-footer { background: var(--tatm-footer-bg); color: var(--tatm-footer-text); margin-top: 60px; }
.tatm-footer a { color: var(--tatm-footer-text); }
.tatm-footer a:hover { color: var(--tatm-footer-link-hover); }


.tatm-footer__columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 36px 0 40px; }
@media (max-width: 767px) { .tatm-footer__columns { grid-template-columns: 1fr; } }

.tatm-footer__columns .widget-title,
.tatm-footer__columns h2 {
	margin: 0 0 14px;
	color: #fff;
	font-family: var(--tatm-font-display);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}
.tatm-footer__columns ul { list-style: none; margin: 0; padding: 0; }
.tatm-footer__columns li { padding: 5px 0; }

.tatm-footer__secondary { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 26px; text-align: center; }
.tatm-footer__secondary p { margin: 0; font-size: 12px; color: rgba(255,255,255,.72); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.alignleft   { float: left;  margin: 0 1.5em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }

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

.tatm-skip:focus {
	position: fixed; top: 10px; left: 10px; z-index: 10000;
	width: auto; height: auto; clip: auto;
	padding: 10px 18px; background: #000; color: #fff;
}

/* ==========================================================================
   Corrections after comparing against the live site
   ========================================================================== */

/* The main menu sits to the RIGHT, next to the search icon - not centred. */
.tatm-nav { justify-content: flex-end; }
.tatm-midbar__inner { gap: 16px; }

/* ==========================================================================
   Section headings
   The magazine signature: an italic serif word, centred, under a repeating
   patterned rule. That rule has been the section divider since 2019 - first
   as a border-image, now as this 34x15 tile. Carried over as a component
   rather than hard-coded onto six Elementor element IDs.
   ========================================================================== */

.tatm-section { margin: 54px 0; }

.tatm-section__title {
	position: relative;
	margin: 0 0 30px;
	padding-top: 22px;
	font-family: var(--tatm-font-body);
	font-size: 27px;
	font-style: italic;
	font-weight: 700;
	text-align: center;
	color: #000;
}
.tatm-section__title a { color: inherit; }
.tatm-section__title a:hover { color: var(--tatm-red); }

.tatm-section__title::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 8px;
	background: url(assets/img/border-1.png) repeat-x left center;
	background-size: auto 8px;
}

.tatm-section__title--left { text-align: left; font-size: 24px; }

/* ==========================================================================
   Slider
   ========================================================================== */

.tatm-slider { position: relative; background: #111; }
.tatm-slider__track { position: relative; }

.tatm-slide {
	display: none;
	position: relative;
	min-height: 520px;
	background: #111 center/cover no-repeat;
	align-items: flex-end;
}
.tatm-slide.is-active { display: flex; }

.tatm-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.8) 100%);
}

/* The slide caption lines up with the rest of the page.

   This element also carries .tatm-container, which centres it and caps it at the page
   width. Setting max-width:760px and margin-left:0 here overrode both, pinning the caption
   to the left edge of the viewport while every other section started at the container
   margin. The container keeps its job; the text is narrowed by capping the children. */
.tatm-slide__inner {
	position: relative;
	z-index: 1;
	padding-bottom: 54px;
}

.tatm-slide__inner > * { max-width: 720px; }

.tatm-slide__title {
	margin: 12px 0 0;
	font-family: var(--tatm-font-display);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
}
.tatm-slide__title a { color: #fff; }
.tatm-slide__title a:hover { color: #fff; opacity: .85; }

.tatm-slide__rule { display: block; width: 54px; height: 2px; background: #fff; margin: 18px 0 14px; }

.tatm-slide__excerpt { margin: 0 0 12px; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.6; }
.tatm-slide .tatm-meta, .tatm-slide .tatm-meta a { color: rgba(255,255,255,.75); }

.tatm-slider__dots { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: flex; gap: 8px; }
/* Superseded: see the slider-dot progress indicator further down. */

@media (max-width: 767px) {
	.tatm-slide { min-height: 380px; }
	.tatm-slide__title { font-size: 24px; }
}

/* ==========================================================================
   Latest - three horizontal cards
   ========================================================================== */

.tatm-latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 991px) { .tatm-latest { grid-template-columns: 1fr; } }

.tatm-hcard { display: flex; gap: 14px; align-items: flex-start; }
.tatm-hcard__thumb { flex: 0 0 86px; }
.tatm-hcard__thumb img { width: 86px; height: 62px; object-fit: cover; }

.tatm-hcard__title {
	margin: 0 0 6px;
	font-family: var(--tatm-font-display);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}
.tatm-hcard__title a { color: #000; }
.tatm-hcard__title a:hover { color: var(--tatm-red); }

/* ==========================================================================
   Section block - lead story beside a stacked list
   ========================================================================== */

.tatm-block {
	display: grid;
	grid-template-columns: 62% 1fr;
	grid-template-rows: repeat(2, 1fr);
	gap: 14px;
	min-height: 440px;
}
.tatm-block > .tatm-tile--lead { grid-row: 1 / span 2; }

@media (max-width: 767px) {
	.tatm-block { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
	.tatm-block > .tatm-tile--lead { grid-row: auto; }
}

.tatm-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 210px;
	background: #2a2a2a center/cover no-repeat;
	overflow: hidden;
}
.tatm-tile--lead { min-height: 440px; }

@media (max-width: 767px) {
	.tatm-tile, .tatm-tile--lead { min-height: 230px; }
}

.tatm-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%);
	transition: background .3s ease;
}
.tatm-tile:hover::after { background: linear-gradient(to bottom, rgba(0,0,0,.15) 20%, rgba(0,0,0,.88) 100%); }

/* A full-tile hit area, so the whole card is clickable without nesting links. */
.tatm-tile__link { position: absolute; inset: 0; z-index: 2; }

.tatm-tile__body { position: relative; z-index: 3; padding: 18px 20px; pointer-events: none; }
.tatm-tile__body a { pointer-events: auto; }

.tatm-tile__title {
	margin: 8px 0 0;
	font-family: var(--tatm-font-display);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.tatm-tile--lead .tatm-tile__title { font-size: 25px; }
.tatm-tile__title a { color: #fff; }
.tatm-tile__title a:hover { color: #fff; text-decoration: underline; }

.tatm-tile .tatm-category { background: rgba(255,255,255,.2); }

/* ==========================================================================
   Parity corrections
   Every number below was measured off the live site, not estimated.
   See wp-content/tatm-migration/PARITY.md for the before/after table.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navigation
   Live: font-size 14px, weight 600, line-height normal, padding 6px 0.
   The spacing between items comes from the list, not from padding on the
   anchor - which also keeps the hover rule the width of the word.
   -------------------------------------------------------------------------- */

.tatm-nav__list { gap: 26px; align-items: center; }

.tatm-nav__list > li > a {
	padding: 6px 0;
	font-size: 14px;
	line-height: normal;
}

.tatm-nav__list > li > a::before {
	left: 0;
	right: 0;
	bottom: 0;
}

/* Submenus hang off the item itself now that there is no horizontal padding. */
.tatm-nav__list ul { left: -18px; }

/* --------------------------------------------------------------------------
   Sticky header
   Live: a separate bar, position:fixed, top:0, height 83px, white, that
   appears once the midbar has scrolled away. It is a second element rather
   than the midbar changing position, so the page does not jump by 126px.
   -------------------------------------------------------------------------- */

.tatm-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 800;
	height: 83px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
	transform: translateY(-100%);
	transition: transform .28s ease;
	visibility: hidden;
}
.tatm-sticky.is-visible { transform: translateY(0); visibility: visible; }

.tatm-sticky__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 83px;
}

.tatm-sticky .tatm-branding { flex: 0 0 auto; }
.tatm-sticky .tatm-branding img { height: 56px; width: auto; }
.tatm-sticky .tatm-nav { flex: 1 1 auto; justify-content: flex-end; }

/* The admin bar sits above everything when logged in; do not hide under it. */
.admin-bar .tatm-sticky { top: 32px; }

@media (max-width: 991px) {
	.tatm-sticky { display: none; }
	.admin-bar .tatm-sticky { top: 46px; }
}

/* --------------------------------------------------------------------------
   Sticky sidebar
   Live: position:fixed at top 103px - the 83px sticky bar plus a 20px gap.
   position:sticky does the same job without the JavaScript JNews needed, but
   only if no ancestor has overflow set, so .tatm-row must stay visible.
   -------------------------------------------------------------------------- */

/* The column must stretch to the full height of the row, or the inner element has no
   distance to travel and position:sticky silently does nothing - which is exactly what
   align-self:flex-start caused here: it collapsed the column to its content height. */
.tatm-aside { align-self: stretch; }

@media (min-width: 992px) {
	.tatm-aside__inner {
		position: sticky;
		top: 103px;
	}
	.admin-bar .tatm-aside__inner { top: 135px; }
}

/* The float share rail clears the same bar. */
@media (min-width: 1024px) {
	.tatm-share--float { top: 103px; }
	.admin-bar .tatm-share--float { top: 135px; }
}

/* --------------------------------------------------------------------------
   Back to top
   Live: 46x46, fixed bottom-right, appears on scroll. Sits clear of the
   Donate/Write floating tabs, which occupy the right edge at mid-height.
   -------------------------------------------------------------------------- */

.tatm-totop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 850;
	width: 46px;
	height: 46px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #000;
	color: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.tatm-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tatm-totop:hover { background: var(--tatm-red); }

/* --------------------------------------------------------------------------
   Social links
   Live: a 42px coloured disc with the network name beside it, uppercase.
   One component, three placements - top bar, drawer and footer.
   -------------------------------------------------------------------------- */

.tatm-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tatm-social__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--tatm-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
}
.tatm-social__link:hover { color: #fff; }

.tatm-social__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 17px;
	transition: transform .25s ease, opacity .25s ease;
}
.tatm-social__link:hover .tatm-social__icon { transform: translateY(-3px) scale(1.05); opacity: .92; }
.tatm-social__icon svg { display: block; }

/* Per-network colours now live further down as --tatm-brand variables, which drive the
   disc, the glow and the ring from one value. The old block set `background` directly at a
   higher specificity than the variable-based rule and quietly won, leaving X as a black disc
   on a black footer. */

/* Top bar: marks only, no discs, no labels - there is no room for them. */
.tatm-topbar__right { display: flex; align-items: center; gap: 16px; }

.tatm-social--compact { gap: 0 12px; }
.tatm-social--compact .tatm-social__label { display: none; }
.tatm-social--compact .tatm-social__icon {
	width: auto;
	height: auto;
	border-radius: 0;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	font-size: 14px;
	color: #fff;
}
.tatm-social--compact .tatm-social__link:hover .tatm-social__icon { transform: none; opacity: .75; }

/* Drawer: stacked, left aligned, dark text on white. */
.tatm-drawer .tatm-social { justify-content: flex-start; gap: 10px 18px; }
.tatm-drawer .tatm-social__link { color: #000; }
.tatm-drawer .tatm-social__icon { width: 34px; height: 34px; font-size: 14px; color: #fff; }
.tatm-drawer .tatm-social__label { display: none; }

/* Footer row sits above the widget columns. */
.tatm-footer__social { padding: 34px 0 24px; }

/* ==========================================================================
   Round two of parity corrections
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons must not be styled globally.

   The previous rule set `button { height:40px; line-height:40px }` on every
   button element on the page. Plugins use buttons for things that are not
   buttons: the video grid builds each thumbnail as a <button> with
   aspect-ratio 16/9, and a fixed 40px height collapsed all four cards into
   strips. A theme has no business sizing another plugin's controls.

   Styling now applies only where the theme asks for it.
   -------------------------------------------------------------------------- */

button,
input[type="submit"] {
	height: auto;
	line-height: inherit;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	cursor: pointer;
}

.tatm-btn,
.tatm-searchform button,
.tatm-entry-content input[type="submit"],
.wpcf7 input[type="submit"],
.tatm-widget input[type="submit"] {
	display: inline-block;
	height: 40px;
	line-height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-family: var(--tatm-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.tatm-btn:hover,
.tatm-searchform button:hover,
.tatm-entry-content input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.tatm-widget input[type="submit"]:hover {
	background: var(--tatm-red);
	color: #fff;
}

/* --------------------------------------------------------------------------
   The patterned rule.
   Live renders the 34x15 tile at background-size 10px 8px, not `auto 8px`.
   At `auto` the tile keeps its own proportions and comes out roughly 18px
   wide, so the pattern reads twice as coarse as the real one.
   -------------------------------------------------------------------------- */

.tatm-section__title::before {
	background-size: 10px 8px;
}



/* --------------------------------------------------------------------------
   Footer menus have no rules between items.

   `.tatm-widget li { border-bottom }` was written for the article sidebar and
   then applied to the footer too, drawing a line under About us, Donate,
   Write, Subscribe and Contact Us that the original never had.
   -------------------------------------------------------------------------- */

.tatm-footer .tatm-widget li,
.tatm-footer__columns li {
	border-bottom: 0;
	padding: 5px 0;
}

.tatm-footer .tatm-widget .widget-title,
.tatm-footer .tatm-widget h2 {
	border-bottom: 0;
	padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Section entrance animation.
   The live blocks fade and rise as they come into view. Honour a reader who
   has asked for reduced motion.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.tatm-js .tatm-animate {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
		will-change: opacity, transform;
	}

	.tatm-js .tatm-animate.is-in { opacity: 1; transform: none; }

	/* Tiles inside a block arrive one after another rather than all at once. */
	.tatm-animate .tatm-tile { transition-delay: 0s; }
	.tatm-animate.is-in .tatm-tile:nth-child(2) { transition-delay: .09s; }
	.tatm-animate.is-in .tatm-tile:nth-child(3) { transition-delay: .18s; }
}

/* Nothing above hides anything unless the .tatm-js flag is on the document, which an inline
   script in the head sets before first paint. If that script never runs - blocked, failed,
   scripting off - the sections are simply visible, because content must not depend on an
   animation to appear. Reduced-motion readers skip the whole block for the same reason. */

/* --------------------------------------------------------------------------
   Video grid: give the section the same width as the rest of the page and
   stop the cards collapsing if a YouTube thumbnail 404s.
   -------------------------------------------------------------------------- */



/* Slider arrows. The slider auto-advances and pauses on hover — without a visible
   control, a reader whose pointer happens to rest on the hero sees a static image
   and reasonably concludes it is not a slider at all. */
.tatm-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: rgba(0, 0, 0, .3);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s ease, background .2s ease;
}
.tatm-slider:hover .tatm-slider__arrow,
.tatm-slider__arrow:focus-visible { opacity: 1; }
.tatm-slider__arrow:hover { background: var(--tatm-red); border-color: var(--tatm-red); }
.tatm-slider__arrow--prev { left: 20px; }
.tatm-slider__arrow--next { right: 20px; }

@media (max-width: 767px) { .tatm-slider__arrow { display: none; } }

/* --------------------------------------------------------------------------
   Contact Form 7
   The plugin ships almost no styling of its own, so a theme has to dress it
   or it renders as raw browser defaults in the middle of the page.
   -------------------------------------------------------------------------- */

.wpcf7 { max-width: 640px; }

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

.wpcf7-form label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--tatm-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #000;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--tatm-rule);
	border-radius: 0;
	background: #fff;
	font-family: var(--tatm-font-body);
	font-size: 15px;
	color: #000;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	outline: 0;
	border-color: #000;
}

.wpcf7-form textarea { min-height: 170px; resize: vertical; }

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

/* The plugin's own messages, which otherwise inherit nothing. */
.wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--tatm-red);
	font-family: var(--tatm-font-display);
	font-size: 12px;
}

.wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 12px 14px !important;
	border: 1px solid var(--tatm-rule) !important;
	font-size: 14px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--tatm-red) !important; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32 !important; }

/* --------------------------------------------------------------------------
   Tile hover: the photograph zooms and tilts, nothing else moves.

   The image lives in .tatm-tile__media, a layer of its own beneath the
   gradient and the headline. Transforming the tile itself would drag the
   shading and the type along with it, which reads as the whole card wobbling
   rather than the picture coming alive behind it.

   Why these numbers: a 1.2deg rotation on a box leaves triangular gaps at the
   corners unless the layer is also scaled past about 1.04. 1.08 clears it with
   room to spare at every tile size, and the media layer is inset by 2% as a
   second guarantee. 700ms on a gentle ease-out is slow enough to read as
   deliberate rather than twitchy.
   -------------------------------------------------------------------------- */

.tatm-tile { overflow: hidden; }

.tatm-tile__media {
	position: absolute;
	inset: -2%;
	display: block;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(1) rotate(0deg);
	transform-origin: center;
	transition: transform .7s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
	z-index: 0;
}

.tatm-tile:hover .tatm-tile__media,
.tatm-tile:focus-within .tatm-tile__media {
	transform: scale(1.08) rotate(1.2deg);
}

/* The gradient sits above the photograph and stays exactly where it is, so the
   headline never loses its contrast while the image moves underneath. */
.tatm-tile::after { z-index: 1; }
.tatm-tile__link { z-index: 3; }
.tatm-tile__body { z-index: 4; }

/* A reader who has asked for less motion gets the darkening and nothing else. */
@media (prefers-reduced-motion: reduce) {
	.tatm-tile__media { transition: none; }
	.tatm-tile:hover .tatm-tile__media,
	.tatm-tile:focus-within .tatm-tile__media { transform: none; }
}

/* Touch screens have no hover state; the transition would only fire on tap and
   stick. Leave the image still. */
@media (hover: none) {
	.tatm-tile:hover .tatm-tile__media { transform: none; }
}

/* ==========================================================================
   Footer — matched against the live layout
   ========================================================================== */

/* The patterned rule marks the edge between the white page and the black
   footer. It belongs at the very top of the footer, not further down above
   the widget columns where an earlier version put it. */
.tatm-footer {
	position: relative;
	padding-top: 12px;
}

.tatm-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 12px;
	background: url(assets/img/border-1.png) repeat-x left center;
	background-size: 10px 12px;
}

/* Headings inside footer widgets inherit the footer's own colour.

   The global rule paints every h1-h6 with --tatm-heading, which is black. The
   first column's widget wraps its lines in <h4>, so "Become a partner/Sponsor
   our work." was rendering in black on a black background — present in the
   markup, invisible on screen. */
.tatm-footer h1,
.tatm-footer h2,
.tatm-footer h3,
.tatm-footer h4,
.tatm-footer h5,
.tatm-footer h6 {
	color: var(--tatm-footer-text);
}

.tatm-footer .textwidget h4 {
	margin: 0 0 .6em;
	font-family: var(--tatm-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

/* Vertical rules between the three columns, as on the live site. The rules sit
   on the columns themselves rather than the grid, so an empty middle column
   still divides the row the way it does today. */
.tatm-footer__columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.tatm-footer__column {
	padding: 40px 30px;
	text-align: center;
}

.tatm-footer__column + .tatm-footer__column {
	border-left: 1px solid rgba(255, 255, 255, .14);
}

@media (max-width: 767px) {
	.tatm-footer__columns { grid-template-columns: 1fr; }
	.tatm-footer__column + .tatm-footer__column {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .14);
	}
	/* An empty column is just a gap on a phone; collapse it. */
	.tatm-footer__column:empty { display: none; }
}

.tatm-footer__columns .widget-title,
.tatm-footer__columns h2 {
	margin: 0 0 16px;
	font-size: 14px;
	letter-spacing: .06em;
}

.tatm-footer__columns ul { list-style: none; margin: 0; padding: 0; }
.tatm-footer__columns li { padding: 6px 0; border-bottom: 0; }

.tatm-footer__secondary {
	border-top: 1px solid rgba(255, 255, 255, .14);
	padding: 22px 0 28px;
	text-align: center;
}

/* ==========================================================================
   Footer social icons — white marks, brand discs, a glow on hover
   ========================================================================== */

/* Each network carries its own colour as a variable so the disc, the glow and
   the ring all come from one value instead of being repeated three times. */
.tatm-social--facebook  .tatm-social__icon { --tatm-brand: #1877f2; }
.tatm-social--twitter   .tatm-social__icon { --tatm-brand: #ffffff; }
.tatm-social--instagram .tatm-social__icon { --tatm-brand: #ee2a7b; }
.tatm-social--youtube   .tatm-social__icon { --tatm-brand: #ff0000; }
.tatm-social--linkedin  .tatm-social__icon { --tatm-brand: #0a66c2; }
.tatm-social--tiktok    .tatm-social__icon { --tatm-brand: #25f4ee; }

.tatm-social__icon {
	position: relative;
	background: var(--tatm-brand);
	/* No grey outlines. X/Twitter carried a 1px #555 ring, which on a black
	   footer read as a smudge round the mark rather than a border. */
	border: 0;
	box-shadow: none;
	color: #fff;
	transition: transform .3s cubic-bezier(.22, .61, .36, 1),
	            box-shadow .3s ease,
	            filter .3s ease;
}

/* Instagram keeps its gradient; the variable only drives its glow. */
.tatm-social--instagram .tatm-social__icon {
	background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7);
}

/* X on black needs the disc inverted — a black disc on a black footer is a
   hole. White disc, black mark. */
.tatm-social--twitter .tatm-social__icon { color: #000; }

.tatm-social__icon svg { position: relative; z-index: 1; display: block; }

/* The glow itself: a soft bloom in the network's own colour, plus a thin ring
   just outside the disc so the shape stays crisp at the centre of it. */
.tatm-social__link:hover .tatm-social__icon,
.tatm-social__link:focus-visible .tatm-social__icon {
	transform: translateY(-4px) scale(1.07);
	box-shadow:
		0 0 0 3px rgba(255, 255, 255, .16),
		0 8px 26px -4px var(--tatm-brand),
		0 0 22px -2px var(--tatm-brand);
	filter: brightness(1.12);
}

/* The label brightens with it, so the whole item reads as one control rather
   than a disc that moves and a word that does not. */
.tatm-social__label {
	transition: color .3s ease, letter-spacing .3s ease;
}

.tatm-social__link:hover .tatm-social__label,
.tatm-social__link:focus-visible .tatm-social__label {
	color: #fff;
	letter-spacing: .12em;
}

/* Keyboard users get the same treatment, and a visible focus ring. */
.tatm-social__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.tatm-social__icon,
	.tatm-social__label { transition: none; }
	.tatm-social__link:hover .tatm-social__icon { transform: none; }
}

/* The compact set in the top bar has no discs, so it glows as text instead. */
.tatm-social--compact .tatm-social__icon {
	background: none !important;
	box-shadow: none !important;
	color: #fff;
}
.tatm-social--compact .tatm-social__link:hover .tatm-social__icon {
	transform: translateY(-2px);
	box-shadow: none !important;
	filter: drop-shadow(0 0 6px rgba(255, 255, 255, .85));
}

/* ==========================================================================
   One rule between the columns and the partners strip, not two
   ==========================================================================

   The widget columns close with a border-bottom and the logo-slider plugin
   opens with its own border-top, so the two stacked into a doubled line with a
   34px gap between them. The plugin sets its borders with !important from an
   inline <style> printed after this sheet, so overriding it needs both the
   extra specificity and the flag. The columns keep their rule; the slider
   drops its top one and keeps the bottom, which closes the strip above the
   copyright. */

.tatm-footer .tatm-logo-slider--footer {
	border-top: 0 !important;
	margin-top: 0 !important;
}

/* ==========================================================================
   Video cards — play button and title given their own space
   ==========================================================================

   The card laid the play button and the title on top of each other. At four
   across the cards are only ~215px wide and 150px tall, the button is centred
   at y41–109 and the title sat at y81–133: twenty-eight pixels of collision,
   worse the longer the title. These are YouTube titles, so they are long.

   Rather than shrink the button and hope, the card is split: the thumbnail
   keeps a 16/9 frame with the button centred on it, and the title sits in a
   band of its own beneath. They cannot overlap at any title length or card
   width.

   The plugin's stylesheet is enqueued after the theme's, so these rules are
   scoped under .tatm-section to win on specificity rather than !important.
   -------------------------------------------------------------------------- */

:root { --tatm-video-caption: 64px; }

.tatm-section .atm-video-card {
	position: relative;
	display: block;
	aspect-ratio: auto;
	min-height: 0;
	padding: 0;
	background: #111;
	overflow: hidden;
	border-radius: 0;
}

/* The thumbnail keeps the shape YouTube delivers. */
.tatm-section .atm-video-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.tatm-section .atm-video-card:hover img,
.tatm-section .atm-video-card:focus-visible img {
	transform: scale(1.06);
}

/* The darkening covers the picture only, never the caption band. */
.tatm-section .atm-video-shade {
	top: 0;
	left: 0;
	right: 0;
	bottom: var(--tatm-video-caption);
	background: linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45));
	transition: background .3s ease;
}

.tatm-section .atm-video-card:hover .atm-video-shade {
	background: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .55));
}

/* Centred on the picture, not on the whole card. translate(-50%,-50%) rather
   than a pixel offset, so the button can be resized without the centring
   having to be recalculated. */
.tatm-section .atm-video-play {
	top: calc((100% - var(--tatm-video-caption)) / 2);
	left: 50%;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
	transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease;
}

.tatm-section .atm-video-card:hover .atm-video-play,
.tatm-section .atm-video-card:focus-visible .atm-video-play {
	transform: translate(-50%, -50%) scale(1.12);
	box-shadow: 0 6px 22px -4px rgba(242, 75, 70, .9);
}

/* The caption band: its own strip at the foot of the card, two lines at most,
   so a long title truncates instead of climbing back over the picture. */
.tatm-section .atm-video-title {
	/* Static, not absolute. An absolutely positioned element has its display
	   blockified, so `display:-webkit-box` computes to `flow-root` and
	   -webkit-line-clamp silently stops working — which is why long titles ran
	   to three lines and were clipped mid-word instead of ending in an
	   ellipsis. The plugin had the same conflict, so the clamp it declares has
	   never taken effect either. In normal flow the clamp works. */
	position: static;
	height: var(--tatm-video-caption);
	/* -webkit-line-clamp cannot be used here, and the plugin declaring it has
	   never worked either: the card is a <button>, and a button blockifies its
	   children, so `display:-webkit-box` always computes to `flow-root` and the
	   clamp is discarded. !important does not help — the value is not being
	   overridden, it is being blockified.
	
	   So the overflow is masked instead. A long title fades out at the foot of
	   its band rather than being guillotined mid-letter, which reads as
	   deliberate and needs no layout trickery. */
	display: block;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent 100%);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent 100%);
	margin: 0;
	padding: 11px 13px;
	background: #111;
	color: #fff;
	font-family: var(--tatm-font-display);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	text-shadow: none;
}

@media (max-width: 767px) {
	:root { --tatm-video-caption: 58px; }
	.tatm-section .atm-video-title { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.tatm-section .atm-video-card img,
	.tatm-section .atm-video-play { transition: none; }
	.tatm-section .atm-video-card:hover img { transform: none; }
	.tatm-section .atm-video-card:hover .atm-video-play { transform: translate(-50%, -50%); }
}

/* ==========================================================================
   Navigation
   ==========================================================================

   The underline is the magazine's three-colour rule — the same red, gold and
   purple that sits under PARTNERS AND COLLABORATORS and above each team card.
   It has been the brand's signature since 2019 and had no business being a
   plain black bar in the menu.
   -------------------------------------------------------------------------- */

:root {
	--tatm-gold: #ffd400;
	--tatm-brand-rule: linear-gradient(90deg,
		var(--tatm-brand-red) 0 33.333%,
		var(--tatm-gold) 33.333% 66.666%,
		var(--tatm-brand-purple) 66.666% 100%);
}

.tatm-nav__list > li > a {
	position: relative;
	transition: color .25s ease;
}

.tatm-nav__list > li > a:hover { color: #000; }

/* The rule grows from the left on hover and stays put on the current page.
   scaleX on a 3px strip is cheap to animate — no layout work per frame. */
.tatm-nav__list > li > a::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--tatm-brand-rule);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

.tatm-nav__list > li:hover > a::before,
.tatm-nav__list > li:focus-within > a::before,
.tatm-nav__list > li.current-menu-item > a::before,
.tatm-nav__list > li.current_page_item > a::before,
.tatm-nav__list > li.current-menu-ancestor > a::before {
	transform: scaleX(1);
}

/* A parent with children earns a chevron, so "Our Stories" does not look like
   a dead link. It turns when the menu is open. */
.tatm-nav__list > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 7px;
	vertical-align: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transform-origin: center;
	transition: transform .28s ease;
}

.tatm-nav__list > li.menu-item-has-children:hover > a::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

/* --------------------------------------------------------------------------
   Dropdown
   Was a hard 1px black box that appeared instantly. Now it lifts in on a
   shadow, carries the brand rule along its top edge, and each row slides its
   own accent in on hover.
   -------------------------------------------------------------------------- */

.tatm-nav__list ul {
	left: -14px;
	min-width: 232px;
	padding: 10px 0;
	background: #fff;
	border: 0;
	border-radius: 2px;
	box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .08);
	transform: translateY(14px);
	transition: opacity .26s ease, transform .26s cubic-bezier(.22, .61, .36, 1), visibility .26s;
}

/* The same three colours cap the panel, tying it to the menu above it. */
.tatm-nav__list ul::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--tatm-brand-rule);
	border-radius: 2px 2px 0 0;
}

.tatm-nav__list li:hover > ul,
.tatm-nav__list li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tatm-nav__list ul a {
	position: relative;
	padding: 10px 20px 10px 22px;
	font-size: 12px;
	letter-spacing: .04em;
	color: #333;
	transition: color .2s ease, background .2s ease, padding-left .2s ease;
}

/* A short brand bar slides in at the left edge of the row being pointed at. */
.tatm-nav__list ul a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 0;
	background: var(--tatm-brand-rule);
	transform: translateY(-50%);
	transition: height .22s ease;
}

.tatm-nav__list ul a:hover,
.tatm-nav__list ul a:focus-visible {
	color: #000;
	background: #faf9f7;
	padding-left: 26px;
}

.tatm-nav__list ul a:hover::before,
.tatm-nav__list ul a:focus-visible::before {
	height: 62%;
}

/* The current page inside a dropdown keeps its bar without needing a pointer. */
.tatm-nav__list ul li.current-menu-item > a { color: #000; }
.tatm-nav__list ul li.current-menu-item > a::before { height: 62%; }

@media (prefers-reduced-motion: reduce) {
	.tatm-nav__list > li > a::before,
	.tatm-nav__list ul,
	.tatm-nav__list ul a,
	.tatm-nav__list ul a::before,
	.tatm-nav__list > li.menu-item-has-children > a::after { transition: none; }
}

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

.tatm-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #000;
	transition: background .22s ease, color .22s ease, transform .22s ease;
}

.tatm-search-toggle svg { display: block; }

.tatm-search-toggle:hover,
.tatm-search-toggle[aria-expanded="true"] {
	background: #000;
	color: #fff;
	transform: scale(1.06);
}

.tatm-search-toggle:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Top bar polish
   -------------------------------------------------------------------------- */

.tatm-topbar__nav a {
	position: relative;
	padding-bottom: 2px;
	transition: color .22s ease;
}

.tatm-topbar__nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--tatm-brand-rule);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .28s ease;
}

.tatm-topbar__nav a:hover::after { transform: scaleX(1); }

.tatm-topbar__btn {
	transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.tatm-topbar__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px -6px var(--tatm-red);
}

/* The sticky bar inherits all of the above; it only needs its own spacing. */
.tatm-sticky .tatm-nav__list { gap: 22px; }

/* --------------------------------------------------------------------------
   Sticky bar
   It used to snap in on a plain ease. Now it eases out of the top edge with a
   slight settle, fades as it travels, and carries the brand rule on its lower
   edge so it reads as part of the same system as the menu underline.
   -------------------------------------------------------------------------- */

.tatm-sticky {
	transform: translateY(-100%);
	opacity: 0;
	transition:
		transform .42s cubic-bezier(.16, .84, .32, 1),
		opacity .3s ease,
		visibility .42s;
	box-shadow: 0 4px 20px -6px rgba(0, 0, 0, .22);
	will-change: transform;
}

.tatm-sticky.is-visible {
	transform: translateY(0);
	opacity: 1;
}

/* The same three colours close the bar off, matching the menu rule. */
.tatm-sticky::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--tatm-brand-rule);
}

/* Bigger mark, and held inside the bar so it can never spill past it. */
.tatm-sticky .tatm-branding { display: flex; align-items: center; min-width: 0; }

.tatm-sticky .tatm-branding img {
	height: 64px;
	width: auto;
	max-height: calc(83px - 12px);
	object-fit: contain;
	transition: transform .42s cubic-bezier(.16, .84, .32, 1);
}

/* The mark settles in a fraction behind the bar rather than arriving with it,
   which is what makes the whole thing feel deliberate instead of abrupt. */
.tatm-sticky .tatm-branding img { transform: translateY(-6px) scale(.92); }
.tatm-sticky.is-visible .tatm-branding img { transform: none; }

/* No overflow:hidden here. It was added to stop the larger mark spilling out of the bar,
   but the dropdown panels are children of this element — clipping the bar clipped them
   too, so the sticky menu appeared to have no submenus at all. The mark is held by its
   own max-height instead, which solves the original problem without hiding anything. */
.tatm-sticky { z-index: 900; }
.tatm-sticky .tatm-nav__list ul { z-index: 950; }

@media (prefers-reduced-motion: reduce) {
	.tatm-sticky,
	.tatm-sticky .tatm-branding img { transition: none; }
	.tatm-sticky .tatm-branding img { transform: none; }
}

/* ==========================================================================
   Navigation underline, second pass
   ==========================================================================

   The first version was too heavy: a full-width three-colour bar under every
   item, drawn at full strength whether the page was active or merely pointed
   at, and repeated again along the top of the dropdown so the two sat as a
   doubled line a few pixels apart.

   Now the rule is a short centred mark by default — enough to say "you are
   here" without shouting — and it opens out to the full width of the word on
   hover. The dropdown no longer repeats it.
   -------------------------------------------------------------------------- */

.tatm-nav__list > li > a::before {
	left: 50%;
	right: auto;
	width: 100%;
	max-width: 100%;
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
	transition: transform .36s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}

/* Active page: a short mark, centred, at ease. */
.tatm-nav__list > li.current-menu-item > a::before,
.tatm-nav__list > li.current_page_item > a::before,
.tatm-nav__list > li.current-menu-ancestor > a::before {
	transform: translateX(-50%) scaleX(.34);
	opacity: .95;
}

/* Hover and keyboard focus open it to the full width of the item. */
.tatm-nav__list > li:hover > a::before,
.tatm-nav__list > li:focus-within > a::before,
.tatm-nav__list > li.current-menu-item:hover > a::before,
.tatm-nav__list > li.current_page_item:hover > a::before {
	transform: translateX(-50%) scaleX(1);
	opacity: 1;
}

/* The dropdown does not repeat the rule. With the panel sitting directly
   beneath the item, the item's own underline and a cap on the panel read as
   one doubled line rather than two deliberate marks. */
.tatm-nav__list ul::before { content: none; }

/* Without the cap the panel needs its own quiet edge. */
.tatm-nav__list ul {
	border-top: 1px solid rgba(0, 0, 0, .07);
}

/* The top-bar links get the same treatment at a smaller scale. */
.tatm-topbar__nav a::after {
	left: 50%;
	right: auto;
	width: 100%;
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
}

.tatm-topbar__nav a:hover::after {
	transform: translateX(-50%) scaleX(1);
}

/* ==========================================================================
   Hero slider — the caption animates in on every slide
   ==========================================================================

   Each element arrives a beat after the one above it, so the eye is led from
   the category, through the headline, to the standfirst. The slide is
   display:none until it becomes active, so the animation restarts on every
   change without any JavaScript having to retrigger it.
   -------------------------------------------------------------------------- */

@keyframes tatm-slide-in {
	from { opacity: 0; transform: translateY(26px); }
	to   { opacity: 1; transform: none; }
}

@keyframes tatm-rule-in {
	from { opacity: 0; transform: scaleX(0); }
	to   { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
	.tatm-slide.is-active .tatm-category,
	.tatm-slide.is-active .tatm-slide__title,
	.tatm-slide.is-active .tatm-slide__excerpt,
	.tatm-slide.is-active .tatm-meta {
		opacity: 0;
		animation: tatm-slide-in .68s cubic-bezier(.16, .84, .32, 1) forwards;
	}

	.tatm-slide.is-active .tatm-category    { animation-delay: .06s; }
	.tatm-slide.is-active .tatm-slide__title { animation-delay: .16s; }
	.tatm-slide.is-active .tatm-slide__rule  {
		transform-origin: left center;
		animation: tatm-rule-in .5s cubic-bezier(.16, .84, .32, 1) .32s backwards;
	}
	.tatm-slide.is-active .tatm-slide__excerpt { animation-delay: .4s; }
	.tatm-slide.is-active .tatm-meta           { animation-delay: .5s; }


}

/* ==========================================================================
   Slider dots — a progress indicator rather than four white circles
   ==========================================================================

   The dots marked position and nothing else. Now the active one stretches
   into a pill that fills with the magazine's three colours over the six
   seconds until the slide changes, so the control also answers "how long have
   I got?" — which is the question a reader actually has when something is
   moving on its own.

   The fill is a CSS animation on .is-active, so it restarts by itself every
   time the class moves to another dot. No JavaScript keeps it in sync.
   -------------------------------------------------------------------------- */

.tatm-slider__dots {
	align-items: center;
	gap: 9px;
}

.tatm-slider__dot {
	position: relative;
	width: 10px;
	height: 10px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .34);
	cursor: pointer;
	transition:
		width .42s cubic-bezier(.22, .61, .36, 1),
		background .3s ease,
		transform .25s ease;
}

.tatm-slider__dot:hover {
	background: rgba(255, 255, 255, .62);
	transform: scale(1.18);
}

.tatm-slider__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* The active dot opens into a track for the fill to run along. */
.tatm-slider__dot.is-active {
	width: 52px;
	background: rgba(255, 255, 255, .26);
	transform: none;
}

.tatm-slider__dot.is-active::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tatm-brand-rule);
	transform-origin: left center;
	animation: tatm-dot-fill 6s linear forwards;
}

@keyframes tatm-dot-fill {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

/* The autoplay pauses while the pointer is over the slider, so the fill has to
   pause with it — otherwise the bar finishes and then nothing happens, which
   reads as broken. */
.tatm-slider:hover .tatm-slider__dot.is-active::after {
	animation-play-state: paused;
}

/* Without the timer the fill would be a lie, so show the brand rule solid and
   skip the animation entirely. */
@media (prefers-reduced-motion: reduce) {
	.tatm-slider__dot { transition: none; }
	.tatm-slider__dot.is-active::after { animation: none; transform: scaleX(1); }
}

@media (max-width: 767px) {
	.tatm-slider__dot.is-active { width: 38px; }
}

/* --------------------------------------------------------------------------
   Images in article content must never exceed the column.

   The caption shortcode writes an inline `width` on the figure equal to the
   image's natural size — 2560px for a scaled upload. `max-width:100%` then
   resolves against that and holds nothing back, so the picture breaks out of
   the column and the page gains a horizontal scrollbar. The inline style has
   to be beaten with !important; a filter now stops it being written at all,
   but 85 posts already carry captions saved with it.
   -------------------------------------------------------------------------- */

.tatm-entry-content figure,
.tatm-entry-content .wp-caption,
.tatm-entry-content .wp-block-image {
	width: auto !important;
	max-width: 100% !important;
	height: auto;
	margin-left: 0;
	margin-right: 0;
}

.tatm-entry-content img,
.tatm-entry-content figure img {
	max-width: 100%;
	width: auto;
	height: auto;
}

/* A last line of defence: nothing in the article may force the page wider. */
.tatm-entry-content { overflow-wrap: break-word; }
.tatm-entry-content pre,
.tatm-entry-content table { max-width: 100%; overflow-x: auto; }

/* --------------------------------------------------------------------------
   Archive description
   Rendered in full for search engines and first-time readers, collapsed to a
   few lines for everyone else.
   -------------------------------------------------------------------------- */

.tatm-archive-description {
	position: relative;
	margin: -6px 0 30px;
	font-size: 15px;
	line-height: 1.7;
	color: #4a4a4a;
}

.tatm-archive-description__inner {
	max-height: 5.1em;
	overflow: hidden;
	transition: max-height .45s cubic-bezier(.22, .61, .36, 1);
}

.tatm-archive-description__inner p { margin: 0 0 .9em; }
.tatm-archive-description__inner > :last-child { margin-bottom: 0; }

/* The fade tells the reader there is more without needing a label to say so. */
.tatm-archive-description:not(.is-open) .tatm-archive-description__inner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 3.1em;
	height: 2em;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
	pointer-events: none;
}

.tatm-archive-description.is-open .tatm-archive-description__inner {
	max-height: 200em;
}

.tatm-archive-description__toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	padding: 0;
	background: none;
	border: 0;
	color: #000;
	font-family: var(--tatm-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}

.tatm-archive-description__toggle::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform .28s ease;
}

.tatm-archive-description.is-open .tatm-archive-description__toggle::after {
	transform: rotate(-135deg) translate(-1px, -1px);
}

.tatm-archive-description__toggle:hover { color: var(--tatm-red); }

.tatm-archive-description__toggle:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

/* Nothing to collapse when the description is already short. */
.tatm-archive-description.is-short .tatm-archive-description__inner { max-height: none; }
.tatm-archive-description.is-short .tatm-archive-description__toggle { display: none; }
.tatm-archive-description.is-short .tatm-archive-description__inner::after { content: none; }

/* ==========================================================================
   Share buttons — brand marks, brand colours
   ========================================================================== */

.tatm-share__link { --tatm-net: #000; gap: 9px; }

.tatm-share__item--facebook  .tatm-share__link { --tatm-net: #1877f2; }
.tatm-share__item--twitter   .tatm-share__link { --tatm-net: #000000; }
.tatm-share__item--whatsapp  .tatm-share__link { --tatm-net: #25d366; }
.tatm-share__item--linkedin  .tatm-share__link { --tatm-net: #0a66c2; }
.tatm-share__item--pinterest .tatm-share__link { --tatm-net: #e60023; }

.tatm-share__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: var(--tatm-net);
	transition: color .22s ease, transform .22s ease;
}

.tatm-share__icon svg { display: block; }

.tatm-share__link {
	transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.tatm-share__link:hover,
.tatm-share__link:focus-visible {
	background: var(--tatm-net);
	border-color: var(--tatm-net);
	color: #fff;
	transform: translateY(-2px);
}

.tatm-share__link:hover .tatm-share__icon,
.tatm-share__link:focus-visible .tatm-share__icon { color: #fff; transform: scale(1.1); }

.tatm-share__link:focus-visible { outline: 2px solid var(--tatm-net); outline-offset: 3px; }

/* The floating rail: squares with the mark alone, so each needs its own colour
   to be identifiable without a label. */
.tatm-share--float .tatm-share__link { border-color: rgba(0, 0, 0, .12); }
.tatm-share--float .tatm-share__icon { font-size: 17px; }

/* ==========================================================================
   Author box
   ========================================================================== */

.tatm-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--tatm-avatar-bg, #000);
	color: #fff;
	font-family: var(--tatm-font-display);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
	user-select: none;
}

.tatm-authorbox {
	position: relative;
	align-items: flex-start;
	gap: 22px;
	padding: 26px 26px 26px 30px;
	background: #faf9f7;
	border: 0;
}

/* The brand rule down the edge, tying the box to the rest of the furniture. */
.tatm-authorbox::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--tatm-brand-rule);
}

.tatm-authorbox__name {
	margin: 0 0 8px;
	font-size: 15px;
	letter-spacing: .04em;
}

.tatm-authorbox p { color: #4a4a4a; line-height: 1.65; }

/* ==========================================================================
   Captions — the site-wide default
   A caption is editorial, not a footnote. Every captioned image on the site
   gets the same treatment: the three-colour brand rule down its left edge, an
   italic credit line, and type that reads as deliberate rather than leftover
   alt text.

   This is deliberately element-level rather than scoped to article content.
   Captions arrive from the editor, from the [caption] shortcode, from gallery
   blocks and from pages built outside the loop, and they all carry different
   wrappers. Matching the caption element itself is the only rule that covers
   them all; the selectors below are listed together so the whole treatment is
   in one place instead of being overridden per template.

   Four earlier generations of this rule — grey Helvetica, centred, capped at
   46ch, and an About-Us-only copy — were removed when this one was promoted.
   ========================================================================== */

.tatm-entry-content figure { margin: 2em 0; }

figcaption,
.wp-caption-text,
.wp-element-caption,
.gallery-caption,
.blocks-gallery-item__caption,
.tatm-entry-content figcaption,
.tatm-entry-content .wp-caption-text {
	position: relative;
	margin: 0;
	padding: 2px 0 2px 14px;
	border-top: 0;
	max-width: none;
	color: #5c5c5c;
	font-family: var(--tatm-font-body);
	font-size: 13px;
	font-style: italic;
	line-height: 1.55;
	text-align: left;
}

/* The brand rule down the caption's edge, the same device as the author box
   and the cookie notice. Inset top and bottom so it reads as a mark beside the
   text rather than a border on a box. */
figcaption::before,
.wp-caption-text::before,
.wp-element-caption::before,
.gallery-caption::before,
.blocks-gallery-item__caption::before,
.tatm-entry-content figcaption::before,
.tatm-entry-content .wp-caption-text::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 2px;
	background: var(--tatm-brand-rule);
}

/* A caption belongs to its picture: the figure owns the gap, not the image's
   own 1.6em article margin, which pushed every credit 26px adrift. */
figure > img,
.wp-caption > img,
.tatm-about__media img { margin: 0 0 12px; }

/* The video card's title strip and the hero slide are captions by name only;
   they are chrome, and keep their own styling. */
.atm-video-title::before,
.tatm-slide__inner figcaption::before { content: none; }
.atm-video-title,
.tatm-slide__inner figcaption { padding-left: 0; }

/* ==========================================================================
   "See also" links inside article copy
   They were indistinguishable from a bold sentence. Now they read as a pointer
   to somewhere else, which is what they are.
   ========================================================================== */

.tatm-entry-content p > a[href]:only-child:not([class]) {
	display: block;
}

.tatm-entry-content .tatm-seealso {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 1.8em 0;
	padding: 14px 18px;
	background: #faf9f7;
	border-left: 4px solid var(--tatm-brand-red);
	font-family: var(--tatm-font-display);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none;
	color: #000;
	transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.tatm-entry-content .tatm-seealso:hover {
	background: #f3f1ed;
	border-left-color: var(--tatm-brand-purple);
	transform: translateX(3px);
	color: #000;
}

.tatm-entry-content .tatm-seealso__label {
	flex: 0 0 auto;
	padding: 3px 8px;
	background: var(--tatm-brand-red);
	color: #fff;
	font-size: 10px;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.tatm-entry-content .tatm-seealso__text { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Read more, on archive descriptions
   ========================================================================== */

.tatm-archive-description__toggle {
	padding: 8px 16px;
	border: 1px solid var(--tatm-rule);
	background: #fff;
	transition: background .22s ease, border-color .22s ease, color .22s ease;
}

.tatm-archive-description__toggle:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}

.tatm-archive-description__toggle:hover::after { border-color: #fff; }

/* ==========================================================================
   Page content measure, and the contact form
   ==========================================================================

   A page was rendering its content across the full 1130px container, which
   left the contact form pinned to the left with a void beside it and made
   long prose uncomfortably wide to read. Centring the measure fixes both
   without adding a column to fill.
   -------------------------------------------------------------------------- */

.page .tatm-entry-content,
.page .tatm-entry-header {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

/* The form now uses the width it has: name and email share a row, message and
   send take the full measure. */
.tatm-entry-content .wpcf7 { max-width: none; }

.tatm-entry-content .wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 24px;
}

/* Everything spans the row by default… */
.tatm-entry-content .wpcf7-form > p { grid-column: 1 / -1; }

/* …except the first two fields, which sit side by side. */
.tatm-entry-content .wpcf7-form > p:nth-of-type(1),
.tatm-entry-content .wpcf7-form > p:nth-of-type(2) { grid-column: span 1; }

/* CF7 puts the label and the field inside one <label>, separated by a <br>. */
.tatm-entry-content .wpcf7-form label { display: block; width: 100%; }
.tatm-entry-content .wpcf7-form br { display: none; }
.tatm-entry-content .wpcf7-form-control-wrap { display: block; margin-top: 6px; }

.tatm-entry-content .wpcf7-form input[type="submit"] {
	justify-self: start;
	min-width: 180px;
	margin-top: 6px;
}

/* The response area and the hidden-field wrapper must not claim a grid cell. */
.tatm-entry-content .wpcf7-form > div[style*="display: none"] { display: none !important; }
.tatm-entry-content .wpcf7-response-output { grid-column: 1 / -1; }

@media (max-width: 600px) {
	.tatm-entry-content .wpcf7-form { grid-template-columns: 1fr; }
	.tatm-entry-content .wpcf7-form > p:nth-of-type(1),
	.tatm-entry-content .wpcf7-form > p:nth-of-type(2) { grid-column: 1 / -1; }
	.tatm-entry-content .wpcf7-form input[type="submit"] { width: 100%; }
}

/* ==========================================================================
   Converted page blocks
   Counters and photographs regrouped into rows, so a page that Elementor laid
   out in columns does not read as one long column.
   ========================================================================== */

.tatm-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 22px;
	margin: 2.4em 0;
	padding: 30px 26px;
	background: #faf9f7;
	border-top: 3px solid transparent;
	border-image: var(--tatm-brand-rule) 1;
	border-image-slice: 1;
	border-width: 3px 0 0;
}

.tatm-stat { text-align: center; }

.tatm-stat__n {
	display: block;
	font-family: var(--tatm-font-display);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: #000;
}

.tatm-stat__label {
	display: block;
	margin-top: 6px;
	font-family: var(--tatm-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tatm-muted);
}

/* A run of photographs becomes a grid rather than a single file. */
.tatm-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin: 2.2em 0;
}

.tatm-figures .tatm-figure { margin: 0; }

.tatm-figures .tatm-figure img {
	width: 100%;
	height: 260px;
	object-fit: cover;
}

@media (max-width: 600px) {
	.tatm-figures .tatm-figure img { height: 200px; }
	.tatm-stat__n { font-size: 30px; }
}

/* Icon lists from the converted pages. */
.tatm-iconlist { list-style: none; margin: 1.4em 0; padding: 0; }

.tatm-iconlist li {
	position: relative;
	padding: 7px 0 7px 22px;
	line-height: 1.6;
}

.tatm-iconlist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 8px;
	height: 8px;
	background: var(--tatm-brand-red);
}

/* ==========================================================================
   Cookie notice
   Same words and the same destination as before; the surface is the only
   thing that changed. It sits above the back-to-top control and clear of the
   floating Donate/Write tabs.
   ========================================================================== */

.tatm-cookie {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 860;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: min(400px, calc(100vw - 40px));
	padding: 18px 18px 18px 22px;
	background: #111;
	color: rgba(255, 255, 255, .92);
	font-size: 13.5px;
	line-height: 1.6;
	box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .6);
	animation: tatm-cookie-in .5s cubic-bezier(.16, .84, .32, 1) .8s backwards;
}

/* The brand rule down the leading edge, as on the author box. */
.tatm-cookie::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--tatm-brand-rule);
}

@keyframes tatm-cookie-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

.tatm-cookie__text { margin: 0; }

.tatm-cookie a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--tatm-brand-red);
}

.tatm-cookie a:hover { text-decoration-color: var(--tatm-gold); }

.tatm-cookie__close {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.tatm-cookie__close:hover { background: var(--tatm-brand-red); transform: rotate(90deg); }
.tatm-cookie__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Hidden before first paint for anyone who has already dismissed it. */
.tatm-cookie-dismissed .tatm-cookie { display: none; }

/* Keep the back-to-top control clear of the notice while it is showing. */
.tatm-cookie ~ .tatm-totop { bottom: 20px; }

@media (max-width: 560px) {
	.tatm-cookie { right: 12px; left: 12px; bottom: 12px; width: auto; }
	.tatm-cookie ~ .tatm-totop { bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
	.tatm-cookie { animation: none; }
	.tatm-cookie__close:hover { transform: none; }
}

/* ==========================================================================
   The rule across the top of the page
   It was a solid 3px red line, inherited from the old theme. The magazine's
   mark is three colours, and the same rule is already used under the section
   headings, the nav underline and the footer — so the top of the page should
   speak the same language rather than being the one place red stands alone.
   ========================================================================== */

.tatm-topbar,
.tatm-mobile-bar {
	position: relative;
	border-top: 0;
}

.tatm-topbar::before,
.tatm-mobile-bar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--tatm-brand-rule);
	z-index: 1;
}

/* The sticky bar already carries the rule on its lower edge; nothing to add. */

/* ==========================================================================
   Converted pages: About Us bands
   Photograph in one column, heading, copy and counter in the other,
   alternating sides. The closing band runs full width.
   ========================================================================== */

.tatm-about__section { padding: 56px 0; }
.tatm-about__section:first-of-type { padding-top: 24px; }

.tatm-about__inner {
	display: grid;
	gap: 34px 52px;
	align-items: start;
}

@media (min-width: 900px) {
	.tatm-about__section--split .tatm-about__inner {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	/* Source order is always photograph first; the column swap is presentational
	   so the markup still reads correctly without the stylesheet. */
	.tatm-about__section--split.is-media-right .tatm-about__media { order: 2; }
	.tatm-about__section--split.is-media-right .tatm-about__content { order: 1; }
}

.tatm-about__section--full .tatm-about__inner { grid-template-columns: 1fr; }

/* --- the photograph ------------------------------------------------------ */

.tatm-about__media .tatm-figure { margin: 0; }

.tatm-about__media img {
	width: 100%;
	height: auto;
	display: block;
}


/* --- heading and copy ---------------------------------------------------- */

.tatm-about__topic + .tatm-about__topic { margin-top: 28px; }

.tatm-about__topic h2 {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 12px;
	color: var(--tatm-brand-purple);
	font-family: var(--tatm-font-body);
	font-size: 27px;
	font-weight: 700;
	line-height: 1.2;
}

/* The three-colour rule beneath each heading, sized to the words above it. */
.tatm-about__topic h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	max-width: 100%;
	height: 3px;
	background: var(--tatm-brand-rule);
}

.tatm-about__topic h2 { display: inline-block; }

.tatm-about__content p { margin: 0 0 1.1em; line-height: 1.68; }
.tatm-about__content > :last-child { margin-bottom: 0; }

/* Lists in the objectives and programmes bands read as ticked items. */
.tatm-about__content ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}

.tatm-about__content ul li {
	position: relative;
	padding: 5px 0 5px 24px;
	line-height: 1.6;
}

.tatm-about__content ul li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 5px;
	color: var(--tatm-brand-red);
	font-weight: 700;
}

/* --- the counter card ---------------------------------------------------- */

.tatm-about__stat { margin-top: 26px; }

.tatm-about__section--split .tatm-about__stat .tatm-stat {
	display: block;
	padding: 18px 24px;
	border: 1px solid rgba(111, 47, 132, .45);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

/* The figure sits away from the photograph, so the two do not crowd. */
.tatm-about__section--split.is-media-left .tatm-about__stat .tatm-stat { text-align: right; }
.tatm-about__section--split.is-media-right .tatm-about__stat .tatm-stat { text-align: left; }

.tatm-about__stat .tatm-stat__n {
	display: block;
	color: var(--tatm-brand-red);
	font-family: var(--tatm-font-body);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
}

.tatm-about__stat .tatm-stat__label {
	display: block;
	margin-top: 2px;
	color: #000;
	font-family: var(--tatm-font-body);
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* The closing band: every remaining counter, laid out as a row. */
.tatm-about__section--full .tatm-about__stat {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.tatm-about__section--full .tatm-about__stat .tatm-stat {
	padding: 22px 18px;
	border: 1px solid rgba(111, 47, 132, .45);
	border-radius: 10px;
	background: #fff;
	text-align: center;
}

@media (max-width: 899px) {
	.tatm-about__section { padding: 34px 0; }
	.tatm-about__topic h2 { font-size: 22px; }
	.tatm-about__stat .tatm-stat { text-align: left !important; }
}

/* Vision and Mission were designed to sit side by side above Our Values, not
   stacked one after another down the column. They are the two short topics in
   the band; anything longer keeps the full measure. */
@media (min-width: 620px) {
	.tatm-about__section.is-paired .tatm-about__content {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 32px;
		align-items: start;
	}

	.tatm-about__section.is-paired .tatm-about__content > * { grid-column: 1 / -1; }

	.tatm-about__section.is-paired .tatm-about__topic:nth-child(1),
	.tatm-about__section.is-paired .tatm-about__topic:nth-child(2) {
		grid-column: span 1;
		margin-top: 0;
	}

	.tatm-about__section.is-paired .tatm-about__topic:nth-child(3) { margin-top: 26px; }

	/* A heading sharing a row needs a smaller rule or it dominates the pair. */
	.tatm-about__section.is-paired .tatm-about__topic:nth-child(1) h2,
	.tatm-about__section.is-paired .tatm-about__topic:nth-child(2) h2 { font-size: 23px; }
}

/* ==========================================================================
   About Us — refinement pass
   ========================================================================== */

/* --- caption sits with its photograph, not adrift beneath it -------------- */

.tatm-about__media .tatm-figure { margin: 0; line-height: 0; }

.tatm-about__media img { border-radius: 2px; }


/* --- copy ----------------------------------------------------------------- */

.tatm-about__content p {
	font-size: 15.5px;
	line-height: 1.72;
	color: #333;
}

.tatm-about__topic h2 { font-size: 26px; margin-bottom: 20px; }

/* --- ticked lists --------------------------------------------------------- */

.tatm-about__content ul {
	margin: 1.1em 0 0;
	display: grid;
	gap: 10px;
}

.tatm-about__content ul li {
	padding: 0 0 0 26px;
	font-size: 15.5px;
	line-height: 1.6;
	color: #333;
}

/* A drawn tick rather than the ✓ glyph, which carries a tail in this serif
   and sat high against the first line. Sized and positioned against the
   line-height so it lands on the first line at any wrap length. */
.tatm-about__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .46em;
	width: 11px;
	height: 6px;
	border-left: 2px solid var(--tatm-brand-red);
	border-bottom: 2px solid var(--tatm-brand-red);
	transform: rotate(-45deg);
	background: none;
}

/* --- counter card --------------------------------------------------------- */

.tatm-about__stat { margin-top: 30px; display: flex; }

.tatm-about__section--split.is-media-left .tatm-about__stat { justify-content: flex-end; }
.tatm-about__section--split.is-media-right .tatm-about__stat { justify-content: flex-start; }

/* The card hugs its figure instead of stretching the column with empty space
   beside it, which is what made it read as an unfinished box. */
.tatm-about__section--split .tatm-about__stat .tatm-stat {
	display: inline-flex;
	flex-direction: column;
	min-width: 200px;
	padding: 16px 26px;
	border: 1px solid rgba(111, 47, 132, .35);
	border-left: 3px solid var(--tatm-brand-red);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
	text-align: left;
}

.tatm-about__section--split.is-media-left .tatm-about__stat .tatm-stat {
	text-align: right;
	border-left: 1px solid rgba(111, 47, 132, .35);
	border-right: 3px solid var(--tatm-brand-red);
}

.tatm-about__stat .tatm-stat__n { font-size: 32px; letter-spacing: -.01em; }

.tatm-about__stat .tatm-stat__label {
	margin-top: 1px;
	font-size: 15px;
	color: #444;
}

/* --- the closing band ----------------------------------------------------- */

.tatm-about__section--full .tatm-about__stat {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 18px;
}

.tatm-about__section--full .tatm-about__stat .tatm-stat {
	padding: 24px 16px;
	border: 1px solid rgba(111, 47, 132, .35);
	border-top: 3px solid var(--tatm-brand-red);
	border-radius: 8px;
	text-align: center;
}

.tatm-about__section--full .tatm-about__stat .tatm-stat__n { font-size: 28px; }
.tatm-about__section--full .tatm-about__stat .tatm-stat__label { font-size: 13.5px; }

/* --- rhythm --------------------------------------------------------------- */

.tatm-about__section { padding: 48px 0; }
.tatm-about__section + .tatm-about__section { border-top: 1px solid #f0efed; }
.tatm-about__inner { gap: 30px 56px; }

@media (max-width: 899px) {
	.tatm-about__stat { justify-content: flex-start !important; }
	.tatm-about__section--split .tatm-about__stat .tatm-stat {
		text-align: left !important;
		border-left: 3px solid var(--tatm-brand-red) !important;
		border-right: 1px solid rgba(111, 47, 132, .35) !important;
	}
}

/* The article stylesheet gives every content image 1.6em of vertical margin.
   Inside a band that pushed the caption 26px away from its own photograph and
   left the column bottom-heavy — the caption belongs to the picture, so the
   figure controls the spacing, not the image. */
.tatm-about__media img { margin: 0; }

/* Photograph and copy both start at the top of the band, as designed. Centring
   them floated the picture down the column whenever the copy ran long. */
@media (min-width: 900px) {
	.tatm-about__section--split .tatm-about__inner { align-items: start; }
}

/* ==========================================================================
   About Us — counter under the photograph, and a caption worth reading
   ========================================================================== */

/* The counter now lives in the picture column. It takes the full width of that
   column so the two read as one block — photograph, caption, figure — instead
   of a card floating in the space the shorter column leaves behind. */
.tatm-about__media .tatm-about__stat {
	display: block;
	margin-top: 22px;
}

.tatm-about__section--split .tatm-about__media .tatm-stat {
	display: flex;
	align-items: baseline;
	gap: 14px;
	width: 100%;
	min-width: 0;
	padding: 18px 22px;
	border: 1px solid rgba(111, 47, 132, .28);
	border-left: 3px solid var(--tatm-brand-red);
	border-right: 1px solid rgba(111, 47, 132, .28);
	border-radius: 8px;
	background: linear-gradient(180deg, #fff 0%, #fbfafc 100%);
	box-shadow: 0 2px 14px rgba(111, 47, 132, .07);
	text-align: left;
}

/* Figure and label on one line: a wide card with the two stacked left a hole
   down the middle, which is what made it read as unfinished. */
.tatm-about__section--split .tatm-about__media .tatm-stat__n {
	flex: 0 0 auto;
	font-size: 34px;
	line-height: 1;
}

.tatm-about__section--split .tatm-about__media .tatm-stat__label {
	margin-top: 0;
	font-size: 15px;
	line-height: 1.3;
	color: #3a3a3a;
}


/* The photograph and its credit sit tight together. */
.tatm-about__media .tatm-figure { margin: 0; }
.tatm-about__media img { margin: 0 0 12px; border-radius: 3px; }

@media (max-width: 899px) {
	.tatm-about__section--split .tatm-about__media .tatm-stat {
		border-left: 3px solid var(--tatm-brand-red) !important;
		text-align: left !important;
	}
}

/* ==========================================================================
   About Us — the achievements band
   Seven identical red-topped boxes in a 5 + 2 grid read as a spreadsheet with
   a hole in it. Each counter now carries its own mark, takes its turn in the
   brand's three colours, and counts up when it comes into view.
   ========================================================================== */

/* Gold is unreadable as text on white at 4.5:1; this is the same hue taken
   down to an ink that passes. */
:root { --tatm-gold-ink: #8a6d00; }

.tatm-about__section--full .tatm-about__stat {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin-top: 34px;
}

/* Four to a row, so seven lands as 4 + 3 centred rather than 5 + 2 ragged. */
.tatm-about__section--full .tatm-about__stat .tatm-stat {
	flex: 1 1 calc(25% - 14px);
	max-width: calc(25% - 14px);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 26px 18px 24px;
	border: 1px solid #ece9ef;
	border-top: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(17, 12, 24, .04);
	text-align: center;
	overflow: hidden;
	transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease, border-color .35s ease;
}

/* The colour bar across the top, drawn rather than bordered so it can grow on
   hover. */
.tatm-about__section--full .tatm-about__stat .tatm-stat::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--tatm-stat-tone, var(--tatm-brand-red));
	transition: height .35s cubic-bezier(.2, .7, .3, 1);
}

.tatm-about__section--full .tatm-about__stat .tatm-stat:hover {
	transform: translateY(-4px);
	border-color: #e2dce8;
	box-shadow: 0 14px 30px -12px var(--tatm-stat-glow, rgba(237, 28, 36, .4));
}

.tatm-about__section--full .tatm-about__stat .tatm-stat:hover::before { height: 6px; }

/* --- the rotation --------------------------------------------------------- */

.tatm-about__stat .tatm-stat.is-red {
	--tatm-stat-tone: var(--tatm-brand-red);
	--tatm-stat-ink: var(--tatm-brand-red);
	--tatm-stat-wash: rgba(237, 28, 36, .09);
	--tatm-stat-glow: rgba(237, 28, 36, .38);
}

.tatm-about__stat .tatm-stat.is-gold {
	--tatm-stat-tone: var(--tatm-gold);
	--tatm-stat-ink: var(--tatm-gold-ink);
	--tatm-stat-wash: rgba(212, 175, 0, .16);
	--tatm-stat-glow: rgba(176, 140, 0, .34);
}

.tatm-about__stat .tatm-stat.is-purple {
	--tatm-stat-tone: var(--tatm-brand-purple);
	--tatm-stat-ink: var(--tatm-brand-purple);
	--tatm-stat-wash: rgba(111, 47, 132, .11);
	--tatm-stat-glow: rgba(111, 47, 132, .36);
}

/* --- the mark ------------------------------------------------------------- */

.tatm-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--tatm-stat-wash, rgba(237, 28, 36, .09));
	color: var(--tatm-stat-ink, var(--tatm-brand-red));
	transition: transform .4s cubic-bezier(.2, .7, .3, 1), background-color .35s ease;
}

.tatm-stat__icon svg { width: 23px; height: 23px; display: block; }

.tatm-stat:hover .tatm-stat__icon { transform: scale(1.1) rotate(-6deg); }

/* Counters in the two-column bands keep their own layout; only the band at the
   foot of the page gets the medallion. */
.tatm-about__section--split .tatm-stat__icon { display: none; }

.tatm-about__section--full .tatm-about__stat .tatm-stat__n {
	color: var(--tatm-stat-ink, var(--tatm-brand-red));
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.tatm-about__section--full .tatm-about__stat .tatm-stat__label {
	margin-top: 0;
	color: #4a4a4a;
	font-size: 14px;
	line-height: 1.35;
}

/* --- arrival -------------------------------------------------------------- */

.tatm-about__section--full .tatm-about__stat .tatm-stat {
	opacity: 0;
	transform: translateY(14px);
}

.tatm-about__section--full .tatm-about__stat .tatm-stat.is-in {
	opacity: 1;
	transform: none;
	transition: opacity .5s ease var(--tatm-stat-delay, 0s),
	            transform .5s cubic-bezier(.2, .7, .3, 1) var(--tatm-stat-delay, 0s),
	            box-shadow .35s ease, border-color .35s ease;
}

.tatm-about__section--full .tatm-about__stat .tatm-stat.is-in:hover {
	transform: translateY(-4px);
	transition-delay: 0s;
}

/* Without JS the cards must still be visible. */
html:not(.tatm-js) .tatm-about__section--full .tatm-about__stat .tatm-stat {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.tatm-about__section--full .tatm-about__stat .tatm-stat {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.tatm-stat__icon { transition: none; }
}

@media (max-width: 1099px) {
	.tatm-about__section--full .tatm-about__stat .tatm-stat {
		flex-basis: calc(33.333% - 12px);
		max-width: calc(33.333% - 12px);
	}
}

@media (max-width: 719px) {
	.tatm-about__section--full .tatm-about__stat { gap: 14px; }
	.tatm-about__section--full .tatm-about__stat .tatm-stat {
		flex-basis: calc(50% - 7px);
		max-width: calc(50% - 7px);
		padding: 20px 12px 18px;
	}
	.tatm-stat__icon { width: 40px; height: 40px; }
	.tatm-about__section--full .tatm-about__stat .tatm-stat__n { font-size: 27px; }
}

/* ==========================================================================
   Contact Us
   The form had the full 1140px measure to itself — a message box wider than
   any line of text on the site, and nothing beside it. It now sits on the
   main column with the contact details and the social accounts alongside,
   which is both the shape the page was designed with and the only place a
   reader can find the address without scrolling to the footer.
   ========================================================================== */

.tatm-contact__form { max-width: none; }

/* The form plugin's own grid: name and email share a row, message spans. */
.tatm-contact__form .wpcf7 { margin-top: 6px; }

.tatm-contact-card {
	padding: 22px 22px 24px;
	border: 1px solid #ece9ef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(17, 12, 24, .04);
}

.tatm-contact-card + .tatm-contact-card { margin-top: 18px; }

.tatm-contact-card__title {
	position: relative;
	margin: 0 0 8px;
	padding-bottom: 10px;
	color: #000;
	font-family: var(--tatm-font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

/* The same three-colour rule the section headings and captions carry. */
.tatm-contact-card__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 3px;
	border-radius: 2px;
	background: var(--tatm-brand-rule);
}

.tatm-contact-card__lede {
	margin: 0 0 16px;
	color: #5c5c5c;
	font-size: 14px;
	line-height: 1.55;
}

/* --- a single contact line ------------------------------------------------ */

.tatm-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 12px 12px 0;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: background-color .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1);
}

.tatm-contact-row + .tatm-contact-row { border-top: 1px solid #f3f1f5; }

a.tatm-contact-row:hover {
	background: rgba(111, 47, 132, .05);
	transform: translateX(3px);
}

.tatm-contact-row__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(237, 28, 36, .08);
	color: var(--tatm-brand-red);
	transition: background-color .25s ease, color .25s ease;
}

.tatm-contact-row.is-static .tatm-contact-row__icon {
	background: rgba(111, 47, 132, .09);
	color: var(--tatm-brand-purple);
}

a.tatm-contact-row:hover .tatm-contact-row__icon {
	background: var(--tatm-brand-red);
	color: #fff;
}

.tatm-contact-row__icon svg { width: 19px; height: 19px; display: block; }

.tatm-contact-row__body { min-width: 0; }

.tatm-contact-row__label {
	display: block;
	margin-bottom: 2px;
	color: #9a9a9a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tatm-contact-row__value {
	display: block;
	color: #1a1a1a;
	font-size: 14.5px;
	line-height: 1.4;
	word-break: break-word;
}

/* --- the social list ------------------------------------------------------ */

.tatm-social--stacked {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tatm-social--stacked li { margin: 0; }

.tatm-social--stacked .tatm-social__link {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 10px;
	border: 1px solid #efedf1;
	border-radius: 8px;
	color: #1a1a1a;
	text-decoration: none;
	transition: border-color .25s ease, background-color .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1);
}

.tatm-social--stacked .tatm-social__link:hover {
	border-color: transparent;
	background: rgba(111, 47, 132, .07);
	transform: translateY(-2px);
}

.tatm-social--stacked .tatm-social__icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
}

.tatm-social--stacked .tatm-social__icon svg { width: 16px; height: 16px; }

.tatm-social--stacked .tatm-social__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}

/* --- the pitch card ------------------------------------------------------- */

.tatm-contact-card--cta {
	border-color: transparent;
	background: linear-gradient(135deg, #2a1230 0%, #4a1f57 100%);
}

.tatm-contact-card--cta .tatm-contact-card__title { color: #fff; }
.tatm-contact-card--cta .tatm-contact-card__lede { color: rgba(255, 255, 255, .78); }

.tatm-contact-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--tatm-brand-red);
	color: #fff;
	border: 0;
}

.tatm-contact-card__btn:hover { background: #c8161d; color: #fff; }

@media (max-width: 991px) {
	.tatm-contact__aside { margin-top: 32px; }
	.tatm-social--stacked { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
	.tatm-social--stacked { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Leaving the site
   The same shape as the cookie notice, so the two read as one voice: the
   brand rule along the top, a plain statement, and the destination named
   before anything opens.
   ========================================================================== */

.tatm-leave {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tatm-leave[hidden] { display: none; }

.tatm-leave__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 9, 18, .62);
	opacity: 0;
	transition: opacity .22s ease;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.tatm-leave[data-open] .tatm-leave__backdrop { opacity: 1; }

.tatm-leave__panel {
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 30px 28px 26px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 30px 70px -20px rgba(14, 9, 18, .55);
	text-align: center;
	opacity: 0;
	transform: translateY(14px) scale(.97);
	transition: opacity .22s ease, transform .28s cubic-bezier(.2, .7, .3, 1);
	overflow: hidden;
}

.tatm-leave[data-open] .tatm-leave__panel {
	opacity: 1;
	transform: none;
}

/* The three-colour rule across the top of the panel. */
.tatm-leave__rule {
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--tatm-brand-rule);
}

.tatm-leave__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8d8d8d;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.tatm-leave__close:hover { background: #f3f1f5; color: #1a1a1a; }

.tatm-leave__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: rgba(111, 47, 132, .09);
	color: var(--tatm-brand-purple);
}

.tatm-leave__icon svg { width: 25px; height: 25px; display: block; }

.tatm-leave__title {
	margin: 0 0 8px;
	color: #000;
	font-family: var(--tatm-font-body);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.tatm-leave__copy {
	margin: 0 0 16px;
	color: #5c5c5c;
	font-size: 14px;
	line-height: 1.55;
}

/* The destination, stated plainly. The host is the part that matters, so it
   carries the weight; the path follows in a lighter tone and truncates. */
.tatm-leave__host {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid #ece9ef;
	border-left: 3px solid var(--tatm-brand-red);
	border-radius: 8px;
	background: #fbfafc;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	overflow: hidden;
}

.tatm-leave__hostname {
	display: block;
	color: #1a1a1a;
	font-weight: 700;
	word-break: break-all;
}

.tatm-leave__url {
	display: block;
	color: #8d8d8d;
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tatm-leave__url:empty { display: none; }

.tatm-leave__actions {
	display: flex;
	gap: 10px;
}

.tatm-leave__actions .tatm-btn {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.tatm-leave__cancel {
	background: #f3f1f5;
	color: #1a1a1a;
	border: 0;
}

.tatm-leave__cancel:hover { background: #e8e4ec; color: #000; }

.tatm-leave__go {
	background: var(--tatm-brand-red);
	color: #fff;
	border: 0;
}

.tatm-leave__go:hover { background: #c8161d; color: #fff; }

/* The page behind does not scroll while the notice is up. */
html.tatm-leave-open,
html.tatm-leave-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.tatm-leave__backdrop,
	.tatm-leave__panel { transition: none; }
}

@media (max-width: 479px) {
	.tatm-leave__panel { padding: 26px 20px 22px; }
	.tatm-leave__actions { flex-direction: column-reverse; }
}

/* ==========================================================================
   Our Team
   Twenty people who were rendered by a third-party plugin into a column of
   centred cards. The data now lives in the page itself; this is the grid it
   is laid out on.
   ========================================================================== */

.tatm-team__lede {
	max-width: 62ch;
	margin: 0 0 30px;
	color: #5c5c5c;
	font-size: 16px;
	line-height: 1.6;
}

.tatm-team {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px 24px;
	margin: 0 0 54px;
}

.tatm-team__card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	background: #fff;
	transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}

.tatm-team__card:hover { transform: translateY(-4px); }

/* --- the portrait --------------------------------------------------------- */

.tatm-team__media {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #f3f1f5;
	aspect-ratio: 1 / 1;
}

.tatm-team__img {
	width: 100%;
	height: 100%;
	margin: 0;
	display: block;
	object-fit: cover;
	object-position: center top;
	transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s ease;
}

.tatm-team__card:hover .tatm-team__img { transform: scale(1.06); }

/* The brand rule along the foot of every portrait, drawn over the image. */
.tatm-team__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 4px;
	background: var(--tatm-brand-rule);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}

.tatm-team__card:hover .tatm-team__media::after { transform: scaleX(1); }

/* --- the social marks ----------------------------------------------------- */

.tatm-team__social {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 12px 10px 14px;
	list-style: none;
	background: linear-gradient(180deg, rgba(14, 9, 18, 0) 0%, rgba(14, 9, 18, .72) 60%);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .3, 1);
}

.tatm-team__card:hover .tatm-team__social,
.tatm-team__card:focus-within .tatm-team__social {
	opacity: 1;
	transform: none;
}

.tatm-team__social li { margin: 0; }

.tatm-team__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #1a1a1a;
	transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.tatm-team__social-link:hover {
	background: var(--tatm-brand-red);
	color: #fff;
	transform: translateY(-2px);
}

.tatm-team__social-icon { display: inline-flex; }
.tatm-team__social-icon svg { width: 15px; height: 15px; display: block; fill: currentColor; }

/* --- the name plate ------------------------------------------------------- */

.tatm-team__body { padding: 14px 2px 0; }

.tatm-team__name {
	margin: 0 0 3px;
	color: #000;
	font-family: var(--tatm-font-body);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

/* Roles are written the way the team wrote them — "Strategic Development
   Lead", not "STRATEGIC DEVELOPMENT LEAD". Upper-casing them in CSS was a
   styling decision that overrode an editorial one, and on the longer titles it
   produced a wall of capitals two lines deep. */
.tatm-team__role {
	margin: 0;
	color: var(--tatm-brand-purple);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.4;
	text-transform: none;
}

.tatm-team__bio {
	margin: 8px 0 0;
	color: #5c5c5c;
	font-size: 14px;
	line-height: 1.55;
}

.tatm-team__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .25s ease, border-color .25s ease;
}

.tatm-team__link:hover {
	color: var(--tatm-brand-red);
	border-bottom-color: var(--tatm-brand-red);
}

.tatm-team__arrow {
	width: 15px;
	height: 15px;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}

.tatm-team__link:hover .tatm-team__arrow { transform: translateX(4px); }

/* The board is four people, not sixteen: the same cards on a narrower grid so
   they do not stretch across the full measure. */
.tatm-team[data-tatm-team="board"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1099px) {
	.tatm-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tatm-team[data-tatm-team="board"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.tatm-team,
	.tatm-team[data-tatm-team="board"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 16px;
	}
	.tatm-team__name { font-size: 15.5px; }
	.tatm-team__role { font-size: 11px; }

	/* Touch has no hover: the marks stay visible rather than unreachable. */
	.tatm-team__social { opacity: 1; transform: none; }
}

/* The reading measure is for prose. A card grid gets the container. */
.tatm-entry-content--wide { max-width: none; }

/* ==========================================================================
   Page measure, corrected
   The measure was centred inside the container, which put the page title and
   the body a floating distance in from the left — not aligned to anything.
   The logo sits at the container's left edge, and every page title now starts
   on that same line, as does the content beneath it.
   ========================================================================== */

/* The header stays an ordinary container — centred, at the container width,
   with the container's own gutter — so the title lands on exactly the same
   line as the logo above it.

   Three ways to get this wrong, all tried: `max-width: none` spans the
   viewport and loses the centring margin (title 20px); leaving the 880px
   reading measure in place centres the header inside the container and pushes
   the title inward (title 185px); `margin-left: 0` removes the centring
   directly. The container width is what the header above it uses, so it is
   what this uses. */
.page .tatm-entry-header {
	max-width: var(--tatm-container);
	margin-left: auto;
	margin-right: auto;
}

/* The prose keeps its measure but starts at the gutter instead of being
   centred within the container. */
.page .tatm-entry-content {
	margin-left: 0;
	margin-right: auto;
}

/* A card grid is not prose and takes the container. */
.page .tatm-entry-content--wide { max-width: none; }

/* The contact page's main column is already narrowed by the sidebar beside it,
   so the measure must not narrow it a second time. */
.page .tatm-main .tatm-entry-content { max-width: none; }

/* The entry header and the page body set their own vertical padding, which
   also zeroed the container's horizontal gutter — so the title sat a gutter's
   width to the left of the logo above it. The gutter is restored, and the page
   body takes the same line, so logo, title and content share one left edge.
   Archives and single posts keep their own padding: their columns carry an
   additional 15px of their own and are not affected. */
.tatm-entry-header { padding-left: var(--tatm-gutter); padding-right: var(--tatm-gutter); }
.page .tatm-content { padding-left: var(--tatm-gutter); padding-right: var(--tatm-gutter); }

/* ==========================================================================
   List marks
   The bullets were a text checkmark — the \2713 character — in flat red, at
   whatever weight the body font happened to draw it. They are now a drawn
   mark with the magazine's three colours running through it: the brand rule
   is painted as the background and the tick is masked out of it, so the red,
   the gold and the purple sit inside the icon rather than beside it.
   ========================================================================== */

.tatm-about__content ul li,
.tatm-entry-content ul.tatm-ticks li {
	position: relative;
	padding-left: 32px;
	list-style: none;
}

.tatm-about__content ul li::before,
.tatm-entry-content ul.tatm-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	color: transparent;
	font-size: 0;

	/* The three colours, painted across the mark itself. */
	background-image: var(--tatm-brand-rule);
	background-size: 100% 100%;
	background-repeat: no-repeat;

	/* The tick, knocked out of that gradient. */
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 6.2 9.4 17.3l-5.9-5.9' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 6.2 9.4 17.3l-5.9-5.9' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}

.tatm-about__content ul li:hover::before,
.tatm-entry-content ul.tatm-ticks li:hover::before { transform: scale(1.12); }

/* Masking is near-universal now, but where it is unsupported the element would
   paint as a 20px gradient block. @supports keeps the old character there. */
@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
	.tatm-about__content ul li::before,
	.tatm-entry-content ul.tatm-ticks li::before {
		content: "\2713";
		width: auto;
		height: auto;
		background-image: none;
		color: var(--tatm-brand-red);
		font-size: inherit;
		font-weight: 700;
	}
}

/* --- the email chooser ----------------------------------------------------
   Same panel as the leaving-site notice, with a grid of destinations in place
   of the two buttons. */

.tatm-mailto .tatm-leave__host {
	border-left-color: var(--tatm-brand-purple);
	text-align: center;
}

.tatm-mailto__address { word-break: break-all; }

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

.tatm-mailto__option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: auto;
	padding: 16px 10px;
	border: 1px solid #ece9ef;
	border-radius: 10px;
	background: #fff;
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .25s ease, background-color .25s ease,
	            transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
}

.tatm-mailto__option:hover,
.tatm-mailto__option:focus-visible {
	border-color: transparent;
	background: rgba(111, 47, 132, .07);
	color: #1a1a1a;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -12px rgba(111, 47, 132, .5);
}

.tatm-mailto__option-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(237, 28, 36, .08);
	color: var(--tatm-brand-red);
	transition: background-color .25s ease, color .25s ease, transform .3s cubic-bezier(.2, .7, .3, 1);
}

.tatm-mailto__option:nth-child(2) .tatm-mailto__option-icon {
	background: rgba(212, 175, 0, .18);
	color: var(--tatm-gold-ink);
}

.tatm-mailto__option:nth-child(3) .tatm-mailto__option-icon,
.tatm-mailto__option:nth-child(4) .tatm-mailto__option-icon {
	background: rgba(111, 47, 132, .1);
	color: var(--tatm-brand-purple);
}

.tatm-mailto__option:hover .tatm-mailto__option-icon { transform: scale(1.08); }

.tatm-mailto__option-icon svg { width: 18px; height: 18px; display: block; }

.tatm-mailto__option.is-copied {
	border-color: transparent;
	background: rgba(111, 47, 132, .1);
}

.tatm-mailto__option.is-copied .tatm-mailto__option-icon {
	background: var(--tatm-brand-purple);
	color: #fff;
}

@media (max-width: 479px) {
	.tatm-mailto__options { grid-template-columns: 1fr 1fr; }
	.tatm-mailto__option { padding: 13px 8px; font-size: 12.5px; }
}

/* The footer's social links turn white on hover, which is right on black and
   invisible on the white cards in the Contact sidebar — the label disappeared
   under the cursor. The stacked variant states its own hover colour, and being
   two classes it takes precedence over the global rule regardless of order. */
.tatm-social--stacked .tatm-social__link:hover,
.tatm-social--stacked .tatm-social__link:focus-visible {
	color: var(--tatm-brand-purple);
}

.tatm-social--stacked .tatm-social__link:hover .tatm-social__label,
.tatm-social--stacked .tatm-social__link:focus-visible .tatm-social__label {
	color: inherit;
}

/* ==========================================================================
   The contact form
   The form already had a two-column grid of its own, a few hundred lines
   above: name and email on one row, everything else across the measure. A
   second grid was added here on top of it and the two fought — the wrapper
   took one of the parent's columns and squeezed the whole form into half the
   width. The original grid is left to do its job; only the new select and the
   submit button are styled here.
   ========================================================================== */

/* The browser's own select arrow is drawn differently on every platform; this
   is the one chevron on all of them. */
.tatm-entry-content .wpcf7-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 38px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f2f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 17px 17px;
	cursor: pointer;
}

/* The submit button was black; the brand red is the site's action colour and
   is what every other call to action uses. Matched to the specificity of the
   rule it supersedes rather than forced with !important. */
.tatm-entry-content .wpcf7-form input[type="submit"] {
	border: 0;
	border-radius: 8px;
	background: var(--tatm-brand-red);
	color: #fff;
	transition: background-color .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
}

.tatm-entry-content .wpcf7-form input[type="submit"]:hover {
	background: #c8161d;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(237, 28, 36, .7);
}

/* ==========================================================================
   Contact Us — which column sticks
   Sticky belongs to whichever column is shorter: it is the one with travel
   left over while the other is still scrolling. On every other template that
   is the sidebar, so `.tatm-aside__inner` sticks. Here the sidebar carries
   three cards and runs past the form, so the form is the shorter column and
   the roles swap.

   The sticky element must be a child of a parent taller than itself, which is
   why the article is pinned rather than `.tatm-main`: the column is stretched
   to the row by the flex default, and so has the height the article travels
   through.
   ========================================================================== */

@media (min-width: 992px) {
	/* Scoped on the template's own classes, not a `page-template-*` body class:
	   that class is only added for a template assigned in Page Attributes, and
	   this one is picked up by the `page-{slug}.php` convention, so the body
	   reads `page-template-default`. */
	.tatm-main .tatm-contact__form {
		position: sticky;
		top: 103px;
	}

	.admin-bar .tatm-main .tatm-contact__form { top: 135px; }

	/* Both columns sticking at once pins the whole page and neither moves. */
	.tatm-contact__aside .tatm-aside__inner { position: static; }
}

/* ==========================================================================
   The contribution form
   Thirteen fields arriving as one undifferentiated stack, in a column half the
   width of the page, with browser-default controls. It is now three named
   sections on the full measure, using the same field styling as the contact
   form so the two read as one system.
   ========================================================================== */

/* The form is already a two-column grid a few hundred lines above. The wrapper
   was landing in one of those columns, which is what made every field 428px
   inside an 880px measure. It spans instead — no second grid. */
.tatm-entry-content .wpcf7-form > .tatm-cform { grid-column: 1 / -1; }

.tatm-cform { display: block; }

/* --- sections ------------------------------------------------------------- */

.tatm-cform__section {
	margin: 0 0 30px;
	padding: 24px 26px 8px;
	border: 1px solid #ece9ef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(17, 12, 24, .04);
}

.tatm-cform__legend {
	position: relative;
	float: none;
	width: auto;
	margin: 0 0 18px;
	padding: 0 0 10px;
	color: #000;
	font-family: var(--tatm-font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.tatm-cform__legend::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 3px;
	border-radius: 2px;
	background: var(--tatm-brand-rule);
}

/* --- rows ----------------------------------------------------------------- */

.tatm-cform__group { display: grid; gap: 0 18px; }
.tatm-cform__group--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tatm-cform__group--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tatm-cform label,
.tatm-cform__choice-label,
.tatm-cform__upload-label {
	display: block;
	margin-bottom: 16px;
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tatm-cform .wpcf7-form-control-wrap { display: block; margin-top: 7px; }

.tatm-cform__hint {
	display: block;
	margin: -8px 0 18px;
	color: #7c7c7c;
	font-family: var(--tatm-font-body);
	font-size: 13px;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
}

/* CF7 runs its own autop, which wraps loose spans in paragraphs. */
.tatm-cform p { margin: 0; }

/* --- controls ------------------------------------------------------------- */

.tatm-cform input[type="text"],
.tatm-cform input[type="email"],
.tatm-cform select,
.tatm-cform textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #ddd8e2;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	transition: border-color .22s ease, box-shadow .22s ease;
}

.tatm-cform textarea { min-height: 260px; resize: vertical; }

.tatm-cform input[type="text"]:focus,
.tatm-cform input[type="email"]:focus,
.tatm-cform select:focus,
.tatm-cform textarea:focus {
	outline: 0;
	border-color: var(--tatm-brand-purple);
	box-shadow: 0 0 0 3px rgba(111, 47, 132, .12);
}

.tatm-cform select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 38px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f2f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 17px 17px;
	cursor: pointer;
}

/* --- the yes / no pair ---------------------------------------------------- */

.tatm-cform__choice { margin-bottom: 18px; }

.tatm-cform__choice .wpcf7-radio {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	max-width: 320px;
}

.tatm-cform__choice .wpcf7-list-item { margin: 0; }

.tatm-cform__choice .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #ddd8e2;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.tatm-cform__choice input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid #c9c2d2;
	border-radius: 50%;
	background: #fff;
	transition: border-color .22s ease, box-shadow .22s ease;
}

.tatm-cform__choice input[type="radio"]:checked {
	border-color: var(--tatm-brand-red);
	box-shadow: inset 0 0 0 4px var(--tatm-brand-red);
}

.tatm-cform__choice label:has(input:checked) {
	border-color: var(--tatm-brand-purple);
	background: rgba(111, 47, 132, .05);
	box-shadow: 0 0 0 3px rgba(111, 47, 132, .1);
}

/* --- the photograph ------------------------------------------------------- */

.tatm-cform__upload { margin-bottom: 10px; }

.tatm-cform__upload input[type="file"] {
	display: block;
	width: 100%;
	padding: 22px 18px;
	border: 2px dashed #d8d1e0;
	border-radius: 12px;
	background: #fbfafc
		url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f2f84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M3 16v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E")
		no-repeat 18px center;
	background-size: 22px 22px;
	padding-left: 52px;
	color: #4a4a4a;
	font-family: var(--tatm-font-body);
	font-size: 14px;
	cursor: pointer;
	transition: border-color .22s ease, background-color .22s ease;
}

.tatm-cform__upload input[type="file"]:hover,
.tatm-cform__upload input[type="file"]:focus {
	outline: 0;
	border-color: var(--tatm-brand-purple);
	background-color: rgba(111, 47, 132, .04);
}

.tatm-cform__upload input[type="file"]::file-selector-button {
	margin-right: 14px;
	padding: 8px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--tatm-brand-purple);
	color: #fff;
	font-family: var(--tatm-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .22s ease;
}

.tatm-cform__upload input[type="file"]::file-selector-button:hover { background: #55235f; }

/* --- submit --------------------------------------------------------------- */

.tatm-cform input[type="submit"] {
	min-width: 220px;
	padding: 14px 30px;
	border: 0;
	border-radius: 8px;
	background: var(--tatm-brand-red);
	color: #fff;
	font-family: var(--tatm-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
}

.tatm-cform input[type="submit"]:hover {
	background: #c8161d;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(237, 28, 36, .7);
}

@media (max-width: 767px) {
	.tatm-cform__section { padding: 20px 18px 6px; }
	.tatm-cform__group--three,
	.tatm-cform__group--two { grid-template-columns: 1fr; }
	.tatm-cform__choice .wpcf7-radio { max-width: none; }
	.tatm-cform input[type="submit"] { width: 100%; }
}

/* CF7 runs its own autop over the form, and it wrapped all three name fields
   in a single <p>. That paragraph became the one grid item, so the row had one
   column filled and the labels stacked inside it — the columns were real, the
   fields just were not in them. `display: contents` drops the paragraph from
   the layout and promotes the labels to grid items, which is what they need to
   be. Without it the measurement reads "three columns" while the page shows a
   stack, which is exactly how this was missed the first time. */
.tatm-cform__group > p { display: contents; }

/* ==========================================================================
   The hero, boxed
   The slider ran the full width of the viewport. The original did not: the
   live home page wraps it in `elementor-section-boxed`, so the photograph
   starts and ends on the same line as every other section of the page, with
   white either side.

   The slider is capped at the container's *content* width — container minus
   its two gutters — rather than at the container width itself. Padding would
   not do: the slide's background is #111, so a padded container would paint
   the gutters dark and there would be no white space at all.
   ========================================================================== */

.tatm-slider {
	width: 100%;
	max-width: calc(var(--tatm-container) - (var(--tatm-gutter) * 2));
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
}

/* The caption already sits inside a `.tatm-container`, which centres it and
   caps it at the full container width. Inside a slider that is itself now
   boxed that cap applies twice, which would inset the text a second time and
   pull it away from the page's left edge. Within the slider the container
   keeps only its gutter. */
.tatm-slider .tatm-slide__inner {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 991px) {
	/* On a narrow screen the gutter is the whole margin there is; the hero
	   keeps the full width rather than losing more of the picture. */
	.tatm-slider { max-width: none; }
}

/* With the slider full-bleed the caption's 20px gutter sat far inside a very
   wide picture. Boxed, that same 20px puts the headline almost against the
   photograph's edge. The text is given a margin of its own inside the frame. */
@media (min-width: 992px) {
	.tatm-slider .tatm-slide__inner { padding-left: 44px; padding-right: 44px; }
	.tatm-slider__arrow--prev { left: 14px; }
	.tatm-slider__arrow--next { right: 14px; }
}

/* ==========================================================================
   Archive cards — spacing and the picture
   The layout itself is kept: two columns, picture over text, the same type at
   the same sizes. What changes is the rhythm inside each card and the quality
   of the photograph.

   Four measured problems:
   - The thumbnail was a 350px file in a 370px slot — upscaled, and soft on any
     retina screen. The template now asks for the 750px crop at the same 1.4
     ratio (index.php).
   - `object-fit` was `fill`. The 350x250 crop happens to match the slot, so
     nothing looked wrong, but any image arriving at another ratio would be
     stretched rather than cropped.
   - Titles run to two or three lines, so within a row the date and excerpt
     began at different heights and the column read as ragged. The title is
     held to two lines and the body laid out so the excerpt always starts on
     the same line as its neighbour.
   - 30px between rows put one row's last line of text close under the next
     row's photograph. Rows now have more air than columns.
   ========================================================================== */

.tatm-list--grid { gap: 44px 30px; }

.tatm-list--grid .tatm-card {
	display: flex;
	flex-direction: column;
}

/* --- the picture ---------------------------------------------------------- */

.tatm-list--grid .tatm-card__thumb {
	margin-bottom: 16px;
	border-radius: 3px;
	aspect-ratio: 350 / 250;
}

.tatm-list--grid .tatm-card__thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

/* --- the text ------------------------------------------------------------- */

.tatm-list--grid .tatm-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.tatm-list--grid .tatm-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 10px 0 6px;
}

/* The date sits with the title it belongs to, not floating between blocks. */
.tatm-list--grid .tatm-card .tatm-meta { margin-bottom: 10px; }

.tatm-list--grid .tatm-card__excerpt {
	margin: 0;
	color: #3f3f3f;
	line-height: 1.65;
}

@media (max-width: 767px) {
	.tatm-list--grid { gap: 34px 0; }
	.tatm-list--grid .tatm-card__title { -webkit-line-clamp: 3; }
}

/* Three related posts were laid out on the two-column archive grid, so the
   row read 2 + 1 with a hole where the third should sit beside them. The rail
   gets a column each. The smaller 350px crop stays correct here: the slots are
   roughly 240px, not 370. */
@media (min-width: 768px) {
	.tatm-list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
	.tatm-list--three .tatm-card__title { font-size: 17px; margin-top: 8px; }
}

/* ==========================================================================
   Theatre spaces, companies, boards, festivals and vacancies
   These five content types have been public and indexed for years while
   rendering through the article template, which showed a title, an empty body
   and nothing else — every address, website, ticket link, gallery and map
   coordinate sat in fields that no template read.
   ========================================================================== */

.tatm-cpt__kicker {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 11px;
	border-radius: 3px;
	background: var(--tatm-brand-purple);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tatm-hero .tatm-cpt__kicker { background: var(--tatm-brand-red); }

.tatm-cpt__akalabel {
	margin: 0 0 18px;
	color: #5c5c5c;
	font-size: 14px;
	font-style: italic;
}

/* Copy and facts side by side; the facts are the point on these pages, so they
   get a real column rather than a footnote. */
.tatm-cpt__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}

.tatm-cpt__body { max-width: none; }

.tatm-cpt__aside {
	position: sticky;
	top: 103px;
	padding: 22px;
	border: 1px solid #ece9ef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(17, 12, 24, .04);
}

.admin-bar .tatm-cpt__aside { top: 135px; }

/* --- the facts ------------------------------------------------------------ */

.tatm-facts { margin: 0; }

.tatm-facts dt {
	margin-top: 14px;
	color: #9a9a9a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tatm-facts dt:first-child { margin-top: 0; }

.tatm-facts dd {
	margin: 3px 0 0;
	color: #1a1a1a;
	font-size: 15px;
	line-height: 1.45;
	word-break: break-word;
}

.tatm-facts dd a { color: var(--tatm-brand-purple); }
.tatm-facts dd a:hover { color: var(--tatm-brand-red); }

.tatm-cpt__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 20px;
	background: var(--tatm-brand-red);
	color: #fff;
	border: 0;
	text-decoration: none;
}

.tatm-cpt__cta:hover { background: #c8161d; color: #fff; }

/* --- the map -------------------------------------------------------------- */

.tatm-map {
	height: 230px;
	margin-top: 20px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f1f5;
}

.tatm-map__caption {
	margin: 8px 0 0;
	color: #5c5c5c;
	font-size: 12.5px;
	font-style: italic;
	line-height: 1.45;
}

/* Leaflet draws its own controls; keep them below the sticky header. */
.tatm-map .leaflet-top,
.tatm-map .leaflet-bottom { z-index: 400; }

/* --- the gallery ---------------------------------------------------------- */

.tatm-cpt-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
	margin-top: 40px;
}

.tatm-cpt-gallery__item {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 4 / 3;
}

.tatm-cpt-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.tatm-cpt-gallery__item:hover img { transform: scale(1.05); }

/* --- the listings --------------------------------------------------------- */

.tatm-cpt-intro {
	max-width: 56ch;
	margin: 6px 0 0;
	color: #5c5c5c;
	font-size: 16px;
	line-height: 1.6;
}

.tatm-cpt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 28px 24px;
}

.tatm-cpt-card .tatm-card__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: #f3f1f5;
}

.tatm-cpt-card .tatm-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* An entry with no featured image still needs to be the same shape as the rest
   of the row, or the grid goes ragged. */
.tatm-cpt-card__blank {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(237, 28, 36, .07), rgba(111, 47, 132, .09));
}

.tatm-cpt-card .tatm-card__title { font-size: 17px; line-height: 1.3; }

.tatm-cpt-card .tatm-card__meta {
	margin-top: 4px;
	color: #5c5c5c;
	font-size: 13px;
}

.tatm-cpt-empty { color: #5c5c5c; font-size: 16px; }

@media (max-width: 991px) {
	.tatm-cpt__cols { grid-template-columns: 1fr; gap: 28px; }
	.tatm-cpt__aside { position: static; }
}

/* A two-line name — "Ssebaggala Andrew Lwanga Jedidiah" — pushed its own link
   a line below everyone else's, so the row of links sagged in the middle. The
   card body becomes a column and the link is pushed to the bottom of it, which
   lines the row up whatever length the names are. */
.tatm-team__card { height: 100%; }

.tatm-team__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.tatm-team__link { margin-top: auto; padding-top: 10px; }

/* Names and roles both vary in length — "Nalubowa Aidah / Team Lead" against
   "Ssebaggala Andrew Lwanga Jedidiah / Strategic Development Lead" — and each
   one that wraps pushes its own link a line lower than the rest of the row.
   Reserving two lines for each means every card reaches the link at the same
   height, whatever the person is called. */
.tatm-team__name { min-height: 2.6em; }
.tatm-team__role { min-height: 2.8em; }

@media (max-width: 767px) {
	.tatm-team__name,
	.tatm-team__role { min-height: 0; }
}

/* ==========================================================================
   Ad placements
   The slot is a container, not a design: whatever the network's snippet
   produces sits inside it. What the theme controls is the space around it and
   the label, so an ad never reads as part of an article.
   ========================================================================== */

.tatm-ad {
	margin: 32px 0;
	text-align: center;
	line-height: 0;
}

.tatm-ad > * { max-width: 100%; }

.tatm-aside .tatm-ad { margin: 22px 0 0; }

.tatm-ad-band { margin: 0 auto 36px; }
.tatm-ad-row { grid-column: 1 / -1; margin: 6px 0; }

/* The placeholder, which only signed-in editors ever see. Deliberately plain
   and obviously unfinished — it should never be mistaken for a real ad or for
   a broken one. */
.tatm-ad--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 110px;
	padding: 20px;
	border: 2px dashed #c9c3d1;
	border-radius: 10px;
	background: repeating-linear-gradient(
		135deg,
		#fbfafc,
		#fbfafc 10px,
		#f5f3f7 10px,
		#f5f3f7 20px
	);
	line-height: 1.4;
}

.tatm-ad__tag {
	color: var(--tatm-brand-purple);
	font-family: var(--tatm-font-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tatm-ad__name {
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 15px;
	font-weight: 700;
}

.tatm-ad__note {
	color: #8d8d8d;
	font-family: var(--tatm-font-body);
	font-size: 12.5px;
}

/* An image ad is a picture, not a layout element: it never exceeds its slot and
   never distorts, whatever size the advertiser actually sent. */
.tatm-ad__img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
}

.tatm-ad--image a { display: inline-block; line-height: 0; }

.tatm-ad__size {
	color: var(--tatm-brand-purple);
	font-family: var(--tatm-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
}

/* <picture> is inline by default, which would leave a baseline gap under a
   banner and push the slot a few pixels taller than the creative. */
.tatm-ad picture { display: block; }

/* On a phone an image ad takes the full column rather than its desktop cap:
   the inline max-width is the desktop constraint, and keeping it would letterbox
   a 320x100 phone creative inside a 728px box. */
@media (max-width: 600px) {
	.tatm-ad__img { max-width: 100% !important; width: 100%; }
	.tatm-ad { margin: 24px 0; }
}

/* ==========================================================================
   The mobile menu, rebuilt
   It was a single scrolling column: the close button sat at the top of it and
   scrolled out of reach on a short screen, every submenu was permanently
   expanded into one unbroken list of thirteen items, and the social row
   wrapped five-and-one. Head and foot are pinned now, submenus collapse, and
   the whole thing is sized for a thumb.
   ========================================================================== */

/* --- the trigger ---------------------------------------------------------- */

.tatm-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color .2s ease;
}

.tatm-burger:hover,
.tatm-burger:focus-visible { background: rgba(111, 47, 132, .08); }

.tatm-burger__bars {
	display: block;
	position: relative;
	width: 22px;
	height: 16px;
}

.tatm-burger__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1), opacity .2s ease;
}

.tatm-burger__bars span:nth-child(1) { top: 0; }
.tatm-burger__bars span:nth-child(2) { top: 7px; }
.tatm-burger__bars span:nth-child(3) { top: 14px; }

/* Open, the three bars become a cross, so the control says what it will do. */
/* Keyed off aria-expanded, which the drawer script already maintains on the
   button itself — no second source of truth to keep in step. */
.tatm-burger[aria-expanded="true"] .tatm-burger__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tatm-burger[aria-expanded="true"] .tatm-burger__bars span:nth-child(2) { opacity: 0; }
.tatm-burger[aria-expanded="true"] .tatm-burger__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- the drawer ----------------------------------------------------------- */

.tatm-drawer {
	display: flex;
	flex-direction: column;
	width: min(88vw, 360px);
	padding: 0;
	background: #fff;
	box-shadow: -18px 0 50px -20px rgba(14, 9, 18, .45);
	overscroll-behavior: contain;
}

.tatm-drawer__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	padding: 16px;
	border-bottom: 1px solid #f0eff2;
}

/* The brand rule, as everywhere else on the site. */
.tatm-drawer__head::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--tatm-brand-rule);
}

.tatm-drawer__brand img {
	max-height: 46px;
	width: auto;
	display: block;
}

.tatm-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f1f5;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.tatm-drawer__close:hover { background: var(--tatm-brand-red); color: #fff; }
.tatm-drawer__close svg { width: 19px; height: 19px; }

/* Only this middle band scrolls, so the way out never leaves the screen. */
.tatm-drawer__scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px;
}

/* --- search --------------------------------------------------------------- */

.tatm-drawer .tatm-searchform { margin-bottom: 18px; }

.tatm-drawer .tatm-searchform input[type="search"] {
	height: 46px;
	padding: 0 14px;
	border: 1px solid #e4e1e8;
	border-radius: 8px;
	background: #fbfafc;
	/* 16px, or iOS zooms the whole page the moment the field is focused. */
	font-size: 16px;
}

.tatm-drawer .tatm-searchform button {
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: var(--tatm-brand-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
}

/* --- the list ------------------------------------------------------------- */

.tatm-drawer__list,
.tatm-drawer__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tatm-drawer__list > li {
	position: relative;
	border-bottom: 1px solid #f4f3f6;
}

.tatm-drawer__list > li:last-child { border-bottom: 0; }

.tatm-drawer__list a {
	display: block;
	/* Room on the right for the chevron, and a 48px target height for a thumb. */
	padding: 14px 48px 14px 2px;
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.tatm-drawer__list a:hover { color: var(--tatm-brand-red); }

/* Where you are now, marked with the brand red rather than a heavier weight. */
.tatm-drawer__list > li.current-menu-item > a,
.tatm-drawer__list > li.current-menu-ancestor > a {
	padding-left: 12px;
	box-shadow: inset 3px 0 0 var(--tatm-brand-red);
	color: var(--tatm-brand-red);
}

/* --- submenus, collapsed by default --------------------------------------- */

.tatm-drawer__toggle {
	position: absolute;
	top: 4px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #6b6b6b;
	cursor: pointer;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1), background-color .2s ease, color .2s ease;
}

.tatm-drawer__toggle:hover { background: #f3f1f5; color: var(--tatm-brand-purple); }
.tatm-drawer__toggle svg { width: 20px; height: 20px; }

.menu-item-has-children.is-open > .tatm-drawer__toggle {
	transform: rotate(180deg);
	color: var(--tatm-brand-purple);
}

/* The 0fr-to-1fr grid trick is tempting here and wrong: grid-template-rows
   sets the *first* row, so with five <li> children only the first collapses and
   the rest stay at auto. The submenu looked permanently open.

   The height is set in pixels by the script instead, measured from the content,
   so it animates exactly and no arbitrary max-height can clip a long menu. */
.tatm-drawer__sub {
	overflow: hidden;
	max-height: 0;
	transition: max-height .3s cubic-bezier(.2, .7, .3, 1);
}

.tatm-drawer__sub a {
	padding: 11px 10px 11px 16px;
	border-left: 2px solid #ece9ef;
	color: #55505c;
	font-size: 15px;
	font-weight: 400;
}

.tatm-drawer__sub li.current-menu-item a {
	border-left-color: var(--tatm-brand-red);
	color: var(--tatm-brand-red);
	font-weight: 600;
}

/* Without JS there is no chevron to open them, so they stay open. */
html:not(.tatm-js) .tatm-drawer__sub { max-height: none; }

/* --- the foot ------------------------------------------------------------- */

.tatm-drawer__foot {
	flex: 0 0 auto;
	padding: 16px;
	border-top: 1px solid #f0eff2;
	background: #fbfafc;
}

.tatm-drawer__foot-label {
	display: block;
	margin-bottom: 10px;
	color: #9a9a9a;
	font-family: var(--tatm-font-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Six icons on one even row, rather than five and a stray. */
.tatm-social--drawer {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tatm-social--drawer li { margin: 0; }

.tatm-social--drawer .tatm-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border: 1px solid #ece9ef;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	transition: transform .25s cubic-bezier(.2, .7, .3, 1), border-color .2s ease;
}

.tatm-social--drawer .tatm-social__link:hover {
	transform: translateY(-2px);
	border-color: #ddd8e4;
}

.tatm-social--drawer .tatm-social__icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}

.tatm-social--drawer .tatm-social__icon svg { width: 100%; height: 100%; }

/* The name is for screen readers here; six words would not fit the row. */
.tatm-social--drawer .tatm-social__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* --- stacking, while the menu is open -------------------------------------
   The drawer sat at z-index 1000 and the floating donate/write tabs at 9999,
   so the two buttons floated on top of the open menu and over its links. A
   drawer is a modal: nothing belongs above it. */

.tatm-overlay { z-index: 10040; }
.tatm-drawer  { z-index: 10050; }

/* The tabs and the back-to-top button step aside rather than just dropping
   behind, because a control you can see but not reach is worse than one that
   is gone. They come back when the menu closes. */
html.tatm-drawer-open .atfa-floating-actions,
html.tatm-drawer-open .tatm-totop {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility .2s ease;
}

/* ==========================================================================
   Mobile: a header that stays, and buttons that do not collide
   ========================================================================== */

/* --- the bar follows you -------------------------------------------------
   There was no persistent header on a phone at all. The desktop sticky bar is
   display:none below 992px, and the mobile bar was position:relative, so once
   you had read a few paragraphs the masthead, the menu and search were 1,300px
   above you and the only way back was to scroll all the way up. Every other
   breakpoint on this site keeps a header; the phone is where it matters most. */

@media (max-width: 991px) {
	.tatm-mobile-bar {
		position: sticky;
		top: 0;
		z-index: 920;
		background: #fff;
		/* Only once it has left its original position, so the bar is flat at the
		   top of the page and lifts off the article as you go. */
		box-shadow: 0 1px 0 #ececf0;
		transition: box-shadow .25s ease, padding .25s ease;
	}

	/* The admin bar is fixed on small screens too, so the header has to clear it
	   rather than hide underneath. */
	.admin-bar .tatm-mobile-bar { top: 46px; }

	.tatm-mobile-bar.is-stuck {
		box-shadow: 0 6px 20px -10px rgba(14, 9, 18, .35);
	}

	/* A little shorter once it is following you, to give the article back some
	   of the screen. */
	.tatm-mobile-bar.is-stuck .tatm-mobile-bar__inner { padding-top: 6px; padding-bottom: 6px; }
	.tatm-mobile-bar.is-stuck .tatm-branding img { max-height: 38px; }

	.tatm-mobile-bar .tatm-branding img { transition: max-height .25s ease; }
}

/* --- the floating controls stop fighting ---------------------------------
   Back-to-top sat at right:20 and the donate/write tabs at right:10, both near
   the bottom of the screen: a 34px overlap, with the round black button wedged
   between two purple pills. Three controls, one corner.

   They are split on a phone — the tabs keep the right edge they slide out from,
   back-to-top takes the left. Both stay inside a thumb's reach and neither
   hides the other. */

@media (max-width: 991px) {
	.tatm-totop {
		left: 16px;
		right: auto;
		bottom: 88px;
	}
}

/* Below the floating tabs' own breakpoint they sit flat against the bottom
   right, so back-to-top lifts clear of the reading position too. */
@media (max-width: 767px) {
	.tatm-totop { bottom: 96px; }
}

/* --- the hero image, now a real <img> ------------------------------------
   It used to be a CSS background. That made it invisible to the preload
   scanner (not requested until 1,575ms, after the CSS resolved), impossible
   to give a srcset — a phone downloaded the same 1140px file as a desktop —
   and impossible to prioritise. As an <img> it is found in the HTML and
   resolved per device. object-fit reproduces background-size:cover exactly,
   so nothing about the design changes. */

.tatm-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	/* Behind the gradient and the text, which sit at z-index 1. */
	z-index: 0;
}

/* The gradient (.tatm-hero::after) deliberately keeps z-index:auto. As the last
   thing in the element's tree order it already paints above the image, and the
   headline at z-index 1 still sits above both. Giving the image a z-index of 0
   rather than auto only guarantees it stays behind a transformed sibling. */

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

.tatm-comments {
	max-width: var(--tatm-container);
	margin: 48px auto 0;
	padding-top: 32px;
	border-top: 1px solid #ececf0;
}

.tatm-comments__title {
	font-size: 24px;
	margin: 0 0 18px;
}

/* --- the two ways in ------------------------------------------------------
   Facebook first, because that is where this magazine's discussion has always
   been, but a reader without an account -- or with a tracker blocker, which
   stops the SDK by default -- must not be left with nowhere to type. */

.tatm-comments__tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 22px;
	border-bottom: 2px solid #ececf0;
}

.tatm-comments__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #6b6b76;
	cursor: pointer;
	border-radius: 6px 6px 0 0;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.tatm-comments__tab:hover { color: #1b1b22; background: #f7f7fa; }

.tatm-comments__tab.is-active {
	color: var(--tatm-brand-purple, #937EBF);
	border-bottom-color: var(--tatm-brand-purple, #937EBF);
}

.tatm-comments__tab:focus-visible {
	outline: 2px solid var(--tatm-brand-purple, #937EBF);
	outline-offset: 2px;
}

.tatm-comments__tab-icon { flex: none; }

/* The Facebook tab carries Facebook's blue only while it is the active one, so the
   two tabs read as equals rather than one looking like a branded button. */
.tatm-comments__tab.is-active#tatm-tab-fb {
	color: #1877f2;
	border-bottom-color: #1877f2;
}

.tatm-comments__pane[hidden] { display: none; }

.tatm-comments__note {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #6b6b76;
}

/* Reserve the space the thread will occupy, so the footer does not jump up the page
   the moment the SDK renders -- which on a slow connection happens while the reader
   is still reading. */
.tatm-comments__embed { min-height: 200px; }

.tatm-comments__embed.is-unavailable::after {
	content: "The Facebook comment thread could not be loaded. It may be blocked by your browser or network — you can comment with a name and email address on the other tab instead.";
	display: block;
	padding: 18px 20px;
	border: 1px dashed #d8d8e0;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: #6b6b76;
	background: #fafafc;
}

/* --- the site's own thread ------------------------------------------------ */

.tatm-comments__list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.tatm-comments__list .children {
	list-style: none;
	margin: 16px 0 0 28px;
	padding: 0 0 0 20px;
	border-left: 2px solid #ececf0;
}

.tatm-comments__list li.comment { margin: 0 0 22px; }

.tatm-comments__list .comment-body {
	padding: 18px 20px;
	border: 1px solid #ececf0;
	border-radius: 10px;
	background: #fff;
}

.tatm-comments__list .comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 10px;
}

.tatm-comments__list .comment-author .fn {
	font-style: normal;
	font-weight: 700;
}

.tatm-comments__list .comment-meta {
	display: block;
	margin: 6px 0 10px;
	font-size: 13px;
	color: #8a8a95;
}

.tatm-comments__list .comment-meta a { color: inherit; }
.tatm-comments__list .reply { margin-top: 10px; font-size: 13px; font-weight: 600; }

.tatm-comments__form-title { font-size: 18px; margin: 0 0 6px; }

.tatm-comments__form input[type="text"],
.tatm-comments__form input[type="email"],
.tatm-comments__form input[type="url"],
.tatm-comments__form textarea {
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	border: 1px solid #d8d8e0;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.tatm-comments__form input:focus,
.tatm-comments__form textarea:focus {
	border-color: var(--tatm-brand-purple, #937EBF);
	box-shadow: 0 0 0 3px rgba(147, 126, 191, .18);
	outline: none;
}

.tatm-comments__form p { margin: 0 0 16px; }
.tatm-comments__form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.tatm-comments__form .comment-notes,
.tatm-comments__form .comment-form-cookies-consent label { font-weight: 400; color: #6b6b76; font-size: 13px; }
.tatm-comments__form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.tatm-comments__form .comment-form-cookies-consent input { margin-top: 3px; }
.tatm-comments__form .comment-form-cookies-consent label { display: inline; margin: 0; }

/* The author/email/url row sits side by side where there is room for it. */
@media (min-width: 700px) {
	.tatm-comments__form .comment-form-author,
	.tatm-comments__form .comment-form-email {
		display: inline-block;
		width: calc(50% - 8px);
		vertical-align: top;
	}

	.tatm-comments__form .comment-form-author { margin-right: 12px; }
}

.tatm-comments__form .submit {
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--tatm-brand-purple, #937EBF);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tatm-comments__form .submit:hover {
	background: #7c66ac;
	box-shadow: 0 8px 20px -10px rgba(147, 126, 191, .9);
	transform: translateY(-1px);
}

@media (max-width: 991px) {
	.tatm-comments { padding-left: 16px; padding-right: 16px; }
	.tatm-comments__tab { padding: 10px 12px; font-size: 13px; }
}

.tatm-comments__signin {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #f7f7fa;
	font-size: 14px;
	color: #6b6b76;
}

.tatm-comments__signin a {
	font-weight: 600;
	color: var(--tatm-brand-purple, #937EBF);
}

/* ==========================================================================
   Our Team — matched to the live page
   The live page lays the team out in three columns with the text centred under
   a rounded, portrait-shaped photograph that is narrower than its card. This
   grid was four columns, left-aligned, with the picture filling the full card
   width as a hard square — a different thing entirely, which is what was
   noticed.

   Measured from the live page: 3 per row, card 267px, photo 159x171 centred
   with a 34% corner radius, name and role centred beneath it.
   ========================================================================== */

@media (min-width: 768px) {
	.tatm-team,
	.tatm-team[data-tatm-team="board"] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 30px;
	}
}

.tatm-team__card { text-align: center; }

/* The photograph is narrower than the card and centred, rather than bleeding
   to both edges. These portraits are line drawings on a light ground, and a
   full-bleed hard square crops them awkwardly. */
.tatm-team__media {
	width: 100%;
	max-width: 210px;
	margin: 0 auto;
	aspect-ratio: 159 / 171;
	border-radius: 26px;
}

.tatm-team__img { object-position: center top; }

/* Centred with the rest of the card. */
.tatm-team__body { padding-top: 16px; }

.tatm-team__name { margin-bottom: 5px; }

.tatm-team__bio { margin-left: auto; margin-right: auto; max-width: 34ch; }

.tatm-team__link {
	justify-content: center;
	margin-top: 12px;
}

/* The brand rule reads as a line under a centred card rather than a bar
   anchored to its left edge. */
.tatm-team__media::after { transform-origin: center; }

@media (max-width: 767px) {
	.tatm-team__media { max-width: 170px; }
	.tatm-team__bio { max-width: none; }
}

/* ==========================================================================
   The space above a page's content
   Four paddings were stacking under the masthead before a reader reached any
   content: the entry header's 48px top, the h1's own 14px margin, the content
   wrapper's 40px, and then the first About Us band's 24px. Measured on About
   Us that was 62px above the title and 84px between the title and the first
   line of copy — a screen of nothing on a laptop.

   Each one was reasonable on its own. They are reduced together rather than
   zeroed, so the title still has air around it.
   ========================================================================== */

.tatm-entry-header { padding-top: 30px; padding-bottom: 6px; }
.tatm-entry-header .tatm-hero__title { margin-top: 0; }

.page .tatm-content { padding-top: 16px; }

/* The band supplies its own rhythm between sections; it does not need to
   repeat it against the page title. */
.tatm-about__section:first-of-type { padding-top: 0; }

/* ==========================================================================
   Our Team — the portrait was never filling its frame
   `.tatm-entry-content img { margin: 1.6em 0 }` is the article rule that gives
   a photograph room inside running copy. The team portraits live in page
   content, so they inherited it: each image was pushed 25.6px down inside its
   210x226 frame and overflowed the bottom by 10px. That is the pale rounded
   strip visible above every portrait — it is the frame's own background
   showing through where the picture had been shunted off.

   It also explains the stray red and purple marks either side of the photo.
   The brand rule is drawn at the frame's bottom edge; with the picture sitting
   26px low and proud of that edge, the rule crossed the portrait instead of
   sitting under it, and the opaque middle of the drawing hid the gold third —
   leaving a red stub on the left and a purple stub on the right.

   The height was also lost the same way: `height: auto` from the image rules
   beat `height: 100%`, so the frame was 226px tall and the picture 210px.

   Specificity is matched to `.tatm-entry-content img` rather than forced with
   !important.
   ========================================================================== */

.tatm-entry-content .tatm-team__media img,
.tatm-entry-content img.tatm-team__img {
	width: 100%;
	height: 100%;
	margin: 0;
	display: block;
	object-fit: cover;
	object-position: center top;
	border-radius: 0;
}

/* ==========================================================================
   Home tiles — meta on hover
   The headline sits over a photograph, where it has to win. A byline shown at
   rest competes with it for the same small patch of legible space, so the meta
   is held back and revealed on hover: author and date on the lead tile, date
   alone on the smaller ones.

   The reveal animates `grid-template-rows` from 0fr to 1fr, not `max-height`.
   max-height has to be guessed at, and the guess was 4em against ~16px of
   content: the row finished opening in the first quarter of the duration and
   the remaining three quarters animated nothing, which is the snap-then-wait
   that made it feel abrupt. 0fr to 1fr interpolates against the content's own
   height, so the easing curve applies to the whole movement.

   Everything else is opacity and transform, which the compositor can run
   without laying the page out again each frame. `margin-top` was animating
   before and forced a reflow per frame.
   ========================================================================== */

.tatm-tile__meta {
	display: grid;
	grid-template-rows: 0fr;
	position: relative;
	z-index: 2;
	transition: grid-template-rows .44s cubic-bezier(.22, .61, .36, 1);
}

.tatm-tile:hover .tatm-tile__meta,
.tatm-tile:focus-within .tatm-tile__meta { grid-template-rows: 1fr; }

/* min-height:0 is required or the grid row refuses to go below the content's
   automatic minimum and nothing moves at all. */
.tatm-tile__meta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px 11px;
	min-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(5px);
	/* Padding is part of the box even when the grid row is 0fr, so a standing
	   9px of it held the row open a sliver at rest — a visible gap under the
	   title before any hover. It opens with the row instead, on the same
	   curve, so the two read as one movement. */
	padding-top: 0;
	transition:
		opacity .3s ease,
		transform .44s cubic-bezier(.22, .61, .36, 1),
		padding-top .44s cubic-bezier(.22, .61, .36, 1);

	/* Matched to the hero slide's meta line — the same information in the same
	   role. `.tatm-meta` is 11px of the display face, .03em tracking, uppercase,
	   75% white. */
	color: rgba(255, 255, 255, .75);
	font-family: var(--tatm-font-display);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .03em;
	line-height: 1.45;
	text-transform: uppercase;
}

.tatm-tile:hover .tatm-tile__meta-inner,
.tatm-tile:focus-within .tatm-tile__meta-inner {
	opacity: 1;
	transform: none;
	/* A beat behind the row, so the text arrives into space already made for
	   it rather than being clipped on the way in. */
	padding-top: 9px;
	/* Opacity and transform lag the row slightly so the text arrives into
	   space already made for it; the padding moves with the row, not behind
	   it. */
	transition-delay: .08s, .08s, 0s;
}

/* The byline carries real links. They sit above the tile's full-card link
   layer so they stay clickable and keyboard-reachable — but they are not
   underlined: at 11px over a photograph a rule under the name reads as noise,
   and the hover colour is enough to show it is a link. */
.tatm-tile__meta a {
	color: inherit;
	text-decoration: none;
	border-bottom: 0;
	transition: color .2s ease;
}

.tatm-tile__meta a:hover,
.tatm-tile__meta a:focus-visible {
	color: #fff;
	text-decoration: none;
}

/* A separator only when both parts are present, i.e. on the lead tile. */
.tatm-tile__author + .tatm-tile__date::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-right: 10px;
	margin-bottom: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	vertical-align: middle;
}

.tatm-tile__date { white-space: nowrap; }

/* Touch has no hover: there the meta is simply always open rather than
   unreachable. */
@media (hover: none) {
	.tatm-tile__meta { grid-template-rows: 1fr; }
	.tatm-tile__meta-inner { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tatm-tile__meta,
	.tatm-tile__meta-inner { transition: none; }
}

/* ==========================================================================
   Our Team — the card, the ring and the coloured line
   Three devices that were lost and are wanted back. Taken from the live page:
   the member sits on a white card with a soft shadow, and the portrait wears a
   6px #eee ring at a 34% corner radius — the "circular border" — at 194x206.

   The coloured line is the brand rule drawn ACROSS the card, behind the
   portrait. The ring and the picture are opaque, so they mask the gold middle
   third and what shows either side is red on the left and purple on the right.
   That is the effect in the reference, and it keeps the full triad in the
   markup rather than faking it with two coloured stubs.

   I previously read this line as a rendering fault and removed it. It is a
   deliberate device; the fault was only that the portrait used to sit 26px low
   and the line crossed the picture instead of passing behind its middle.
   ========================================================================== */

/* The card STARTS at the coloured line rather than extending above it, and the
   portrait straddles that edge — its upper half outside the card, its lower
   half inside — so the picture reads as floating on the line.

   The overhang is made by pulling the portrait up by exactly half its height
   and giving each card the same amount of top margin to sit in. The grid's own
   row gap is then clear space between rows rather than being eaten by the
   overhang. */
.tatm-team__card {
	position: relative;
	padding: 0 16px 26px;
	border: 1px solid #ece9ef;
	background: #fff;
	box-shadow: 0 1px 3px rgba(17, 12, 24, .04);
	overflow: visible;
	transition: box-shadow .35s ease, transform .35s cubic-bezier(.2, .7, .3, 1);
}

.tatm-team__card:hover {
	box-shadow: 0 14px 30px -16px rgba(17, 12, 24, .3);
}

/* The brand rule sits on the card's own top edge, covering its border. */
.tatm-team__card::before {
	content: "";
	position: absolute;
	left: -1px;
	right: -1px;
	top: -1px;
	height: 3px;
	background: var(--tatm-brand-rule);
	z-index: 0;
}

/* --- the portrait and its ring -------------------------------------------- */

.tatm-team__media {
	position: relative;
	z-index: 1;
	width: 194px;
	height: 206px;
	max-width: 100%;
	/* Half of 206 lifts the portrait so the line passes through its middle. */
	margin: -103px auto 0;
	aspect-ratio: auto;
	border: 6px solid #eee;
	border-radius: 34%;
	background: #fff;
	box-shadow: 2px 0 1px rgba(0, 0, 0, .05);
	overflow: hidden;
}

.tatm-entry-content .tatm-team__media img,
.tatm-entry-content img.tatm-team__img {
	width: 100%;
	height: 100%;
	margin: 0;
	display: block;
	object-fit: cover;
	object-position: center top;
}

/* The hover rule that used to live at the foot of the frame is gone: the card
   now carries a permanent line, and a second one appearing on hover read as a
   glitch. */
.tatm-team__media::after { content: none; }

.tatm-team__body { position: relative; z-index: 1; padding-top: 18px; }

/* No social row on these cards any more — the same three magazine accounts
   were repeated on all twenty people, so they said nothing about anyone. The
   markup is gone from the content; this is belt and braces for any that
   survive in an older revision. */
.tatm-team__social { display: none; }

/* The overhang needs room above each row. Giving the CARD a top margin does
   not provide it: a grid item's margin is absorbed into its own row track, so
   the card below simply started lower and the gap between the two card boxes
   stayed at the 40px row-gap — the portrait, hanging 103px proud, then cut 62px
   into the card above it.

   The room has to come from the row gap itself: 103px for the overhang plus
   44px of actual clear space. The grid's own top padding does the same job for
   the first row. */
.tatm-team,
.tatm-team[data-tatm-team="board"] {
	padding-top: 103px;
	row-gap: 147px;
}

@media (max-width: 767px) {
	.tatm-team,
	.tatm-team[data-tatm-team="board"] {
		padding-top: 80px;
		row-gap: 116px;
	}

	.tatm-team__card { padding: 0 10px 22px; }
	.tatm-team__media { width: 150px; height: 159px; margin-top: -80px; }
}

/* ==========================================================================
   Hero slider — both arrows on one side
   The previous arrow sat at the slider's left edge, which is exactly where the
   category badge, the headline and the standfirst are. On a long title it
   landed on top of the words.

   Both controls now sit together at the right edge, previous then next, still
   vertically centred. The copy is capped at 720px inside 44px of padding, so
   it ends around 764px of a 1130px slider — the right side is clear, and the
   dots are at the foot, so the pair collides with neither.
   ========================================================================== */

.tatm-slider__arrow--prev,
.tatm-slider__arrow--next { left: auto; right: 20px; }

/* Stacked, not side by side: next above, previous below, the pair centred on
   the slider's midline. Each button is 44px and the base rule offsets it by
   -22px, so -50px and +6px put them either side of the centre with 12px
   between. */
.tatm-slider__arrow--next { margin-top: -50px; }
.tatm-slider__arrow--prev { margin-top: 6px; }

@media (max-width: 1199px) {
	.tatm-slider__arrow--prev,
	.tatm-slider__arrow--next { right: 14px; }
}

/* ==========================================================================
   Contribute Content — the agreement gate
   The Proceed control is visible from the start but disabled until the box is
   ticked, rather than absent and appearing from nowhere: a reader can see what
   they are working toward, and the page does not shift when it arrives.
   ========================================================================== */

.tatm-gate {
	margin: 34px 0 10px;
	padding: 24px 26px 26px;
	border: 1px solid #ece9ef;
	border-left: 3px solid var(--tatm-brand-red);
	border-radius: 12px;
	background: #fbfafc;
}

.tatm-gate__row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tatm-gate__check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--tatm-brand-purple);
	cursor: pointer;
}

.tatm-gate__label {
	margin: 0;
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
}

.tatm-gate__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	padding: 13px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--tatm-brand-red);
	color: #fff;
	font-family: var(--tatm-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1),
	            box-shadow .25s ease, opacity .25s ease;
}

.tatm-gate__btn svg { width: 15px; height: 15px; transition: transform .3s cubic-bezier(.2, .7, .3, 1); }

.tatm-gate__btn:hover:not([disabled]) {
	background: #c8161d;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(237, 28, 36, .7);
}

.tatm-gate__btn:hover:not([disabled]) svg { transform: translateX(4px); }

/* Disabled has to look disabled — and `cursor: not-allowed` is what tells
   someone who clicks it that nothing is broken, the condition is just unmet. */
.tatm-gate__btn[disabled] {
	background: #d8d4de;
	color: #6b6b6b;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.tatm-gate__hint {
	margin: 10px 0 0;
	color: #7c7c7c;
	font-family: var(--tatm-font-body);
	font-size: 13.5px;
	font-style: italic;
	line-height: 1.5;
	transition: opacity .25s ease;
}

.tatm-gate__hint[hidden] { display: none; }

.tatm-rule {
	height: 1px;
	margin: 36px 0 24px;
	border: 0;
	background: #e7e3ea;
}

@media (max-width: 599px) {
	.tatm-gate { padding: 20px 18px 22px; }
	.tatm-gate__btn { width: 100%; justify-content: center; }
}

/* The submit button's label sat low and off-centre. It inherited a 40px
   line-height from the global button rule while also carrying 14px of vertical
   padding inside a 40px border-box: the text's line box was taller than the
   content box it sat in, so the glyphs were pushed below the middle. Padding
   does the centring; the line-height just has to get out of its way. */
.tatm-cform input[type="submit"],
.tatm-entry-content .wpcf7-form input[type="submit"] {
	height: auto;
	line-height: 1;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   Social icons — optical alignment
   Every icon is a 24x24 viewBox rendered into the same box, so geometrically
   they were already on one line. The DRAWINGS inside those boxes are not
   consistent, which is what the eye picks up. Measured ink, rendered at 14px:

     facebook   top 3.50  height  9.33   <- 1.2px low, and the smallest
     twitter    top 1.75  height 10.50
     instagram  top 1.63  height 10.56
     youtube    top 2.92  height  8.17
     linkedin   top 2.45  height  9.22
     tiktok     top 1.17  height 11.14

   Facebook's mark sits 1.17px below the optical centre — 8% of the icon — so
   it reads as dropped even though its box is aligned to the pixel.

   Each icon is nudged to put its ink on the common centre line and scaled so
   the largest dimension matches. Normalising on the largest dimension rather
   than on height: YouTube's mark is wide and short by nature, and matching it
   to the others by height alone would make it far too wide.

   Values are percentages of the icon's own size, so this holds at the 14px
   topbar size and the larger footer one alike.
   ========================================================================== */

.tatm-social__icon svg { transform-origin: center; }

.tatm-social--facebook  .tatm-social__icon svg { transform: translateY(-9.8%) scale(1.179); }
.tatm-social--twitter   .tatm-social__icon svg { transform: scale(.967); }
.tatm-social--instagram .tatm-social__icon svg { transform: translateY(.67%) scale(1.042); }
.tatm-social--youtube   .tatm-social__icon svg { transform: scale(.943); }
.tatm-social--linkedin  .tatm-social__icon svg { transform: translateY(-.47%) scale(1.102); }
.tatm-social--tiktok    .tatm-social__icon svg { transform: translateY(1.84%) scale(.987); }

/* The hint carries a -8px top margin so it tucks under a text field, whose
   wrapping label already contributes 16px below it. The upload block is built
   differently — a span, the input, then the hint — so that same -8px pulled
   the hint 8px INTO the dashed box and printed it across the border. Measured:
   file box bottom 1691, hint top 1683.

   The upload block sets its own spacing rather than inheriting that tuck. */
.tatm-cform__upload {
	margin: 0 0 22px;
}

.tatm-cform__upload-label {
	margin-bottom: 10px;
}

.tatm-cform__upload input[type="file"] {
	margin: 0;
}

.tatm-cform__upload .tatm-cform__hint {
	margin: 12px 0 0;
}

/* A little more air between the end of one field's hint and the next field's
   label, which were reading as one block. */
.tatm-cform__hint + .tatm-cform__upload-label,
.tatm-cform__hint + label { margin-top: 4px; }

/* ==========================================================================
   Compact dropdowns
   A native <select> popup is drawn by the browser, not the page, so its height
   cannot be limited in CSS — with 57 countries it ran most of the screen. The
   listbox below opens directly under the field and scrolls inside a fixed
   height. The native control stays in the form and remains the value; this is
   only its face.
   ========================================================================== */

.tatm-select { position: relative; }

/* Present but not shown. A hidden select still submits, so the form is
   unchanged; `display: none` rather than a visually-hidden class because the
   button beside it is what takes focus. */
.tatm-select__native { display: none !important; }

.tatm-select__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	height: auto;
	padding: 11px 13px;
	border: 1px solid #ddd8e2;
	border-radius: 8px;
	background: #fff
		url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f2f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
		no-repeat right 12px center;
	background-size: 17px 17px;
	padding-right: 38px;
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: border-color .22s ease, box-shadow .22s ease;
}

.tatm-select__button:focus-visible,
.tatm-select.is-open .tatm-select__button {
	outline: 0;
	border-color: var(--tatm-brand-purple);
	box-shadow: 0 0 0 3px rgba(111, 47, 132, .12);
}

.tatm-select.is-placeholder .tatm-select__button { color: #8a8a8a; }

.tatm-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- the list ------------------------------------------------------------- */

.tatm-select__list {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	/* Roughly eight rows. Enough to scan, short enough to sit on the page
	   rather than cover it. */
	max-height: 268px;
	margin: 0;
	padding: 6px;
	border: 1px solid #e4dfe9;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 38px -14px rgba(17, 12, 24, .34);
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.tatm-select__list[hidden] { display: none; }

.tatm-select__option {
	margin: 0;
	padding: 9px 12px;
	border-radius: 6px;
	color: #1a1a1a;
	font-family: var(--tatm-font-body);
	font-size: 14.5px;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.tatm-select__option:hover { background: rgba(111, 47, 132, .07); }

.tatm-select__option[aria-selected="true"] {
	background: var(--tatm-brand-purple);
	color: #fff;
}

/* A visible scrollbar tells the reader there is more below. */
.tatm-select__list::-webkit-scrollbar { width: 10px; }
.tatm-select__list::-webkit-scrollbar-track { background: transparent; }
.tatm-select__list::-webkit-scrollbar-thumb {
	border: 3px solid #fff;
	border-radius: 10px;
	background: #cfc8d6;
}
.tatm-select__list::-webkit-scrollbar-thumb:hover { background: #b5abbf; }

@media (prefers-reduced-motion: reduce) {
	.tatm-select__button,
	.tatm-select__option { transition: none; }
}

/* The theme has a blanket `button:hover { background: var(--tatm-red) }` for
   action buttons. The select's face is a <button> but it is a form control,
   not an action: on hover it was turning brand red, and because that rule uses
   the `background` shorthand it also wiped the chevron to none. Restated at a
   specificity that beats `button:hover` (0,1,1), with the image included. */
.tatm-select .tatm-select__button:hover,
.tatm-select .tatm-select__button:focus,
.tatm-select .tatm-select__button:focus-visible {
	background: #fff
		url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f2f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
		no-repeat right 12px center;
	background-size: 17px 17px;
	color: #1a1a1a;
	border-color: var(--tatm-brand-purple);
}

.tatm-select.is-placeholder .tatm-select__button:hover,
.tatm-select.is-placeholder .tatm-select__button:focus { color: #8a8a8a; }

/* The options sit inside the field's <label>, which is uppercase for the field
   name. Country names are not. */
.tatm-select__list,
.tatm-select__option {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

/* The contact form's Send button collapsed to 180x13.
   The theme's generic control rule gives buttons `height: 40px` with
   `padding: 0 20px` — no vertical padding at all, the fixed height doing all
   the work. Setting `height: auto` to fix the label's vertical centring took
   that height away and left nothing holding the box open.

   The button now sizes itself from its own padding, which is what `height:
   auto` assumed in the first place. A min-height keeps it a comfortable
   target on every template. */
.tatm-entry-content .wpcf7-form input[type="submit"],
.tatm-contact__form .wpcf7-submit,
.tatm-cform input[type="submit"] {
	min-height: 48px;
	padding: 14px 32px;
	line-height: 1;
	font-size: 12px;
	letter-spacing: .1em;
}
