/*
 * The Handdrawn Type Club: theme styles.
 * Black and white, lots of white space. Interface fonts: THTC Sans (Instrument Sans),
 * THTC Mono (IBM Plex Mono) and THTC Hand (Caveat or your own handwritten font).
 */

:root {
	--ink: #111111;
	--paper: #ffffff;
	--line: #e3e3e3;
	--muted: #555555;
	--body: #333333;
	--soft: #f5f5f5;
	--danger: #b42318;
	--sans: "THTC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "THTC Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--hand: "THTC Hand", "Caveat", cursive;
	--max: 1120px;
	--gutter: clamp(16px, 4vw, 48px);
	--radius: 6px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 83px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; }
.screen-reader-text, .thtc-hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; background: var(--paper); padding: 8px 12px; z-index: 100; }

.thtc-skip { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius); }
.thtc-skip:focus { top: 8px; color: var(--paper); }

.thtc-wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.thtc-mono { font-family: var(--mono); }
.thtc-muted { color: var(--muted); }
.thtc-strong { font-weight: 500; }
.thtc-center { text-align: center; display: flex; justify-content: center; }
.thtc-pad { padding: 64px 0 96px; }
.thtc-hand, .hand { font-family: var(--hand); font-weight: 700; font-size: 1.3em; letter-spacing: 0; }
.thtc-label {
	margin: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--muted);
}
.thtc-kicker {
	margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--muted);
}
.thtc-underline { text-decoration: underline; text-underline-offset: 4px; }
.thtc-small { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.thtc-small-text { font-size: 13px; margin: 0; }
.thtc-icon { flex: 0 0 auto; }
.thtc-empty { padding: 48px 0; color: var(--muted); }
.thtc-empty-line { margin: 0; padding: 24px 0; border-top: 1px solid var(--ink); color: var(--muted); font-size: 15px; }
.thtc-hand-big { margin: 0; font-family: var(--hand); font-size: 56px; line-height: 1; }
.thtc-hand-title { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 56px; line-height: 1; }
.thtc-hand-title.is-xl { font-size: 72px; line-height: .9; }
.thtc-hand-note { margin: 0; font-family: var(--hand); font-size: 28px; }

/* ---------- Buttons ---------- */
.thtc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 36px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius);
	background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.2;
	cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.thtc-btn:hover { text-decoration: none; background: var(--ink); color: var(--paper); }
.thtc-btn.is-dark { background: var(--ink); color: var(--paper); }
.thtc-btn.is-dark:hover { background: #333; border-color: #333; color: var(--paper); }
.thtc-btn.is-lg { min-height: 42px; padding: 0 22px; }
.thtc-btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.thtc-btn-block { display: flex; width: 100%; min-height: 40px; }
.thtc-btn.is-disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.thtc-btn.is-disabled:hover { background: var(--paper); color: var(--muted); }
.thtc-textlink {
	font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
	background: none; border: none; color: var(--ink); cursor: pointer; min-height: 44px; padding: 0 4px;
	text-decoration: underline; text-underline-offset: 4px;
}
.thtc-textlink.is-plain { font-family: var(--sans); font-size: 13px; text-transform: none; letter-spacing: 0; min-height: 0; padding: 0; }
.thtc-chip {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 32px; min-height: 32px; padding: 0 8px; border: 1px solid var(--ink); border-radius: var(--radius);
	background: var(--paper); color: var(--ink); font-size: 13px; cursor: pointer;
}
.thtc-chip.is-active, .thtc-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.thtc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.thtc-pill {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
	border: 1px solid var(--ink); border-radius: var(--radius); font-size: 14px; background: var(--paper);
}
.thtc-pill:hover { text-decoration: none; background: var(--ink); color: var(--paper); }
.thtc-pill.is-active { background: var(--ink); color: var(--paper); }

/* WordPress button block, styled like ours */
.wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border-radius: var(--radius);
	border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 14px; text-decoration: none;
}
.wp-block-button__link:hover { color: var(--paper); text-decoration: none; background: #333; }
.is-style-outline .wp-block-button__link { background: var(--paper); color: var(--ink); }
.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }

