/*
Theme Name: Turkey in the First World War
Theme URI: https://turkeyswar.com
Author: Dr. Altay Atlı
Description: The 2026 design of turkeyswar.com: white pages, archival photographs, Newsreader and IBM Plex Sans, crimson accents. Homepage, section pages and article pages are laid out automatically; reworked pages (<div class="tw-article …">) keep their own layout.
Version: 1.0.10
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: turkeyswar
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
	--ink: #1E1B17;
	--text: #26221D;
	--soft: #3A342D;
	--muted: #5E564C;
	--faint: #8A8073;
	--rule: #E6E0D6;
	--dark: #17140F;
	--on-dark: #E9E1D3;
	--on-dark-muted: #B9AE9C;
	--accent: #8E1B1B;
	--accent-dark: #6E1414;
	--box-quote: #F5EFE2;     /* quotations: pale sand */
	--box-map: #EDF2EA;       /* map links: pale sage */
	--box-cmd: #EEF2F6;       /* commander lists: pale slate blue */
	--box-news: #F1EDF5;      /* newspaper pages: pale lavender */
	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1280px;
	--gutter: 40px;
	--radius: 6px;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; line-height: 1.15; }
button { font: inherit; }
.screen-reader-text, .tw-skip {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.tw-skip:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; color: var(--ink); padding: 10px 16px; font-family: var(--sans); font-size: 15px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* =========================================================
   3. Header bar
   ========================================================= */
.tw-bar { background: var(--dark); position: relative; z-index: 20; }
.tw-bar--overlay { background: transparent; position: absolute; top: 0; left: 0; right: 0; }
.tw-bar-inner {
	max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.tw-bar--overlay .tw-bar-inner { padding-top: 28px; }
.tw-brand { display: flex; flex-direction: column; color: #fff; line-height: 1; }
.tw-brand:hover { color: #fff; }
.tw-brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.tw-bar--overlay .tw-brand-name { font-size: 26px; }
.tw-brand-sub {
	font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
	color: #D9CFBF; margin-top: 8px;
}
.tw-nav { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.tw-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tw-menu a { display: block; color: #fff; padding: 12px 14px; }
.tw-menu a:hover, .tw-menu .current-menu-item > a { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.tw-searchtoggle, .tw-navtoggle {
	width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.45);
	background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tw-searchtoggle { margin-left: 6px; }
.tw-searchtoggle:hover, .tw-navtoggle:hover { background: rgba(255,255,255,0.12); }
.tw-navtoggle { display: none; }
.tw-searchbar { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.12); }
.tw-bar--overlay .tw-searchbar { background: rgba(23,20,15,0.92); }
.tw-searchbar form { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); display: flex; gap: 10px; }
.tw-searchbar input {
	flex: 1; font-family: var(--sans); font-size: 16px; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.3);
	background: rgba(255,255,255,0.06); color: #fff; border-radius: 2px;
}
.tw-searchbar input::placeholder { color: var(--on-dark-muted); }
.tw-searchbar button {
	font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 12px 22px; border: 0; border-radius: 2px;
	background: var(--accent); color: #fff; cursor: pointer;
}

/* =========================================================
   4. Buttons, small labels
   ========================================================= */
.tw-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2;
	padding: 15px 25px; border-radius: 2px; border: 1px solid transparent;
}
.tw-btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.tw-btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.tw-btn--ghost { border-color: #fff; color: #fff; background: transparent; }
.tw-btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.tw-btn--line { border-color: var(--ink); color: var(--ink); }
.tw-btn--line:hover { background: var(--ink); color: #fff; }
.tw-btn-outline {
	font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 14px 26px; min-height: 44px;
	background: transparent; border: 1px solid var(--ink); color: var(--ink); cursor: pointer;
}
.tw-btn-outline:hover { background: var(--ink); color: #fff; }

.tw-h2-rule {
	margin: 0 0 28px; font-size: 32px; font-weight: 500; letter-spacing: -0.01em;
	border-bottom: 1px solid var(--ink); padding-bottom: 16px;
}
.tw-label-rule { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.tw-label-rule span {
	font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--accent); white-space: nowrap;
}
.tw-label-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* breadcrumb */
.tw-crumbs { font-family: var(--sans); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.5; }
.tw-crumbs--light, .tw-crumbs--light span { color: #D9CFBF; }
.tw-crumbs--light a { color: #fff; }

/* =========================================================
   5. Photo cards (chapters, subpages)
   ========================================================= */
.tw-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* a single card on the last row sits in the middle */
.tw-grid3 > .tw-card:last-child:nth-child(3n+1) { grid-column: 2; }
.tw-card {
	position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius);
	background: var(--dark); color: #fff;
}
.tw-card:hover { color: #fff; }
.tw-card-img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
	filter: grayscale(1) contrast(1.05); transition: transform .6s ease;
}
.tw-card:hover .tw-card-img { transform: scale(1.04); }
.tw-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,9,0.05) 25%, rgba(15,12,9,0.9) 100%); }
.tw-card-num {
	position: absolute; top: 18px; left: 20px; font-family: var(--sans); font-size: 13px; font-weight: 600;
	letter-spacing: 0.1em; color: #fff; background: rgba(15,12,9,0.55); padding: 4px 8px; border-radius: 3px; line-height: 1.3;
}
.tw-card-text { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.tw-card-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tw-card-title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.tw-card-go {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 19px; background: var(--accent);
	display: inline-flex; align-items: center; justify-content: center; transition: transform .2s;
}
.tw-card:hover .tw-card-go { transform: translateX(3px); }
.tw-card-desc { font-family: var(--serif); font-size: 15px; line-height: 1.45; color: #E3DACB; }

/* =========================================================
   6. Homepage
   ========================================================= */
.tw-hero { position: relative; min-height: 760px; overflow: hidden; background: var(--dark); display: flex; align-items: flex-end; }
.tw-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; filter: grayscale(1) contrast(1.05); }
.tw-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,9,0.72) 0%, rgba(15,12,9,0.15) 28%, rgba(15,12,9,0.25) 55%, rgba(15,12,9,0.92) 100%); }
.tw-hero-body { position: relative; z-index: 2; width: 100%; padding-top: 180px; padding-bottom: 72px; }
.tw-hero-title { max-width: 760px; margin: 0; font-size: 76px; line-height: 1.02; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.tw-hero-text { max-width: 640px; margin: 24px 0 0; font-size: 22px; line-height: 1.5; color: var(--on-dark); }
.tw-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.tw-intro { display: flex; flex-wrap: wrap; gap: 56px 80px; padding-top: 96px; padding-bottom: 80px; }
.tw-intro-head { flex: 1 1 420px; margin: 0; font-size: 40px; line-height: 1.18; font-weight: 500; letter-spacing: -0.01em; }
.tw-intro-text { flex: 1 1 480px; font-size: 19px; line-height: 1.65; color: var(--soft); }
.tw-intro-text p { margin: 0 0 20px; }
.tw-intro-text p:last-child { margin-bottom: 0; }

.tw-chapters { padding-bottom: 96px; }

.tw-fronts { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.tw-fronts-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: grayscale(1); }
.tw-fronts-inner { position: relative; display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.tw-fronts-intro { flex: 1 1 360px; }
.tw-fronts-intro h2 { margin: 0; font-size: 32px; line-height: 1.15; color: #fff; }
.tw-fronts-intro p { margin: 20px 0 0; font-size: 19px; line-height: 1.6; color: #D9CFBF; max-width: 440px; }
.tw-fronts-all { display: inline-block; margin-top: 28px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.tw-fronts-all:hover { color: #fff; border-color: #fff; }
.tw-fronts-list { flex: 2 1 560px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tw-fronts-list a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.22); color: #fff; }
.tw-fronts-list a:hover .tw-fronts-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tw-fronts-n { font-family: var(--sans); font-size: 13px; color: var(--on-dark-muted); width: 22px; flex: 0 0 22px; }
.tw-fronts-name { font-size: 26px; font-weight: 500; line-height: 1.2; }

.tw-home-content { padding-top: 56px; padding-bottom: 56px; }

/* What's New (the homepage text): heading row, then one card per entry, stacked */
.tw-new { margin: 0; padding: 0; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.tw-home-content .tw-new-title { order: 1; margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 1.15; }
.tw-home-content .tw-new-kicker { order: 2; margin: 0 0 0 auto; font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.tw-new::after { content: ""; order: 3; flex-basis: 100%; height: 1px; background: var(--ink); margin: 0 0 10px; }
.tw-new-list { order: 4; flex-basis: 100%; list-style: none; margin: 0; padding: 0; background: none; display: flex; flex-direction: column; gap: 6px; }
.tw-new-list li { list-style: none; margin: 0; padding: 0; border: 0; }
.tw-new-list li:nth-of-type(n+5) { display: none; }
.tw-new-row {
	display: grid; grid-template-columns: 88px 78px minmax(0, 1fr) 18px; grid-template-areas: "date badge body arr";
	align-items: center; gap: 4px 14px; background: #FAF8F4; border: 1px solid var(--rule); padding: 10px 16px; color: var(--ink);
}
.tw-new-row:hover { border-color: var(--accent); color: var(--ink); }
.tw-new-row:hover .tw-new-name { color: var(--accent); }
.tw-new-date { grid-area: date; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.tw-new-badge { grid-area: badge; justify-self: start; }
.tw-new-tag {
	display: inline-block; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
	padding: 2px 6px; border: 1px solid var(--accent); color: var(--accent); background: #fff; line-height: 1.3; border-radius: 0;
}
.tw-new-tag.is-new { background: var(--accent); color: #fff; }
.tw-new-body { grid-area: body; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.tw-new-name { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.3; transition: color .15s; }
.tw-new-sec { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.tw-new-note { flex-basis: 100%; display: block; font-family: var(--serif); font-size: 14px; line-height: 1.4; color: var(--soft); margin: 0; }
.tw-new-arr { grid-area: arr; color: var(--accent); font-family: var(--sans); font-size: 16px; justify-self: end; }

.tw-portraits { padding-bottom: 96px; }
.tw-portraits img { display: block; width: 100%; filter: grayscale(1) sepia(0.15); }

.tw-contact { border-top: 1px solid var(--rule); }
.tw-contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: 64px; padding-bottom: 64px; }
.tw-contact-text { flex: 1 1 480px; }
.tw-contact-text h2 { margin: 0; font-size: 32px; letter-spacing: -0.01em; }
.tw-contact-text p { margin: 12px 0 0; font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 620px; }
.tw-contact-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   7. Section pages
   ========================================================= */
.tw-shero { position: relative; min-height: 440px; overflow: hidden; background: var(--dark); display: flex; align-items: flex-end; }
.tw-shero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.05); }
.tw-shero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,9,0.25) 0%, rgba(15,12,9,0.2) 40%, rgba(15,12,9,0.88) 100%); }
.tw-shero-body { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.tw-shero-title { margin: 18px 0 0; font-size: 72px; line-height: 1; font-weight: 500; letter-spacing: -0.025em; color: #fff; }
.tw-shero-text { margin: 16px 0 0; max-width: 680px; font-size: 19px; line-height: 1.5; color: var(--on-dark); }
.tw-subpages { padding-top: 72px; }

/* =========================================================
   8. Article pages
   ========================================================= */
.tw-arthead { padding-top: 36px; }
.tw-arttitle { margin: 24px 0 0; font-size: 60px; line-height: 1.05; font-weight: 500; letter-spacing: -0.025em; }
.tw-artdeck { margin: 14px 0 0; font-size: 22px; line-height: 1.3; font-style: italic; color: var(--soft); }
.tw-artdate { font-style: normal; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.tw-arthero { margin: 40px 0 0; }
html body .tw-article .tw-arthero { margin: 0 0 2.4rem; }
html body .tw-article .tw-arthero img { width: 100% !important; max-width: none !important; height: auto !important; max-height: 560px; object-fit: cover; margin: 0 !important; }
html body .tw-article .tw-arthero figcaption { border: 0 !important; padding: 0 !important; }
.tw-arthero-img { display: block; width: 100%; max-height: 560px; object-fit: cover; filter: grayscale(1) sepia(0.12); }
.tw-arthero figcaption { display: flex; justify-content: flex-end; margin-top: 12px; }
.tw-arthero figcaption span { padding-right: 12px; border-right: 2px solid var(--accent); text-align: right; font-size: 13px; line-height: 1.4; font-style: normal; color: var(--muted); }

.tw-prose { padding-top: 48px; color: var(--text); }
.tw-prose::after { content: ""; display: block; clear: both; }
.tw-prose p { margin: 0 0 24px; }
.tw-prose > p:first-child, .tw-prose p.tw-lead { font-size: 17px; line-height: 1.65; color: var(--ink); }
.tw-prose p.tw-lead::first-letter {
	float: left; font-size: 62px; line-height: 0.82; font-weight: 500; color: var(--accent); margin: 6px 12px 0 0;
}
.tw-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* section headings: h1 and h2 in the text (old pages use h1) */
.tw-prose h1, .tw-prose h2 {
	clear: both; margin: 0; padding-top: 40px; margin-bottom: 16px;
	font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
/* subsection headings: small crimson capitals */
.tw-prose h3 {
	margin: 32px 0 10px; font-family: var(--sans); font-size: 14px; line-height: 1.4; font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.tw-prose h4 { margin: 32px 0 10px; font-size: 22px; font-weight: 600; }

/* old pages: inline colours, fonts and sizes inside the text are neutralised */
.tw-prose h1 *, .tw-prose h2 *, .tw-prose h3 * { color: inherit !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; }
.tw-prose p span, .tw-prose li span, .tw-prose p a { font-family: inherit !important; }
.tw-prose span[style*="color: #000000"], .tw-prose a[style*="color: #000000"] { color: inherit !important; }
.tw-prose p span[style*="font-size"] { font-size: inherit !important; }

/* photos left or right, text wrapping around */
.tw-prose img { display: block; height: auto; }
.tw-prose .alignright, .tw-prose img.alignright { float: right; margin: 8px 0 24px 44px; }
.tw-prose .alignleft, .tw-prose img.alignleft { float: left; margin: 8px 44px 24px 0; }
.tw-prose .aligncenter { display: block; margin: 24px auto; }
.tw-prose .wp-caption { max-width: 100%; margin-bottom: 24px; }
.tw-prose .wp-caption img { width: 100%; filter: grayscale(0.35) sepia(0.12); }
.tw-prose .wp-caption-text, .tw-prose figcaption {
	margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--accent);
	font-size: 13px; line-height: 1.45; font-style: normal; color: var(--muted); text-align: left;
}
.tw-prose .wp-caption-text *, .tw-prose figcaption * { font-size: inherit !important; color: inherit !important; font-family: inherit !important; }

/* quotations: pale sand box with a crimson line, no quotation marks */
.tw-prose blockquote {
	display: flow-root; margin: 32px 0; padding: 22px 28px; background: var(--box-quote);
	border-left: 2px solid var(--accent); font-size: 15px; line-height: 1.55; font-style: italic; color: var(--soft); quotes: none;
}
.tw-prose blockquote p { margin: 0 0 12px; }
.tw-prose blockquote p:last-child { margin-bottom: 0; }
.tw-prose blockquote::before, .tw-prose blockquote::after, .tw-prose blockquote p::before, .tw-prose blockquote p::after { content: none !important; }
.tw-prose blockquote cite { display: block; margin-top: 8px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }

/* lists, tables */
.tw-prose ul, .tw-prose ol { margin: 0 0 24px; padding-left: 1.3em; }
.tw-prose li { margin-bottom: 6px; }
.tw-prose table { border-collapse: collapse; width: 100%; margin: 0 0 28px; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.tw-prose th, .tw-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tw-prose th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }

/* key dates table: two columns, read top to bottom */
.tw-prose table.tw-dates { display: block; width: 100%; font-size: 14px; line-height: 1.4; margin-bottom: 32px; }
.tw-prose table.tw-dates tbody { display: block; columns: 2; column-gap: 56px; }
.tw-prose table.tw-dates tr { display: flex; gap: 16px; break-inside: avoid; border-bottom: 1px solid var(--rule); }
.tw-prose table.tw-dates td { display: block; padding: 6px 0; border: 0; }
.tw-prose table.tw-dates td:first-child { flex: 0 0 82px; white-space: nowrap; color: var(--accent); }

/* old Page Builder layouts: let the text use the full width */
.tw-prose .panel-grid, .tw-prose .panel-grid-cell, .tw-prose .so-panel { margin-bottom: 0 !important; }
.tw-prose .panel-layout .panel-grid-cell { padding-left: 0 !important; padding-right: 0 !important; }

/* in-text reference numbers */
.tw-prose sup.endnote-ref { font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 0; margin-left: 2px; }
.tw-prose sup.endnote-ref a { text-decoration: none; color: var(--accent); }

/* =========================================================
   9. Link boxes: maps, commander lists, newspaper pages
   ========================================================= */
.tw-lb {
	display: inline-flex; vertical-align: top; align-items: center; gap: 14px; width: 460px; max-width: 100%;
	margin: 8px 12px 16px 0; padding: 8px 18px 8px 8px; border-radius: 4px;
	color: var(--accent) !important; text-decoration: none !important; line-height: 1.35;
	transition: box-shadow .2s, transform .2s;
}
.tw-lb:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-1px); }
.tw-lb--map { background: var(--box-map); }
.tw-lb--commanders { background: var(--box-cmd); }
.tw-lb--newspaper { background: var(--box-news); }
.tw-lb-thumb { width: 55px !important; height: 55px !important; flex: 0 0 55px; object-fit: cover; border-radius: 2px; margin: 0 !important; float: none !important; filter: none !important; }
.tw-lb-icon { width: 55px; height: 55px; flex: 0 0 55px; border-radius: 2px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.tw-lb-title { flex: 1 1 auto; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent); }
.tw-lb-go { flex: 0 0 auto; display: inline-flex; }
.tw-prose p > .tw-lb:only-child { margin-top: 0; }
.tw-lb--block { display: flex; margin-right: 0; }
.tw-lb--block + br { display: none; }

/* =========================================================
   10. Notes, bibliography, page end
   ========================================================= */
.tw-backsec { clear: both; margin-top: 48px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.tw-backsec + .tw-backsec { margin-top: 40px; }
.tw-prose h2.tw-backhead, .tw-backhead {
	margin: 0 0 16px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 30px; font-weight: 500; color: var(--ink); clear: both;
}
.tw-backsec ol.endnotes { list-style: none; counter-reset: twn; margin: 0; padding: 0; }
.tw-backsec ol.endnotes li { counter-increment: twn; position: relative; padding-left: 32px; margin: 0 0 5px; }
.tw-backsec ol.endnotes li::before {
	content: counter(twn); position: absolute; left: 0; top: 1px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--accent);
}
.tw-backsec ol.endnotes li:target { background: var(--box-quote); }
.tw-backsec ol.endnotes a[aria-label] { text-decoration: none; font-family: var(--sans); font-size: 12px; }
.tw-biblio-list { list-style: none; margin: 0; padding: 0; }
.tw-prose h2.tw-bibhead { margin-top: 48px; }
.tw-backsec.tw-biblio { margin-top: 0; }
.tw-backsec.tw-biblio + .tw-backsec.tw-biblio { margin-top: 20px; }
.tw-prose h3.tw-bibgroup { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.tw-biblio-list li { padding-left: 28px; text-indent: -28px; margin: 0 0 5px; }

.tw-updated {
	clear: both; margin: 56px 0 0; font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.tw-pageend { padding-bottom: 72px; }
.tw-pageend .tw-updated { margin-top: 64px; }
.tw-prevnext {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
	margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.tw-pn { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.tw-pn--next { margin-left: auto; align-items: flex-end; text-align: right; }
.tw-pn-label { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.tw-pn-title { font-size: 24px; font-weight: 500; line-height: 1.2; }
.tw-pn:hover .tw-pn-title { color: var(--accent); }

/* further reading */
.tw-further { padding-top: 24px; padding-bottom: 96px; }
.tw-further .tw-h2-rule { font-size: 28px; padding-bottom: 14px; margin-bottom: 24px; }
.tw-further-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tw-further-grid > a[hidden] { display: none; }
.tw-fr-card { display: flex; flex-direction: column; background: #FAF8F4; border: 1px solid var(--rule); color: var(--ink); }
.tw-fr-card:hover { border-color: var(--accent); color: var(--ink); }
.tw-fr-card img, .tw-fr-noimg { display: block; width: 100%; height: 170px; object-fit: cover; filter: grayscale(1) sepia(0.15); background: #EEEAE3; }
.tw-fr-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.tw-fr-date { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.tw-fr-title { font-size: 23px; font-weight: 500; line-height: 1.2; }
.tw-fr-ex { font-size: 16px; line-height: 1.5; color: var(--soft); }
.tw-further-more { display: block; margin: 32px auto 0; }

/* =========================================================
   11. Reworked pages (<div class="tw-article …">)
   Their own styles come from the page code and Additional CSS;
   these lines bring them in line with the new look.
   ========================================================= */
.tw-designed { padding-top: 36px; padding-bottom: 80px; }
.tw-designed > .tw-crumbs { margin-bottom: 28px; }
html body .tw-article {
	--tw-ink: #1E1B17; --tw-muted: #5E564C; --tw-rule: #E6E0D6; --tw-paper: #F5EFE2; --tw-accent: #8E1B1B;
	--tw-serif: 'Newsreader', Georgia, serif; --tw-sans: 'IBM Plex Sans', system-ui, sans-serif;
}
html body .tw-article .wp-caption-text,
html body .tw-article > figure figcaption,
html body .tw-article .wp-caption figcaption {
	font-family: var(--serif) !important; font-style: normal !important; font-size: 13px !important; line-height: 1.45 !important;
	color: var(--muted); border-left: 2px solid var(--accent); padding-left: 12px;
}
html body .tw-article .tw-maplink { background: var(--box-map); }
html body .tw-article .tw-people { background: var(--box-cmd); }
html body .tw-article blockquote.tw-letter { background: var(--box-quote); border-left-width: 2px; }
html body .tw-article .tw-pull, html body .tw-article blockquote.tw-pull { background: var(--box-quote) !important; padding: 22px 28px !important; border-left: 2px solid var(--accent) !important; }
/* reworked pages: same text sizes as the rest of the site */
html body .tw-article { font-size: 16px; }
html body .tw-article p, html body .tw-article li { font-size: 16px !important; line-height: 1.7 !important; }
html body .tw-article p.tw-lede { font-size: 17px !important; }
html body .tw-article blockquote.tw-letter p, html body .tw-article .tw-pull p { font-size: 15px !important; line-height: 1.6 !important; }


/* =========================================================
   12. Lists, search, 404
   ========================================================= */
.tw-listing { padding-bottom: 96px; }
.tw-listing .tw-arttitle { font-size: 56px; }
.tw-results { display: flex; flex-direction: column; margin-top: 40px; border-top: 1px solid var(--rule); }
.tw-result { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.tw-result-title { font-size: 26px; font-weight: 500; line-height: 1.2; }
.tw-result:hover .tw-result-title { color: var(--accent); }
.tw-result-ex { font-size: 17px; line-height: 1.5; color: var(--soft); }
.tw-pagination { margin-top: 32px; font-family: var(--sans); font-size: 15px; }
.tw-pagination .nav-links { display: flex; gap: 10px; }
.tw-noresults { margin-top: 32px; }
.search-form { display: flex; gap: 10px; margin: 24px 0; max-width: 560px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; font-family: var(--sans); font-size: 16px; padding: 12px 14px; border: 1px solid var(--rule); }
.search-form .search-submit { font-family: var(--sans); font-weight: 600; font-size: 15px; padding: 12px 20px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }

/* =========================================================
   13. Footer
   ========================================================= */
.tw-footer { background: var(--dark); color: var(--on-dark); font-family: var(--sans); font-size: 15px; }
.tw-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.tw-footer > .tw-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 80px; padding-top: 64px; padding-bottom: 48px; }
.tw-footer-about { flex: 1 1 360px; max-width: 520px; }
.tw-footer-name { font-family: var(--serif); font-size: 30px; font-weight: 500; color: #fff; line-height: 1.2; }
.tw-footer-name:hover { color: #fff; }
.tw-footer-about p { margin: 14px 0 0; font-family: var(--serif); font-size: 18px; color: #CFC5B4; }
.tw-footer-links { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tw-footer a { color: var(--on-dark); }
.tw-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tw-footer-chapters { flex: 1 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.tw-footer-chapters ul { list-style: none; margin: 0; padding: 0; }
.tw-footer-chapters li { margin: 0 0 10px; line-height: 1.4; }
.tw-footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); }
.tw-footer-bottom .tw-footer-inner { padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--on-dark-muted); }

/* =========================================================
   14. Smaller screens
   ========================================================= */
@media (max-width: 1100px) {
	.tw-hero-title { font-size: 60px; }
	.tw-shero-title { font-size: 60px; }
	.tw-arttitle { font-size: 52px; }
	.tw-grid3, .tw-further-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tw-grid3 > .tw-card:last-child:nth-child(3n+1) { grid-column: auto; }
	.tw-grid3 > .tw-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
	.tw-card-title { font-size: 24px; }
}
@media (max-width: 820px) {
	:root { --gutter: 22px; }
	body { font-size: 15px; }
	html body .tw-article, html body .tw-article p, html body .tw-article li { font-size: 15px !important; }
	html body .tw-article blockquote.tw-letter p, html body .tw-article .tw-pull p { font-size: 14px !important; }
	.tw-navtoggle { display: inline-flex; }
	.tw-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
	.tw-nav.is-open { display: flex; }
	.tw-menu { flex-direction: column; align-items: stretch; }
	.tw-menu a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
	.tw-searchtoggle { margin: 10px 0 0; align-self: flex-start; }
	.tw-bar--overlay { background: linear-gradient(180deg, rgba(15,12,9,0.75), rgba(15,12,9,0)); }
	.tw-bar--overlay .tw-nav.is-open { background: rgba(23,20,15,0.96); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px; }
	.tw-brand-name, .tw-bar--overlay .tw-brand-name { font-size: 20px; }
	.tw-brand-sub { display: none; }
	.tw-brand { flex: 1 1 auto; min-width: 0; }
	.tw-hero-body { padding-top: 140px; }
	.tw-hero { min-height: 640px; }
	.tw-hero-title { font-size: 42px; }
	.tw-hero-text { font-size: 19px; }
	.tw-intro { padding-top: 64px; padding-bottom: 56px; gap: 24px; }
	.tw-intro-head { font-size: 30px; }
	.tw-h2-rule, .tw-fronts-intro h2 { font-size: 26px; }
	.tw-home-content .tw-new-title { font-size: 24px; }
	.tw-grid3, .tw-further-grid { grid-template-columns: minmax(0, 1fr); }
	.tw-grid3 > .tw-card:last-child:nth-child(odd) { width: auto; grid-column: auto; }
	.tw-fronts-list { grid-template-columns: minmax(0, 1fr); }
	.tw-fronts-inner { padding-top: 64px; padding-bottom: 64px; }
	.tw-home-content { padding-top: 40px; padding-bottom: 40px; }
	.tw-new-row { grid-template-columns: auto 1fr 18px; grid-template-areas: "date badge arr" "body body body"; padding: 10px 14px; }
	.tw-home-content .tw-new-kicker { margin-left: 0; }
	.tw-shero { min-height: 420px; }
	.tw-shero-title, .tw-arttitle { font-size: 40px; }
	.tw-shero-text { font-size: 17px; }
	.tw-artdeck { font-size: 19px; }
	.tw-prose > p:first-child, .tw-prose p.tw-lead { font-size: 16px; }
	.tw-prose blockquote { font-size: 14px; }
	.tw-prose p.tw-lead::first-letter { font-size: 56px; }
	.tw-prose h1, .tw-prose h2 { font-size: 26px; padding-top: 32px; }
	.tw-prose .alignright, .tw-prose .alignleft, .tw-prose img.alignright, .tw-prose img.alignleft {
		float: none; width: 100% !important; margin: 8px 0 24px;
	}
	.tw-lb { width: 100%; margin-right: 0; }
	.tw-prose table.tw-dates tbody { columns: 1; }
	.tw-contact-text h2 { font-size: 26px; }
	.tw-pn-title { font-size: 24px; }
	.tw-footer-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
