/* ──────────────────────────────────────────────────────────────────────────
   TDH Theme — main.css
   Global styles, utility classes, and component overrides for block themes.
   ────────────────────────────────────────────────────────────────────────── */

/* Google Fonts are enqueued via functions.php; no @import needed here. */

/* ── Reset / Base ──────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #111820;
  background-color: #f5f4f0;
  margin: 0;
}

/* ── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: #193354;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #5a5a50;
}

a {
  color: #193354;
  text-decoration: underline;
  transition: color 0.15s ease;
}
a:hover {
  color: #697334;
}

/* ── Utility classes used in block patterns ────────────────────────────────── */

.tdh-mono-label {
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: 0.725rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tdh-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.tdh-section--navy {
  background-color: #193354;
  color: #ffffff;
}
.tdh-section--white {
  background-color: #ffffff;
}
.tdh-section--off-white {
  background-color: #f5f4f0;
}

/* ── Hero texture parallax ─────────────────────────────────────────────────── */

.tdh-hero {
  position: relative;
  overflow: hidden;
  min-height: 70svh !important;
  display: flex;
  align-items: center;
  background-color: #193354;
}

.tdh-hero::after,
.tdh-page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15vw;
  width: clamp(18rem, 42vw, 40rem);
  aspect-ratio: 354.474 / 111.305;
  background: url("../images/logo-version-3-white.svg") no-repeat center / contain;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.tdh-hero__texture {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.tdh-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 51, 84, 0.20);
}

.tdh-page-hero {
  position: relative;
  overflow: hidden;
  background-color: #193354;
}

.tdh-page-hero__texture {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.tdh-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 51, 84, 0.20);
}

.tdh-page-hero__inner {
  position: relative;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.wp-block-navigation {
  --nav-color: rgba(255,255,255,0.65);
  --nav-active-color: #ffffff;
  --nav-hover-color: #ffffff;
}

.tdh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #193354;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.admin-bar .tdh-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .tdh-header {
    top: 46px;
  }
}

