/* That All May Hear — site and portal styles */

:root {
	--tamh-forest: #173a2a;
	--tamh-green: #1f4a35;
	--tamh-green-2: #2b5e44;
	--tamh-sage: #6e7f6a;
	--tamh-cream: #f6efdf;
	--tamh-parchment: #fbf7ee;
	--tamh-paper: #fffdf8;
	--tamh-line: #e4d9bf;
	--tamh-line-soft: #efe7d3;
	--tamh-gold: #b98a3c;
	--tamh-gold-soft: #e9d7ae;
	--tamh-ink: #22261f;
	--tamh-ink-2: #4a5046;
	--tamh-red: #9c3b2c;
	--tamh-red-bg: #f8e7e2;
	--tamh-ok: #2f6b45;
	--tamh-ok-bg: #e5efe3;
	--tamh-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--tamh-sans: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tamh-radius: 10px;
	--tamh-radius-sm: 6px;
	--tamh-shadow: 0 1px 2px rgba(23, 58, 42, .06), 0 8px 24px -12px rgba(23, 58, 42, .18);
	--tamh-wrap: 1180px;
	--tamh-gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base (full layout) ---------- */

body.tamh-full-layout {
	margin: 0;
	background: var(--tamh-parchment);
	color: var(--tamh-ink);
	font-family: var(--tamh-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.tamh-full-layout *, body.tamh-full-layout *::before, body.tamh-full-layout *::after { box-sizing: border-box; }
.tamh-page img { max-width: 100%; height: auto; }
.tamh-page a { color: var(--tamh-green); text-underline-offset: 3px; }
.tamh-page a:hover { color: var(--tamh-forest); }
.tamh-page :focus-visible { outline: 3px solid var(--tamh-gold); outline-offset: 2px; border-radius: 3px; }
.tamh-page h1, .tamh-page h2, .tamh-page h3, .tamh-page h4 { color: var(--tamh-forest); margin: 0 0 .5em; line-height: 1.2; }
.tamh-page p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.tamh-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--tamh-forest); color: #fff !important; padding: 10px 16px; border-radius: var(--tamh-radius-sm); }
.tamh-skip:focus { left: 8px; }

.tamh-container { width: 100%; max-width: var(--tamh-wrap); margin: 0 auto; padding: 0 var(--tamh-gutter); }

/* ---------- Header ---------- */

.tamh-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 238, .94);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--tamh-line-soft);
}
.admin-bar .tamh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tamh-header { top: 0; position: relative; } }
.tamh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.tamh-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tamh-forest) !important; }
.tamh-brand__mark { color: var(--tamh-forest); flex: none; }
.tamh-brand__name { font-family: var(--tamh-serif); font-size: 26px; font-weight: 600; letter-spacing: .01em; line-height: 1; }

.tamh-nav { display: flex; align-items: center; gap: 28px; }
.tamh-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.tamh-nav ul a, .tamh-nav__link { color: var(--tamh-ink-2) !important; text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.tamh-nav ul a:hover, .tamh-nav__link:hover, .tamh-nav ul a[aria-current="page"] { color: var(--tamh-forest) !important; border-bottom-color: var(--tamh-gold); }
.tamh-nav__actions { display: flex; align-items: center; gap: 16px; }
.tamh-nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--tamh-line); color: var(--tamh-forest); border-radius: var(--tamh-radius-sm); padding: 8px 12px; font: 600 15px var(--tamh-sans); cursor: pointer; }

@media (max-width: 1040px) {
	.tamh-nav-toggle { display: inline-flex; }
	.tamh-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--tamh-parchment); border-bottom: 1px solid var(--tamh-line);
		padding: 8px var(--tamh-gutter) 20px; box-shadow: 0 16px 24px -16px rgba(23, 58, 42, .25);
		display: none;
	}
	.tamh-nav.is-open { display: flex; }
	.tamh-nav ul { flex-direction: column; gap: 0; }
	.tamh-nav ul a { display: block; padding: 13px 0; border-bottom: 1px solid var(--tamh-line-soft); }
	.tamh-nav ul a[aria-current="page"] { border-bottom-color: var(--tamh-line-soft); }
	.tamh-nav__actions { flex-wrap: wrap; padding-top: 14px; }
	.tamh-brand__name { font-size: 22px; }
}

/* ---------- Buttons ---------- */

