/* ===========================================================
   Thelmoros — stylebook.css
   Classical mythology reading guides, Wellington, New Zealand
   Class prefix: tm_
   =========================================================== */

:root {
	--tm-ink: #1b1626;
	--tm-deep: #2e2448;
	--tm-deep-2: #3e3164;
	--tm-deep-3: #241c3a;
	--tm-accent: #c0692f;
	--tm-accent-ink: #a8541f;
	--tm-gold: #d8a33f;
	--tm-parchment: #f7f2e8;
	--tm-parchment-2: #efe7d7;
	--tm-line: #dcd1bc;
	--tm-line-soft: #e8dfcd;
	--tm-body: #3a3348;
	--tm-muted: #635b78;
	--tm-white: #ffffff;

	--tm-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--tm-sans: "Karla", "Segoe UI", Helvetica, Arial, sans-serif;

	--tm-shell: 1140px;
	--tm-radius: 3px;
	--tm-radius-lg: 6px;
	--tm-shadow: 0 1px 2px rgba(27, 22, 38, 0.06), 0 8px 24px rgba(27, 22, 38, 0.07);
	--tm-shadow-lift: 0 2px 4px rgba(27, 22, 38, 0.08), 0 18px 44px rgba(27, 22, 38, 0.12);
}

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

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

body {
	margin: 0;
	background: var(--tm-parchment);
	color: var(--tm-body);
	font-family: var(--tm-sans);
	font-size: 17px;
	line-height: 1.68;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--tm-accent-ink);
	text-decoration-color: rgba(168, 84, 31, 0.4);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: var(--tm-accent-ink);
}

:focus-visible {
	outline: 3px solid var(--tm-accent-ink);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---------- skip link ---------- */

.tm_skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--tm-gold);
	color: var(--tm-ink);
	padding: 10px 18px;
	font-weight: 700;
}

.tm_skip:focus {
	left: 12px;
	top: 12px;
}

/* ---------- shell + sections ---------- */

.tm_shell {
	width: 100%;
	max-width: var(--tm-shell);
	margin: 0 auto;
	padding: 0 24px;
}

.tm_shell--narrow {
	max-width: 800px;
}

.tm_sect {
	padding: 74px 0;
	position: relative;
}

.tm_sect--tight {
	padding: 48px 0;
}

.tm_sect--white {
	background: var(--tm-white);
}

.tm_sect--parchment {
	background: var(--tm-parchment-2);
}

.tm_sect--deep {
	background: var(--tm-deep);
	color: #ded8ec;
}

.tm_sect--deep .tm_h2,
.tm_sect--deep .tm_h3 {
	color: var(--tm-white);
}

.tm_sect--deep .tm_eyebrow {
	color: var(--tm-gold);
}

/* ---------- type ---------- */

.tm_eyebrow {
	font-family: var(--tm-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tm-accent-ink);
	margin: 0 0 14px;
	display: block;
}

.tm_h1 {
	font-family: var(--tm-serif);
	font-weight: 600;
	font-size: clamp(2.4rem, 5.2vw, 3.9rem);
	line-height: 1.05;
	letter-spacing: -0.012em;
	color: var(--tm-ink);
	margin: 0 0 20px;
}

.tm_h2 {
	font-family: var(--tm-serif);
	font-weight: 600;
	font-size: clamp(1.85rem, 3.6vw, 2.65rem);
	line-height: 1.14;
	color: var(--tm-ink);
	margin: 0 0 16px;
}

.tm_h3 {
	font-family: var(--tm-serif);
	font-weight: 600;
	font-size: 1.42rem;
	line-height: 1.25;
	color: var(--tm-ink);
	margin: 0 0 10px;
}

.tm_lede {
	font-size: 1.13rem;
	line-height: 1.66;
	color: var(--tm-muted);
	margin: 0 0 26px;
	max-width: 62ch;
}

.tm_sect--deep .tm_lede {
	color: #c6bede;
}

.tm_rule {
	width: 74px;
	height: 3px;
	background: var(--tm-accent);
	border: 0;
	margin: 0 0 22px;
}

.tm_rule--gold {
	background: var(--tm-gold);
}

