/**
 * techrahal Route: what guides and pages carry. The frame of a guide, the
 * running text, and the components writers pick as block styles in the
 * editor. Tokens come from theme.json; route.css holds the site frame and
 * defines the --th-* short names used here.
 *
 * 1. Guide frame   2. Running text   3. Labels, checked dates and tags
 * 4. Quick answer  5. Rule sign      6. Change log   7. Boxes
 * 8. Picks         9. Sources        10. FAQ         11. Tables
 * 12. Figures      13. Buttons       14. End of a guide
 * 15. Page frame   16. Boards        17. Tool cards   18. Steps
 * 19. Callout      20. Checklist     21. Forms
 * 22. Lists of guides: their frame  23. Topics      24. Guide rows
 * 25. Search       26. Not found     27. Print
 */

:root {
	--th-sans: var(--wp--preset--font-family--sans);
	--th-go: var(--wp--preset--color--go);
	--th-limit: var(--wp--preset--color--limit);
	--th-stop: var(--wp--preset--color--stop);
	--th-radius-control: var(--wp--custom--radius--control);
	--th-radius-tag: 6px;
	--th-glyph-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4 6.4 11.8 13 4.6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--th-glyph-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.2v5.6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.4' r='1.5'/%3E%3C/svg%3E");
	--th-glyph-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 4.4l7.2 7.2M11.6 4.4l-7.2 7.2' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
	--th-glyph-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.4'/%3E%3C/svg%3E");
}

/* 1. Guide frame: trail, title, byline, then the body. */

.th-article {
	padding-top: 40px;
}

.th-article__head > * {
	margin-block: 0;
}

.wp-block-breadcrumbs.th-trail {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

.wp-block-breadcrumbs.th-trail ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-breadcrumbs.th-trail li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.wp-block-breadcrumbs.th-trail a {
	display: inline-block;
	padding-block: 4px;
	color: inherit;
	text-decoration: none;
}

.wp-block-breadcrumbs.th-trail a:hover {
	color: var(--th-ink);
	text-decoration: underline;
}

.th-article__title {
	margin-top: 16px !important;
	font-size: clamp(34px, 1.3rem + 2.7vw, 52px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.th-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	margin-top: 20px !important;
	font-size: 15px;
	line-height: 1.5;
	color: var(--th-ink-muted);
}

.th-article__meta > * {
	margin: 0;
}

.th-byline::before {
	content: "By ";
}

.th-article__meta a {
	color: var(--th-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--th-field);
}

.th-article__meta a:hover {
	color: var(--th-accent);
	text-decoration-color: currentColor;
}

.th-article__body {
	margin-top: 40px !important;
}

/* The title in the post editor, sized like the guide's. */
.editor-post-title.wp-block-post-title {
	font-size: clamp(34px, 1.3rem + 2.7vw, 52px);
	line-height: 1.06;
	letter-spacing: -0.025em;
}

@media (max-width: 600px) {
	.th-article {
		padding-top: 16px;
	}

	.th-article__body {
		margin-top: 32px !important;
	}
}

/* 2. Running text. */

.wp-block-post-content {
	color: var(--th-ink-soft);
	line-height: 1.65;
}

.wp-block-post-content :where(p, li) {
	text-wrap: pretty;
}

.wp-block-post-content :where(strong, b) {
	color: var(--th-ink);
	font-weight: 600;
}

.wp-block-post-content [id] {
	scroll-margin-top: 24px;
}

.wp-block-post-content > h2 {
	margin-block-start: 64px;
	font-size: clamp(24px, 1rem + 1.2vw, 30px);
	line-height: 1.15;
}

.wp-block-post-content > h3 {
	margin-block-start: 40px;
}

.wp-block-post-content h4 {
	font-size: 19px;
	line-height: 1.3;
}

.wp-block-post-content > :is(h2, h3, h4) + * {
	margin-block-start: 14px;
}

/* A plain group in the running text (no style, no width) keeps the text's headings. */
.wp-block-post-content > .wp-block-group:not([class*="th-"], [class*="is-style-"], .alignwide, .alignfull) > h2 {
	font-size: clamp(24px, 1rem + 1.2vw, 30px);
	line-height: 1.15;
}

.wp-block-post-content > .wp-block-group:not([class*="th-"], [class*="is-style-"], .alignwide, .alignfull) > :is(h2, h3) + * {
	margin-block-start: 14px;
}

.wp-block-post-content > :is(h2, h3) + :is(.wp-block-details, .wp-block-group, figure, .wp-block-buttons) {
	margin-block-start: 20px;
}

.wp-block-post-content :where(ul, ol):not(.wp-block-post-template):not([class*="is-style-th-"]):not([class^="th-"]):not([class*=" th-"]) {
	padding-inline-start: 1.3em;
}

.wp-block-post-content :where(ul, ol):not(.wp-block-post-template):not([class*="is-style-th-"]):not([class^="th-"]):not([class*=" th-"]) > li + li {
	margin-top: 8px;
}

.wp-block-post-content ul:not([class*="is-style-th-"]):not([class^="th-"]):not([class*=" th-"]) > li::marker {
	color: var(--th-accent);
}

.wp-block-post-content ol:not([class*="is-style-th-"]):not([class^="th-"]):not([class*=" th-"]) > li::marker {
	color: var(--th-ink-muted);
	font-weight: 600;
}

.wp-block-post-content p.has-lead-font-size {
	line-height: 1.55;
}

/* 3. Labels, checked dates and tags. */

p.is-style-th-label,
.th-label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

/* "Checked <date>": the site's promise, with the logo's check. */
p.is-style-th-checked,
.th-sign__date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--th-ink-muted);
}

p.is-style-th-checked::before,
.th-sign__date::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--th-accent);
	-webkit-mask: var(--th-glyph-check) center / contain no-repeat;
	mask: var(--th-glyph-check) center / contain no-repeat;
}

/* Status tags: color, a glyph and words, never color alone. */
p[class*="is-style-th-pill-"] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	min-height: 28px;
	box-sizing: border-box;
	margin: 0;
	padding: 3px 11px 3px 9px;
	border-radius: var(--th-radius-tag);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

p[class*="is-style-th-pill-"]::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--th-pill-glyph) center / contain no-repeat;
	mask: var(--th-pill-glyph) center / contain no-repeat;
}

p.is-style-th-pill-go {
	--th-pill-glyph: var(--th-glyph-check);
	background: var(--th-go);
	color: var(--th-on-go);
}

