/*
Theme Name: TrenchFoot Society
Author: TrenchFoot Society Podcast
Description: A dark WW1 broadsheet and radio-broadcast theme for the TrenchFoot Society Podcast. Episodes and Articles categories, episode detail fields (number, Spotify, YouTube), a live dateline and an issue number that follows the latest episode.
Version: 1.9.8
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trenchfoot
*/

@font-face {
	font-family: 'TFS Germanica';
	src: url('assets/fonts/TFS-Germanica.ttf') format('truetype');
	font-weight: 400; font-style: normal; font-display: swap;
}

:root {
	--tfs-ink: #0d0b0a;
	--tfs-ink-2: #171310;
	--tfs-ink-3: #241e1a;
	--tfs-ink-deep: #080706;
	--tfs-rule: #3a332d;
	--tfs-paper: #ece6da;
	--tfs-paper-bright: #f4efe6;
	--tfs-body: #cfc6b6;
	--tfs-muted: #a89f90;
	--tfs-red: #b3201b;
	--tfs-red-text: #e5534b;
	--tfs-font-mast: 'UnifrakturMaguntia', 'Old English Text MT', serif;
	--tfs-font-title: 'TFS Germanica', 'UnifrakturMaguntia', 'Old English Text MT', serif; /* site title at the top of every page */
	--tfs-font-body: 'Old Standard TT', Georgia, 'Times New Roman', serif;
	--tfs-font-type: 'Special Elite', 'Courier New', monospace;
	--tfs-width: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--tfs-ink);
	color: var(--tfs-paper);
	font-family: var(--tfs-font-body);
	font-size: 18px;
	line-height: 1.6;
}

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

a { color: var(--tfs-paper); }
a:hover, a:focus-visible { color: var(--tfs-red-text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tfs-red-text); outline-offset: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	background: var(--tfs-paper); color: var(--tfs-ink); padding: 12px 16px;
}

.tfs-type {
	font-family: var(--tfs-font-type);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.tfs-wrap { max-width: var(--tfs-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Banner ---------- */
.tfs-banner {
	background: var(--tfs-red);
	color: #fff;
	font-family: var(--tfs-font-type);
	font-size: 14px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 10px 16px;
	text-align: center;
}

/* ---------- Header ---------- */
.tfs-header { padding-top: 40px; }

.tfs-dateline {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--tfs-muted);
	border-bottom: 1px solid var(--tfs-rule);
	padding-bottom: 12px;
}

.tfs-masthead {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 24px 40px; padding: 36px 0 28px;
}
.tfs-masthead__logo img, .tfs-masthead__logo .custom-logo {
	width: 220px; height: 220px; object-fit: contain; display: block;
}
.tfs-masthead__text { text-align: center; }
.tfs-masthead__the { font-family: var(--tfs-font-type); font-size: 15px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--tfs-muted); }
.tfs-masthead__title {
	margin: 4px 0; font-family: var(--tfs-font-title); font-weight: 400; word-spacing: -0.3em;
	font-size: clamp(48px, 8vw, 104px); line-height: 1; color: var(--tfs-paper-bright);
}
/* Keep the logo on the LEFT of the name on wider screens (Shadowed Germanica is wide). */
@media (min-width: 900px) {
	.tfs-masthead { flex-wrap: nowrap; }
	.tfs-masthead__logo { flex: none; }
	.tfs-masthead__text { min-width: 0; }
	.tfs-masthead__title { font-size: clamp(52px, 6vw, 84px); }
}
.tfs-masthead__title a { color: inherit; text-decoration: none; }
.tfs-masthead__sub { font-family: var(--tfs-font-type); font-size: 18px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--tfs-red-text); }

.tfs-tagline { margin: 0; text-align: center; font-style: italic; font-size: 20px; color: var(--tfs-body); }

.tfs-nav {
	margin-top: 28px;
	border-top: 4px double var(--tfs-paper);
	border-bottom: 4px double var(--tfs-paper);
}
.tfs-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px;
	font-family: var(--tfs-font-type); font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase;
}
.tfs-nav a { display: block; padding: 14px 20px; text-decoration: none; }
.tfs-nav .current-menu-item > a, .tfs-nav .current_page_item > a, .tfs-nav .current-cat > a { color: var(--tfs-red-text); }

/* ---------- Main ---------- */
.tfs-main { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 64px; }