.tamh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 22px;
	font: 600 16px/1.2 var(--tamh-sans); letter-spacing: .01em;
	border-radius: var(--tamh-radius-sm); border: 1.5px solid transparent;
	text-decoration: none !important; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	background: var(--tamh-cream); color: var(--tamh-forest) !important;
}
.tamh-btn--primary { background: var(--tamh-green); color: var(--tamh-parchment) !important; }
.tamh-btn--primary:hover { background: var(--tamh-forest); }
.tamh-btn--gold { background: var(--tamh-gold); color: #fff !important; }
.tamh-btn--gold:hover { background: #a1772f; }
.tamh-btn--ghost { background: transparent; border-color: var(--tamh-green); color: var(--tamh-green) !important; }
.tamh-btn--ghost:hover { background: var(--tamh-green); color: var(--tamh-parchment) !important; }
.tamh-btn--light { background: transparent; border-color: rgba(251, 247, 238, .7); color: var(--tamh-parchment) !important; }
.tamh-btn--light:hover { background: var(--tamh-parchment); color: var(--tamh-forest) !important; }
.tamh-btn--text-light { background: transparent; color: var(--tamh-parchment) !important; padding-left: 8px; padding-right: 8px; text-decoration: underline !important; text-decoration-color: var(--tamh-gold) !important; text-underline-offset: 5px; }
.tamh-btn--danger { background: var(--tamh-red); color: #fff !important; }
.tamh-btn--danger:hover { background: #7f2f23; }
.tamh-btn--small { min-height: 38px; padding: 7px 14px; font-size: 15px; }
.tamh-btn--block { width: 100%; }
.tamh-btn .tamh-icon { width: 18px; height: 18px; }
.tamh-btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--tamh-green); text-decoration: underline; cursor: pointer; }
.tamh-danger, .tamh-btn-link.tamh-danger { color: var(--tamh-red) !important; }

/* ---------- Hero slideshow ---------- */

.tamh-hero {
	position: relative; background: var(--tamh-forest); color: var(--tamh-parchment);
	overflow: hidden; isolation: isolate;
}
.tamh-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(1200px 500px at 85% 110%, rgba(185, 138, 60, .18), transparent 60%),
		radial-gradient(900px 600px at -10% -20%, rgba(43, 94, 68, .7), transparent 60%);
}
.tamh-hero__track { display: grid; }
.tamh-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.tamh-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.tamh-slide__inner {
	max-width: var(--tamh-wrap); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--tamh-gutter) 120px;
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center;
	min-height: min(720px, calc(100svh - 72px));
}
.tamh-slide__text { max-width: 600px; }
.tamh-slide__title {
	font-family: var(--tamh-serif) !important; font-weight: 600; color: var(--tamh-parchment) !important;
	font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 22px !important; text-wrap: balance;
}
.tamh-slide__lead { font-family: var(--tamh-serif); font-size: clamp(22px, 2.4vw, 29px); line-height: 1.3; color: var(--tamh-gold-soft); margin: 0 0 18px; font-weight: 500; }
.tamh-slide__lead--statement {
	font-size: clamp(28px, 3.4vw, 40px); line-height: 1.18; color: #fff;
	padding-left: 22px; border-left: 3px solid var(--tamh-gold);
}
.tamh-slide__body { font-size: 18px; color: rgba(251, 247, 238, .82); max-width: 52ch; margin-bottom: 30px; }
.tamh-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tamh-slide__media { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.tamh-arch {
	position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 8px 8px; overflow: hidden;
	background: var(--tamh-green-2);
	outline: 1px solid rgba(185, 138, 60, .7); outline-offset: 10px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.tamh-arch img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 7s ease-out; }
.tamh-slide.is-active .tamh-arch img { transform: scale(1); }

.tamh-hero__controls {
	position: absolute; left: 0; right: 0; bottom: 34px;
	max-width: var(--tamh-wrap); margin: 0 auto; padding: 0 var(--tamh-gutter);
	display: flex; align-items: center; gap: 10px;
}
.tamh-hero__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
	background: rgba(251, 247, 238, .08); border: 1px solid rgba(251, 247, 238, .35);
	color: var(--tamh-parchment); cursor: pointer; font: 600 14px var(--tamh-sans);
	transition: background-color .2s ease;
}
.tamh-hero__btn:hover { background: rgba(251, 247, 238, .2); }
.tamh-hero__pause { margin-left: auto; padding: 0 16px; }
.tamh-hero__dots { display: flex; gap: 4px; padding: 0 6px; }
.tamh-hero__dot { width: 32px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.tamh-hero__dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(251, 247, 238, .35); transition: background-color .3s; }
.tamh-hero__dot.is-active::after { background: var(--tamh-gold); }

@media (max-width: 860px) {
	.tamh-slide__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 104px; min-height: 0; align-items: start; }
	.tamh-slide__media { order: -1; justify-self: center; max-width: 340px; padding: 10px; }
	.tamh-arch img { object-position: center 75%; }
	.tamh-arch { aspect-ratio: 5 / 4; border-radius: 999px 999px 8px 8px / 600px 600px 8px 8px; }
	.tamh-slide__text { max-width: none; }
	.tamh-slide__body { font-size: 17px; }
	.tamh-hero__controls { bottom: 24px; }
}
@media (max-width: 480px) {
	.tamh-slide__media { max-width: 100%; }
	.tamh-arch { aspect-ratio: 16 / 11; outline-offset: 6px; }
	.tamh-arch img { object-position: center 78%; }
	.tamh-slide__actions .tamh-btn--gold { width: 100%; }
	.tamh-hero__pause-label { display: none; }
	.tamh-hero__pause { padding: 0 10px; }
}