p.is-style-th-pill-limit {
	--th-pill-glyph: var(--th-glyph-alert);
	background: var(--th-limit);
	color: var(--th-on-limit);
}

p.is-style-th-pill-stop {
	--th-pill-glyph: var(--th-glyph-cross);
	background: var(--th-stop);
	color: var(--th-on-stop);
}

p.is-style-th-pill-neutral {
	--th-pill-glyph: var(--th-glyph-dot);
	background: var(--th-accent-tint);
	color: var(--th-ink);
}

/* 4. Quick answer: the first block of a guide, drawn as a stop. */

.wp-block-group.is-style-th-answer {
	display: grid;
	gap: 14px;
	box-sizing: border-box;
	padding: 28px 32px;
	border-top: 3px solid var(--th-accent);
	border-radius: var(--th-radius-card);
	background: var(--th-panel);
	color: var(--th-ink);
}

.wp-block-group.is-style-th-answer > *,
.wp-block-group.th-answer__head > *,
.wp-block-group.th-answer__meta > * {
	margin: 0;
}

.wp-block-group.th-answer__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.th-answer__verdict {
	font-family: var(--th-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--th-ink);
}

.th-answer__text {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.6;
	color: var(--th-ink-soft);
}

.wp-block-group.th-answer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding-top: 14px;
	border-top: 1px solid var(--th-line);
	font-size: 15px;
	line-height: 1.5;
}

.th-answer__meta a {
	font-weight: 600;
}

@media (max-width: 600px) {
	.wp-block-group.is-style-th-answer {
		padding: 22px 20px;
	}

	.th-answer__verdict {
		font-size: 23px;
	}
}

/* 5. Rule sign: one row per authority, airline or kind of rule. */

.wp-block-group.is-style-th-sign {
	overflow: hidden;
	box-sizing: border-box;
	padding: 0;
	border-top: 3px solid var(--th-accent);
	border-radius: var(--th-radius-card);
	background: var(--th-panel);
	color: var(--th-ink);
	container-type: inline-size;
}

.wp-block-group.is-style-th-sign > *,
.wp-block-group.th-sign__head > *,
.wp-block-group.th-sign__row > *,
.wp-block-group.th-sign__rule > *,
.wp-block-group.th-sign__foot > * {
	margin: 0;
}

.wp-block-group.th-sign__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 24px 28px 20px;
	border-bottom: 1px solid var(--th-line);
}

.th-sign__title {
	font-size: var(--wp--preset--font-size--card-title);
	line-height: 1.2;
	color: var(--th-ink);
}

.wp-block-group.th-sign__row {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr) minmax(8.5rem, auto);
	align-items: center;
	gap: 8px 24px;
	padding: 18px 28px;
	border-top: 1px solid var(--th-line);
}

.wp-block-group.th-sign__head + .th-sign__row {
	border-top: 0;
}

.wp-block-group.th-sign__row > :last-child {
	justify-self: end;
}

.th-sign__who {
	font-weight: 600;
	color: var(--th-ink);
}

.wp-block-group.th-sign__rule {
	display: grid;
	gap: 4px;
	min-width: 0;
	color: var(--th-ink);
}

.th-sign__note {
	font-size: 15px;
	line-height: 1.5;
	color: var(--th-ink-soft);
}

.wp-block-group.th-sign__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 14px 28px;
	border-top: 1px solid var(--th-line);
	background: var(--th-ground);
	font-size: 15px;
	line-height: 1.5;
	color: var(--th-ink-soft);
}

/* Narrow signs stack the rule under the row. */
@container (max-width: 600px) {
	.wp-block-group.th-sign__row {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 16px 20px;
	}

	.wp-block-group.th-sign__row > .th-sign__rule {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.wp-block-group.th-sign__head,
	.wp-block-group.th-sign__foot {
		padding-inline: 20px;
	}
}

/* 6. Change log: dated stops on a line, newest first. */

.wp-block-group.th-changes {
	display: grid;
	gap: 0;
}

.wp-block-group.th-changes > * {
	margin: 0 !important;
}

.wp-block-group.is-style-th-change {
	position: relative;
	display: grid;
	grid-template-columns: 64px 36px minmax(0, 1fr);
	align-content: start;
	padding-bottom: 28px;
}

.wp-block-group.is-style-th-change > * {
	grid-column: 3;
	margin: 0;
}

/* The line between two stops, then the stop itself. */
.wp-block-group.is-style-th-change::after {
	content: "";
	position: absolute;
	inset-block: 20px 0;
	inset-inline-start: 81px;
	border-inline-start: 2px dashed var(--th-field);
}

.wp-block-group.is-style-th-change:last-child {
	padding-bottom: 0;
}

.wp-block-group.is-style-th-change:last-child::after {
	content: none;
}

.wp-block-group.is-style-th-change::before {
	content: "";
	position: absolute;
	top: 2px;
	inset-inline-start: 74px;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 3px solid var(--th-ink-soft);
	border-radius: 50%;
	background: var(--th-ink-soft);
}

.wp-block-group.is-style-th-change:first-child::before {
	border-color: var(--th-accent);
	background: var(--th-ground);
}

.th-change__tag {
	grid-column: 1 !important;
	grid-row: 1 / span 2;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-align: end;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

.th-change__title {
	font-family: var(--th-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--th-ink);
}

.th-change__text {
	margin-top: 6px !important;
	font-size: 15px;
	line-height: 1.55;
	color: var(--th-ink-soft);
}

/* 7. Boxes: disclosure, note, card. */

.wp-block-group.is-style-th-disclosure {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	box-sizing: border-box;
	padding: 14px 20px;
	border: 1px solid var(--th-field);
	border-radius: var(--th-radius-control);
	background: var(--th-panel);
	font-size: 15px;
	line-height: 1.55;
	color: var(--th-ink-soft);
}

.wp-block-group.is-style-th-disclosure > *,
.wp-block-group.is-style-th-note > * {
	margin: 0;
}

.wp-block-group.is-style-th-disclosure > :not(.th-disclosure__label) {
	flex: 1 1 320px;
}

.th-disclosure__label {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--th-ink);
}

.wp-block-group.is-style-th-note {
	display: grid;
	gap: 6px;
	box-sizing: border-box;
	padding: 22px 28px;
	border-radius: var(--th-radius-card);
	background: var(--th-accent-tint);
	color: var(--th-ink);
	font-size: 15px;
	line-height: 1.55;
}

.wp-block-group.is-style-th-card {
	box-sizing: border-box;
	padding: 28px;
	border-radius: var(--th-radius-card);
	background: var(--th-panel);
	color: var(--th-ink-soft);
}

.wp-block-group.is-style-th-card > :first-child {
	margin-top: 0;
}

/* Cards side by side in columns end on one line. */
.wp-block-column > .wp-block-group.is-style-th-card:only-child {
	height: 100%;
}

@media (max-width: 600px) {
	.wp-block-group.is-style-th-note,
	.wp-block-group.is-style-th-card {
		padding: 20px;
	}
}

/* 8. Picks: one card per product, specs in a grid. */

.wp-block-group.th-picks {
	display: grid;
	gap: 20px;
}

.wp-block-group.th-picks > * {
	margin: 0 !important;
}

.wp-block-group.th-pick {
	display: grid;
	gap: 16px;
	border-top: 3px solid var(--th-accent);
	container: th-pick / inline-size;
}

.wp-block-group.th-pick > *,
.wp-block-group.th-pick__head > * {
	margin: 0;
}

.wp-block-group.th-pick__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 16px;
}