.tfs-kicker {
	display: flex; align-items: center; gap: 12px;
	font-family: var(--tfs-font-type); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--tfs-red-text);
}
.tfs-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tfs-red); flex: none; animation: tfs-onair 1.6s ease-in-out infinite; }
@keyframes tfs-onair { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .tfs-dot { animation: none; } }

.tfs-meta { font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tfs-muted); }

.tfs-section-title {
	margin: 0 0 8px; font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--tfs-paper-bright);
	border-bottom: 4px double var(--tfs-paper); padding-bottom: 12px;
}

/* Lead story */
.tfs-lead {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 40px; align-items: start;
}
.tfs-lead__text { display: flex; flex-direction: column; gap: 16px; }
.tfs-lead__title { margin: 0; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-lead__title a { color: inherit; text-decoration: none; }
.tfs-lead__title a:hover { color: var(--tfs-red-text); }
.tfs-lead__excerpt { font-size: 19px; line-height: 1.6; color: var(--tfs-body); }
.tfs-lead__excerpt p { margin: 0; }
.tfs-lead__media { display: flex; flex-direction: column; gap: 16px; }

.tfs-embed { border: 1px solid var(--tfs-rule); background: var(--tfs-ink-2); }
.tfs-embed iframe { display: block; width: 100%; border: 0; }
.tfs-embed--video { aspect-ratio: 16 / 9; }
.tfs-embed--video iframe { height: 100%; }

.tfs-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tfs-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px;
	font-family: var(--tfs-font-type); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
	text-decoration: none;
}
.tfs-btn--red { background: var(--tfs-red); color: #fff; }
.tfs-btn--red:hover, .tfs-btn--red:focus-visible { background: #8e1612; color: #fff; }
.tfs-btn--outline { border: 2px solid var(--tfs-paper); color: var(--tfs-paper); }
.tfs-btn--outline:hover, .tfs-btn--outline:focus-visible { background: var(--tfs-paper); color: var(--tfs-ink); }

.tfs-empty {
	border: 1px dashed var(--tfs-rule); padding: 32px; text-align: center; color: var(--tfs-muted);
}

/* Dispatches + sidebar */
.tfs-columns { display: flex; flex-wrap: wrap; gap: 48px; }
.tfs-columns__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.tfs-columns__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

.tfs-dispatch {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px;
	padding: 24px 0; border-bottom: 1px solid var(--tfs-rule);
}
.tfs-dispatch__num { font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tfs-red-text); line-height: 1.6; }
.tfs-dispatch__body { display: flex; flex-direction: column; gap: 8px; }
.tfs-dispatch__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.tfs-dispatch__title a { text-decoration: none; }
.tfs-dispatch__excerpt { font-size: 17px; line-height: 1.55; color: var(--tfs-body); }
.tfs-dispatch__excerpt p { margin: 0; }

.tfs-more {
	align-self: flex-start; margin-top: 24px;
	font-family: var(--tfs-font-type); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--tfs-red-text);
}

.tfs-tunein { border: 2px solid var(--tfs-paper); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tfs-tunein__label { text-align: center; color: var(--tfs-muted); font-size: 14px; letter-spacing: 0.2em; }
.tfs-tunein .tfs-btn { width: 100%; }
.tfs-tunein .tfs-btn--outline { border-width: 1px; }

.tfs-about { display: flex; flex-direction: column; gap: 12px; }
.tfs-about h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--tfs-paper-bright); border-bottom: 1px solid var(--tfs-rule); padding-bottom: 10px; }
.tfs-about p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--tfs-body); }

.tfs-sendword { background: var(--tfs-ink-2); border-top: 4px solid var(--tfs-red); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tfs-sendword p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tfs-body); }

.tfs-link-small { font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.tfs-link-small--red { color: var(--tfs-red-text); }

/* Articles grid */
.tfs-articles { display: flex; flex-direction: column; gap: 24px; }
.tfs-articles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.tfs-card { display: flex; flex-direction: column; gap: 12px; }
.tfs-card__image { aspect-ratio: 3 / 2; background: var(--tfs-ink-2); border: 1px solid var(--tfs-rule); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tfs-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfs-card__image--empty img { width: 40%; height: auto; object-fit: contain; opacity: 0.5; }
.tfs-card__tag { font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tfs-red-text); }
.tfs-card__title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; }
.tfs-card__title a { text-decoration: none; }
.tfs-card__excerpt { font-size: 16px; line-height: 1.55; color: var(--tfs-body); }
.tfs-card__excerpt p { margin: 0; }