.tm_rule--center {
	margin-left: auto;
	margin-right: auto;
}

.tm_center {
	text-align: center;
}

.tm_center .tm_lede {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- meander (Greek key) accent strip ---------- */

.tm_meander {
	height: 8px;
	background-color: var(--tm-accent);
	background-image: linear-gradient(90deg, var(--tm-gold) 0 14px, transparent 14px 28px);
	background-size: 28px 8px;
}

/* ---------- buttons ---------- */

.tm_btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--tm-sans);
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 13px 26px;
	border-radius: var(--tm-radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tm_btn:hover {
	transform: translateY(-2px);
}

.tm_btn--solid {
	background: var(--tm-accent-ink);
	color: var(--tm-white);
	border-color: var(--tm-accent-ink);
}

.tm_btn--solid:hover {
	background: #8f4517;
	border-color: #8f4517;
	color: var(--tm-white);
}

.tm_btn--outline {
	background: transparent;
	color: var(--tm-deep);
	border-color: var(--tm-deep);
}

.tm_btn--outline:hover {
	background: var(--tm-deep);
	color: var(--tm-white);
}

.tm_btn--light {
	background: var(--tm-gold);
	color: var(--tm-ink);
	border-color: var(--tm-gold);
}

.tm_btn--light:hover {
	background: #e8b757;
	border-color: #e8b757;
	color: var(--tm-ink);
}

.tm_btn_row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

/* ---------- header ---------- */

.tm_topbar {
	background: var(--tm-deep);
	position: relative;
	z-index: 40;
}

.tm_topbar_inner {
	max-width: var(--tm-shell);
	margin: 0 auto;
	padding: 15px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
}

.tm_brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}

.tm_brand_mark {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.tm_brand_word {
	font-family: var(--tm-serif);
	font-size: 1.62rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tm-white);
	letter-spacing: 0.02em;
	display: block;
}

.tm_brand_sub {
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tm-gold);
	display: block;
	margin-top: 3px;
}

.tm_nav_list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.tm_nav_link {
	display: block;
	padding: 9px 13px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #cdc5e4;
	text-decoration: none;
	border-radius: var(--tm-radius);
	border-bottom: 2px solid transparent;
}

.tm_nav_link:hover {
	color: var(--tm-white);
	background: rgba(255, 255, 255, 0.07);
}

.tm_nav_link--current {
	color: var(--tm-white);
	border-bottom-color: var(--tm-gold);
}

.tm_burger {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--tm-radius);
	padding: 9px 11px;
	cursor: pointer;
	color: var(--tm-white);
}

.tm_burger_bar {
	display: block;
	width: 21px;
	height: 2px;
	background: currentColor;
	margin: 4px 0;
}

/* ---------- hero ---------- */

.tm_hero {
	background: var(--tm-deep);
	color: #ded8ec;
	padding: 78px 0 0;
	position: relative;
	overflow: hidden;
}

.tm_hero::after {
	content: "";
	position: absolute;
	right: -160px;
	top: -160px;
	width: 460px;
	height: 460px;
	border: 1px solid rgba(216, 163, 63, 0.22);
	border-radius: 50%;
	pointer-events: none;
}

.tm_hero_grid {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	gap: 54px;
	align-items: center;
	position: relative;
	z-index: 2;
}

.tm_hero_copy {
	min-width: 0;
}

.tm_hero .tm_h1 {
	color: var(--tm-white);
}

.tm_hero .tm_lede {
	color: #c6bede;
	font-size: 1.17rem;
}

.tm_hero .tm_eyebrow {
	color: var(--tm-gold);
}

.tm_hero_plate {
	min-width: 0;
	border: 1px solid rgba(216, 163, 63, 0.34);
	border-radius: var(--tm-radius-lg);
	padding: 14px;
	background: rgba(0, 0, 0, 0.15);
}

.tm_hero_plate img {
	border-radius: 2px;
	width: 100%;
}

.tm_hero_facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: rgba(255, 255, 255, 0.14);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	margin-top: 64px;
}

.tm_fact {
	background: var(--tm-deep);
	padding: 26px 8px 30px;
	text-align: center;
	min-width: 0;
}