.th-pick__head .th-pick__for {
	grid-column: 1 / -1;
}

.th-pick__name {
	font-size: var(--wp--preset--font-size--card-title);
	line-height: 1.2;
}

/* On the narrowest phones the watt-hour tag goes under the name, so a long
   model number never runs into it. */
@container th-pick (max-width: 300px) {
	.wp-block-group.th-pick__head {
		grid-template-columns: minmax(0, 1fr);
	}
}

ul.th-pick__specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
	gap: 14px 24px;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--th-line);
	list-style: none;
	font-size: 15px;
	line-height: 1.5;
	color: var(--th-ink);
}

ul.th-pick__specs > li {
	margin: 0;
}

ul.th-pick__specs strong {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

/* 9. Sources: each one a small stop. */

ul.is-style-th-sources,
ol.is-style-th-sources {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.55;
	color: var(--th-ink-soft);
}

.is-style-th-sources > li {
	position: relative;
	margin: 0;
	padding-inline-start: 22px;
}

.is-style-th-sources > li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	inset-inline-start: 2px;
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border: 2px solid var(--th-accent);
	border-radius: 50%;
}

/* 10. FAQ: questions that open in place. */

.wp-block-details.is-style-th-faq {
	margin: 0;
	border-top: 1px solid var(--th-line);
	border-bottom: 1px solid var(--th-line);
}

.wp-block-post-content > .wp-block-details.is-style-th-faq + .wp-block-details.is-style-th-faq {
	margin-top: 0;
	border-top: 0;
}

.wp-block-details.is-style-th-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	box-sizing: border-box;
	padding-block: 14px;
	color: var(--th-ink);
	font-weight: 600;
	line-height: 1.45;
	cursor: pointer;
	list-style: none;
}

.wp-block-details.is-style-th-faq summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-th-faq summary::after {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background:
		linear-gradient(var(--th-accent), var(--th-accent)) center / 12px 2px no-repeat,
		linear-gradient(var(--th-accent), var(--th-accent)) center / 2px 12px no-repeat,
		var(--th-accent-tint);
}

.wp-block-details.is-style-th-faq[open] summary::after {
	background:
		linear-gradient(var(--th-on-accent), var(--th-on-accent)) center / 12px 2px no-repeat,
		var(--th-accent);
}

.wp-block-details.is-style-th-faq summary:hover {
	color: var(--th-accent);
}

.wp-block-details.is-style-th-faq > :not(summary) {
	margin: 0 0 18px;
}

/* 11. Tables. */

/* A table wider than the screen scrolls inside its card; a soft shadow
   shows on the side that has more to see. */
.wp-block-post-content figure.wp-block-table {
	overflow-x: auto;
	border-radius: var(--th-radius-card);
	background-color: var(--th-panel);
	background-image:
		linear-gradient(to right, var(--th-panel) 30%, transparent),
		linear-gradient(to left, var(--th-panel) 30%, transparent),
		radial-gradient(farthest-side at 0 50%, rgb(13 21 38 / 0.18), transparent),
		radial-gradient(farthest-side at 100% 50%, rgb(13 21 38 / 0.18), transparent);
	background-position: left center, right center, left center, right center;
	background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
	background-repeat: no-repeat;
	background-attachment: local, local, scroll, scroll;
}

.wp-block-post-content figure.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
	font-size: 15px;
	line-height: 1.5;
	color: var(--th-ink);
}

.wp-block-post-content figure.wp-block-table :is(th, td) {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--th-line);
	text-align: start;
	vertical-align: top;
}

.wp-block-post-content figure.wp-block-table thead {
	border: 0;
}

.wp-block-post-content figure.wp-block-table thead th {
	padding-block: 14px 12px;
	border-bottom: 1px solid var(--th-field);
	background: transparent;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

.wp-block-post-content figure.wp-block-table tbody tr:last-child > * {
	border-bottom: 0;
}

.wp-block-post-content figure.wp-block-table.is-style-th-rules {
	border-top: 3px solid var(--th-accent);
}

.wp-block-post-content figure.wp-block-table.is-style-th-rules td:first-child {
	font-weight: 600;
}

.wp-block-post-content figure.wp-block-table figcaption,
.wp-block-post-content figure.wp-block-table + p.has-small-font-size {
	font-size: 14px;
	line-height: 1.55;
	color: var(--th-ink-muted);
}

.wp-block-post-content figure.wp-block-table figcaption {
	position: sticky;
	inset-inline-start: 0;
	margin: 0;
	padding: 12px 16px 14px;
	border-top: 1px solid var(--th-line);
	background: var(--th-panel);
	text-align: start;
}

@media (max-width: 600px) {
	.wp-block-post-content figure.wp-block-table :is(th, td) {
		padding: 10px 12px;
	}
}

/* 12. Figures. */

.wp-block-post-content figure.wp-block-image img {
	border-radius: var(--th-radius-card);
}

.wp-block-post-content figure.wp-block-image figcaption {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.55;
	text-align: start;
	color: var(--th-ink-muted);
}

/* 13. Buttons: accent for the site's own actions, outline for the rest. */

.wp-block-post-content .wp-block-button__link {
	min-height: 48px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.wp-block-post-content .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--th-accent) 86%, #000);
}

.wp-block-button:is(.is-style-th-secondary, .is-style-outline) > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
	color: var(--th-ink);
	box-shadow: inset 0 0 0 1.5px var(--th-ink);
}