/* ---------- Range sliders (thin) ---------- */
input[type=range] { -webkit-appearance: none; appearance: none; height: 16px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: none; margin-top: -4.5px; }
input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: none; }
input[type=range]:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- Header ---------- */
.thtc-header-wrap { background: var(--paper); }
.thtc-header-wrap.is-sticky { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--ink); }
.admin-bar .thtc-header-wrap.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .thtc-header-wrap.is-sticky { top: 0; position: relative; } }
.thtc-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding-top: 32px; padding-bottom: 32px;
}
.is-sticky .thtc-header { padding-top: 20px; padding-bottom: 20px; }
.thtc-logo { font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; display: inline-flex; align-items: center; }
.thtc-logo:hover { text-decoration: none; }
.thtc-logo img { display: block; max-height: 44px; width: auto; }
.thtc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.thtc-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.thtc-menu .current-menu-item > a, .thtc-menu .current_page_item > a, .thtc-menu .current-menu-ancestor > a { text-decoration: underline; text-underline-offset: 4px; }
.thtc-nav .thtc-btn-sm { min-height: 0; padding: 6px 14px; font-size: 14px; }
.thtc-nav .thtc-btn-sm.is-dark:hover { background: #333; }
.thtc-cart-link { font-family: var(--mono); font-size: 13px; }

/* ---------- Footer ---------- */
.thtc-footer { border-top: 1px solid var(--ink); }
.thtc-footer-top { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.thtc-footer-brand { font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; }
.thtc-newsletter { flex: 1 1 360px; max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.thtc-newsletter label { font-size: 20px; font-weight: 500; }
.thtc-newsletter-row { display: flex; border-bottom: 1px solid var(--ink); }
.thtc-newsletter input { flex: 1; min-width: 0; border: none; outline: none; font-size: 16px; padding: 12px 0; background: transparent; }
.thtc-newsletter button { background: none; border: none; font-size: 15px; cursor: pointer; min-height: 44px; padding: 0 0 0 16px; }
.thtc-footer-nav { display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 14px; }
.thtc-footer-nav ul, .thtc-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thtc-footer-menu { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 10px 48px; }
.thtc-footer-bottom { padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.thtc-footer-slim { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.thtc-footer-slim nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Page intro ---------- */
.thtc-page { padding-bottom: 120px; }
.thtc-intro { padding: 72px 0 40px; }
.thtc-intro .thtc-label { margin-bottom: 24px; }
.thtc-title { margin: 0; font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; max-width: 860px; }
.thtc-title.is-sm { font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.thtc-lead { margin: 24px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 640px; }
.thtc-lead a { text-decoration: underline; text-underline-offset: 4px; }
.thtc-intro.has-action { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.thtc-intro.has-action .thtc-intro-body { max-width: 720px; }
.thtc-intro.is-split .thtc-intro-body { max-width: 720px; }
.thtc-intro.is-statement { padding: 96px 0; border-bottom: 1px solid var(--ink); }
.thtc-intro.is-statement .thtc-label { margin-bottom: 32px; text-transform: uppercase; letter-spacing: .08em; }
.thtc-intro.is-statement .thtc-title { font-size: clamp(36px, 5vw, 72px); line-height: 1.08; max-width: 1100px; }
.thtc-legal-tabs { padding-bottom: 40px; border-bottom: 1px solid var(--ink); }

/* ---------- Home ---------- */
.thtc-hero {
	min-height: min(740px, calc(100vh - var(--header-h)));
	padding: 48px var(--gutter); display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 40px; text-align: center; overflow: hidden;
}
.thtc-hero-title { margin: 0; font-weight: 500; font-size: clamp(52px, 8.5vw, 136px); line-height: .95; letter-spacing: -0.035em; max-width: 1280px; }
.thtc-hero-title .thtc-hand { font-size: 1.35em; }
.thtc-hero-text { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 380px; }
.thtc-home-tester { scroll-margin-top: var(--header-h); }
.thtc-tester-bar {
	background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
	padding: 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.thtc-tester-bar.is-slim { padding: 12px 0; gap: 12px 24px; }
.thtc-tester-bar .thtc-label { font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; }
.thtc-tester-text { flex: 999 1 320px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.thtc-tester-text input { flex: 1; min-width: 0; border: none; outline: none; font-size: 18px; background: transparent; padding: 10px 0; }
.thtc-tester-size { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; }
.thtc-tester-size input { flex: 1; }
.thtc-tester-size output { font-size: 13px; width: 48px; text-align: right; }
.thtc-case { display: flex; gap: 4px; }
.thtc-tester-row { border-bottom: 1px solid var(--line); padding: 28px 0 36px; }
.thtc-tester-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; font-family: var(--mono); font-size: 13px; }
.thtc-tester-meta > div { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.thtc-tester-preview {
	display: block; margin-top: 16px; font-size: 96px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	color: var(--ink);
}
.thtc-tester-preview:hover { text-decoration: none; }

/* ---------- Fonts grid ---------- */
.thtc-intro-row { padding: 56px 0 32px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.thtc-intro-row .thtc-title { line-height: 1; }
.thtc-intro-row p { margin: 0; font-size: 13px; }
.thtc-filter { padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.thtc-filter .thtc-pill { font-size: 13px; }
.thtc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 24px; padding-top: 40px; }
.thtc-fonts { padding-bottom: 96px; }
.thtc-card { display: flex; flex-direction: column; gap: 14px; }
.thtc-card:hover { text-decoration: none; }
.thtc-card-frame { overflow: hidden; aspect-ratio: 3 / 2; background: var(--soft); }
.thtc-card-art {
	width: 100%; height: 100%; filter: grayscale(1); transform: scale(1);
	transition: transform .7s var(--ease), filter .7s ease;
}
.thtc-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thtc-card:hover .thtc-card-art, .thtc-card:focus-visible .thtc-card-art { filter: grayscale(0); transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
	.thtc-card-art { transition: filter .3s ease; }
	.thtc-card:hover .thtc-card-art, .thtc-card:focus-visible .thtc-card-art { transform: none; }
}
.thtc-card-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 52px; line-height: 1.05; }
.thtc-card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.thtc-card-name { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.thtc-card-meta .thtc-mono { font-size: 12px; }
.thtc-pagination { margin-top: 56px; }
.thtc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; }
.thtc-pagination .page-numbers { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--radius); }
.thtc-pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
.thtc-pagination .screen-reader-text { position: absolute; }

/* ---------- Font page: slider ---------- */
.thtc-slider { position: relative; width: 100%; overflow: hidden; border-bottom: 1px solid var(--ink); }
.thtc-slider-track { display: flex; gap: 8px; width: 100%; will-change: transform; }
.thtc-slide {
	flex: 0 0 60%; aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.thtc-slide.is-current { cursor: default; }
.thtc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thtc-slide.is-text span { padding: 40px; font-size: clamp(40px, 8vw, 120px); line-height: .95; text-align: center; }
.thtc-slider:not(.is-ready) .thtc-slider-track { justify-content: center; }
.thtc-slider-btn {
	position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: var(--radius);
	border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
	display: flex; align-items: center; justify-content: center; z-index: 2;
}
.thtc-slider-btn:hover { background: var(--ink); color: var(--paper); }
.thtc-slider-btn.is-prev { left: clamp(12px, 3vw, 40px); }
.thtc-slider-btn.is-next { right: clamp(12px, 3vw, 40px); }
.thtc-slider-count { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 12px; background: var(--paper); padding: 6px 10px; border-radius: var(--radius); z-index: 2; }
@media (max-width: 720px) { .thtc-slide { flex-basis: 84%; } }

/* ---------- Font page: buy strip ---------- */
.thtc-font { padding-bottom: 120px; }
.thtc-font-top { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; }
.thtc-breadcrumb { font-size: 12px; color: var(--muted); }
.thtc-breadcrumb a { color: var(--muted); }
.thtc-buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.thtc-buy-col { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 28px 0; }
.thtc-buy-col.is-mid { padding: 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.thtc-buy-col.is-last { padding: 28px 0 28px 28px; }
.thtc-buy-col h2 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.25; }
.thtc-buy-col p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); min-height: 67px; }
.thtc-drop { display: flex; flex-direction: column; gap: 12px; }
.thtc-drop-btn {
	display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 14px;
	border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-size: 14px; cursor: pointer; text-align: left;
}
.thtc-drop-btn .thtc-icon { transition: transform .3s ease; }
.thtc-drop-btn[aria-expanded="true"] .thtc-icon { transform: rotate(180deg); }
.thtc-drop-panel { display: flex; flex-direction: column; gap: 12px; }
.thtc-drop-panel[hidden] { display: none; }
.thtc-drop-panel.is-opening { animation: thtc-drop .3s var(--ease); }
@keyframes thtc-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.thtc-drop-panel fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.thtc-option {
	display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer;
	border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease;
}
.thtc-option.is-selected, .thtc-option:has(input:checked) { border-color: var(--ink); }
.thtc-option input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }
.thtc-option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.thtc-option-name { font-size: 14px; font-weight: 500; }
.thtc-option-note { font-size: 12px; color: var(--muted); }
.thtc-option-price { font-size: 13px; }
.thtc-drop-link { text-align: center; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 919px) {
	.thtc-buy-col, .thtc-buy-col.is-mid, .thtc-buy-col.is-last { padding: 28px 0; border-left: none; border-right: none; }
	.thtc-buy-col + .thtc-buy-col { border-top: 1px solid var(--line); }
	.thtc-buy-col p { min-height: 0; }
}

/* ---------- Font page: panels ---------- */
.thtc-font-panels { margin-top: 72px; }
.thtc-panel-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.thtc-tab {
	display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px;
	border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-size: 14px; cursor: pointer;
}
.thtc-tab .thtc-icon { transition: transform .3s ease; }
.thtc-tab.is-active { background: var(--ink); color: var(--paper); }
.thtc-tab.is-active .thtc-icon { transform: rotate(180deg); }
.thtc-panel[hidden] { display: none; }
.thtc-panel.is-opening { animation: thtc-drop .35s var(--ease); }

.thtc-row { border-bottom: 1px solid var(--line); padding: 24px 0 40px; }
.thtc-row-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.thtc-row-name { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; min-width: 64px; }
.thtc-range { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.thtc-range input { width: 92px; }
.thtc-range output { width: 44px; color: var(--ink); text-transform: none; }
.thtc-range output.is-short { width: 36px; }
.thtc-row-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.thtc-random { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 10px; }
.thtc-row-input { width: 100%; margin-top: 16px; border: none; border-bottom: 1px solid var(--line); outline: none; font-size: 15px; background: transparent; padding: 8px 0; }
.thtc-row-input:focus { border-bottom-color: var(--ink); }
.thtc-row-preview { margin-top: 20px; font-size: 96px; line-height: 1.1; overflow-wrap: anywhere; white-space: pre-wrap; }

.thtc-info { border-top: 1px solid var(--ink); padding-top: 40px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.thtc-panel.thtc-info[hidden] { display: none; }
.thtc-info-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.thtc-info-title { margin: 0; font-size: 72px; line-height: .95; font-weight: 400; }
.thtc-info-by { margin: 0; font-size: 15px; }
.thtc-info-text { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.7; color: var(--body); max-width: 600px; }
.thtc-info-text > * { margin: 0; }
.thtc-info-list { flex: 1 1 300px; max-width: 380px; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.thtc-info-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.thtc-info-list dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.thtc-info-list dd { margin: 0; font-size: 14px; text-align: right; }

.thtc-glyphs { display: flex; flex-direction: column; gap: 48px; border-top: 1px solid var(--ink); padding-top: 28px; }
.thtc-panel.thtc-glyphs[hidden] { display: none; }
.thtc-glyph-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.thtc-glyph-head h3 { margin: 0; font-size: 15px; font-weight: 500; }
.thtc-glyph-head .thtc-mono { font-size: 12px; }
.thtc-glyph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.thtc-glyph-grid span { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 32px; transition: background-color .15s ease, color .15s ease; }
.thtc-glyph-grid span:hover { background: var(--ink); color: var(--paper); }

/* ---------- Content (pages) ---------- */
.thtc-prose { font-size: 16px; line-height: 1.7; color: var(--body); max-width: 760px; }
.thtc-prose.is-wide { max-width: none; }
.thtc-prose > * { margin-top: 0; margin-bottom: 16px; }
.thtc-prose h2 { margin: 48px 0 16px; font-size: 28px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.thtc-prose h3 { margin: 32px 0 12px; font-size: 20px; color: var(--ink); }
.thtc-prose a { text-decoration: underline; text-underline-offset: 3px; }
.thtc-prose strong { color: var(--ink); font-weight: 600; }
.thtc-prose ul, .thtc-prose ol { padding-left: 20px; }
.thtc-prose img { display: block; }
.thtc-prose figure { margin: 0 0 16px; }
.thtc-prose .wp-block-image img { width: 100%; }
.thtc-page > .thtc-prose:first-child { padding-top: 72px; }

/* About */
.thtc-about .thtc-prose { padding-top: 72px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.thtc-numbered { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px !important; margin-bottom: 0 !important; }
.thtc-numbered .wp-block-column { display: flex; flex-direction: column; gap: 12px; }
.thtc-numbered .wp-block-column > * { margin: 0; }
.thtc-numbered .thtc-kicker { font-size: 12px; text-transform: none; letter-spacing: 0; }
.thtc-about .wp-block-image, .thtc-photo-placeholder { margin-top: 96px !important; }
.thtc-about .wp-block-image img { aspect-ratio: 21 / 9; object-fit: cover; filter: grayscale(1); border: 1px solid var(--ink); }
.thtc-photo-placeholder { aspect-ratio: 21 / 9; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* License */
.thtc-license .thtc-prose { color: var(--body); }
.thtc-section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.thtc-section.is-last { border-bottom: none; padding-bottom: 0; }
.thtc-section h2 { margin: 0; font-size: 28px; }
.thtc-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.thtc-section-head > * { margin: 0 !important; }
.thtc-section-head p { font-size: 15px; color: var(--muted); }
.thtc-uses { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.thtc-uses li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.55; color: var(--body); margin: 0; }
.thtc-uses li strong { font-size: 15px; font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.thtc-uses li strong::before { content: "✓"; }
.thtc-note { margin: 20px 0 0 !important; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.thtc-note.is-mono { font-family: var(--mono); font-size: 12px; max-width: none; }
.thtc-split { display: flex; flex-wrap: wrap; gap: 24px 64px !important; align-items: flex-start; margin-bottom: 40px !important; }
.thtc-split > .wp-block-column:first-child { flex: 1 1 320px !important; }
.thtc-split > .wp-block-column:last-child { flex: 1 1 420px !important; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; }
.thtc-split > .wp-block-column > * { margin: 0; }
.thtc-split h2 { line-height: 1.2; }
.thtc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); margin: 0; }
.thtc-plan { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.thtc-plan:last-child { background: var(--ink); color: var(--paper); }
.thtc-plan-name { font-size: 15px; font-weight: 500; }
.thtc-plan-note { font-size: 13px; color: var(--muted); line-height: 1.4; }
.thtc-plan:last-child .thtc-plan-note { color: #d0d0d0; }
.thtc-plan-price { font-family: var(--mono); font-size: 32px; margin-top: 24px; line-height: 1.2; }
.thtc-cta { margin-top: 96px !important; border-top: 1px solid var(--ink); padding-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.thtc-cta-text { display: flex; flex-direction: column; gap: 8px; }
.thtc-cta-text > * { margin: 0 !important; }
.thtc-cta-title { font-size: 24px; font-weight: 500; color: var(--ink); }
.thtc-cta-text p:not(.thtc-cta-title) { font-size: 15px; color: var(--muted); }
.thtc-cta .wp-block-buttons { margin: 0; }

/* Legal documents */
.thtc-side-layout { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 12px; align-items: flex-start; }
.thtc-toc { flex: 1 1 220px; max-width: 260px; padding-top: 36px; position: sticky; top: 24px; }
.thtc-toc .thtc-label { font-size: 11px; margin-bottom: 8px; }
.thtc-toc a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.thtc-toc a span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 10px; }
.thtc-doc { flex: 999 1 560px; min-width: 0; font-size: 16px; line-height: 1.7; color: var(--body); padding-top: 36px; }
.thtc-doc > * { margin: 0 0 14px; }
.thtc-doc h2 { margin: 36px 0 16px; padding-top: 36px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--ink); display: flex; gap: 16px; align-items: baseline; scroll-margin-top: 24px; }
.thtc-doc > h2:first-child { margin-top: 0; }
.thtc-doc h2 .thtc-num { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }
.thtc-doc h3 { font-size: 17px; color: var(--ink); margin: 24px 0 10px; }
.thtc-doc ul, .thtc-doc ol { padding-left: 20px; }
.thtc-doc li { margin-bottom: 6px; }
.thtc-doc strong { color: var(--ink); font-weight: 600; }
.thtc-doc a { text-decoration: underline; text-underline-offset: 3px; }
.thtc-doc table, .thtc-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.thtc-doc .wp-block-table { margin: 4px 0 14px; overflow-x: auto; }
.thtc-doc th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.thtc-doc td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.thtc-doc td:first-child { color: var(--ink); font-weight: 500; }
.thtc-doc .wp-block-table thead { border-bottom: 0; }
.thtc-glance { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px !important; margin-bottom: 36px !important; }
.thtc-glance .wp-block-column { border: 1px solid var(--ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.thtc-glance .wp-block-column > * { margin: 0; }
.thtc-glance p { font-size: 14px; line-height: 1.6; }
.thtc-glance-title { font-size: 20px !important; font-weight: 500; color: var(--ink); line-height: 1.3 !important; }
@media (max-width: 760px) { .thtc-toc { position: static; max-width: none; padding-top: 24px; } }

/* FAQ */
.thtc-side-layout.is-faq { padding-top: 48px; }
.thtc-topics { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; }
.thtc-topics a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.thtc-topics .thtc-mono { font-size: 12px; }
.thtc-faq-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.thtc-faq-group { scroll-margin-top: 24px; }
.thtc-faq-group > h2 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; }
.thtc-faq-list { border-top: 1px solid var(--ink); }
.thtc-faq-list details { border-bottom: 1px solid var(--line); margin: 0; }
.thtc-faq-list summary {
	list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 20px 0; font-size: 18px; font-weight: 500; cursor: pointer;
}
.thtc-faq-list summary::-webkit-details-marker { display: none; }
.thtc-faq-list summary::after {
	content: ""; flex: 0 0 18px; height: 18px; transition: transform .25s ease;
	background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
}
.thtc-faq-list details[open] summary::after { transform: rotate(45deg); }
.thtc-faq-list details > :not(summary) { margin: 0; padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--body); }
.thtc-faq-list details a { text-decoration: underline; text-underline-offset: 3px; }
.thtc-contact-box { border: 1px solid var(--ink); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.thtc-contact-box > div { display: flex; flex-direction: column; gap: 6px; }
.thtc-contact-box-title { font-size: 20px; font-weight: 500; }
.thtc-contact-box .thtc-muted { font-size: 15px; }
@media (max-width: 760px) { .thtc-topics { position: static; max-width: none; } }

/* ---------- Forms ---------- */
.thtc-form { display: flex; flex-direction: column; gap: 20px; }
.thtc-form.is-narrow { max-width: 520px; gap: 22px; }
.thtc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.thtc-form label.thtc-check { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.thtc-check input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.thtc-hint { font-size: 12px; }
.thtc-label-row { display: flex; justify-content: space-between; gap: 12px; }
.thtc-label-row a { font-size: 13px; color: var(--ink); }
.thtc-form input[type=text], .thtc-form input[type=email], .thtc-form input[type=password], .thtc-form select,
.thtc-edd-checkout input[type=text], .thtc-edd-checkout input[type=email], .thtc-edd-checkout input[type=tel], .thtc-edd-checkout input[type=password], .thtc-edd-checkout select {
	border: none; border-bottom: 1px solid var(--ink); border-radius: 0; font-size: 16px; padding: 10px 0; outline: none;
	background: transparent; color: var(--ink); width: 100%; box-shadow: none;
}
.thtc-form input:focus, .thtc-form select:focus, .thtc-edd-checkout input[type=text]:focus, .thtc-edd-checkout input[type=email]:focus, .thtc-edd-checkout select:focus {
	border-bottom-width: 2px; padding-bottom: 9px;
}
.thtc-form textarea { border: 1px solid var(--ink); border-radius: 0; font-size: 17px; padding: 16px; outline: none; resize: vertical; background: transparent; color: var(--ink); }
.thtc-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.thtc-form-actions a { font-size: 14px; }
.thtc-alert { margin: 0; padding: 12px 14px; border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); font-size: 14px; line-height: 1.5; }
.thtc-notice { margin: 0; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 14px; }
.thtc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }

/* Contact */
.thtc-contact { padding-top: 72px; display: flex; flex-wrap: wrap; gap: 80px; }
.thtc-contact-info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 32px; }
.thtc-contact-info .thtc-title { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.thtc-contact-info .thtc-lead { margin: 0; font-size: 17px; max-width: 420px; }
.thtc-contact-list { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.thtc-contact-list dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.thtc-contact-list dd { margin: 6px 0 0; font-size: 17px; }
.thtc-contact-form { flex: 999 1 520px; gap: 28px; }
.thtc-contact-form label { font-size: 14px; color: var(--ink); gap: 8px; }
.thtc-contact-form input[type=text], .thtc-contact-form input[type=email], .thtc-contact-form select { font-size: 18px; padding: 12px 0; }
.thtc-contact-form .thtc-btn { align-self: flex-start; }
.thtc-notice-box { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border: 1px solid var(--ink); border-radius: var(--radius); padding: 40px; }
.thtc-notice-box p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.thtc-notice-box .thtc-hand-big { color: var(--ink); }

/* Login */
.thtc-login { padding-top: 80px; padding-bottom: 140px; display: flex; justify-content: center; }
.thtc-login-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.thtc-login-box .thtc-hand-title { text-align: center; margin-bottom: 8px; }
.thtc-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); border-radius: var(--radius); padding: 3px; }
.thtc-segment a { display: flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 4px; font-size: 14px; }
.thtc-segment a:hover { text-decoration: none; background: var(--soft); }
.thtc-segment a.is-active { background: var(--ink); color: var(--paper); }
.thtc-switch { margin: 0; font-size: 14px; gap: 6px; flex-wrap: wrap; }

/* Account */
.thtc-account { padding-top: 40px; }
.thtc-account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.thtc-account-head > div { display: flex; flex-direction: column; gap: 10px; }
.thtc-account-head p { margin: 0; font-size: 13px; }
.thtc-account-head > a { font-size: 14px; }
.thtc-side-layout.is-account { padding-top: 40px; gap: 32px 64px; }
.thtc-account-nav { flex: 1 1 180px; max-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.thtc-account-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 0 12px; border-radius: var(--radius); border: 1px solid transparent; font-size: 14px; }
.thtc-account-nav a:hover { text-decoration: none; border-color: var(--ink); }
.thtc-account-nav a.is-active { background: var(--ink); color: var(--paper); }
.thtc-account-nav .thtc-mono { font-size: 12px; }
.thtc-account-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.thtc-account-title { display: flex; flex-direction: column; gap: 6px; }
.thtc-account-title h2 { margin: 0; font-size: 24px; font-weight: 500; }
.thtc-account-title p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
	.thtc-account-nav { max-width: none; flex-direction: row; flex-wrap: wrap; flex-basis: 100%; }
	.thtc-account-nav a { flex: 1 1 auto; border-color: var(--line); }
}

/* Lists (account, receipt) */
.thtc-list { border-top: 1px solid var(--ink); }
.thtc-list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.thtc-list-row.is-revoked .thtc-strong { text-decoration: line-through; color: var(--muted); }
.thtc-list-preview { flex: 0 0 140px; font-size: 30px; line-height: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thtc-list-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.thtc-list-text .thtc-strong { font-size: 15px; }
.thtc-list-text .thtc-mono { font-size: 12px; }
.thtc-list-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Cart ---------- */
.thtc-cart { padding-top: 48px; }
.thtc-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.thtc-cart-head .thtc-mono { font-size: 13px; }
.thtc-cart-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; padding-top: 8px; align-items: flex-start; }
.thtc-cart-items { flex: 999 1 520px; min-width: 0; }
.thtc-cart-item { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.thtc-cart-thumb { flex: 0 0 150px; aspect-ratio: 3 / 2; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; text-align: center; font-size: 26px; line-height: 1; }
.thtc-cart-thumb:hover { text-decoration: none; }
.thtc-cart-thumb img { width: calc(100% + 24px); height: calc(100% + 24px); max-width: none; margin: -12px; object-fit: cover; }
.thtc-cart-body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.thtc-cart-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.thtc-cart-name { font-size: 18px; font-weight: 500; }
.thtc-cart-row .thtc-mono { font-size: 15px; }
.thtc-cart-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }
.thtc-cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.thtc-cart-switch label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.thtc-cart-switch select { font-size: 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); padding: 6px 10px; min-height: 34px; cursor: pointer; max-width: 100%; }
.thtc-back { display: inline-block; margin-top: 24px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.thtc-summary { flex: 1 1 300px; max-width: 360px; border: 1px solid var(--ink); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.thtc-summary.is-sticky { position: sticky; top: 24px; margin-top: 0; gap: 18px; }
.thtc-summary h2 { margin: 0; font-size: 18px; font-weight: 500; }
.thtc-summary-head { display: flex; justify-content: space-between; align-items: baseline; }
.thtc-summary-head a { font-size: 13px; }
.thtc-summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--body); }
.thtc-summary-line .thtc-mono { color: var(--ink); }
.thtc-summary-line.is-strong { font-size: 15px; color: var(--ink); }
.thtc-summary-line.is-strong span:first-child { font-weight: 500; }
.thtc-summary-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.thtc-summary-item .thtc-small { font-size: 13px; }
.thtc-summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 16px; }
.thtc-summary-total.is-plain { border-top: none; padding-top: 0; }
.thtc-summary-total span:first-child { font-size: 15px; font-weight: 500; }
.thtc-summary-total .thtc-mono { font-size: 22px; }
.thtc-empty-state { padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.thtc-empty-state p { margin: 0; }
.thtc-empty-state .thtc-muted { font-size: 15px; max-width: 460px; }
@media (max-width: 719px) { .thtc-summary { max-width: none; } .thtc-summary.is-sticky { position: static; } }

/* ---------- Checkout (EDD form) ---------- */
.thtc-checkout { padding-top: 32px; }
.thtc-checkout-layout { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.thtc-checkout-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.thtc-checkout-head { display: flex; flex-direction: column; gap: 8px; }
.thtc-checkout-head p { margin: 0; font-size: 15px; }
.thtc-edd-checkout { counter-reset: thtc-step; }
.thtc-edd-checkout .edd-blocks__cart, .thtc-edd-checkout #edd_checkout_cart_form, .thtc-edd-checkout #edd_discount_code, .thtc-edd-checkout .edd-blocks-form__discount { display: none !important; }
.thtc-edd-checkout #edd_checkout_form_wrap, .thtc-edd-checkout #edd_purchase_form,
.thtc-edd-checkout .edd-blocks__purchase-form, .thtc-edd-checkout .edd-blocks__user-details, .thtc-edd-checkout .edd-blocks__payment-details { display: flex; flex-direction: column; gap: 48px; margin: 0; padding: 0; border: 0; }
.thtc-edd-checkout fieldset { border: 0 !important; margin: 0; padding: 0 !important; min-width: 0; background: none; }
.thtc-edd-checkout legend {
	display: block; width: 100%; margin: 0 0 22px; padding: 0 0 12px; border-bottom: 1px solid var(--ink);
	font-size: 18px; font-weight: 500; color: var(--ink);
}
.thtc-edd-checkout .thtc-step { margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--ink); font-size: 18px; font-weight: 500; }
/* Numbered steps: 1. Your details, 2. Who is the license for? (or Billing), 3. Pay */
.thtc-edd-checkout #edd_checkout_user_info > legend::before,
.thtc-edd-checkout .thtc-li-checkout[data-has-license="1"] #thtc-li-license-for > legend::before,
.thtc-edd-checkout .thtc-li-checkout[data-has-license="0"] #thtc-li-billing > legend::before,
.thtc-edd-checkout .thtc-step::before { counter-increment: thtc-step; content: counter(thtc-step) ". "; }
.thtc-edd-checkout .thtc-li-checkout[data-has-license="1"] #thtc-li-billing > legend,
.thtc-edd-checkout #thtc-li-client > legend { border-bottom: 0; padding: 0; margin-bottom: 18px; font-size: 15px; }
.thtc-edd-checkout .thtc-li-checkout { display: flex; flex-direction: column; gap: 32px; }
.thtc-edd-checkout .thtc-li-checkout[data-has-license="1"] #thtc-li-license-for { margin-bottom: -8px; }

.thtc-edd-checkout #edd_checkout_user_info, .thtc-edd-checkout #thtc-li-billing, .thtc-edd-checkout #thtc-li-client {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 28px;
}
.thtc-edd-checkout fieldset > legend, .thtc-edd-checkout .thtc-li-note, .thtc-edd-checkout .thtc-li-check, .thtc-edd-checkout #edd-email-wrap, .thtc-edd-checkout #edd_checkout_user_info > p { grid-column: 1 / -1; }
.thtc-edd-checkout legend { float: left; }
.thtc-edd-checkout fieldset > legend + * { clear: both; }
.thtc-edd-checkout .edd-blocks-form__group, .thtc-edd-checkout .thtc-li-field, .thtc-edd-checkout #edd_checkout_user_info > p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.thtc-edd-checkout #thtc-li-billing .thtc-li-field:has(textarea), .thtc-edd-checkout #thtc-li-client .thtc-li-field:has(textarea) { grid-column: 1 / -1; }
.thtc-edd-checkout label, .thtc-edd-checkout .edd-label { display: block; margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.thtc-edd-checkout .thtc-li-hint { font-size: 12px; opacity: 1; color: var(--muted); margin-top: 2px; }
.thtc-edd-checkout .edd-required-indicator { color: var(--muted); }
.thtc-edd-checkout p, .thtc-edd-checkout .edd-description { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.thtc-edd-checkout .thtc-li-note, .thtc-edd-checkout .thtc-pay-head p { font-size: 14px; color: var(--body); }
.thtc-edd-checkout #edd-first-description, .thtc-edd-checkout #edd-last-description { display: none; }
.thtc-edd-checkout input[type=text], .thtc-edd-checkout input[type=email], .thtc-edd-checkout input[type=tel], .thtc-edd-checkout input[type=password], .thtc-edd-checkout select, .thtc-edd-checkout textarea {
	border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font-size: 16px; padding: 10px 0; margin: 0; outline: none;
	background: transparent; color: var(--ink); width: 100%; box-shadow: none; resize: vertical; min-height: 0;
}
.thtc-edd-checkout textarea { min-height: 44px; }
.thtc-edd-checkout input:focus, .thtc-edd-checkout select:focus, .thtc-edd-checkout textarea:focus { border-bottom-width: 2px; padding-bottom: 9px; }
.thtc-edd-checkout ::placeholder { color: #9a9a9a; }
.thtc-edd-checkout input[type=checkbox], .thtc-edd-checkout input[type=radio] { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }

/* Who is the license for: two selectable cards */
.thtc-edd-checkout .thtc-li-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.thtc-edd-checkout .thtc-li-choice { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.thtc-edd-checkout .thtc-li-choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thtc-edd-checkout .thtc-li-choice-text { display: flex; flex-direction: column; gap: 2px; }
.thtc-edd-checkout .thtc-li-choice-text strong { font-size: 15px; font-weight: 500; }
.thtc-edd-checkout .thtc-li-choice-text small { font-size: 13px; color: var(--muted); }
.thtc-edd-checkout .thtc-li-check label, .thtc-edd-checkout .edd-terms-agreement { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }

/* Pay */
.thtc-edd-checkout #edd_purchase_submit { display: flex; flex-direction: column; gap: 16px; }
.thtc-pay-head { display: flex; flex-direction: column; gap: 16px; }
.thtc-edd-checkout #edd_terms_agreement { display: flex; flex-direction: column; gap: 10px; }
.thtc-edd-checkout .edd-terms-agreement label { display: inline; font-size: 14px; color: var(--ink); }
.thtc-edd-checkout .edd-terms-agreement a, .thtc-edd-checkout #edd_show_terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.thtc-edd-checkout #edd_terms { font-size: 13px; line-height: 1.6; color: var(--body); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.thtc-edd-checkout #edd_final_total_wrap { display: flex; justify-content: space-between; font-size: 15px; }
.thtc-edd-checkout #edd_final_total_wrap strong { font-weight: 500; }
.thtc-edd-checkout .edd_cart_amount { font-family: var(--mono); }
.thtc-edd-checkout #edd-purchase-button, .thtc-edd-checkout .edd-submit {
	min-height: 46px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink) !important; color: var(--paper) !important;
	font-size: 15px; cursor: pointer; padding: 0 22px; width: 100%;
}
.thtc-edd-checkout .edd-submit:hover { background: #333 !important; }
.thtc-edd-checkout #edd-paypal-container, .thtc-edd-checkout #edd-paypal-button-container { max-width: 100%; }
.thtc-edd-checkout #edd_payment_mode_select_wrap, .thtc-edd-checkout #edd_payment_mode_select { display: flex; flex-direction: column; gap: 12px; }
.thtc-edd-checkout #edd-payment-mode-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.thtc-edd-checkout #edd-payment-mode-wrap label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 15px; cursor: pointer; }
.thtc-edd-checkout #edd-payment-mode-wrap label:has(input:checked) { border-color: var(--ink); }
.thtc-edd-checkout .edd-alert, .thtc-edd-checkout .edd_errors { margin: 0; padding: 12px 14px; border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); font-size: 14px; background: none; }
.thtc-edd-checkout .edd_errors p, .thtc-edd-checkout .edd_error { color: var(--danger); font-size: 14px; }
.thtc-edd-checkout .edd-blocks__checkout-user > p, .thtc-edd-checkout .edd-blocks__checkout-user > div:not(.edd-checkout-block__personal-info) { font-size: 14px; color: var(--body); margin: 0 0 16px; }
.thtc-edd-checkout .edd-blocks__checkout-user a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.thtc-secure { display: flex; align-items: center; gap: 8px; font-size: 12px !important; color: var(--muted); }
.thtc-edd-checkout #edd_secure_site_wrapper { display: none; }

/* ---------- Receipt (thank you) ---------- */
.thtc-blank { padding-top: 32px; }
.thtc-thanks { max-width: 560px; margin: 40px auto 0; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.thtc-thanks-icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.thtc-thanks-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.thtc-list.is-receipt { width: 100%; margin-top: 12px; text-align: left; }
.thtc-list.is-receipt .thtc-list-row { justify-content: space-between; padding: 16px 0; font-size: 15px; }
.thtc-list.is-receipt .thtc-list-row.is-meta { border-bottom: none; font-size: 13px; }
.thtc-thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* EDD generic (other shortcodes) */
.edd-alert { padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 14px; margin: 0 0 16px; }
.edd-alert-error { border-color: var(--danger); color: var(--danger); }
.edd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.edd-table th, .edd-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }

/* License verify page (plugin) */
.thtc-li-verify form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 24px; }
.thtc-li-verify input[type=text] { flex: 1 1 260px; border: none; border-bottom: 1px solid var(--ink); font-size: 18px; padding: 10px 0; outline: none; background: transparent; }
.thtc-li-verify button, .thtc-li-verify input[type=submit] { min-height: 40px; padding: 0 20px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
	.thtc-header { padding-top: 20px; padding-bottom: 20px; gap: 12px; }
	.thtc-logo { font-size: 28px; }
	.thtc-nav { gap: 8px 18px; font-size: 14px; }
	.thtc-menu { gap: 8px 18px; }
	.thtc-hero { gap: 28px; }
	.thtc-intro { padding: 48px 0 32px; }
	.thtc-intro.is-statement { padding: 56px 0; }
	.thtc-row-tools { margin-left: 0; }
	.thtc-info-title { font-size: 56px; }
	.thtc-hand-title.is-xl { font-size: 56px; }
	.thtc-contact { gap: 48px; padding-top: 48px; }
	.thtc-login { padding-top: 48px; }
	.thtc-cart-thumb { flex-basis: 100%; }
	.thtc-faq-list summary { font-size: 16px; }
	.thtc-faq-list details > :not(summary) { padding-right: 0; }
	.thtc-section { padding: 48px 0; }
}

/* Classic-theme group blocks add an inner wrapper; let our layouts see through it. */
.wp-block-group.thtc-section-head > .wp-block-group__inner-container,
.wp-block-group.thtc-cta > .wp-block-group__inner-container,
.wp-block-group.thtc-cta-text > .wp-block-group__inner-container,
.wp-block-group.thtc-section > .wp-block-group__inner-container { display: contents; }
.thtc-title .thtc-hand, .thtc-hero-title .thtc-hand { line-height: .8; }
.thtc-prose .wp-block-button__link { text-decoration: none; }
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { border-width: 1px; padding: 0 18px; }
.thtc-cta-text p, .thtc-section-head h2, .thtc-section-head p, .thtc-cta .wp-block-buttons { margin: 0 !important; }
.thtc-prose .is-layout-flow > * + *, .thtc-doc .is-layout-flow > * + * { margin-block-start: 0; }