.tdh-header.is-scrolled {
  background: rgba(25, 51, 84, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.tdh-header__inner {
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wp-block-site-logo.tdh-header__logo img {
  height: 1.75rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.tdh-header__logo a,
.tdh-header__logo .custom-logo-link,
.tdh-footer__logo a,
.tdh-footer__logo .custom-logo-link {
  display: inline-flex;
  text-decoration: none;
  line-height: 0;
}

.wp-block-site-logo.tdh-footer__logo img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.tdh-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.tdh-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tdh-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: rgba(255,255,255,0.65);
}

.tdh-header__nav .wp-block-navigation__container {
  gap: 0.25rem;
}

.tdh-header__nav .wp-block-navigation-item__content {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.tdh-header__nav li:hover,
.tdh-header__nav li.current-menu-item {
  color: #ffffff;
}
.tdh-header__nav li.current-menu-item .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  border-radius: 9999px;
  background: #697334;
}

.tdh-header__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background: #697334;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.tdh-header__cta:hover {
  opacity: 0.9;
  color: #ffffff;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.wp-block-button__link,
.tdh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.tdh-btn--primary {
  background: #697334;
  color: #ffffff;
}
.tdh-btn--primary:hover {
  opacity: 0.9;
  color: #ffffff;
}

.tdh-btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
}
.tdh-btn--outline:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.tdh-btn--outline-navy {
  background: transparent;
  color: #193354;
  border: 1px solid rgba(25,51,84,0.25);
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */

.tdh-card {
  background: #f5f4f0;
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.tdh-card:hover {
  box-shadow: 0 4px 12px rgba(25,51,84,0.1);
}

.tdh-card--navy {
  background: #193354;
  border-color: rgba(255,255,255,0.08);
}

.tdh-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #697334;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tdh-card:hover .tdh-card__accent {
  opacity: 1;
}

/* ── Divider ───────────────────────────────────────────────────────────────── */

hr,
.wp-block-separator {
  border: none;
  border-top: 1px solid rgba(25,51,84,0.12);
  margin: 0;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */

.tdh-form label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #193354;
  margin-bottom: 0.375rem;
}

.tdh-form input,
.tdh-form select,
.tdh-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(25,51,84,0.2);
  background: #ffffff;
  color: #111820;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}
.tdh-form input:focus,
.tdh-form select:focus,
.tdh-form textarea:focus {
  border-color: #193354;
}
.tdh-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.tdh-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .tdh-form__grid { grid-template-columns: 1fr; }
}

.tdh-form__error {
  font-size: 0.75rem;
  color: #d4183d;
  margin-top: 0.25rem;
}

/* ── Responsive layout helpers ─────────────────────────────────────────────── */

.tdh-container {
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.tdh-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .tdh-grid-3 { grid-template-columns: 1fr; }
}

.tdh-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .tdh-grid-2 { grid-template-columns: 1fr; }
}

/* ── Body padding for fixed header ─────────────────────────────────────────── */

body {
  padding-top: 4rem;
}

/* ── Mobile nav ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .tdh-header .tdh-header__nav,
  .tdh-header .tdh-header__cta {
    display: none;
  }
  .tdh-header .tdh-mobile-nav-toggle {
    display: flex;
  }
}

.tdh-mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.25rem;
}

.tdh-mobile-menu {
  display: none;
  background: #193354;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tdh-mobile-menu.is-open {
  display: block;
}
.tdh-mobile-menu nav {
  max-width: 1152px;
  margin-inline: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tdh-mobile-menu a {
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: 2px;
  border-left: 3px solid transparent;
}
.tdh-mobile-menu a:hover,
.tdh-mobile-menu a.current-menu-item {
  color: #ffffff;
  background: rgba(105,115,52,0.12);
  border-left-color: #697334;
}

/* ── Semantic section & card components (FSE-editable) ─────────────────────── */

.tdh-section--bordered {
  border-top: 1px solid rgba(25,51,84,0.08);
}
.tdh-section--narrow {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Eyebrow label with olive rule */
.tdh-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.tdh-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: #697334;
  flex-shrink: 0;
}
.tdh-eyebrow--navy {
  color: #193354;
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

/* Inline highlight */
mark.has-inline-color {
  background: transparent;
  padding: 0;
}

/* Hero inner text block (used inside core/cover) */
.tdh-hero__inner {
  max-width: 44rem;
}
.tdh-hero__inner .wp-block-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  margin-top: 1rem;
}
.tdh-hero__inner > p:not(.tdh-eyebrow) {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 38rem;
}
.tdh-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Page hero inner (used inside core/cover) */
.tdh-page-hero__inner {
  max-width: 34rem;
}
.tdh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.tdh-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

/* Card variants */
.tdh-card--white {
  background: #ffffff;
}
.tdh-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.tdh-card__num {
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: 0.75rem;
  color: rgba(25,51,84,0.3);
  margin: 0;
}
.tdh-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 2px;
  background: rgba(105,115,52,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Stat card */
.tdh-stat {
  background: #ffffff;
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tdh-stat__value {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2.25rem;
  color: #193354;
  margin: 0;
}
.tdh-stat__label {
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a5a50;
  margin: 0;
}

/* Value item (community values) */
.tdh-value {
  border-left: 3px solid #193354;
  padding-left: 1.25rem;
}
.tdh-value__title {
  color: #ffffff;
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}
.tdh-value__desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Team (full) member */
.tdh-team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.tdh-team-member__side {
  background: #193354;
  padding: 1.75rem;
  border-right: 1px solid rgba(25,51,84,0.12);
  display: flex;
  flex-direction: column;
}
.tdh-team-member__initials {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 2px;
  background: #697334;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
.tdh-team-member__bio {
  background: #ffffff;
  padding: 1.75rem;
}

/* Team preview card */
.tdh-team-card {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(25,51,84,0.1);
}
.tdh-team-card__head {
  background: #193354;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tdh-team-card__body {
  padding: 1.5rem;
}

/* Service section sidebar */
.tdh-service-sidebar {
  background: #193354;
  border-radius: 2px;
  padding: 2rem;
  position: sticky;
  top: 6rem;
}
.tdh-service-sidebar .wp-block-heading {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.tdh-service-sidebar p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Section heading rhythm */
.tdh-section-head {
  margin-bottom: 3rem;
}

/* Text link */
.tdh-text-link {
  margin: 0;
}
.tdh-text-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #193354;
  text-decoration: none;
  transition: opacity 0.15s;
}
.tdh-text-link a:hover {
  opacity: 0.65;
}

/* Card title & text */
.tdh-card__title {
  font-size: 1.25rem;
  color: #193354;
  margin-bottom: 0.75rem;
}
.tdh-card__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #5a5a50;
  margin-bottom: 1.5rem;
}

/* Quote */
.tdh-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #3a3a32;
  font-style: italic;
}

/* Team member text */
.tdh-team-member__name {
  color: #ffffff;
  font-size: 1.125rem;
}
.tdh-team-member__title {
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.tdh-team-member__detail {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #5a5a50;
}
.tdh-team-member__side .tdh-team-member__quals {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tdh-team-member__side .tdh-team-member__quals li {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
}
.tdh-team-member__side .tdh-team-member__quals li + li {
  margin-top: 0.4rem;
}

/* Page hero title */
.tdh-page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  max-width: 34rem;
}

/* Breadcrumb current page */
.tdh-breadcrumb strong {
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* Check list (service bullet points) */
.tdh-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tdh-check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: #3a3a32;
}
.tdh-check-list li + li {
  margin-top: 0.75rem;
}
.tdh-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #697334;
}

/* Map placeholder */
.tdh-map-placeholder {
  background: #e8e7e2;
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
  min-height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.tdh-map {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.tdh-map iframe {
  display: block;
  filter: grayscale(100%);
}
.tdh-map__mask {
  position: absolute;
  inset: 0;
  background: #193354;
  mix-blend-mode: color;
  pointer-events: none;
}

/* Contact form card */
.tdh-form-card {
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
}
.tdh-form-card__title {
  font-size: 1.5rem;
  color: #193354;
  margin-bottom: 0.5rem;
}
.tdh-form-card__intro {
  font-size: 0.875rem;
  color: #5a5a50;
  margin-bottom: 2rem;
}

/* Office card */
.tdh-office-card {
  border-radius: 2px;
}
.tdh-office-card__title {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}
.tdh-office-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tdh-office-card__list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.tdh-office-card__list li + li {
  margin-top: 1rem;
}
.tdh-office-card__list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.tdh-office-card__list a:hover {
  color: #ffffff;
}

/* Staff list */
.tdh-staff {
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
}
.tdh-staff__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tdh-staff__list li {
  font-size: 0.875rem;
  color: #5a5a50;
}
.tdh-staff__list li + li {
  margin-top: 0.4rem;
}

/* ── Hero / page-hero inner container + content alignment ─────────────────── */

.tdh-hero .wp-block-cover__inner-container,
.tdh-page-hero .wp-block-cover__inner-container {
  max-width: 1152px;
  margin-inline: auto;
}
.tdh-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 8rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.tdh-page-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.tdh-hero .tdh-hero__inner,
.tdh-page-hero .tdh-page-hero__title {
  margin-left: 0 !important;
  margin-right: auto;
}

/* ── Translucent body text (on navy) ──────────────────────────────────────── */

.tdh-body-light {
  color: rgba(255, 255, 255, 0.65);
}
.tdh-body-light--soft {
  color: rgba(255, 255, 255, 0.6);
}
.tdh-muted {
  color: rgba(25, 51, 84, 0.4);
}

/* ── Card accent (olive edge on hover) ────────────────────────────────────── */

.tdh-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #697334;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tdh-card:hover::before {
  opacity: 1;
}

/* ── Button arrow ─────────────────────────────────────────────────────────── */

.wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 0.5rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── Decorative icon (service cards, etc.) ────────────────────────────────── */

.tdh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tdh-icon--square {
  width: 3rem;
  height: 3rem;
  border-radius: 2px;
  background: rgba(105, 115, 52, 0.1);
}
.tdh-icon svg {
  display: block;
}

/* Service section head (boxed icon + number) */
.tdh-service-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}


/* ── Spacing rhythm (WP flow layout resets child margins) ─────────────────── */

:is(.wp-block-post-content, .editor-styles-wrapper) p:not([class*="tdh-"]),
:is(.wp-block-post-content, .editor-styles-wrapper) p.tdh-body-light {
  margin-bottom: 1rem;
}
:is(.wp-block-post-content, .editor-styles-wrapper) h2.wp-block-heading:not([class*="tdh-"]) {
  margin-bottom: 1.5rem;
}
:is(.wp-block-post-content, .editor-styles-wrapper) .is-layout-flex > .wp-block-group > h2.wp-block-heading {
  margin-bottom: 0;
}
:is(.wp-block-post-content, .editor-styles-wrapper) :is(.tdh-container, .wp-block-column, .is-layout-flex > .wp-block-group) > .tdh-mono-label:not(.tdh-muted) {
  margin-bottom: 0.75rem;
}
:is(.wp-block-post-content, .editor-styles-wrapper) p + .wp-block-buttons {
  margin-top: 2rem;
}
:is(.wp-block-post-content, .editor-styles-wrapper) p + .tdh-check-list {
  margin-top: 2rem;
}

:is(.wp-block-post-content, .editor-styles-wrapper) .tdh-hero .tdh-hero__inner > p:not(.tdh-eyebrow) {
  margin-bottom: 3rem;
}

:is(.wp-block-post-content, .editor-styles-wrapper) .tdh-page-hero .tdh-breadcrumb {
  margin-bottom: 1.5rem;
}
:is(.wp-block-post-content, .editor-styles-wrapper) .tdh-page-hero .tdh-mono-label {
  margin-bottom: 1rem;
}

:is(.wp-block-post-content, .editor-styles-wrapper) .tdh-service-head {
  margin-bottom: 1.5rem;
}
:is(.wp-block-post-content, .editor-styles-wrapper) .tdh-team-member__bio .tdh-team-member__detail {
  margin-bottom: 0.75rem;
}
:is(.wp-block-post-content, .editor-styles-wrapper) .wp-block-column > .tdh-grid-2 {
  gap: 1rem;
}

.wp-block-column.tdh-card {
  display: flex;
  flex-direction: column;
}
.tdh-card .tdh-card__text {
  flex: 1;
}

.tdh-mono-label--on-navy {
  color: rgba(255, 255, 255, 0.4);
}
.tdh-map-placeholder__label {
  color: #5a5a50;
}
.tdh-map-placeholder__hint {
  font-size: 0.75rem;
  color: rgba(25, 51, 84, 0.4);
}

.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > * {
  max-width: none;
}

/* ── Responsive: stack team member cards on small screens ─────────────────── */

@media (max-width: 700px) {
  .tdh-team-member {
    grid-template-columns: 1fr;
  }
  .tdh-team-member__side {
    border-right: none;
    border-bottom: 1px solid rgba(25,51,84,0.12);
  }
}

/* ── Footer edge padding matches the header in all states ─────────────────── */

.tdh-footer .tdh-container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Sections use the same edge inset as the header/footer ────────────────── */

.wp-block-post-content > .wp-block-group.has-background {
  padding-left: 0;
  padding-right: 0;
}

.wp-block-cover.tdh-hero,
.wp-block-cover.tdh-page-hero {
  padding-left: 0;
  padding-right: 0;
}

/* ── Footer columns: narrower Quick Links, wider Contact (desktop) ────────── */

@media (min-width: 1024px) {
  .tdh-footer__grid {
    grid-template-columns: 1fr 0.7fr 1.3fr 1fr;
  }
}

/* ── Feature cards (Why TDH / Community) ──────────────────────────────────── */

.tdh-feature {
  background: #ffffff;
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
  padding: 1.5rem;
}
.tdh-feature__title {
  font-size: 1.125rem;
  color: #193354;
  margin: 1.25rem 0 0.5rem;
}
.tdh-feature__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #5a5a50;
  margin: 0;
}
.tdh-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: #697334;
  margin-top: 1.5rem;
}