.wp-block-button:is(.is-style-th-secondary, .is-style-outline) > .wp-block-button__link:hover {
	background: var(--th-ink);
	color: var(--th-on-accent);
}

/* 14. End of a guide: the note on changing rules, then more guides. */

.th-article__end {
	margin-top: 64px !important;
}

.th-article__more {
	margin-top: var(--th-section) !important;
	padding-top: calc(var(--th-section) - 16px);
	border-top: 1px solid var(--th-line);
}

/* 15. Page frame: a page's title, or a page that brings its own head. */

.th-page {
	padding-top: 40px;
}

.th-page__title {
	margin: 0;
	font-size: clamp(34px, 1.3rem + 2.7vw, 52px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.th-page__body {
	margin-top: 24px !important;
}

.th-page--bare {
	padding-top: 0;
}

.th-page--bare .th-page__body {
	margin-top: 0 !important;
}

.th-page--bare .th-page__body > :first-child {
	margin-top: 40px !important;
}

@media (max-width: 600px) {
	.th-page {
		padding-top: 16px;
	}

	.th-page--bare {
		padding-top: 0;
	}

	.th-page--bare .th-page__body > :first-child {
		margin-top: 16px !important;
	}
}

/* 16. Boards: the head a page writes for itself (Tools, About). */

.wp-block-group.th-board {
	padding: 0;
	background: none;
	color: var(--th-ink);
}

.wp-block-group.th-board__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	max-width: 760px;
}

.wp-block-group.th-board__body > * {
	margin: 0;
}

.th-board .th-label {
	letter-spacing: 0.14em;
}

.th-board :where(h1) {
	font-size: clamp(34px, 1.3rem + 2.7vw, 52px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.th-board .th-board__lead {
	max-width: 640px;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.55;
	color: var(--th-ink-soft);
}

/* Above wide sections a board spans the wide width; above running text it
   keeps to the reading column, so both start on the same line. */
.wp-block-post-content > .wp-block-group.th-board.alignwide:not(:has(~ .th-hub-section)) {
	max-width: var(--wp--style--global--content-size, 680px);
}

/* 17. Tool cards: a card per tool, its code on a stub past a dashed line. */

.wp-block-group.th-hub-section > * {
	margin-top: 0;
}

.wp-block-group.th-hub-section > * + * {
	margin-top: 24px;
}

/* A note after the sections keeps its reading width but starts on their line. */
.wp-block-post-content > .th-hub-section ~ .wp-block-group.is-style-th-note {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1120px)) / 2)) !important;
	margin-right: auto !important;
}

.wp-block-group.th-tickets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: 20px;
}

.wp-block-group.th-tickets > * {
	margin: 0 !important;
}

.wp-block-group.is-style-th-ticket {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 128px;
	border-radius: var(--th-radius-card);
	background: var(--th-panel);
	color: var(--th-ink);
}

.wp-block-group.is-style-th-ticket > * {
	margin: 0;
}

.wp-block-group.th-ticket__main {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 24px 24px 24px 28px;
}

.wp-block-group.th-ticket__main > * {
	margin: 0;
}

.th-ticket__title {
	font-size: var(--wp--preset--font-size--card-title);
	line-height: 1.2;
}

.th-ticket__title a {
	color: var(--th-ink);
	text-decoration: none;
}

/* The title's link covers the whole card. */
.th-ticket__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--th-radius-card);
}

.th-ticket__title a:focus-visible {
	outline: none;
}

.th-ticket__title a:focus-visible::after {
	outline: 3px solid var(--th-accent);
	outline-offset: 3px;
}

.wp-block-group.is-style-th-ticket:hover .th-ticket__title a {
	color: var(--th-accent);
}

.th-ticket__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--th-ink-soft);
}

.th-ticket__go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-top: 6px !important;
	font-weight: 600;
	color: var(--th-accent);
}

.th-ticket__go::after {
	content: "\2192";
	transition: transform 0.2s ease;
}

.wp-block-group.is-style-th-ticket:hover .th-ticket__go::after {
	transform: translateX(4px);
}

.wp-block-group.th-ticket__stub {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px 12px;
	border-inline-start: 2px dashed var(--th-line);
	text-align: center;
}

.wp-block-group.th-ticket__stub > * {
	margin: 0;
}

.th-ticket__code {
	font-family: var(--th-display);
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--th-accent);
}