/* ---------- Home sections ---------- */

.tamh-section { padding: clamp(64px, 9vw, 112px) 0; }
.tamh-section__head { max-width: 720px; margin-bottom: 44px; }
.tamh-section__lede { font-size: 19px; color: var(--tamh-ink-2); }
.tamh-eyebrow {
	display: block; font-family: var(--tamh-serif); font-style: italic; font-size: 20px; font-weight: 500;
	color: var(--tamh-gold); margin: 0 0 10px;
}
.tamh-eyebrow--light { color: var(--tamh-gold-soft); }
.tamh-heading { font-family: var(--tamh-serif) !important; font-size: clamp(34px, 4.2vw, 50px); font-weight: 600; letter-spacing: -.005em; }
.tamh-display { font-family: var(--tamh-serif) !important; font-size: clamp(32px, 3.8vw, 48px); font-weight: 500; line-height: 1.16 !important; }

.tamh-vision { background: var(--tamh-parchment); }
.tamh-vision__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.tamh-vision__text { font-size: 18px; color: var(--tamh-ink-2); padding-top: 38px; }
.tamh-vision__text p:first-child { color: var(--tamh-ink); font-size: 20px; }

.tamh-support { background: var(--tamh-cream); }
.tamh-who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--tamh-forest); }
.tamh-who li { padding: 26px 22px 6px 0; border-right: 1px solid var(--tamh-line); }
.tamh-who li + li { padding-left: 22px; }
.tamh-who li:last-child { border-right: 0; }
.tamh-who h3 { font-family: var(--tamh-serif); font-size: 25px; font-weight: 600; }
.tamh-who p { color: var(--tamh-ink-2); font-size: 16px; }

.tamh-areas { background: var(--tamh-parchment); }
.tamh-areas__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.tamh-areas__intro { position: sticky; top: 110px; align-self: start; color: var(--tamh-ink-2); }
.tamh-areas__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.tamh-areas__list div { padding: 22px 0; border-top: 1px solid var(--tamh-line); }
.tamh-areas__list dt { font-family: var(--tamh-serif); font-size: 24px; font-weight: 600; color: var(--tamh-forest); margin-bottom: 4px; }
.tamh-areas__list dd { margin: 0; color: var(--tamh-ink-2); font-size: 16px; }
.tamh-areas__list div:last-child { grid-column: 1 / -1; border-top: 2px solid var(--tamh-gold); }
.tamh-areas__list div:last-child dt { color: var(--tamh-forest); }

.tamh-how { background: var(--tamh-cream); }
.tamh-process { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.tamh-process li { position: relative; padding: 0 20px 0 0; }
.tamh-process li::before { content: ""; position: absolute; left: 52px; right: 8px; top: 25px; height: 1px; background: var(--tamh-gold); opacity: .6; }
.tamh-process li:last-child::before { display: none; }
.tamh-process__n {
	display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%;
	background: var(--tamh-forest); color: var(--tamh-parchment); font: 600 24px var(--tamh-serif); margin-bottom: 18px;
}
.tamh-process h3 { font-family: var(--tamh-serif); font-size: 23px; font-weight: 600; }
.tamh-process p { font-size: 16px; color: var(--tamh-ink-2); }
.tamh-center-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tamh-accountability { background: var(--tamh-forest); color: rgba(251, 247, 238, .85); }
.tamh-accountability .tamh-heading { color: var(--tamh-parchment) !important; }
.tamh-accountability__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; font-size: 18px; }
.tamh-ticks { list-style: none; margin: 0; padding: 0; }
.tamh-ticks li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(251, 247, 238, .14); color: var(--tamh-parchment); }
.tamh-ticks li:last-child { border-bottom: 0; }
.tamh-ticks .tamh-icon { color: var(--tamh-gold); flex: none; margin-top: 3px; }

.tamh-contact { background: var(--tamh-parchment); }
.tamh-contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); }
.tamh-contact__details { list-style: none; padding: 0; margin: 20px 0 24px; }
.tamh-contact__details li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.tamh-contact__details .tamh-icon { color: var(--tamh-gold); flex: none; margin-top: 3px; }
.tamh-contact__form { background: var(--tamh-paper); border: 1px solid var(--tamh-line); border-radius: var(--tamh-radius); padding: clamp(20px, 3vw, 36px); }

