/* 1.3.304.81 — shared pattern and block restyle.
   Root causes only: display titles, tracking, wrap, full-bleed rules, light paper,
   stamps, and pull quotes. No page-specific overrides. No new !important. */

/* ----- Case-article + dossier section plates ----- */
html[data-appearance="light"] .tdsh-caseart,
html[data-appearance="light"] .tdsh-sec {
	background: var(--tdsh-surface);
	color: var(--tdsh-ink);
}

.editor-styles-wrapper .is-root-container .tdsh-caseart :is(h2, h3).wp-block-heading,
.tdsh-dossier-prose .tdsh-caseart :is(h2, h3).wp-block-heading,
.tdsh-editorial .tdsh-caseart :is(h2, h3).wp-block-heading,
.wp-block-post-content .tdsh-caseart :is(h2, h3).wp-block-heading,
.tdsh-caseart :is(h2, h3).wp-block-heading,
.editor-styles-wrapper .is-root-container .tdsh-sec :is(h2, h3).wp-block-heading,
.tdsh-dossier-prose .tdsh-sec :is(h2, h3).wp-block-heading,
.tdsh-editorial .tdsh-sec :is(h2, h3).wp-block-heading,
.wp-block-post-content .tdsh-sec :is(h2, h3).wp-block-heading,
.tdsh-sec :is(h2, h3).wp-block-heading {
	font-family: var(--tdsh-display);
	font-weight: 400;
	letter-spacing: var(--tdsh-display-tracking);
	line-height: var(--tdsh-display-leading);
	text-shadow: var(--tdsh-title-shadow, none);
	text-wrap: pretty;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	padding-inline-end: 0;
	border-inline-end: 0;
	border-block-end: 0;
}

.editor-styles-wrapper .is-root-container .tdsh-caseart h2.wp-block-heading,
.tdsh-dossier-prose .tdsh-caseart h2.wp-block-heading,
.tdsh-editorial .tdsh-caseart h2.wp-block-heading,
.wp-block-post-content .tdsh-caseart h2.wp-block-heading,
.tdsh-caseart h2.wp-block-heading {
	padding-inline-end: 0;
	border-inline-end: 0;
}

/* A full-bleed rule under the display title, edge to edge of the plate. */
.tdsh-caseart h2.tdsh-caseart__heading,
.tdsh-caseart h2.tdsh-caseart__title,
.tdsh-sec h2.tdsh-sec-heading,
.tdsh-sec h2.tdsh-sec-title {
	width: 100%;
	margin-block-end: .85rem;
	padding-block-end: .45rem;
	border-block-end: 1px solid var(--tdsh-rule);
}

.tdsh-caseart :where(h2, h3, a, cite),
.tdsh-sec :where(h2, h3, a) {
	overflow-wrap: normal;
	word-break: normal;
}

/* Lede: a larger opening dek, not a timid boxed caption. */
.tdsh-caseart--lede p:not(.is-style-tdsh-kicker, .tdsh-caseart__label, .tdsh-caseart__byline, .tdsh-caseart__dateline) {
	max-width: 52ch;
	font-size: clamp(1.15rem, 1.05rem + 1.2vw, 1.55rem);
	line-height: 1.45;
	font-family: var(--tdsh-editorial);
}