/* ---------- Single posts and pages ---------- */
.tfs-article { max-width: 820px; margin: 0 auto; width: 100%; }
.tfs-article__header { display: flex; flex-direction: column; gap: 14px; border-bottom: 4px double var(--tfs-paper); padding-bottom: 24px; margin-bottom: 32px; }
.tfs-article__title { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-article__media { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.tfs-article__thumb { margin: 0 0 32px; }
.tfs-article__thumb img { display: block; width: 100%; border: 1px solid var(--tfs-rule); }

.tfs-postnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--tfs-rule); }

.entry-content { font-size: 19px; line-height: 1.7; color: var(--tfs-body); }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--tfs-paper-bright); line-height: 1.2; margin-top: 1.6em; margin-bottom: 0.6em; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 25px; }
.entry-content a { color: var(--tfs-red-text); }
.entry-content a:hover { color: var(--tfs-paper); }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--tfs-red); font-style: italic; color: var(--tfs-paper); }
.entry-content hr { border: 0; border-top: 4px double var(--tfs-paper); margin: 2em 0; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--tfs-muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--tfs-rule); padding: 8px 12px; text-align: left; }
.entry-content code, .entry-content pre { background: var(--tfs-ink-2); color: var(--tfs-paper); }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content .wp-block-embed iframe { width: 100%; }
.entry-content .wp-block-button__link { background: var(--tfs-red); color: #fff; border-radius: 0; font-family: var(--tfs-font-type); text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; }
.alignwide { max-width: 1100px; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }

/* Archive */
.tfs-archive-header { border-bottom: 4px double var(--tfs-paper); padding-bottom: 16px; }
.tfs-archive-header h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); color: var(--tfs-paper-bright); }
.tfs-archive-header .tfs-archive-desc { color: var(--tfs-body); margin-top: 8px; }
.tfs-pagination { margin-top: 32px; font-family: var(--tfs-font-type); text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; }
.tfs-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tfs-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--tfs-rule); text-decoration: none; }
.tfs-pagination .page-numbers.current { background: var(--tfs-red); border-color: var(--tfs-red); color: #fff; }

/* Search form */
.search-form { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form label { flex: 1 1 220px; }
.search-field { width: 100%; min-height: 48px; padding: 0 14px; background: var(--tfs-ink-2); color: var(--tfs-paper); border: 1px solid var(--tfs-rule); font: inherit; }
.search-submit { min-height: 48px; padding: 0 20px; background: var(--tfs-red); color: #fff; border: 0; font-family: var(--tfs-font-type); text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; }

/* ---------- Footer ---------- */
.tfs-footer { border-top: 4px double var(--tfs-paper); background: var(--tfs-ink-deep); }
.tfs-footer__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.tfs-footer__brand { display: flex; align-items: center; gap: 16px; }
.tfs-footer__brand img { width: 72px; height: 72px; object-fit: contain; display: block; }
.tfs-footer__name { font-family: var(--tfs-font-title); font-size: 28px; color: var(--tfs-paper-bright); line-height: 1.1; word-spacing: -0.3em; }
.tfs-footer__signoff { font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tfs-muted); }
.tfs-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.tfs-footer nav a { text-decoration: none; display: inline-block; padding: 10px 0; }
.tfs-copyright { width: 100%; font-size: 13px; color: var(--tfs-muted); border-top: 1px solid var(--tfs-rule); padding-top: 16px; }

/* ---------- Articles page: filters, results, game chips ---------- */
html { color-scheme: dark; }

.tfs-fielddesk { display: flex; flex-direction: column; gap: 24px; }

.tfs-filters {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
	padding: 20px; background: var(--tfs-ink-2); border-top: 4px solid var(--tfs-red);
}
.tfs-filters__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.tfs-filters__field--grow { flex: 2 1 260px; }
.tfs-filters label {
	font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tfs-muted);
}
.tfs-filters input[type="search"],
.tfs-filters select {
	width: 100%; min-height: 48px; padding: 0 14px;
	background-color: var(--tfs-ink); color: var(--tfs-paper);
	border: 1px solid var(--tfs-rule); border-radius: 0;
	font-family: var(--tfs-font-body); font-size: 17px;
}
.tfs-filters input[type="search"]::placeholder { color: var(--tfs-muted); opacity: 1; font-style: italic; }
.tfs-filters select {
	-webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ece6da' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.tfs-filters input[type="search"]:focus,
.tfs-filters select:focus { outline: 2px solid var(--tfs-red-text); outline-offset: 0; border-color: var(--tfs-red-text); }
.tfs-filters__actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.tfs-filters button { border: 0; cursor: pointer; }

.tfs-results { margin: 0; font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tfs-muted); }

.tfs-card__tag a { color: inherit; text-decoration: none; }
.tfs-card__tag a:hover, .tfs-card__tag a:focus-visible { text-decoration: underline; }

.tfs-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tfs-chips a {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
	border: 1px solid var(--tfs-red); color: var(--tfs-red-text); text-decoration: none;
	font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.tfs-chips a:hover, .tfs-chips a:focus-visible { background: var(--tfs-red); color: #fff; }

.tfs-meta a { color: var(--tfs-paper); }
.tfs-meta a:hover { color: var(--tfs-red-text); }

/* ---------- Locked menu tab (Shop while closed) ---------- */
.tfs-nav li { position: relative; }
.tfs-nav-locked {
	position: relative; display: block; padding: 14px 20px;
	color: var(--tfs-muted); cursor: not-allowed; user-select: none;
}
.tfs-nav-stamp {
	position: absolute; left: 50%; top: 68%;
	transform: translate(-50%, -50%) rotate(-9deg);
	padding: 1px 6px 0;
	border: 2px solid var(--tfs-red-text);
	background: transparent;
	color: var(--tfs-red-text);
	font-family: var(--tfs-font-type); font-size: 10px; line-height: 1.2;
	letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
	pointer-events: none;
}

@media (max-width: 600px) {
	.tfs-nav-locked { padding: 12px 12px; }
	.tfs-dossier { padding: 40px 20px 28px; }
}

/* ---------- Resources page placeholder ---------- */
.tfs-dossier {
	position: relative; max-width: 760px; margin-top: 56px;
	padding: 40px 32px; background: var(--tfs-ink-2);
	border-top: 4px double var(--tfs-paper); border-bottom: 4px double var(--tfs-paper);
}
.tfs-dossier__stamp {
	position: absolute; top: -18px; right: 16px; transform: rotate(-8deg);
	padding: 4px 12px 2px; border: 4px double var(--tfs-red-text); color: var(--tfs-red-text);
	background: rgba(13, 11, 10, 0.6);
	font-family: var(--tfs-font-type); font-size: 20px; letter-spacing: 0.16em; text-transform: uppercase;
}
.tfs-dossier__label { margin: 0 0 12px; font-size: 12px; color: var(--tfs-muted); letter-spacing: 0.18em; }
.tfs-dossier__title { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: var(--tfs-paper-bright); }
.tfs-dossier__text { margin: 0; font-size: 18px; line-height: 1.6; color: var(--tfs-body); }

/* ---------- Resources page ---------- */
.tfs-res { gap: 72px; }
.tfs-res-intro { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.tfs-res-intro .tfs-kicker { letter-spacing: 0.24em; }
.tfs-res-intro__title { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1.05; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-res-intro__text { margin: 0; max-width: 680px; font-size: 20px; line-height: 1.6; color: var(--tfs-body); }
.tfs-res-intro__text p:last-child { margin-bottom: 0; }
.tfs-res-jump { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tfs-res-jump a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
	border: 1px solid #5a5048; text-decoration: none;
	font-family: var(--tfs-font-type); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
}
.tfs-res-jump a span { color: var(--tfs-muted); }
.tfs-res-jump a:hover, .tfs-res-jump a:focus-visible { border-color: var(--tfs-red-text); }

.tfs-res-game { display: flex; flex-direction: column; gap: 40px; padding-top: 32px; border-top: 4px double var(--tfs-paper); scroll-margin-top: 24px; }
.tfs-res-game.is-main { border-top: 4px solid var(--tfs-red); }
.tfs-res-game__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.tfs-res-game__titles { display: flex; flex-direction: column; gap: 10px; flex: 999 1 480px; min-width: 0; }
.tfs-res-game__name { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-res-game.is-main .tfs-res-game__name { font-size: clamp(40px, 5vw, 60px); }
.tfs-res-game__blurb { margin: 0; font-size: 18px; line-height: 1.55; color: var(--tfs-body); }
.tfs-res-top { color: var(--tfs-muted); }

.tfs-res-block { display: flex; flex-direction: column; gap: 20px; }
.tfs-res-sub {
	margin: 0; font-family: var(--tfs-font-type); font-weight: 400; font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--tfs-paper); border-bottom: 1px solid var(--tfs-rule); padding-bottom: 10px;
}
.tfs-res-sub--double { border-bottom: 4px double var(--tfs-paper); margin-bottom: -20px; }

.tfs-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 32px 24px; }
.tfs-res-card { display: flex; flex-direction: column; gap: 10px; }
.tfs-res-thumb {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 3 / 4; overflow: hidden; background: var(--tfs-ink-2); border: 1px solid var(--tfs-rule);
}
.tfs-res-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.25s ease; }
.tfs-res-thumb:hover img { transform: scale(1.03); }
.tfs-res-thumb:hover { border-color: var(--tfs-red-text); }
.tfs-res-format {
	position: absolute; left: 0; bottom: 0; background: var(--tfs-red); color: #fff;
	font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.14em; padding: 6px 10px;
}
.tfs-res-kind { font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tfs-red-text); }
.tfs-res-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-res-desc { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tfs-body); }
.tfs-res-card .tfs-meta { font-size: 12px; letter-spacing: 0.1em; }
.tfs-res-dl {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--tfs-paper); text-decoration: none;
	font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.tfs-res-dl:hover, .tfs-res-dl:focus-visible { background: var(--tfs-paper); color: var(--tfs-ink); }

.tfs-res-packet { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 0; border-bottom: 1px solid var(--tfs-rule); }
.tfs-res-packet__num { flex: none; width: 72px; font-family: var(--tfs-font-type); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tfs-red-text); }
.tfs-res-packet__body { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tfs-res-packet__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-res-packet .tfs-meta { font-size: 12px; letter-spacing: 0.1em; }
.tfs-res-packet .tfs-btn { flex: none; font-size: 13px; padding: 0 22px; }

.tfs-res-request {
	background: var(--tfs-ink-2); border-top: 4px solid var(--tfs-red); padding: 28px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.tfs-res-request__text { display: flex; flex-direction: column; gap: 8px; flex: 999 1 420px; min-width: 0; }
.tfs-res-request h2 { margin: 0; font-weight: 400; font-size: 14px; letter-spacing: 0.2em; }
.tfs-res-request p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--tfs-body); }
.tfs-res-disclaimer { margin: -40px 0 0; font-size: 14px; line-height: 1.6; color: var(--tfs-muted); text-align: center; }