@media (max-width: 1000px) {
	.tamh-who { grid-template-columns: 1fr 1fr; border-top: 0; }
	.tamh-who li, .tamh-who li + li { padding: 20px 20px 4px 0; border-right: 0; border-top: 1px solid var(--tamh-line); }
	.tamh-process { grid-template-columns: 1fr; gap: 6px; }
	.tamh-process li { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; padding: 0 0 18px; }
	.tamh-process li::before { left: 25px; right: auto; top: 54px; bottom: 0; width: 1px; height: auto; }
	.tamh-process__n { grid-row: span 2; margin: 0; }
	.tamh-process h3 { margin-top: 10px; }
}
@media (max-width: 800px) {
	.tamh-vision__grid, .tamh-areas__grid, .tamh-accountability__grid, .tamh-contact__grid { grid-template-columns: 1fr; }
	.tamh-vision__text { padding-top: 0; }
	.tamh-areas__intro { position: static; }
	.tamh-areas__list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .tamh-who { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.tamh-footer { background: #10291e; color: rgba(251, 247, 238, .72); padding: 56px 0 28px; font-size: 16px; }
.tamh-footer a { color: var(--tamh-parchment) !important; text-decoration: none; }
.tamh-footer a:hover { text-decoration: underline; }
.tamh-footer ul { list-style: none; margin: 0; padding: 0; }
.tamh-footer li { padding: 4px 0; }
.tamh-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.tamh-footer__brand { font-family: var(--tamh-serif); font-size: 28px; color: var(--tamh-parchment); margin-bottom: 6px !important; }
.tamh-footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(251, 247, 238, .12); font-size: 14px; }
@media (max-width: 700px) { .tamh-footer__grid { grid-template-columns: 1fr 1fr; } .tamh-footer__grid > div { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */

.tamh-page-wrap { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); }
.tamh-form { display: grid; gap: 18px; }
.tamh-form--compact { gap: 12px; margin-top: 12px; }
.tamh-form--inline { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tamh-form--inline .tamh-field { flex: 1 1 240px; }
.tamh-field { display: grid; gap: 6px; margin: 0; min-width: 0; }
fieldset.tamh-field { border: 0; padding: 0; }
.tamh-field label, .tamh-field legend { font-weight: 600; font-size: 15px; color: var(--tamh-ink); padding: 0; }
.tamh-field--inline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; }
.tamh-optional { font-weight: 400; color: var(--tamh-sage); }
.tamh-page input[type=text], .tamh-page input[type=email], .tamh-page input[type=tel], .tamh-page input[type=password],
.tamh-page input[type=url], .tamh-page input[type=number], .tamh-page input[type=date], .tamh-page input[type=search],
.tamh-page select, .tamh-page textarea {
	width: 100%; min-height: 46px; padding: 10px 13px;
	font: 400 16px/1.4 var(--tamh-sans); color: var(--tamh-ink);
	background: #fff; border: 1.5px solid #d9cfb7; border-radius: var(--tamh-radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease; box-shadow: none; margin: 0;
}
.tamh-page textarea { resize: vertical; min-height: 110px; }
.tamh-page input:focus, .tamh-page select:focus, .tamh-page textarea:focus { outline: none; border-color: var(--tamh-green); box-shadow: 0 0 0 3px rgba(31, 74, 53, .15); }
.tamh-page input[aria-invalid=true], .tamh-page select[aria-invalid=true], .tamh-page textarea[aria-invalid=true] { border-color: var(--tamh-red); }
.tamh-page input[type=file] { font-size: 15px; padding: 10px; background: var(--tamh-parchment); border: 1.5px dashed #d0c4a7; border-radius: var(--tamh-radius-sm); width: 100%; }
.tamh-help { font-size: 14px; color: var(--tamh-sage); margin: 0 !important; }
.tamh-field-error { color: var(--tamh-red); font-size: 14px; font-weight: 600; margin: 0 !important; }
.tamh-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; margin: 6px 0; }
.tamh-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--tamh-green); flex: none; }
.tamh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tamh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tamh-span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .tamh-grid-2, .tamh-grid-3 { grid-template-columns: 1fr; } }
.tamh-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tamh-input-prefix { display: flex; }
.tamh-input-prefix span { display: inline-flex; align-items: center; padding: 0 12px; background: var(--tamh-cream); border: 1.5px solid #d9cfb7; border-right: 0; border-radius: var(--tamh-radius-sm) 0 0 var(--tamh-radius-sm); color: var(--tamh-ink-2); font-weight: 600; }
.tamh-input-prefix input { border-radius: 0 var(--tamh-radius-sm) var(--tamh-radius-sm) 0 !important; }
.tamh-password { position: relative; }
.tamh-password input { padding-right: 72px !important; }
.tamh-password__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--tamh-green); font: 600 14px var(--tamh-sans); padding: 8px; cursor: pointer; }
.tamh-meter { height: 4px; background: var(--tamh-line-soft); border-radius: 2px; overflow: hidden; }
.tamh-meter span { display: block; height: 100%; width: 0; background: var(--tamh-red); transition: width .25s, background-color .25s; }