.tm_fact_num {
	font-family: var(--tm-serif);
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--tm-gold);
	line-height: 1;
	display: block;
}

.tm_fact_lbl {
	display: block;
	margin-top: 8px;
	font-size: 0.83rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #b6adcf;
}

/* ---------- numbered steps (vertical spine) ---------- */

.tm_steps {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.tm_steps::before {
	content: "";
	position: absolute;
	left: 23px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--tm-line);
}

.tm_step {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 22px;
	position: relative;
	padding-bottom: 30px;
}

.tm_step:last-child {
	padding-bottom: 0;
}

.tm_step_no {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tm-deep);
	color: var(--tm-gold);
	font-family: var(--tm-serif);
	font-size: 1.28rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	flex-shrink: 0;
}

.tm_step_body {
	min-width: 0;
	padding-top: 4px;
}

.tm_step_body p {
	margin: 0;
	color: var(--tm-muted);
}

/* ---------- grids + cards ---------- */

.tm_grid {
	display: grid;
	gap: 26px;
}

.tm_grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm_grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm_grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm_card {
	background: var(--tm-white);
	border: 1px solid var(--tm-line-soft);
	border-radius: var(--tm-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tm_card:hover {
	transform: translateY(-3px);
	box-shadow: var(--tm-shadow-lift);
	border-color: var(--tm-line);
}

.tm_card_media {
	background: var(--tm-parchment-2);
	border-bottom: 1px solid var(--tm-line-soft);
}

.tm_card_media img {
	width: 100%;
}

.tm_card_body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.tm_card_tag {
	display: inline-block;
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tm-accent-ink);
	background: rgba(192, 105, 47, 0.1);
	border-radius: 40px;
	padding: 4px 12px;
	margin-bottom: 13px;
}

.tm_card_title {
	font-family: var(--tm-serif);
	font-size: 1.32rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tm-ink);
	margin: 0 0 10px;
}

.tm_card_title a {
	color: inherit;
	text-decoration: none;
}

.tm_card_title a:hover {
	color: var(--tm-accent-ink);
}

.tm_card_text {
	margin: 0 0 18px;
	color: var(--tm-muted);
	font-size: 0.97rem;
}

.tm_card_meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px dashed var(--tm-line);
	font-size: 0.84rem;
	color: var(--tm-muted);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.tm_card_link {
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--tm-accent-ink);
	margin-top: auto;
}

.tm_card_link:hover {
	text-decoration: underline;
}

/* card variant used on deep sections */
.tm_sect--deep .tm_card {
	background: var(--tm-deep-3);
	border-color: rgba(255, 255, 255, 0.13);
}

.tm_sect--deep .tm_card_title,
.tm_sect--deep .tm_card_title a {
	color: var(--tm-white);
}

.tm_sect--deep .tm_card_text {
	color: #b6adcf;
}

.tm_sect--deep .tm_card_meta {
	border-top-color: rgba(255, 255, 255, 0.16);
	color: #a79dc4;
}

.tm_sect--deep .tm_card_tag {
	color: var(--tm-gold);
	background: rgba(216, 163, 63, 0.14);
}

.tm_sect--deep .tm_card_link {
	color: var(--tm-gold);
}

/* ---------- icon blocks ---------- */

.tm_ico_wrap {
	width: 52px;
	height: 52px;
	border-radius: var(--tm-radius);
	background: var(--tm-parchment-2);
	border: 1px solid var(--tm-line);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--tm-accent-ink);
}

.tm_sect--deep .tm_ico_wrap {
	background: rgba(216, 163, 63, 0.12);
	border-color: rgba(216, 163, 63, 0.34);
	color: var(--tm-gold);
}

.tm_ico {
	width: 26px;
	height: 26px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tm_ico--sm {
	width: 19px;
	height: 19px;
}

/* ---------- split (image + text) ---------- */

.tm_split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 52px;
	align-items: center;
}

.tm_split--flip .tm_split_media {
	order: 2;
}

.tm_split_media {
	min-width: 0;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	overflow: hidden;
	background: var(--tm-white);
}