.th-ticket__sub {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

/* On a phone the stub moves under the card, behind a dashed tear line, so
   the text gets the full width and long words like DESTINATIONS fit. */
@media (max-width: 480px) {
	.wp-block-group.is-style-th-ticket {
		grid-template-columns: minmax(0, 1fr);
	}

	.wp-block-group.th-ticket__main {
		padding: 20px 20px 18px;
	}

	.wp-block-group.th-ticket__stub {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: baseline;
		gap: 4px 12px;
		padding: 14px 20px 16px;
		border-inline-start: 0;
		border-top: 2px dashed var(--th-line);
		text-align: start;
	}

	.th-ticket__code {
		font-size: 24px;
	}
}

/* 18. Steps: how we check, as stops on a line. */

/* The space above the list comes from the layout's gap, like any block. */
ol.th-steps {
	display: grid;
	margin-inline: 0;
	margin-block-end: 0;
	padding: 0;
	list-style: none;
	counter-reset: th-step;
}

ol.th-steps > li {
	position: relative;
	min-height: 48px;
	margin: 0;
	padding: 6px 0 28px 64px;
	counter-increment: th-step;
	color: var(--th-ink-soft);
}

ol.th-steps > li::before {
	content: counter(th-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	border: 2px solid var(--th-accent);
	border-radius: 50%;
	background: var(--th-ground);
	color: var(--th-accent);
	font-family: var(--th-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

ol.th-steps > li::after {
	content: "";
	position: absolute;
	top: 46px;
	bottom: 6px;
	inset-inline-start: 19px;
	border-inline-start: 2px dashed var(--th-field);
}

ol.th-steps > li:last-child {
	padding-bottom: 0;
}

ol.th-steps > li:last-child::after {
	content: none;
}

/* 19. Callout: the page's one deep band, with the action on it. */

.wp-block-group.is-style-th-callout {
	border-top: 3px solid var(--th-accent);
	background: var(--th-night);
	color: var(--th-on-night);
}

.wp-block-group.is-style-th-callout :where(h1, h2, h3, h4) {
	color: var(--th-on-night);
}

.wp-block-group.is-style-th-callout :where(p, li) {
	color: rgb(255 255 255 / 0.84);
}

.wp-block-group.is-style-th-callout .th-label {
	color: var(--th-on-night-muted);
}

.wp-block-group.is-style-th-callout a:where(:not(.wp-element-button)) {
	color: var(--th-on-night);
}

.wp-block-group.is-style-th-callout .wp-block-button__link {
	background: var(--th-accent);
	color: var(--th-on-accent);
}

.wp-block-group.is-style-th-callout .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--th-accent) 80%, #fff);
}

.wp-block-group.is-style-th-callout .wp-block-button__link:focus-visible {
	outline-color: var(--th-on-night);
}

/* 20. Checklist: boxes to tick, kept on the device. */

.wp-block-group.th-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
}

.wp-block-group.th-section-head > * {
	margin: 0 !important;
}

ul.is-style-th-checklist,
ol.is-style-th-checklist {
	display: grid;
	gap: 8px;
	margin-inline: 0;
	padding: 0;
	list-style: none;
}

.is-style-th-checklist > li {
	position: relative;
	margin: 0;
	padding: 14px 20px 14px 58px;
	border-radius: var(--th-radius-control);
	background: var(--th-panel);
	color: var(--th-ink);
	line-height: 1.55;
}

.is-style-th-checklist > li::before,
.th-check__box {
	position: absolute;
	top: 16px;
	inset-inline-start: 20px;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	border: 1.5px solid var(--th-field);
	border-radius: 6px;
	background: var(--th-panel);
}

.is-style-th-checklist > li::before {
	content: "";
}

.is-style-th-checklist.is-interactive > li {
	padding: 0;
}

.is-style-th-checklist.is-interactive > li::before {
	content: none;
}

.th-check__box {
	margin: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.th-check__box:checked {
	border-color: var(--th-accent);
	background: var(--th-accent);
}

.th-check__box:checked::after {
	content: "";
	position: absolute;
	inset: 2px;
	background: var(--th-on-accent);
	-webkit-mask: var(--th-glyph-check) center / contain no-repeat;
	mask: var(--th-glyph-check) center / contain no-repeat;
}

.th-check__label {
	display: block;
	min-height: 48px;
	box-sizing: border-box;
	padding: 14px 20px 14px 58px;
	cursor: pointer;
}

.th-check.is-done {
	background: var(--th-accent-tint);
}

.th-check.is-done .th-check__label {
	color: var(--th-ink-soft);
}

.th-check__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	box-sizing: border-box;
	margin-top: 24px;
	padding: 8px 8px 8px 20px;
	border-radius: var(--th-radius-control);
	background: var(--th-panel);
}

.th-check__progress {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--th-ink);
}

.th-check__reset {
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--th-accent);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.th-check__reset:hover {
	background: var(--th-accent-tint);
}

.th-check__reset:disabled,
.th-check__reset:disabled:hover {
	background: transparent;
	color: var(--th-ink-muted);
	text-decoration: none;
	cursor: default;
}

/* 21. Forms: the contact form, in the same field as the route finder. */

.wp-block-jetpack-contact-form {
	gap: 20px;
}

.wp-block-post-content .wp-block-jetpack-contact-form .grunion-field-label {
	display: block;
	margin: 0 0 6px;
	color: var(--th-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.wp-block-post-content .wp-block-jetpack-contact-form .grunion-label-required {
	margin-inline-start: 6px;
	color: var(--th-ink-muted);
	font-size: 13px;
	font-weight: 400;
}

.wp-block-post-content .wp-block-jetpack-contact-form :is(input[type="text"], input[type="email"], textarea).grunion-field {
	width: 100%;
	min-height: 52px;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1.5px solid var(--th-field);
	border-radius: var(--th-radius-control);
	background: var(--th-panel);
	color: var(--th-ink);
	font: inherit;
	font-size: 17px;
	line-height: 1.5;
	box-shadow: none;
}

.wp-block-post-content .wp-block-jetpack-contact-form textarea.grunion-field {
	min-height: 168px;
	resize: vertical;
}

.wp-block-post-content .wp-block-jetpack-contact-form :is(input, textarea).grunion-field:focus-visible {
	border-color: var(--th-accent);
	outline: 3px solid var(--th-accent);
	outline-offset: 2px;
}

.wp-block-post-content .wp-block-jetpack-contact-form .contact-form__input-error {
	color: var(--th-stop);
	font-size: 14px;
}

/* 22. Lists of guides: all guides, Rules, a topic, search, not found. The
   head is a board as on Tools; sections follow at the home page's spacing. */

.th-archive {
	padding-top: 40px;
}

/* The trail is the way back; the board's label belongs to the title. */
.th-archive > .wp-block-breadcrumbs.th-trail + .th-board {
	margin-top: 28px;
}

.th-archive > .th-hub-section,
.th-archive > .th-promises {
	margin-block-start: var(--th-section);
}

.wp-block-group.th-board__body > .wp-block-query-title {
	margin: 0;
}

.wp-block-term-description.th-board__lead > * {
	margin: 0;
}

.wp-block-term-description.th-board__lead > * + * {
	margin-top: 12px;
}

/* What a topic covers, as plain tags: words, not buttons. */
ul.th-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

ul.th-chips > li {
	margin: 0;
	padding: 4px 10px;
	border: 1px solid var(--th-line);
	border-radius: var(--th-radius-tag);
	background: var(--th-panel);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--th-ink-soft);
}

.wp-block-group.th-hub-section > .th-guides__head {
	margin-bottom: 0;
}

.wp-block-group.th-hub-section > .th-guides__head > h2 {
	margin: 0;
}

p.th-hub-more {
	font-size: 15px;
	color: var(--th-ink-soft);
}

@media (max-width: 600px) {
	.th-archive {
		padding-top: 16px;
	}
}

/* 23. Topics: a plate per topic, each a stop on the route, the whole plate
   one link. */

.wp-block-terms-query.th-topics > ul.th-topics__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.th-topics__list > li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 24px;
	border-radius: var(--th-radius-card);
	background: var(--th-panel);
	color: var(--th-ink-soft);
}

ul.th-topics__list > li > * {
	margin: 0;
}

.wp-block-term-name.th-topic__name {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	line-height: 1.25;
}

/* The stop: the same ring as the route's stops on the home page. */
.wp-block-term-name.th-topic__name::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 3px solid var(--th-accent);
	border-radius: 50%;
	background: var(--th-panel);
}

.wp-block-term-name.th-topic__name a {
	color: var(--th-ink);
	text-decoration: none;
}