.tamh-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.tamh-choice { position: relative; display: block; cursor: pointer; }
.tamh-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tamh-choice span { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border: 1.5px solid #d9cfb7; border-radius: var(--tamh-radius-sm); background: #fff; font-weight: 500; font-size: 15px; transition: border-color .15s, background-color .15s; }
.tamh-choice input:checked + span { border-color: var(--tamh-green); background: var(--tamh-ok-bg); color: var(--tamh-forest); font-weight: 600; box-shadow: inset 0 0 0 1px var(--tamh-green); }
.tamh-choice input:focus-visible + span { outline: 3px solid var(--tamh-gold); outline-offset: 2px; }
.tamh-radio-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tamh-line-soft); cursor: pointer; }
.tamh-radio-row input { margin-top: 5px; accent-color: var(--tamh-green); }
.tamh-radio-row small { display: block; color: var(--tamh-sage); font-size: 14px; }

/* ---------- Alerts & callouts ---------- */

.tamh-alert { padding: 14px 18px; border-radius: var(--tamh-radius-sm); margin: 0 0 20px; border-left: 4px solid; font-weight: 500; }
.tamh-alert--success { background: var(--tamh-ok-bg); border-color: var(--tamh-ok); color: #1f4d31; }
.tamh-alert--error { background: var(--tamh-red-bg); border-color: var(--tamh-red); color: #6e2618; }
.tamh-alert--info { background: #eef1ea; border-color: var(--tamh-sage); color: var(--tamh-ink); }
.tamh-callout { background: #eef1ea; border-radius: var(--tamh-radius-sm); padding: 14px 18px; margin: 0 0 20px; font-size: 15.5px; color: var(--tamh-ink); }
.tamh-callout--gold { background: #f7ecd2; }
.tamh-callout .tamh-icon { vertical-align: -4px; }
.tamh-muted { color: var(--tamh-sage); }
.tamh-small { font-size: 14px; }
.tamh-ok { color: var(--tamh-ok); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.tamh-error-text { color: var(--tamh-red); }

/* ---------- Auth pages ---------- */

.tamh-auth { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 1000px; margin: 0 auto; background: var(--tamh-paper); border: 1px solid var(--tamh-line); border-radius: 14px; overflow: hidden; box-shadow: var(--tamh-shadow); }
.tamh-auth__aside { background: var(--tamh-forest); color: rgba(251, 247, 238, .82); padding: 48px 40px; position: relative; overflow: hidden; }
.tamh-auth__aside::after {
	content: ""; position: absolute; right: -60px; bottom: -40px; width: 240px; height: 300px;
	border: 2px solid rgba(185, 138, 60, .35); border-radius: 999px 999px 0 0;
}
.tamh-auth__aside-inner { position: relative; z-index: 1; }
.tamh-auth__aside .tamh-eyebrow { color: var(--tamh-gold-soft); }
.tamh-auth__aside-title { font-family: var(--tamh-serif); font-size: 38px; line-height: 1.12; color: var(--tamh-parchment); margin-bottom: 16px !important; }
.tamh-auth__card { padding: clamp(28px, 4vw, 48px); }
.tamh-auth__title { font-family: var(--tamh-serif) !important; font-size: 40px; font-weight: 600; }
.tamh-auth__intro { color: var(--tamh-ink-2); margin-bottom: 24px !important; }
.tamh-auth__alt { text-align: center; margin-top: 22px !important; color: var(--tamh-ink-2); font-size: 15px; }
.tamh-success-panel { text-align: left; }
.tamh-success-panel > .tamh-icon { width: 40px; height: 40px; color: var(--tamh-gold); margin-bottom: 8px; }
@media (max-width: 760px) {
	.tamh-auth { grid-template-columns: 1fr; }
	.tamh-auth__aside { padding: 24px 22px; }
	.tamh-auth__aside-title { font-size: 26px; margin-bottom: 6px !important; }
	.tamh-auth__aside p:last-child { display: none; }
	.tamh-auth__aside::after { display: none; }
	.tamh-auth__title { font-size: 32px; }
}

/* ---------- Portal ---------- */

.tamh-portal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tamh-portal__head h1 { font-family: var(--tamh-serif) !important; font-size: clamp(32px, 4vw, 44px); font-weight: 600; margin: 0 !important; }
.tamh-portal__head .tamh-eyebrow { margin-bottom: 2px; font-size: 18px; }
.tamh-portal__head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tamh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tamh-line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tamh-tabs::-webkit-scrollbar { display: none; }
.tamh-tabs a { flex: none; padding: 12px 16px; text-decoration: none; color: var(--tamh-ink-2) !important; font-weight: 600; font-size: 15.5px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tamh-tabs a:hover { color: var(--tamh-forest) !important; }
.tamh-tabs a.is-active { color: var(--tamh-forest) !important; border-bottom-color: var(--tamh-gold); }
.tamh-tabs__out { margin-left: auto; font-weight: 500 !important; color: var(--tamh-sage) !important; }
.tamh-badge { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 11px; background: var(--tamh-gold); color: #fff; font-size: 12.5px; }

.tamh-card { background: var(--tamh-paper); border: 1px solid var(--tamh-line); border-radius: var(--tamh-radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; min-width: 0; }
.tamh-card--flush { padding: 0; overflow: hidden; }
.tamh-card--highlight { border-color: var(--tamh-gold); box-shadow: inset 4px 0 0 var(--tamh-gold); }
.tamh-card__title { font-family: var(--tamh-serif) !important; font-size: 27px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tamh-card h4, .tamh-subhead { font-family: var(--tamh-sans) !important; font-size: 15px !important; font-weight: 700; color: var(--tamh-ink) !important; margin: 22px 0 10px !important; display: flex; align-items: center; gap: 6px; }
.tamh-empty { text-align: center; padding: 48px 24px; }
.tamh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.tamh-two-col--wide { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.tamh-stack > * + * { margin-top: 0; }
@media (max-width: 900px) { .tamh-two-col, .tamh-two-col--wide { grid-template-columns: 1fr; } }

.tamh-app-list { display: grid; gap: 16px; }
.tamh-app-card { margin: 0; }
.tamh-app-card.needs-action { border-color: var(--tamh-gold); box-shadow: inset 4px 0 0 var(--tamh-gold); }
.tamh-app-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tamh-app-card__title { font-family: var(--tamh-serif) !important; font-size: 26px; font-weight: 600; margin: 2px 0 2px !important; }
.tamh-app-card__title a { text-decoration: none; color: var(--tamh-forest) !important; }
.tamh-app-card__top .tamh-muted { margin: 0 !important; font-size: 15px; }
.tamh-ref { font-size: 13px; font-weight: 700; color: var(--tamh-gold); letter-spacing: .03em; }
.tamh-next { margin: 14px 0 8px !important; }
.tamh-link-arrow, .tamh-link-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.tamh-link-arrow .tamh-icon, .tamh-link-back .tamh-icon { width: 18px; height: 18px; }

.tamh-pill { flex: none; display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #e8ebe3; color: var(--tamh-ink-2); }
.tamh-pill--submitted { background: #e8ebe3; color: #3d4a3a; }
.tamh-pill--under_review { background: #e2ecf0; color: #2b4f5e; }
.tamh-pill--clarification { background: #f7e6c4; color: #7a5313; }
.tamh-pill--approved { background: var(--tamh-ok-bg); color: var(--tamh-ok); }
.tamh-pill--declined { background: var(--tamh-red-bg); color: var(--tamh-red); }
.tamh-pill--delivered { background: #efe4f3; color: #5a3a6a; }
.tamh-pill--completed { background: var(--tamh-forest); color: var(--tamh-parchment); }

/* Progress */
.tamh-steps { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.tamh-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tamh-sage); padding: 0 4px; }
.tamh-step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--tamh-line); z-index: 0; }
.tamh-step:first-child::before { display: none; }
.tamh-step__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tamh-paper); border: 2px solid var(--tamh-line); font-size: 14px; color: var(--tamh-sage); }
.tamh-step__dot .tamh-icon { width: 16px; height: 16px; }
.tamh-step.is-done { color: var(--tamh-forest); }
.tamh-step.is-done::before, .tamh-step.is-current::before, .tamh-step.is-declined::before { background: var(--tamh-green); }
.tamh-step.is-done .tamh-step__dot { background: var(--tamh-green); border-color: var(--tamh-green); color: #fff; }
.tamh-step.is-current { color: var(--tamh-forest); }
.tamh-step.is-current .tamh-step__dot { border-color: var(--tamh-gold); background: #fff8e8; color: var(--tamh-forest); box-shadow: 0 0 0 4px rgba(185, 138, 60, .2); }
.tamh-step.is-declined { color: var(--tamh-red); }
.tamh-step.is-declined .tamh-step__dot { border-color: var(--tamh-red); background: var(--tamh-red-bg); color: var(--tamh-red); }
.tamh-step.is-skipped { opacity: .45; }
.tamh-steps--compact .tamh-step__label { font-size: 13px; }
@media (max-width: 640px) {
	.tamh-steps { grid-template-columns: 1fr; gap: 0; margin-left: 4px; }
	.tamh-step { flex-direction: row; text-align: left; padding: 0 0 14px; gap: 12px; }
	.tamh-step::before { top: auto; bottom: 100%; left: 15px; right: auto; width: 2px; height: 14px; }
	.tamh-steps--compact .tamh-step:not(.is-current) .tamh-step__label { font-weight: 500; }
}

.tamh-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; background: var(--tamh-parchment); border: 1px solid var(--tamh-line-soft); border-radius: var(--tamh-radius-sm); padding: 14px 18px; margin: 4px 0 22px; font-size: 15px; position: relative; }
.tamh-summary__label { display: block; font-size: 13px; color: var(--tamh-sage); font-weight: 600; }
.tamh-summary__edit { position: absolute; top: 12px; right: 16px; font-weight: 600; font-size: 14px; }
@media (max-width: 640px) { .tamh-summary { grid-template-columns: 1fr; } }

.tamh-dl { margin: 0 0 16px; display: grid; gap: 0; }
.tamh-dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tamh-line-soft); font-size: 15.5px; }
.tamh-dl dt { color: var(--tamh-sage); font-weight: 600; font-size: 14.5px; }
.tamh-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tamh-dl--boxed { background: var(--tamh-parchment); border-radius: var(--tamh-radius-sm); padding: 6px 16px; }
.tamh-dl--boxed > div:last-child { border-bottom: 0; }
@media (max-width: 480px) { .tamh-dl > div { grid-template-columns: 1fr; gap: 2px; } }
.tamh-prose { white-space: normal; overflow-wrap: anywhere; color: var(--tamh-ink); }

.tamh-quote { margin: 0 0 18px; padding: 14px 18px; background: var(--tamh-parchment); border-left: 3px solid var(--tamh-gold); border-radius: 0 var(--tamh-radius-sm) var(--tamh-radius-sm) 0; font-size: 16px; }
.tamh-quote cite { display: block; margin-top: 8px; font-size: 13.5px; color: var(--tamh-sage); font-style: normal; }

.tamh-thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.tamh-msg { padding: 12px 16px; border-radius: var(--tamh-radius-sm); background: var(--tamh-parchment); border: 1px solid var(--tamh-line-soft); }
.tamh-msg--staff { background: #eef1ea; }
.tamh-msg--mine, .tamh-msg--applicant { background: #fff; }
.tamh-msg--internal { background: #fbf3df; border-style: dashed; border-color: #e0c98f; }
.tamh-msg__meta { font-size: 13.5px; color: var(--tamh-sage); margin-bottom: 4px; }
.tamh-msg__meta strong { color: var(--tamh-ink); }
.tamh-msg__body { overflow-wrap: anywhere; }
.tamh-report { padding: 14px 0; border-top: 1px solid var(--tamh-line-soft); }
.tamh-report:first-of-type { border-top: 0; padding-top: 0; }

.tamh-docs { list-style: none; margin: 0 0 12px; padding: 0; }
.tamh-docs li { padding: 10px 0; border-bottom: 1px solid var(--tamh-line-soft); }
.tamh-docs a { display: flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tamh-docs small { display: block; color: var(--tamh-sage); padding-left: 28px; }
.tamh-plain-list { list-style: none; margin: 0; padding: 0; }
.tamh-plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tamh-line-soft); flex-wrap: wrap; }

.tamh-details { border-top: 1px solid var(--tamh-line-soft); padding: 12px 0 4px; margin-top: 8px; }
.tamh-details > summary { cursor: pointer; font-weight: 700; color: var(--tamh-green); list-style: none; display: flex; align-items: center; gap: 8px; }
.tamh-details > summary::-webkit-details-marker { display: none; }
.tamh-details > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: 2px; }
.tamh-details[open] > summary::before { transform: rotate(45deg); }
.tamh-decline { border-top: 1px dashed var(--tamh-line); padding-top: 12px; margin-top: 16px; }
.tamh-inline-form { display: inline; margin: 0; }
.tamh-button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tamh-button-row form { margin: 0; }
.tamh-card--actions .tamh-btn--block { margin-bottom: 8px; }

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

.tamh-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--tamh-line); background: var(--tamh-parchment); }
.tamh-toolbar__title { font-family: var(--tamh-sans) !important; font-size: 17px !important; font-weight: 700; margin: 0 !important; color: var(--tamh-ink) !important; }
.tamh-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.tamh-page .tamh-filter input[type=search] { width: 260px; min-height: 38px; padding: 7px 12px; font-size: 15px; }
.tamh-page .tamh-filter select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 15px; }
.tamh-table-wrap { overflow-x: auto; }
.tamh-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.tamh-table th { text-align: left; font-weight: 700; font-size: 13.5px; color: var(--tamh-ink-2); padding: 10px 16px; border-bottom: 1px solid var(--tamh-line); white-space: nowrap; background: var(--tamh-paper); }
.tamh-table td { padding: 10px 16px; border-bottom: 1px solid var(--tamh-line-soft); vertical-align: top; }
.tamh-table tbody tr:hover td { background: #fdf9ef; }
.tamh-table--compact td { padding: 8px 14px; font-size: 14.5px; }
.tamh-col-actions { text-align: right; width: 1%; white-space: nowrap; }
.tamh-strong { font-weight: 700; text-decoration: none; }
.tamh-break { overflow-wrap: anywhere; }
.tamh-empty-cell { text-align: center; color: var(--tamh-sage); padding: 36px 16px !important; }
.tamh-tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px; background: var(--tamh-cream); color: var(--tamh-ink-2); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.tamh-tag--gold { background: #f7ecd2; color: #7a5313; padding: 1px 4px; }
.tamh-tag .tamh-icon { width: 14px; height: 14px; }
.tamh-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tamh-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tamh-status--active { color: var(--tamh-ok); }
.tamh-status--pending { color: #8a6a1f; }
.tamh-status--disabled { color: var(--tamh-red); }

/* Row action menu */
.tamh-menu { position: relative; display: inline-block; text-align: left; }
.tamh-menu__btn { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--tamh-line); border-radius: var(--tamh-radius-sm); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--tamh-ink-2); }
.tamh-menu__btn::-webkit-details-marker { display: none; }
.tamh-menu[open] .tamh-menu__btn { border-color: var(--tamh-green); color: var(--tamh-forest); }
.tamh-menu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 250px; background: #fff; border: 1px solid var(--tamh-line); border-radius: var(--tamh-radius-sm); box-shadow: 0 16px 40px -12px rgba(23, 58, 42, .3); padding: 6px; display: grid; }
.tamh-menu__panel a, .tamh-menu__panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 4px; font: 500 15px var(--tamh-sans); color: var(--tamh-ink); text-decoration: none; cursor: pointer; white-space: normal; }
.tamh-menu__panel a:hover, .tamh-menu__panel button:hover { background: var(--tamh-cream); }
.tamh-menu__form { margin: 0; }
.tamh-menu__note { display: block; padding: 8px 12px; font-size: 13px; color: var(--tamh-sage); white-space: normal; }

/* Stacked rows on phones */
@media (max-width: 760px) {
	.tamh-table thead { display: none; }
	.tamh-table, .tamh-table tbody, .tamh-table tr, .tamh-table td { display: block; width: 100%; }
	.tamh-table tr { padding: 12px 16px; border-bottom: 1px solid var(--tamh-line); }
	.tamh-table td { border: 0; padding: 3px 0 !important; display: grid; grid-template-columns: 96px 1fr; gap: 10px; text-align: left; white-space: normal; }
	.tamh-table td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--tamh-sage); }
	.tamh-table td.tamh-empty-cell { display: block; }
	.tamh-table td.tamh-empty-cell::before { display: none; }
	.tamh-col-actions { width: auto; }
	.tamh-menu__panel { left: 0; right: auto; }
	.tamh-page .tamh-filter input[type=search] { width: 100%; }
	.tamh-filter { width: 100%; }
	.tamh-filter > * { flex: 1 1 auto; }
}

.tamh-pagination { display: flex; gap: 4px; justify-content: center; align-items: center; padding: 14px; flex-wrap: wrap; }
.tamh-pagination a, .tamh-pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--tamh-radius-sm); text-decoration: none; font-weight: 600; font-size: 15px; }
.tamh-pagination a { border: 1px solid var(--tamh-line); background: #fff; }
.tamh-pagination span[aria-current] { background: var(--tamh-green); color: #fff; }
.tamh-pagination__gap { color: var(--tamh-sage); }

.tamh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tamh-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tamh-line); background: #fff; text-decoration: none; color: var(--tamh-ink-2) !important; font-weight: 600; font-size: 14.5px; }
.tamh-chips a span { color: var(--tamh-sage); font-weight: 500; }
.tamh-chips a.is-active { background: var(--tamh-forest); border-color: var(--tamh-forest); color: var(--tamh-parchment) !important; }
.tamh-chips a.is-active span { color: var(--tamh-gold-soft); }

/* Collapsible admin sections */
.tamh-accordion { display: grid; gap: 12px; }
.tamh-panel { background: var(--tamh-paper); border: 1px solid var(--tamh-line); border-radius: var(--tamh-radius); }
.tamh-panel > summary { list-style: none; cursor: pointer; padding: 18px 22px; display: grid; gap: 2px; position: relative; padding-right: 56px; }
.tamh-panel > summary::-webkit-details-marker { display: none; }
.tamh-panel > summary span { font-family: var(--tamh-serif); font-size: 24px; font-weight: 600; color: var(--tamh-forest); }
.tamh-panel > summary small { color: var(--tamh-sage); font-size: 14.5px; }
.tamh-panel > summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--tamh-green); border-bottom: 2px solid var(--tamh-green); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.tamh-panel[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.tamh-panel__body { padding: 4px 22px 24px; border-top: 1px solid var(--tamh-line-soft); padding-top: 20px; }

/* Plugin shortcodes inside a normal theme (layout option off) */
body:not(.tamh-full-layout) .tamh-home, body:not(.tamh-full-layout) .tamh-portal, body:not(.tamh-full-layout) .tamh-auth { font-family: var(--tamh-sans); color: var(--tamh-ink); }

@media (prefers-reduced-motion: reduce) {
	.tamh-slide, .tamh-slide.is-active, .tamh-arch img, .tamh-btn, .tamh-details > summary::before { transition: none !important; }
	.tamh-arch img { transform: none !important; }
	html { scroll-behavior: auto !important; }
}
html:has(body.tamh-full-layout) { scroll-behavior: smooth; scroll-padding-top: 88px; }