/* Pull quote: oversized ink, gold cite, heavy full-height rule. */
.wp-block-quote.tdsh-caseart-quote,
blockquote.tdsh-caseart-quote {
	max-width: 100%;
	margin: 1.4rem 0;
	padding: 1rem 0 1rem 1.25rem;
	border: 0;
	border-inline-start: .55rem solid var(--tdsh-slab, #958669);
	background: transparent;
	font-family: var(--tdsh-editorial);
	font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: var(--tdsh-display-tracking);
	text-wrap: pretty;
}
.wp-block-quote.tdsh-caseart-quote p,
blockquote.tdsh-caseart-quote p {
	margin: 0;
	font: inherit;
}
.wp-block-quote.tdsh-caseart-quote cite,
blockquote.tdsh-caseart-quote cite {
	display: block;
	width: 100%;
	margin-top: .7rem;
	padding-top: .45rem;
	border-block-start: 1px solid var(--tdsh-rule);
	color: var(--tdsh-accent);
	font-family: var(--tdsh-mono);
	font-size: .78rem;
	font-style: normal;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* Kickers are card heads: the rule must span the full element, not the word. */
.is-style-tdsh-kicker {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 .75rem;
	padding: 0 0 .35rem;
	border-bottom: 0;
	border-block-end: 1px solid var(--tdsh-slab, #958669);
	color: var(--tdsh-accent);
	font-family: var(--tdsh-mono);
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* Standalone library stamps (class "stamp") were unstyled outside a stamp-bar. */
.entry-content .stamp,
.tdsh-editorial .stamp,
.editor-styles-wrapper .stamp,
p.stamp {
	display: inline-block;
	width: fit-content;
	margin: 0 .35rem .35rem 0;
	padding: .28rem .5rem;
	border: 1px solid var(--tdsh-slab, #958669);
	background: var(--tdsh-stamp);
	color: #121212;
	font-family: var(--tdsh-mono);
	font-size: .72rem;
	font-weight: 400;
	letter-spacing: .1em;
	line-height: 1.15;
	text-transform: uppercase;
}
.entry-content .stamp.yellow,
.tdsh-editorial .stamp.yellow,
p.stamp.yellow {
	background: var(--tdsh-stamp);
	color: #121212;
	border-color: var(--tdsh-stamp);
}
.entry-content :is(.stamp.red, .stamp-lg),
.tdsh-editorial :is(.stamp.red, .stamp-lg),
p.stamp.red,
p.stamp-lg {
	background: transparent;
	color: var(--tdsh-accent);
	border-color: var(--tdsh-slab, #958669);
}

/* File brief / TL;DR module body. */
.tdsh-module--brief .tdsh-brief__summary,
.tdsh-module--brief .tdsh-tldr__summary {
	max-width: 58ch;
	font-size: clamp(1.05rem, .95rem + .8vw, 1.3rem);
	line-height: 1.5;
}

/* Module heads already use Newake; keep tracking and no mid-word breaks. */
.tdsh-module__head :is(h2, h3),
.tdsh-module--chapter h2 {
	letter-spacing: var(--tdsh-display-tracking);
	overflow-wrap: normal;
	word-break: normal;
	text-wrap: pretty;
	text-shadow: var(--tdsh-title-shadow, none);
}

/* Data tables in patterns must scroll, not clip, at 390. */
.tdsh-caseart .wp-block-table,
.tdsh-sec .wp-block-table,
.tdsh-module .wp-block-table,
.tdsh-editorial .wp-block-table,
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.tdsh-caseart table,
.tdsh-sec table,
.tdsh-module table,
.tdsh-editorial .wp-block-table table,
.entry-content .wp-block-table table {
	width: max-content;
	max-width: none;
	min-width: 100%;
}
.tdsh-caseart :is(th, td),
.tdsh-sec :is(th, td),
.tdsh-module :is(th, td) {
	overflow-wrap: break-word;
}

/* Evidence locker table (structure and paper unchanged): at 390 the cells
   were crushing mid-word. Scroll the table instead. */
@media (max-width: 700px) {
	.tdsh-locker__scroll,
	.tdsh-locker .tdsh-locker__scroll,
	.tdsh-locker--table {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
		scrollbar-width: thin;
	}
	.tdsh-locker__table {
		min-width: 36rem;
		width: max-content;
	}
	.tdsh-locker__table :is(th, td) {
		overflow-wrap: normal;
		word-break: normal;
	}
}

/* Cap plate titles so a single display word (CHECKLIST) cannot overflow the
   plate at 1440. The chapter-H2 clamp was winning over the plate heading size. */
.editor-styles-wrapper .is-root-container .tdsh-caseart h2.wp-block-heading,
.tdsh-dossier-prose .tdsh-caseart h2.wp-block-heading,
.tdsh-editorial .tdsh-caseart h2.wp-block-heading,
.wp-block-post-content .tdsh-caseart h2.wp-block-heading,
.tdsh-caseart h2.wp-block-heading,
.tdsh-caseart h2.tdsh-caseart__heading,
.editor-styles-wrapper .is-root-container .tdsh-sec h2.wp-block-heading,
.tdsh-dossier-prose .tdsh-sec h2.wp-block-heading,
.tdsh-editorial .tdsh-sec h2.wp-block-heading,
.wp-block-post-content .tdsh-sec h2.wp-block-heading,
.tdsh-sec h2.wp-block-heading,
.tdsh-sec h2.tdsh-sec-heading {
	font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
	max-width: 100%;
}

/* 1.3.304.84 editor features — new class names only. Hidden palette slugs stay valid. */
:root {
	--wp--preset--color--rose: #a09890;
	--wp--preset--color--extrusion: #958669;
	--wp--preset--color--amber: #4d4637;
	--tdsh-gold: #c4a574;
	--tdsh-rust: #8a4a2f;
}

/* Stamp presets: gold, rust, ink, black redacted bar. */
.is-style-tdsh-stamp-gold,
.is-style-tdsh-stamp-rust,
.is-style-tdsh-stamp-ink,
.is-style-tdsh-stamp-redacted {
	display: inline-block;
	width: max-content;
	max-width: 100%;
	margin: 0;
	padding: 0.35em 0.7em;
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: var(--tdsh-label, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	border-radius: 0;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.is-style-tdsh-stamp-gold {
	color: #c4a574;
	background: transparent;
	border: 2px solid #c4a574;
}

.is-style-tdsh-stamp-rust {
	color: #ece9e6;
	background: #8a4a2f;
	border: 2px solid #8a4a2f;
}

html[data-appearance="light"] .is-style-tdsh-stamp-rust {
	color: #8a4a2f;
	background: transparent;
}

.is-style-tdsh-stamp-ink {
	color: currentColor;
	background: transparent;
	border: 2px solid currentColor;
}

.is-style-tdsh-stamp-redacted {
	color: #ece9e6;
	background: #000;
	border: 2px solid #000;
	letter-spacing: 0.16em;
}

/* Plate (dark panel) and Paper (light card). */
.is-style-tdsh-plate,
.is-style-tdsh-paper {
	border: 2px solid currentColor;
	padding: var(--wp--preset--spacing--inset, 1.5rem);
	border-radius: 0;
}

.is-style-tdsh-plate {
	background: var(--wp--preset--color--bunker, #181818);
	color: var(--wp--preset--color--mercury, #c7c0b1);
}

html[data-appearance="light"] .is-style-tdsh-plate {
	background: #1d1d1b;
	color: #ece9e6;
}

.is-style-tdsh-paper {
	background: var(--wp--preset--color--mercury, #c7c0b1);
	color: #1d1d1b;
}

html[data-appearance="light"] .is-style-tdsh-paper {
	background: #ece9e6;
	color: #1d1d1b;
}

.is-style-tdsh-halftone,
body.tdsh-halftone .entry-content {
	position: relative;
}

.is-style-tdsh-halftone::after,
body.tdsh-halftone .entry-content::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(currentColor 0.6px, transparent 0.7px);
	background-size: 3px 3px;
	opacity: 0.14;
	mix-blend-mode: multiply;
}

/* Motion controls. Defaults stay in spectacle.css; these only apply when opted in. */
.tdsh-fx-timed {
	animation-delay: var(--tdsh-fx-delay, 0s);
}

.tdsh-fx-timed.tdsh-fx-hologram,
.tdsh-fx-timed.is-style-tdsh-hologram {
	animation-duration: calc(3.4s * var(--tdsh-fx-speed, 1)), calc(0.82s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-grey,
.tdsh-fx-timed.is-style-tdsh-grey {
	animation-duration: calc(5.6s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-letter-swell,
.tdsh-fx-timed.is-style-tdsh-letter-swell {
	animation-duration: calc(0.82s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-slam,
.tdsh-fx-timed.is-style-tdsh-slam {
	animation-duration: calc(0.9s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-scale-in,
.tdsh-fx-timed.is-style-tdsh-scale-in {
	animation-duration: calc(0.95s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-print,
.tdsh-fx-timed.is-style-tdsh-print {
	animation-duration: calc(0.8s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-type,
.tdsh-fx-timed.is-style-tdsh-type {
	animation-duration: calc(0.95s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-stamp,
.tdsh-fx-timed.is-style-tdsh-stamp {
	animation-duration: calc(0.28s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-timed.tdsh-fx-swell,
.tdsh-fx-timed.is-style-tdsh-swell {
	animation-duration: calc(0.6s * var(--tdsh-fx-speed, 1));
}

.tdsh-fx-once {
	animation-iteration-count: 1;
}

html[data-tdsh-motion="off"] :is(
	.tdsh-fx-hologram, .is-style-tdsh-hologram,
	.tdsh-fx-grey, .is-style-tdsh-grey,
	.tdsh-fx-letter-swell, .is-style-tdsh-letter-swell,
	.tdsh-fx-slam, .is-style-tdsh-slam,
	.tdsh-fx-scale-in, .is-style-tdsh-scale-in,
	.tdsh-fx-print, .is-style-tdsh-print,
	.tdsh-fx-type, .is-style-tdsh-type,
	.tdsh-fx-stamp, .is-style-tdsh-stamp,
	.tdsh-fx-rule-sweep, .is-style-tdsh-rule-sweep,
	.tdsh-fx-marquee, .is-style-tdsh-marquee,
	.tdsh-fx-swell, .is-style-tdsh-swell,
	.tdsh-roll
) {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.tdsh-fx-timed,
	.tdsh-fx-once {
		animation: none;
	}
}

body.tdsh-title-fx-off :is(.entry-content, .tdsh-edition) :is(h1, .wp-block-post-title) :is(.tdsh-roll, [class*="tdsh-fx-"]) {
	animation: none;
}

/* Phone controls. Content stays in the HTML. */
@media (max-width: 781px) {
	.tdsh-hide-phone {
		display: none;
	}
	.wp-block-group:has(> .tdsh-phone-first),
	.wp-block-group:has(> .tdsh-phone-last),
	.wp-block-columns:has(> .tdsh-phone-first),
	.wp-block-columns:has(> .tdsh-phone-last) {
		display: flex;
		flex-direction: column;
	}
	.tdsh-phone-first {
		order: -1;
	}
	.tdsh-phone-last {
		order: 99;
	}
}

@media (min-width: 782px) {
	.tdsh-hide-desktop {
		display: none;
	}
}

/* Cite marks. Never style sup.fn — that is a different class. */
sup.tdsh-fn,
sup.tdsh-fn a,
.tdsh-fn-sep {
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tdsh-gold, #c4a574);
	top: -0.45em;
	text-decoration: none;
}

sup.tdsh-fn + sup.tdsh-fn::before {
	content: ",\00a0";
}

.tdsh-charges__bound {
	white-space: pre-line;
}

.tdsh-citations__back {
	margin-left: 0.6em;
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tdsh-gold, #c4a574);
}

/* Booking / mugshot card. Photographs are allowed. */
.is-style-tdsh-booking,
.tdsh-module--booking {
	border: 2px solid currentColor;
	background: var(--tdsh-surface, #181818);
	color: inherit;
}

html[data-appearance="light"] :is(.is-style-tdsh-booking, .tdsh-module--booking) {
	background: #ece9e6;
	color: #1d1d1b;
}

.is-style-tdsh-booking .wp-block-media-text__content,
.tdsh-module--booking .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--inset, 1.5rem);
}

.tdsh-booking__notice {
	margin-top: 1rem;
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: var(--tdsh-label, 0.8125rem);
	letter-spacing: 0.04em;
	line-height: 1.4;
}

/* Timeline block. */
.tdsh-timeline {
	margin-block: 1.25rem;
}

.tdsh-timeline__heading {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.02em;
	line-height: 1.05;
}

.tdsh-timeline__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid currentColor;
}

.tdsh-timeline__item {
	position: relative;
	padding: 0 0 1.25rem 1.25rem;
}

.tdsh-timeline__item:last-child {
	padding-bottom: 0;
}

.tdsh-timeline__item::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: -5px;
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 0;
}

.tdsh-timeline__date {
	margin: 0;
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: var(--tdsh-label, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tdsh-gold, #c4a574);
}

.tdsh-timeline__event,
.tdsh-timeline__source,
.tdsh-timeline__flag {
	margin: 0.2rem 0 0;
}

.tdsh-timeline__source,
.tdsh-timeline__flag {
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: var(--tdsh-label, 0.8125rem);
	letter-spacing: 0.04em;
}

.tdsh-timeline__item.is-disputed {
	border-left-style: dashed;
}

.tdsh-timeline__item.is-disputed .tdsh-timeline__flag {
	color: var(--tdsh-rust, #8a4a2f);
}

/* Lightweight location card — inline SVG plot, no iframe or embed. */
.tdsh-location {
	margin-block: 1.25rem;
	border: 2px solid currentColor;
	padding: var(--wp--preset--spacing--inset, 1.5rem);
	background: var(--tdsh-surface, #181818);
}

html[data-appearance="light"] .tdsh-location {
	background: #ece9e6;
	color: #1d1d1b;
}

.tdsh-location__stamp {
	margin: 0 0 0.5rem;
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: var(--tdsh-label, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tdsh-gold, #c4a574);
}

.tdsh-location__place {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.02em;
	line-height: 1.05;
}

.tdsh-location__map {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 1px solid currentColor;
}

.tdsh-location__plate {
	fill: #111;
}

html[data-appearance="light"] .tdsh-location__plate {
	fill: #e4dfd6;
}

.tdsh-location__grid line {
	stroke: currentColor;
	stroke-opacity: 0.22;
	stroke-width: 1;
}

.tdsh-location__cross {
	stroke: var(--tdsh-gold, #c4a574);
	stroke-width: 1;
	stroke-opacity: 0.85;
}

.tdsh-location__pin {
	fill: var(--tdsh-rust, #8a4a2f);
	stroke: #ece9e6;
	stroke-width: 1;
}

.tdsh-location__pin-ring {
	fill: none;
	stroke: var(--tdsh-gold, #c4a574);
	stroke-width: 1.5;
}

.tdsh-location__coords,
.tdsh-location__credit {
	margin: 0.5rem 0 0;
	font-family: "Courier New", Courier, ui-monospace, monospace;
	font-size: var(--tdsh-label, 0.8125rem);
	letter-spacing: 0.06em;
}

.tdsh-location__note {
	margin: 0.5rem 0 0;
}

html[data-tdsh-accent="gold"] {
	--tdsh-accent: #c4a574;
}

html[data-tdsh-accent="rust"] {
	--tdsh-accent: #8a4a2f;
}

html[data-tdsh-accent="ink"] {
	--tdsh-accent: currentColor;
}