@media (max-width: 600px) {
	.tfs-res-packet .tfs-btn { width: 100%; }
}

/* ---------- Contact page ---------- */
.tfs-contact-intro { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; max-width: 820px; margin: 0 auto; }
.tfs-contact-intro .tfs-kicker { letter-spacing: 0.24em; }
.tfs-contact-intro__title { margin: 0; font-size: clamp(38px, 5.5vw, 66px); line-height: 1.05; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-contact-intro__text { margin: 0; font-size: 20px; line-height: 1.65; color: var(--tfs-body); text-align: left; align-self: stretch; }
.tfs-contact-intro__text:first-of-type::first-letter {
	float: left; font-family: var(--tfs-font-title); font-size: 64px; line-height: 0.8; padding: 6px 10px 0 0; color: var(--tfs-red-text);
}
.tfs-contact-intro__signoff { margin: 4px 0 0; font-family: var(--tfs-font-type); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tfs-red-text); }

.tfs-contact-primary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; }
.tfs-contact-card {
	position: relative;
	display: flex; flex-direction: column; gap: 12px; padding: 32px 28px 40px;
	background: var(--tfs-ink-2); border-top: 4px solid var(--tfs-red); border-bottom: 1px solid var(--tfs-rule);
}
.tfs-contact-card__icon { color: var(--tfs-paper); }
.tfs-contact-card__label { font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tfs-red-text); }
.tfs-contact-card__title { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-contact-card__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--tfs-body); }
.tfs-contact-card__address { margin: 4px 0 0; font-family: var(--tfs-font-type); font-size: clamp(14px, 4.4vw, 17px); letter-spacing: 0.02em; color: var(--tfs-paper); overflow-wrap: normal; word-break: normal; }
.tfs-contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.tfs-contact-card__actions .tfs-btn { cursor: pointer; background-clip: padding-box; }
button.tfs-btn--outline { background: transparent; }
.tfs-copy-status { position: absolute; left: 28px; bottom: 12px; margin: 0; font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tfs-muted); }