.wp-block-term-name.th-topic__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--th-radius-card);
}

.wp-block-term-name.th-topic__name a:focus-visible {
	outline: none;
}

.wp-block-term-name.th-topic__name a:focus-visible::after {
	outline: 3px solid var(--th-accent);
	outline-offset: 3px;
}

ul.th-topics__list > li:hover .th-topic__name a {
	color: var(--th-accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.wp-block-term-description.th-topic__text {
	font-size: 15px;
	line-height: 1.55;
}

.wp-block-term-description.th-topic__text > * {
	margin: 0;
}

p.wp-block-term-count.th-topic__count {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--th-line);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--th-ink-muted);
}

p.wp-block-term-count.th-topic__count::after {
	content: "\2192";
	color: var(--th-accent);
	font-size: 17px;
	transition: transform 0.2s ease;
}

ul.th-topics__list > li:hover .th-topic__count::after {
	transform: translateX(4px);
}

/* 24. Guide rows: a list of guides on one panel, a row each, like the lines
   of a timetable: topic, guide, last update. The title links the row. */

.wp-block-query.th-index > ul.th-index__list {
	margin: 0;
	padding: 0;
	border-radius: var(--th-radius-card);
	background: var(--th-panel);
	list-style: none;
}

ul.th-index__list > li {
	position: relative;
	margin: 0;
}

/* The line between two rows stops short of the panel's edges. */
ul.th-index__list > li + li::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 28px;
	border-top: 1px solid var(--th-line);
}

.wp-block-group.th-row {
	position: relative;
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr) 9.5rem;
	grid-template-areas:
		"topic title date"
		"topic excerpt date";
	align-items: start;
	gap: 6px 32px;
	padding: 24px 28px;
}

.wp-block-group.th-row--plain {
	grid-template-columns: minmax(0, 1fr) 9.5rem;
	grid-template-areas:
		"title date"
		"excerpt date";
}

.wp-block-group.th-row > * {
	margin: 0;
}

.th-row__topic {
	grid-area: topic;
	padding-top: 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

/* The topic stays its own link, above the row's. */
.th-row__topic a {
	position: relative;
	z-index: 2;
	color: inherit;
	text-decoration: none;
}

.th-row__topic a:hover {
	color: var(--th-ink);
	text-decoration: underline;
}

.wp-block-post-title.th-row__title {
	grid-area: title;
	font-size: 20px;
	line-height: 1.25;
	text-wrap: pretty;
}

.wp-block-post-title.th-row__title a {
	color: var(--th-ink);
	text-decoration: none;
}

.wp-block-post-title.th-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.wp-block-post-title.th-row__title a:focus-visible {
	outline: none;
}

.wp-block-post-title.th-row__title a:focus-visible::after {
	outline: 3px solid var(--th-accent);
	outline-offset: -3px;
	border-radius: var(--th-radius-control);
}

.wp-block-group.th-row:hover .th-row__title a {
	color: var(--th-accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.wp-block-post-excerpt.th-row__excerpt {
	grid-area: excerpt;
	max-width: 640px;
}

.wp-block-post-excerpt.th-row__excerpt p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--th-ink-soft);
}

.wp-block-post-date.th-row__date {
	grid-area: date;
	padding-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	text-align: end;
	color: var(--th-ink-muted);
}

.wp-block-query.th-index > .wp-block-query-total {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--th-ink-soft);
}

.wp-block-query.th-index p.th-index__empty {
	margin: 0;
	padding: 24px 28px;
	border-radius: var(--th-radius-card);
	background: var(--th-panel);
	color: var(--th-ink-soft);
}

/* Pages of a long list. */
.wp-block-query-pagination.th-pager {
	margin-top: 20px;
	font-size: 15px;
	font-weight: 600;
}

.wp-block-query-pagination.th-pager a,
.wp-block-query-pagination.th-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	padding: 0 8px;
	box-sizing: border-box;
	border-radius: var(--th-radius-control);
	color: var(--th-accent);
	text-decoration: none;
}

.wp-block-query-pagination.th-pager a:hover {
	text-decoration: underline;
}

.wp-block-query-pagination.th-pager .page-numbers.current {
	background: var(--th-panel);
	color: var(--th-ink);
}

@media (max-width: 760px) {
	ul.th-index__list > li + li::before {
		inset-inline: 20px;
	}

	.wp-block-group.th-row,
	.wp-block-group.th-row--plain {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"topic date"
			"title title"
			"excerpt excerpt";
		gap: 8px 16px;
		padding: 20px;
	}

	/* A row without a topic (a topic's own list, a page in search) puts
	   the date where the topic would be. */
	.wp-block-group.th-row:not(:has(> .th-row__topic)) {
		grid-template-areas:
			"date date"
			"title title"
			"excerpt excerpt";
	}

	.wp-block-post-title.th-row__title {
		font-size: 19px;
	}

	.th-row__topic,
	.wp-block-post-date.th-row__date {
		padding-top: 0;
	}

	.wp-block-group.th-row:not(:has(> .th-row__topic)) .th-row__date {
		text-align: start;
	}
}

/* 25. Search: the field and button of the route finder, on a list page. */

.wp-block-search.th-search {
	max-width: 640px;
	margin-top: 8px;
}

.wp-block-search.th-search .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 0;
	border: 0;
}

.wp-block-search.th-search .wp-block-search__input {
	width: 100%;
	min-width: 0;
	min-height: 52px;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1.5px solid var(--th-field);
	border-radius: var(--th-radius-control);
	background: var(--th-panel);
	color: var(--th-ink);
	font: inherit;
	font-size: 17px;
}

.wp-block-search.th-search .wp-block-search__input::placeholder {
	color: var(--th-ink-muted);
	opacity: 1;
}

.wp-block-search.th-search .wp-block-search__input:focus-visible {
	outline: 3px solid var(--th-accent);
	outline-offset: 2px;
	border-color: var(--th-accent);
}

.wp-block-search.th-search .wp-block-search__button {
	min-height: 52px;
	margin: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--th-radius-control);
	background: var(--th-accent);
	color: var(--th-on-accent);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.wp-block-search.th-search .wp-block-search__button:hover {
	background: var(--th-ink);
}

/* On a phone the field keeps room for its whole placeholder. 16px is the
   size below which phones zoom in on a field. */