.tm_split_copy {
	min-width: 0;
}

/* ---------- tick lists ---------- */

.tm_ticks {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
}

.tm_tick {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 13px;
	margin-bottom: 13px;
	align-items: start;
}

.tm_tick_ico {
	color: var(--tm-accent-ink);
	margin-top: 4px;
}

.tm_sect--deep .tm_tick_ico {
	color: var(--tm-gold);
}

.tm_tick strong {
	color: var(--tm-ink);
	display: block;
	font-weight: 700;
}

.tm_sect--deep .tm_tick strong {
	color: var(--tm-white);
}

/* ---------- quote ---------- */

.tm_quote {
	background: var(--tm-white);
	border-left: 5px solid var(--tm-accent);
	border-radius: 0 var(--tm-radius-lg) var(--tm-radius-lg) 0;
	padding: 36px 38px;
	box-shadow: var(--tm-shadow);
	max-width: 830px;
}

.tm_quote_text {
	font-family: var(--tm-serif);
	font-size: 1.5rem;
	line-height: 1.42;
	color: var(--tm-ink);
	margin: 0 0 22px;
	font-style: italic;
}

.tm_quote_by {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tm_avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tm-deep);
	color: var(--tm-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--tm-serif);
	font-weight: 700;
	font-size: 1.06rem;
	flex-shrink: 0;
}

.tm_quote_name {
	font-weight: 700;
	color: var(--tm-ink);
	display: block;
	line-height: 1.3;
}

.tm_quote_role {
	font-size: 0.88rem;
	color: var(--tm-muted);
	display: block;
}

/* ---------- breadcrumbs ---------- */

.tm_crumbs {
	font-size: 0.86rem;
	color: var(--tm-muted);
	padding: 18px 0 0;
	margin: 0;
}

.tm_crumbs a {
	color: var(--tm-muted);
}

.tm_crumbs span {
	margin: 0 8px;
	color: var(--tm-line);
}

/* ---------- article ---------- */

.tm_article_head {
	background: var(--tm-parchment-2);
	padding: 44px 0 52px;
	border-bottom: 1px solid var(--tm-line);
}

.tm_article_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 0.87rem;
	color: var(--tm-muted);
	margin-top: 18px;
}

.tm_article_meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.tm_prose {
	font-size: 1.03rem;
	color: var(--tm-body);
}

.tm_prose > p {
	margin: 0 0 20px;
}

.tm_prose h2 {
	font-family: var(--tm-serif);
	font-size: 1.92rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tm-ink);
	margin: 42px 0 15px;
	padding-top: 6px;
	border-top: 2px solid var(--tm-line-soft);
}

.tm_prose h3 {
	font-family: var(--tm-serif);
	font-size: 1.36rem;
	font-weight: 600;
	color: var(--tm-ink);
	margin: 30px 0 11px;
}

.tm_prose ul,
.tm_prose ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.tm_prose li {
	margin-bottom: 9px;
}

.tm_prose blockquote {
	margin: 26px 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--tm-gold);
	font-family: var(--tm-serif);
	font-size: 1.24rem;
	font-style: italic;
	color: var(--tm-ink);
}

.tm_prose blockquote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--tm-sans);
	font-size: 0.86rem;
	font-style: normal;
	color: var(--tm-muted);
}

.tm_prose figure {
	margin: 30px 0;
}

.tm_prose figcaption {
	font-size: 0.85rem;
	color: var(--tm-muted);
	margin-top: 10px;
	text-align: center;
}

.tm_prose img {
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	width: 100%;
}

/* ---------- callout ---------- */

.tm_callout {
	background: var(--tm-white);
	border: 1px solid var(--tm-line);
	border-top: 4px solid var(--tm-accent);
	border-radius: var(--tm-radius-lg);
	padding: 26px 28px;
	margin: 30px 0;
}

.tm_callout_title {
	font-family: var(--tm-serif);
	font-size: 1.22rem;
	font-weight: 700;
	color: var(--tm-ink);
	margin: 0 0 10px;
}

.tm_callout p:last-child,
.tm_callout ul:last-child {
	margin-bottom: 0;
}