/* ── Affiliations marquee (editable blocks, cloned by JS for the loop) ────── */

.tdh-marquee {
  overflow: hidden;
  margin-top: 2.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tdh-marquee .tdh-marquee__track {
  width: max-content;
  gap: 0;
  animation: tdh-marquee 45s linear infinite;
}
.tdh-marquee:hover .tdh-marquee__track {
  animation-play-state: paused;
}
@keyframes tdh-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tdh-partner {
  flex: 0 0 auto;
  min-width: 11rem;
  min-height: 5rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(25,51,84,0.12);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdh-partner p {
  margin: 0;
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: #193354;
  white-space: nowrap;
}

/* ── Team card (homepage) ─────────────────────────────────────────────────── */

.tdh-team-card__bio {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #5a5a50;
  margin: 0 0 1rem;
}
.tdh-team-card__link {
  margin: 0;
}
.tdh-team-card__link a {
  font-size: 0.75rem;
  font-weight: 500;
  color: #193354;
  text-decoration: none;
}

/* ── Testimonials (homepage) ──────────────────────────────────────────────── */

.tdh-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}
.tdh-testimonial__initials {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  background: #193354;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.tdh-testimonial__name {
  font-size: 0.875rem;
  color: #193354;
  margin: 0;
}
.tdh-testimonial__role {
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #697334;
  margin: 0;
}
.tdh-testimonial__note {
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: 0.6875rem;
  color: rgba(25,51,84,0.4);
  text-align: center;
  margin: 2rem 0 0;
}

/* ── CTA banner (left aligned) ────────────────────────────────────────────── */

.tdh-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Dark-section helpers ─────────────────────────────────────────────────── */

.tdh-text-link--light a { color: #ffffff; }
.tdh-team-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 1.75rem;
  height: 100%;
}
.tdh-team-card .tdh-team-member__name { color: #ffffff; }
.tdh-team-card .tdh-team-member__title { color: rgba(255,255,255,0.45); }
.tdh-team-card .tdh-team-card__bio { color: rgba(255,255,255,0.65); }
.tdh-team-card .tdh-team-card__link a { color: #ffffff; }
.tdh-staff--on-navy { border: 1px solid rgba(255,255,255,0.12); }
.tdh-staff--on-navy .tdh-mono-label { color: rgba(255,255,255,0.4); }
.tdh-staff--on-navy .tdh-staff__list li { color: rgba(255,255,255,0.65); }

/* ── CTA banner background (matches the design) ───────────────────────────── */

.tdh-cta {
  background-color: #233c5d;
}

/* ── Affiliations: logo above name, monochrome navy ───────────────────────── */

.tdh-partner {
  flex-direction: column;
  gap: 0.6rem;
}
.tdh-partner img {
  height: 1.75rem;
  width: auto;
  max-width: 8.5rem;
  object-fit: contain;
}
.tdh-partner .wp-block-image {
  margin: 0;
}

.tdh-marquee .tdh-partner {
  margin: 0 0.5rem 0 0;
}
.tdh-marquee .tdh-partner .wp-block-paragraph,
.tdh-marquee .tdh-partner p {
  margin: 0;
}