@media (max-width: 480px) {
	.wp-block-search.th-search .wp-block-search__input {
		padding-inline: 14px;
		font-size: 16px;
	}

	.wp-block-search.th-search .wp-block-search__button {
		padding-inline: 18px;
	}
}

/* The narrowest phones put the button under the field. */
@media (max-width: 374px) {
	.wp-block-search.th-search .wp-block-search__inside-wrapper {
		flex-wrap: wrap;
	}

	.wp-block-search.th-search .wp-block-search__input,
	.wp-block-search.th-search .wp-block-search__button {
		flex: 1 1 100%;
	}
}

.wp-block-search.th-search .wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--th-ink);
}

/* 26. Not found: the rule sign that says this page is not on the board. */

.wp-block-group.th-lost {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.wp-block-group.th-lost > * {
	max-width: 760px;
	margin: 0;
}

.th-lost .th-sign__title {
	font-size: clamp(30px, 1.2rem + 2vw, 44px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.025em;
}

p.th-lost__code {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--th-ink-muted);
}

.th-lost .wp-block-search.th-search {
	margin-top: 0;
}

.wp-block-buttons.th-lost__actions {
	margin: 0;
}

/* 27. Print: the page, not the site around it; the checklist on one sheet. */

@media print {
	.th-site-header,
	.th-site-footer,
	.wp-block-breadcrumbs.th-trail,
	.th-article__more,
	.th-print,
	.th-check__tools,
	.wp-block-buttons {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.wp-block-post-content {
		color: #000;
	}

	.wp-block-post-content a {
		color: #000;
	}

	.wp-block-group:is(.is-style-th-answer, .is-style-th-sign, .th-pick, .is-style-th-change, .is-style-th-ticket),
	.wp-block-details.is-style-th-faq,
	.is-style-th-checklist > li {
		break-inside: avoid;
	}

	.wp-block-group:is(.is-style-th-answer, .is-style-th-sign, .is-style-th-card, .is-style-th-note, .is-style-th-ticket) {
		border: 1px solid #000;
	}
}

@page th-sheet {
	margin: 0;
}

@media print {
	body:has(.is-style-th-checklist) {
		page: th-sheet;
		font-size: 9.5pt;
		line-height: 1.32;
	}

	body:has(.is-style-th-checklist) .wp-site-blocks {
		padding: 0.5in 0.55in 0.4in !important;
	}

	body:has(.is-style-th-checklist) :is(.has-global-padding, main, .entry-content) {
		margin: 0 !important;
		padding: 0 !important;
	}

	body:has(.is-style-th-checklist) main {
		position: relative;
	}

	body:has(.is-style-th-checklist) main.is-layout-constrained > *,
	body:has(.is-style-th-checklist) main .is-layout-constrained > * {
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	/* Head: a band with the site name, the title, the date and a QR code back to the page. */
	body:has(.is-style-th-checklist) main::before {
		content: "techrahal \00B7  Travel rules, checked and dated";
		display: inline-block;
		margin-bottom: 9pt;
		padding: 3pt 7pt;
		background: #1F4FD8;
		color: #FFFFFF;
		font-family: var(--th-sans);
		font-size: 7pt;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	body:has(.is-style-th-checklist) main::after {
		content: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2721.0mm%27%20height%3D%2721.0mm%27%20viewBox%3D%270%200%2021.0%2021.0%27%20class%3D%27segno%27%3E%3Cpath%20transform%3D%27scale%280.6%29%27%20class%3D%27qrline%27%20stroke%3D%27%23000%27%20d%3D%27M1%201.5h7m2%200h2m1%200h2m2%200h4m3%200h1m2%200h7m-33%201h1m5%200h1m3%200h8m2%200h3m1%200h1m1%200h1m5%200h1m-33%201h1m1%200h3m1%200h1m1%200h1m4%200h1m2%200h3m1%200h2m1%200h2m1%200h1m1%200h3m1%200h1m-33%201h1m1%200h3m1%200h1m1%200h1m1%200h3m1%200h1m1%200h1m2%200h2m1%200h1m1%200h1m1%200h1m1%200h3m1%200h1m-33%201h1m1%200h3m1%200h1m1%200h1m1%200h4m1%200h1m1%200h2m2%200h1m1%200h1m2%200h1m1%200h3m1%200h1m-33%201h1m5%200h1m1%200h1m1%200h8m2%200h2m4%200h1m5%200h1m-33%201h7m1%200h1m1%200h1m1%200h1m1%200h1m1%200h1m1%200h1m1%200h1m1%200h1m1%200h1m1%200h7m-25%201h3m4%200h1m5%200h4m-25%201h1m1%200h5m2%200h2m2%200h1m1%200h1m1%200h1m4%200h2m2%200h5m-28%201h3m1%200h6m3%200h1m1%200h3m2%200h1m2%200h2m1%200h4m-31%201h2m2%200h3m1%200h2m3%200h2m1%200h1m1%200h2m2%200h3m1%200h1m1%200h2m-30%201h2m6%200h1m3%200h3m2%200h4m1%200h2m2%200h4m-32%201h1m1%200h2m2%200h1m1%200h4m6%200h2m2%200h4m1%200h3m-29%201h1m3%200h1m1%200h1m2%200h2m1%200h4m3%200h1m1%200h2m2%200h2m1%200h4m-33%201h1m1%200h6m1%200h1m2%200h1m1%200h1m2%200h3m1%200h1m3%200h2m3%200h2m-32%201h2m3%200h1m2%200h1m3%200h1m1%200h1m1%200h1m2%200h3m1%200h8m-27%201h1m1%200h1m1%200h3m3%200h1m2%200h1m1%200h1m2%200h1m1%200h2m1%200h3m2%200h1m-33%201h1m1%200h1m2%200h1m3%200h1m2%200h1m4%200h5m1%200h1m1%200h3m1%200h2m1%200h1m-33%201h1m4%200h9m1%200h3m2%200h1m6%200h2m1%200h2m-32%201h1m3%200h2m1%200h1m1%200h1m5%200h1m1%200h3m1%200h10m1%200h1m-31%201h1m3%200h2m1%200h1m1%200h3m2%200h1m5%200h1m1%200h2m2%200h2m-30%201h5m2%200h2m1%200h1m4%200h1m2%200h1m2%200h3m2%200h1m2%200h2m1%200h1m-33%201h1m4%200h2m2%200h1m1%200h3m1%200h2m1%200h1m2%200h1m3%200h1m1%200h2m1%200h2m-32%201h1m1%200h1m5%200h1m3%200h1m1%200h2m5%200h2m4%200h1m1%200h3m-32%201h1m1%200h7m2%200h1m1%200h1m1%200h3m4%200h1m1%200h5m-21%201h3m1%200h1m1%200h1m1%200h1m2%200h3m2%200h1m3%200h1m1%200h1m1%200h1m-33%201h7m2%200h1m1%200h2m1%200h2m2%200h1m2%200h4m1%200h1m1%200h1m1%200h2m-32%201h1m5%200h1m1%200h2m3%200h2m4%200h3m1%200h2m3%200h4m-32%201h1m1%200h3m1%200h1m1%200h1m2%200h1m1%200h3m2%200h2m4%200h6m1%200h2m-33%201h1m1%200h3m1%200h1m1%200h1m1%200h1m2%200h4m6%200h3m2%200h5m-33%201h1m1%200h3m1%200h1m1%200h2m1%200h2m4%200h2m1%200h5m1%200h2m1%200h2m-31%201h1m5%200h1m2%200h1m3%200h1m2%200h1m1%200h4m4%200h1m1%200h3m-31%201h7m1%200h4m2%200h1m1%200h2m1%200h1m3%200h2m2%200h1m1%200h1m1%200h1%27%2F%3E%3C%2Fsvg%3E");
		position: absolute;
		top: 0;
		right: 0;
		line-height: 0;
	}

	body:has(.is-style-th-checklist) .wp-block-post-title {
		margin: 0 30mm 6pt 0 !important;
		font-size: 22pt !important;
		line-height: 1.08 !important;
	}

	body:has(.is-style-th-checklist) .wp-block-post-title::after {
		content: "Scan for the latest version";
		position: absolute;
		top: 22.5mm;
		right: 0;
		width: 21mm;
		font-family: var(--th-sans);
		font-size: 5.5pt;
		font-weight: 600;
		letter-spacing: 0.08em;
		line-height: 1.3;
		text-align: center;
		text-transform: uppercase;
	}

	body:has(.is-style-th-checklist) .entry-content > .has-lead-font-size,
	body:has(.is-style-th-checklist) .th-section-head > .has-small-font-size {
		display: none !important;
	}

	body:has(.is-style-th-checklist) .th-section-head {
		display: block !important;
		margin: 0 0 12pt !important;
		padding: 0 0 10pt !important;
		border-bottom: 1.2pt dashed #0D1526;
	}

	body:has(.is-style-th-checklist) p.is-style-th-checked {
		color: #0D1526;
		font-size: 7.5pt;
	}

	body:has(.is-style-th-checklist) p.is-style-th-checked::before {
		width: 11px;
		height: 11px;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	body:has(.is-style-th-checklist) .th-section-head::after {
		content: "My flight";
		display: block;
		margin: 6pt 30mm 0 0;
		padding-top: 10pt;
		border-bottom: 0.75pt solid #0D1526;
		font-family: var(--th-sans);
		font-size: 6.5pt;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	/* Body: the four steps in two balanced columns, each step kept whole. */
	body:has(.is-style-th-checklist) .entry-content {
		columns: 2;
		column-gap: 0.32in;
		counter-reset: th-step;
	}

	body:has(.is-style-th-checklist) .entry-content > :not(h2:not(#sources)):not(.is-style-th-checklist) {
		column-span: all;
	}

	body:has(.is-style-th-checklist) .entry-content > h2:not(#sources) {
		margin: 0 0 3pt !important;
		font-size: 10pt !important;
		line-height: 1.2 !important;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		counter-increment: th-step;
		break-after: avoid;
	}

	body:has(.is-style-th-checklist) .entry-content > h2:not(#sources)::before {
		content: counter(th-step, decimal-leading-zero);
		margin-right: 6pt;
		padding: 0 3pt;
		border: 1pt solid #1F4FD8;
		color: #1F4FD8;
		font-size: 8pt;
	}

	body:has(.is-style-th-checklist) .is-style-th-checklist {
		margin: 0 0 13pt !important;
		padding: 0 !important;
		break-inside: avoid;
	}

	body:has(.is-style-th-checklist) .is-style-th-checklist > li {
		position: relative;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-bottom: 0.5pt solid #6B7890 !important;
		border-radius: 0 !important;
		background: none !important;
		box-shadow: none !important;
	}

	body:has(.is-style-th-checklist) .th-check__label {
		min-height: 0 !important;
		padding: 5pt 0 5pt 17pt !important;
		color: #0D1526 !important;
		font-size: 9.8pt;
		line-height: 1.32;
	}

	body:has(.is-style-th-checklist) .th-check__box {
		top: 6pt !important;
		left: 0 !important;
		width: 10pt !important;
		height: 10pt !important;
		border: 1.1pt solid #0D1526 !important;
		border-radius: 1.5pt !important;
		background: #FFFFFF !important;
	}

	body:has(.is-style-th-checklist) .th-check__box:checked {
		background: #0D1526 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	body:has(.is-style-th-checklist) .th-check__box:checked::after {
		inset: 1pt;
		background: #FFFFFF !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	/* Links to the site's own pages print their address. */
	body:has(.is-style-th-checklist) .entry-content a[href^="/"]::after {
		content: " (techrahal.com" attr(href) ")";
		color: #4B5873;
		font-size: 0.85em;
	}

	/* Foot: the reading tip, the dated sources and the airline note, in small print. */
	body:has(.is-style-th-checklist) .entry-content > p {
		margin: 9pt 0 0 !important;
		font-size: 8.5pt !important;
	}

	body:has(.is-style-th-checklist) .entry-content > h2#sources {
		margin: 11pt 0 3pt !important;
		padding-top: 7pt;
		border-top: 0.75pt solid #0D1526;
		font-family: var(--th-sans);
		font-size: 7pt !important;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}

	body:has(.is-style-th-checklist) .is-style-th-sources {
		display: block !important;
		columns: 2;
		column-gap: 0.32in;
		margin: 0 !important;
		padding: 0 !important;
		font-size: 7.2pt;
		line-height: 1.3;
		list-style: none;
	}

	body:has(.is-style-th-checklist) .is-style-th-sources > li {
		margin: 0 0 2.5pt !important;
		padding: 0 !important;
		border: 0 !important;
		break-inside: avoid;
	}

	body:has(.is-style-th-checklist) .is-style-th-sources > li::before {
		content: none;
	}

	body:has(.is-style-th-checklist) .entry-content > p.has-small-font-size {
		margin-top: 5pt !important;
		font-size: 7.2pt !important;
	}
}