/* ---------- table of contents ---------- */

.tm_toc {
	background: var(--tm-parchment-2);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	padding: 24px 26px;
	margin: 0 0 34px;
}

.tm_toc_title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tm-accent-ink);
	margin: 0 0 12px;
}

.tm_toc_list {
	margin: 0;
	padding-left: 20px;
	font-size: 0.96rem;
}

.tm_toc_list li {
	margin-bottom: 7px;
}

/* ---------- tables ---------- */

.tm_table_wrap {
	overflow-x: auto;
	margin: 26px 0;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	background: var(--tm-white);
}

.tm_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	min-width: 540px;
}

.tm_table th,
.tm_table td {
	padding: 13px 16px;
	text-align: left;
	border-bottom: 1px solid var(--tm-line-soft);
	vertical-align: top;
}

.tm_table th {
	background: var(--tm-deep);
	color: var(--tm-white);
	font-weight: 700;
	font-size: 0.84rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 0;
}

.tm_table tbody tr:last-child td {
	border-bottom: 0;
}

.tm_table tbody tr:nth-child(even) td {
	background: var(--tm-parchment);
}

/* ---------- forms ---------- */

.tm_form {
	background: var(--tm-white);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	padding: 32px;
	box-shadow: var(--tm-shadow);
}

.tm_form_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.tm_field {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
	min-width: 0;
}

.tm_field--full {
	grid-column: 1 / -1;
}

.tm_label {
	font-size: 0.87rem;
	font-weight: 700;
	color: var(--tm-ink);
	margin-bottom: 7px;
}

.tm_input,
.tm_select,
.tm_textarea {
	font-family: var(--tm-sans);
	font-size: 1rem;
	color: var(--tm-body);
	background: var(--tm-parchment);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	padding: 12px 14px;
	width: 100%;
}

.tm_input:focus,
.tm_select:focus,
.tm_textarea:focus {
	background: var(--tm-white);
	border-color: var(--tm-accent);
}

.tm_textarea {
	min-height: 148px;
	resize: vertical;
}

.tm_hint {
	font-size: 0.82rem;
	color: var(--tm-muted);
	margin-top: 6px;
}

.tm_check {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 12px;
	align-items: start;
	font-size: 0.92rem;
	color: var(--tm-muted);
	margin-bottom: 22px;
}

.tm_check input {
	width: 19px;
	height: 19px;
	margin: 3px 0 0;
	accent-color: var(--tm-accent-ink);
}

/* ---------- contact blocks ---------- */

.tm_contact_grid {
	display: grid;
	grid-template-columns: 0.86fr 1.14fr;
	gap: 44px;
	align-items: start;
}

.tm_contact_card {
	background: var(--tm-white);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	padding: 28px;
	margin-bottom: 22px;
}

.tm_contact_row {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 15px;
	align-items: start;
	padding: 14px 0;
	border-bottom: 1px dashed var(--tm-line);
}

.tm_contact_row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.tm_contact_row:first-child {
	padding-top: 0;
}

.tm_contact_ico {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tm-parchment-2);
	color: var(--tm-accent-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tm_contact_lbl {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tm-muted);
	display: block;
	margin-bottom: 3px;
}

.tm_contact_val {
	color: var(--tm-ink);
	font-weight: 500;
	display: block;
	word-break: break-word;
}

/* ---------- thank you ---------- */

.tm_thanks {
	text-align: center;
	padding: 92px 0;
}

.tm_thanks_mark {
	width: 86px;
	height: 86px;
	border-radius: 50%;
	background: var(--tm-deep);
	color: var(--tm-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 28px;
}

/* ---------- pills / notes ---------- */

.tm_pill {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tm-deep);
	background: var(--tm-parchment-2);
	border: 1px solid var(--tm-line);
	border-radius: 40px;
	padding: 5px 14px;
	margin: 0 6px 8px 0;
}

.tm_note {
	font-size: 0.88rem;
	color: var(--tm-muted);
	background: var(--tm-parchment-2);
	border-left: 3px solid var(--tm-line);
	padding: 14px 18px;
	border-radius: 0 var(--tm-radius) var(--tm-radius) 0;
}

