/* Table Hub – Gatehouse form (scoped to .th-gate) */
/* Colors and fonts are variables so Table Hub → Appearance can override them. */
:root {
	--th-burgundy: #632F32; --th-gold: #C6A15B; --th-gold-hi: #E9C77B; --th-ink: #3A2414; --th-brown: #6B4A2E;
	--th-ivory: #F6EAD0; --th-dark: #171410; --th-paper: #FFFAEE;
	--th-burgundy-hi: color-mix(in srgb, var(--th-burgundy) 82%, #fff);
	--th-font-title: 'Cinzel Decorative', 'Cinzel', serif; --th-font-heading: 'Cinzel', serif; --th-font-body: 'IM Fell English', Georgia, serif;
}
.th-gate {
	font-family: var(--th-font-body); color: var(--th-ink);
	font-size: 1.08rem; line-height: 1.5; text-align: left; box-sizing: border-box; width: 100%;
}
.th-gate *, .th-gate *::before, .th-gate *::after { box-sizing: inherit; }
.th-title {
	font-family: var(--th-font-heading); font-weight: 700; color: var(--th-burgundy);
	font-size: 1.45rem; line-height: 1.25; text-align: center; margin: 0 0 1rem;
}
.th-center { text-align: center; }
.th-small { font-size: .98rem; margin: .6rem 0 0; }
.th-muted { color: var(--th-brown); font-style: italic; }
.th-gate a { color: var(--th-burgundy); }
.th-gate a:hover, .th-gate a:focus-visible { color: var(--th-burgundy-hi); }

.th-form { display: grid; gap: .9rem; margin: 0; }
.th-field { display: grid; gap: .3rem; }
.th-field label {
	font-family: var(--th-font-heading); font-weight: 700; font-size: .85rem;
	letter-spacing: .06em; text-transform: uppercase; color: var(--th-burgundy);
}
.th-gate input[type="text"], .th-gate input[type="email"], .th-gate input[type="password"] {
	width: 100%; margin: 0; font: 1.05rem/1.4 var(--th-font-body); color: var(--th-ink);
	background: color-mix(in srgb, var(--th-paper) 60%, transparent); border: 1px solid color-mix(in srgb, var(--th-brown) 50%, transparent); border-radius: 3px;
	padding: .7rem .85rem; box-shadow: inset 0 1px 3px color-mix(in srgb, var(--th-ink) 18%, transparent);
	-webkit-appearance: none; appearance: none;
}
.th-gate input:focus { outline: none; border-color: var(--th-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-gold) 45%, transparent); background: color-mix(in srgb, var(--th-paper) 90%, transparent); }
.th-gate input[aria-invalid="true"] { border-color: #9b2c2c; }
.th-err { margin: 0; color: #8b1f1f; font-style: italic; font-size: .95rem; }
.th-check { display: flex; gap: .5rem; align-items: center; font-size: .98rem; }
.th-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--th-burgundy); }
.th-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.th-btn {
	display: inline-block; cursor: pointer; text-decoration: none !important;
	font-family: var(--th-font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--th-ivory) !important; background: linear-gradient(180deg, var(--th-burgundy-hi) 0%, var(--th-burgundy) 55%, #4a2124 100%);
	border: 2px solid var(--th-gold); border-radius: 4px; padding: .85rem 2.4rem; margin-top: .25rem;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-dark) 60%, transparent), 0 6px 16px rgba(0, 0, 0, .35);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6); transition: transform .18s, box-shadow .18s;
}
.th-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-dark) 60%, transparent), 0 0 22px color-mix(in srgb, var(--th-gold-hi) 55%, transparent); }
.th-btn:focus-visible { outline: 3px solid var(--th-gold-hi); outline-offset: 4px; }

.th-msg { margin: 0 0 1rem; padding: .65rem .9rem; border-radius: 3px; text-align: center; font-style: italic; }
.th-msg-error { color: #7d1b1b; background: rgba(155, 44, 44, .1); border: 1px solid rgba(155, 44, 44, .35); }
.th-msg-success { color: #23402c; background: rgba(52, 70, 58, .12); border: 1px solid rgba(52, 70, 58, .35); }

@media (max-width: 600px) {
	.th-btn { width: 100%; padding: 1rem; }
	.th-gate input[type="text"], .th-gate input[type="email"], .th-gate input[type="password"] { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .th-btn { transition: none; } .th-btn:hover { transform: none; } }