.tfs-contact-extra { max-width: 820px; }

.tfs-contact-links { display: flex; flex-direction: column; gap: 28px; }
.tfs-contact-links__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.tfs-contact-group { display: flex; flex-direction: column; gap: 4px; }
.tfs-contact-list { list-style: none; margin: 0; padding: 0; }
.tfs-contact-list li { border-bottom: 1px solid var(--tfs-rule); }
.tfs-contact-list a {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
	min-height: 64px; padding: 12px 0; text-decoration: none;
}
.tfs-contact-list__name { font-size: 21px; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-contact-list__desc { grid-column: 1; font-size: 15px; color: var(--tfs-muted); }
.tfs-contact-list__arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--tfs-red-text); transition: transform 0.2s ease; }
.tfs-contact-list a:hover .tfs-contact-list__name, .tfs-contact-list a:focus-visible .tfs-contact-list__name { color: var(--tfs-red-text); }
.tfs-contact-list a:hover .tfs-contact-list__arrow { transform: translateX(4px); }

/* ---------- Phone-friendly safety nets ---------- */
/* Never let one long word or pasted link push the page sideways. */
body { overflow-wrap: break-word; }
.entry-content a, .tfs-card__excerpt, .tfs-dispatch__excerpt, .tfs-lead__excerpt, .tfs-res-desc, .tfs-archive-desc { overflow-wrap: anywhere; }
/* Wide tables and code scroll inside their own box instead of the page. */
.entry-content .wp-block-table, .entry-content > table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content .wp-block-table table { min-width: 100%; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
/* Small text links get a taller tap area (about 44px) without looking any different. */
a.tfs-link-small, a.tfs-more, .tfs-postnav a { display: inline-block; padding-top: 12px; padding-bottom: 12px; }
/* Headline links in lists: a little extra tap room above and below. */
.tfs-card__title a, .tfs-dispatch__title a, .tfs-lead__title a { padding: 4px 0; }
.tfs-more { margin-top: 12px; }
.tfs-postnav { padding-top: 12px; }

@media (max-width: 600px) {
	.tfs-contact-card { padding: 28px 20px 40px; }
	.tfs-copy-status { left: 20px; }
	.tfs-contact-card__actions .tfs-btn { flex: 1 1 auto; }
	.tfs-res-request { padding: 24px 20px; }
	.tfs-filters { padding: 16px; }
	.tfs-filters__actions { width: 100%; }
	.tfs-filters__actions .tfs-btn { flex: 1 1 auto; }
	.tfs-res-intro__text, .tfs-contact-intro__text { font-size: 18px; }
	.entry-content { font-size: 18px; }
}

/* ---------- Under construction page ---------- */
.tfs-construction-body { min-height: 100vh; display: flex; flex-direction: column; }
.tfs-construction {
	flex: 1; width: 100%; max-width: 760px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; gap: 16px; padding-top: 56px; padding-bottom: 56px;
}
.tfs-construction__logo img, .tfs-construction__logo .custom-logo { width: 240px; height: 240px; object-fit: contain; display: block; }
.tfs-construction .tfs-masthead__title { margin: 0; }
.tfs-construction__rule { width: 100%; border-top: 4px double var(--tfs-paper); margin: 16px 0 8px; }
.tfs-construction__heading { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 700; color: var(--tfs-paper-bright); }
.tfs-construction__message { margin: 0; font-size: 19px; line-height: 1.6; color: var(--tfs-body); max-width: 600px; }
.tfs-construction__login { margin: 32px 0 0; }
.tfs-construction__heading a, .tfs-construction__message a, .tfs-construction__launch a { color: var(--tfs-red-text); text-decoration: underline; text-underline-offset: 3px; }
.tfs-construction__heading a:hover, .tfs-construction__message a:hover, .tfs-construction__launch a:hover { color: var(--tfs-paper-bright); }
.tfs-construction__message strong, .tfs-construction__message b { color: var(--tfs-paper-bright); }
.tfs-construction__login a { font-family: var(--tfs-font-type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tfs-muted); }

@media (max-width: 600px) {
	body { font-size: 17px; }
	.tfs-masthead__logo img, .tfs-masthead__logo .custom-logo { width: 170px; height: 170px; }
	.tfs-dispatch { grid-template-columns: 1fr; gap: 6px; }
	.tfs-nav a { padding: 12px 12px; }
}