.tm_divider {
	border: 0;
	border-top: 1px solid var(--tm-line);
	margin: 46px 0;
}

/* ---------- footer ---------- */

.tm_foot {
	background: var(--tm-deep-3);
	color: #b6adcf;
	padding: 60px 0 0;
	font-size: 0.94rem;
}

.tm_foot_grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 44px;
}

.tm_foot_col {
	min-width: 0;
}

.tm_foot_title {
	font-family: var(--tm-serif);
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--tm-white);
	margin: 0 0 16px;
	letter-spacing: 0.02em;
}

.tm_foot_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm_foot_list li {
	margin-bottom: 9px;
}

.tm_foot_link {
	color: #b6adcf;
	text-decoration: none;
}

.tm_foot_link:hover {
	color: var(--tm-gold);
	text-decoration: underline;
}

.tm_foot p {
	margin: 0 0 12px;
}

.tm_foot_bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 22px 0 30px;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 0.86rem;
	color: #9a90bb;
}

.tm_foot_brand {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 16px;
}

.tm_foot_brand svg {
	width: 34px;
	height: 34px;
}

.tm_foot_brand strong {
	font-family: var(--tm-serif);
	font-size: 1.4rem;
	color: var(--tm-white);
	font-weight: 700;
}

/* ---------- cookie notice ---------- */

.tm_cookie {
	position: fixed;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	background: var(--tm-white);
	border: 1px solid var(--tm-line);
	border-top: 4px solid var(--tm-accent);
	border-radius: var(--tm-radius-lg);
	box-shadow: var(--tm-shadow-lift);
	max-width: 720px;
	margin: 0 auto;
}

.tm_cookie[hidden] {
	display: none;
}

.tm_cookie_body {
	padding: 20px 24px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
}

.tm_cookie_txt {
	margin: 0;
	font-size: 0.9rem;
	color: var(--tm-body);
	min-width: 0;
}

.tm_cookie_acts {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
	flex-wrap: wrap;
}

.tm_cookie_yes,
.tm_cookie_no {
	font-family: var(--tm-sans);
	font-size: 0.87rem;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: var(--tm-radius);
	cursor: pointer;
	border: 2px solid var(--tm-deep);
}

.tm_cookie_yes {
	background: var(--tm-accent-ink);
	border-color: var(--tm-accent-ink);
	color: var(--tm-white);
}

.tm_cookie_no {
	background: transparent;
	color: var(--tm-deep);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
	.tm_hero_grid,
	.tm_split,
	.tm_contact_grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.tm_split--flip .tm_split_media {
		order: 0;
	}

	.tm_grid--3,
	.tm_grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm_hero {
		padding-top: 54px;
	}

	.tm_hero_facts {
		margin-top: 46px;
	}
}

@media (max-width: 820px) {
	.tm_burger {
		display: block;
	}

	.tm_nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.tm_nav.tm_is_open {
		display: block;
	}

	.tm_topbar_inner {
		flex-wrap: wrap;
		gap: 14px;
	}

	.tm_nav_list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		padding-top: 10px;
	}

	.tm_nav_link {
		padding: 12px 6px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
		border-radius: 0;
	}

	.tm_nav_link--current {
		border-bottom-color: var(--tm-gold);
	}

	.tm_foot_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.tm_sect {
		padding: 52px 0;
	}

	.tm_grid--2,
	.tm_grid--3,
	.tm_grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm_form_grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm_hero_facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm_foot_grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm_cookie_body {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm_quote {
		padding: 26px 22px;
	}

	.tm_quote_text {
		font-size: 1.24rem;
	}

	.tm_form {
		padding: 22px;
	}

	.tm_step {
		grid-template-columns: 40px 1fr;
		gap: 16px;
	}

	.tm_step_no {
		width: 40px;
		height: 40px;
		font-size: 1.1rem;
	}

	.tm_steps::before {
		left: 19px;
	}

	.tm_thanks {
		padding: 62px 0;
	}
}

@media print {
	.tm_topbar,
	.tm_foot,
	.tm_cookie,
	.tm_meander {
		display: none;
	}
}
