/* Professional visual pass — keeps layout/JS, removes generic AI-template cues. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Serif:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "IBM Plex Serif", Georgia, serif;
  --font-hero: "IBM Plex Serif", Georgia, serif;
  --dark: #1c1916;
  --dark-soft: #4a453f;
  --bg-light: #f7f5f2;
  --bg-beige: #f3efe9;
  --gray-100: #f4f2ef;
  --radius: 2px;
  --radius-lg: 3px;
  --shadow: 0 1px 0 rgba(28, 25, 22, 0.08);
  --shadow-hover: 0 8px 24px rgba(28, 25, 22, 0.08);
  --primary-dark: #d45808;
}

body {
  letter-spacing: 0;
  background: #fbfaf8;
  color: var(--dark);
}

.cft-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
  line-height: 0;
}

.cft-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cft-icon-lg {
  width: 1.7em;
  height: 1.7em;
}

.cft-icon-spin svg {
  animation: cft-spin 0.85s linear infinite;
}

@keyframes cft-spin {
  to { transform: rotate(360deg); }
}

.navbar {
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #e4dfd8;
}

.navbar.scrolled {
  box-shadow: none;
  border-bottom-color: #d8d2c9;
}

.logo-img-wrap,
.logo-img-wrap img {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.logo-img-wrap {
  padding: 0;
  margin: 0;
  background: none;
}

.logo-img-wrap::before,
.logo-img-wrap::after,
.logo::before,
.logo::after {
  content: none !important;
  display: none !important;
  border: none !important;
}

.nav-inner {
  min-height: 92px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 0;
}

.logo-img-wrap img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 576px) {
  .nav-inner {
    min-height: 84px;
  }

  .logo {
    gap: 2px;
  }

  .logo-img-wrap img {
    height: 38px;
  }

  .logo-text {
    font-size: 0.58rem;
  }
}

.nav-link {
  border-radius: 0;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background: transparent;
  color: var(--primary);
}

.nav-link.has-dropdown::after {
  content: "";
  font-family: inherit;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(28, 25, 22, 0.12);
  border: 1px solid #e4dfd8;
}

.dropdown a:hover {
  padding-left: 20px;
  background: #f7f5f2;
}

.hero-overlay {
  justify-content: center;
  align-items: center;
  overflow: hidden !important;
  overflow-y: hidden !important;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.28) 0%, rgba(16, 14, 12, 0.55) 100%);
}

.hero-text-wrap {
  max-width: min(720px, 92%);
  margin: 0 auto;
  text-align: center;
  perspective: none;
}

.hero-tagline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  justify-content: center;
}

h1.hero-typewriter,
.hero-tagline,
.hero-buttons.hero-entrance-cta,
.hero-eyebrow {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.hero {
  min-height: 480px !important;
  height: 480px !important;
  max-height: 480px !important;
  overflow: hidden !important;
}

.hero-slides,
.hero-slide,
.hero-slide-bg {
  height: 100%;
}

.hero-scroll-indicator {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  .hero-overlay {
    position: relative;
    min-height: 380px;
    padding: 48px 24px 56px !important;
    overflow: visible !important;
  }

  .hero-text-wrap {
    max-width: 100% !important;
    width: 100%;
  }

  h1.hero-typewriter {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: clamp(1.5rem, 4.2vw, 2.35rem) !important;
  }

  .hero-tagline {
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  .hero-overlay {
    position: relative;
    align-items: flex-end;
    justify-content: center;
    min-height: 360px;
    padding: 28px 16px 44px !important;
    overflow: visible !important;
    background: linear-gradient(
      to top,
      rgba(16, 14, 12, 0.9) 0%,
      rgba(16, 14, 12, 0.55) 48%,
      rgba(16, 14, 12, 0.22) 100%
    ) !important;
  }

  .hero-text-wrap {
    margin: 0;
    max-width: 100% !important;
    width: 100%;
    padding: 0 !important;
    text-align: center;
  }

  h1.hero-typewriter {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 6.2vw, 1.85rem) !important;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  }

  .hero-tagline {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100%;
    font-size: 0.92rem !important;
    line-height: 1.4;
    text-align: center;
  }

  .hero-buttons {
    width: 100%;
    margin-top: 14px !important;
    padding: 0 !important;
    gap: 8px;
    justify-content: stretch;
    flex-wrap: nowrap;
  }

  .hero .hero-cta-btn {
    flex: 1 1 0;
    min-width: 0 !important;
    width: auto;
    padding: 12px 8px !important;
    font-size: 0.88rem !important;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }

  .hero .btn-primary.hero-cta-btn {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .hero .btn-outline.hero-cta-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 2px solid #fff;
  }

  .hero-dots {
    bottom: 10px;
    gap: 8px;
  }

  .page-hero,
  .page-hero-compact {
    min-height: 280px !important;
    padding: 32px 16px 36px !important;
  }

  .page-hero-inner,
  .page-hero-text {
    max-width: 100%;
    width: 100%;
  }

  .page-hero-text h1,
  .page-hero-text .page-hero-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .page-hero-text p,
  .page-hero-text .page-hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
    min-height: 340px;
    padding: 22px 12px 40px !important;
  }

  .hero-buttons {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .hero .hero-cta-btn {
    width: 100%;
    flex: 1 1 auto;
    padding: 13px 12px !important;
    font-size: 0.95rem !important;
  }
}

h1.hero-typewriter {
  margin: 0 0 1rem;
  white-space: normal;
}

.hero-marquee-track {
  animation: none !important;
  display: block;
  width: auto;
}

.hero-marquee-item {
  white-space: normal;
}

.hero-marquee-item + .hero-marquee-item {
  display: none;
}

.hero-typewriter {
  font-family: var(--font-hero);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.hero-tagline {
  text-align: center;
  max-width: 36rem;
}

.hero-buttons {
  justify-content: center;
}

.hero,
.hero-overlay,
.hero-slides,
.hero-slide,
.hero-slide-bg,
.hero-slide-bg img {
  overflow: hidden;
}

.hero-slide-bg,
.hero-slide.active .hero-slide-bg,
.hero-slide-bg img {
  animation: none !important;
  transform: none !important;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  border-width: 1px;
  transform: none !important;
}

.hero-scroll-indicator-inner {
  animation: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.02rem;
}

.card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #e4dfd8;
  background: #fff;
}

.card::before {
  display: none;
}

.card:hover {
  transform: none;
  box-shadow: none;
  border-color: #cfc7bc;
  background: #fff;
}

.card:hover .card-icon {
  background: transparent;
  color: var(--primary);
}

.card-with-image .card-image {
  border-radius: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  border: 1px solid #e4dfd8;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.card-icon .cft-icon,
.sponsorship-write-envelope .cft-icon,
.payment-success-icon .cft-icon,
.payment-method-icon .cft-icon,
.newsletter-status-icon .cft-icon {
  width: 1.35em;
  height: 1.35em;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.about-values-card:hover .about-values-icon,
.about-values-card:focus-within .about-values-icon {
  transform: none;
}

.btn {
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn:hover,
.btn-primary:hover,
.hero .hero-cta-btn:hover {
  transform: none;
  box-shadow: none;
}

.cta-section {
  background: var(--primary);
}

.impact-stat {
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.impact-stat::before {
  display: none;
}

/* Regulate decorative orange lines — keep orange on buttons, logo, and links. */
.content-block h2,
.donate-summary h3,
.donate-bank-details,
#donate .bank-account-header {
  border-bottom: none;
  border-top: none;
}

.content-block h2 {
  padding-bottom: 0;
}

.donate-summary h3 {
  border-bottom: 1px solid #e4dfd8;
}

#donate .donor-message-section::before,
.card::before,
.home-program-card::after,
.home-program-card .card-image::after,
.our-work-overview-card .card-image::after,
.our-work-program-section .program-card-image::after,
.about-mission-card::after,
.about-objectives-card::after,
.about-team-title::after,
.about-team-section.in-view .about-team-title::after,
.sponsorship-info-card::after,
.home-news-card .image-with-caption .img-wrap::after,
.news-story-card .news-story-card-image .img-wrap::after,
.get-involved-volunteer-img .img-wrap::after,
.child-card-image::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sponsorship-info-card {
  border-top: 1px solid #e4dfd8;
}

#donate .transfer-instructions {
  border-left: 1px solid #e4dfd8;
  border-color: #e4dfd8;
  background: #f7f5f2;
}

.our-work-program-cta,
.about-values-card h3,
.home-news-link,
.home-explore-link,
a.home-news-cta,
.news-card-link a,
.home-programs-cta,
.home-footer a,
.about-footer-col a,
.news-footer-col a,
.get-involved-footer-col a,
.contact-footer-col a,
.sponsorship-footer-col a,
.footer a {
  background-image: none !important;
  background-size: 0 !important;
}

.our-work-program-cta:hover,
.our-work-program-cta:focus-visible,
.about-values-card:hover h3,
.about-values-card:focus-within h3,
.home-footer a:hover,
.about-footer-col a:hover,
.news-footer-col a:hover,
.get-involved-footer-col a:hover {
  background-size: 0 !important;
}

.donate-payment-choices,
.payment-success-box {
  border-top-color: #e4dfd8;
  border-color: #e4dfd8;
}

.card:hover {
  border-color: #e4dfd8;
}

.impact-stat .number {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark);
}

.home-programs-section .home-program-card:nth-child(3n + 1) {
  grid-row: span 1;
}

.footer {
  background: #171411;
}

.footer-social-link,
.footer-social-instagram,
.footer-social-linkedin,
.footer-social-x,
.footer-social-tiktok {
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonials-slide.card {
  border-radius: 0;
}

.sponsorship-write-envelope,
.payment-success-icon,
.payment-method-icon,
.newsletter-status-icon {
  border-radius: 0 !important;
}

.newsletter-status-icon {
  width: 56px !important;
  height: 56px !important;
}

.work-features {
  background: #fff;
}

.work-feature {
  scroll-margin-top: 84px;
  border-bottom: 1px solid #e4dfd8;
}

.work-feature:nth-child(even) {
  background: #f7f5f2;
}

.work-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 5vw;
}

.work-feature-media img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.work-feature-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.work-feature-copy h3 {
  margin: 1.15rem 0 0.3rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.work-feature-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #3f3a35;
}

.work-feature-copy p + p,
.work-feature-copy h3 + p {
  margin-top: 0;
}

@media (max-width: 800px) {
  .work-feature-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 16px;
  }

  .work-feature-media img {
    height: 220px;
  }
}

/* All text fields: no orange edge glow on focus; small tick when filled. */
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="image"]):not([type="range"]):not([type="color"]):focus,
textarea:focus,
select:focus {
  border-color: var(--gray-300, #ddd) !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-group {
  position: relative;
}

input.is-valid,
textarea.is-valid,
select.is-valid {
  border-color: var(--gray-300, #ddd) !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%233d7a40' stroke-width='1.8' stroke-linecap='square' d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px 12px !important;
  padding-right: 2rem;
}

.footer input.is-valid,
.footer textarea.is-valid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2390c695' stroke-width='1.8' stroke-linecap='square' d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E") !important;
}

/* Headings stay in normal flow. A leftover translateY was dropping them into the cards below. */
.section-title,
.section-subtitle,
.about-mission-title,
.about-objectives-title,
.about-values-title,
.about-team-title,
.about-team-subtitle,
.our-work-overview-title,
.work-feature-copy h2,
.work-feature-copy h3,
.news-stories-title,
.news-stories-subtitle,
.get-involved-donate-title,
.get-involved-donate-subtitle,
.get-involved-volunteer-title,
.get-involved-volunteer-subtitle,
.contact-map-heading,
.sponsorship-about-heading,
.sponsorship-subheading,
.sponsorship-write-heading,
.sponsorship-children-title,
.home-programs-title,
.home-programs-subtitle,
.home-impact-title,
.home-impact-subtitle,
.home-newsletter-title,
.home-newsletter-subtitle,
.home-news-title-visible,
.home-cta-section .section-title,
.home-cta-section .section-subtitle {
  position: relative;
  z-index: 1;
  scroll-margin-top: 88px;
  transform: none !important;
  clip-path: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible;
}

@media (max-width: 768px) {
  .section,
  .section.about-snippet {
    padding: 32px 18px 40px;
  }

  .about-mission-section,
  .about-objectives-section,
  .about-values-section,
  .about-team-section {
    padding: 1.6rem 0 0.25rem;
    overflow: visible;
  }

  .about-snippet .about-mission-section {
    padding-top: 0;
  }

  .about-snippet .section-title,
  .about-team-title,
  .section-title {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    text-align: left;
    line-height: 1.25;
  }

  .about-snippet .section-subtitle,
  .about-team-section .about-team-subtitle,
  .section-subtitle {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    text-align: left;
  }

  .about-team-section {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }

  .about-team-section::before,
  .about-team-section::after,
  .about-team-title::after {
    display: none;
  }

  .about-mission-cards,
  .about-objectives-grid,
  .about-values-grid,
  .about-team-cards,
  .cards-grid,
  .cards-grid.cards-grid-work,
  .contact-cards-wrap,
  .news-stories-grid,
  .home-news-grid,
  .impact-stats,
  .get-involved-volunteer-grid,
  .sponsorship-cards-grid,
  .children-grid,
  .images-grid,
  .payment-method-grid {
    grid-template-columns: 1fr !important;
    margin-top: 0;
  }

  .about-snippet .cards-grid {
    margin-top: 0;
    gap: 12px;
  }

  .card,
  .about-mission-card,
  .about-objectives-card,
  .about-values-card {
    overflow: visible;
  }

  .card h3,
  .about-objectives-section .card h3,
  .about-team-card .team-card-name {
    font-size: 1.05rem;
    line-height: 1.35;
    overflow: visible;
  }

  .card:hover,
  .about-mission-card:hover,
  .about-mission-card:focus-within,
  .about-objectives-card:hover,
  .about-objectives-card:focus-within,
  .about-values-card:hover,
  .about-values-card:focus-within,
  .about-team-card:hover,
  .about-team-card:focus-within,
  .news-story-card:hover,
  .news-story-card:focus-within {
    transform: none;
  }

  .nav-inner {
    min-width: 0;
    gap: 8px;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-text {
    font-size: clamp(0.78rem, 3.4vw, 1rem);
    line-height: 1.15;
  }

  .page-hero-text,
  .page-hero-inner,
  .hero-text-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .work-feature-copy h2,
  .work-feature-copy h3,
  .work-feature-copy p {
    text-align: left;
  }

  .newsletter-form,
  .about-footer-form,
  .sponsorship-footer-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input,
  .about-footer-form input,
  .sponsorship-footer-form input,
  .about-footer-form span {
    width: 100%;
    min-width: 0;
  }
}

.home-program-card a.home-explore-link {
  display: inline;
  margin: 0;
  padding: 0;
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  color: var(--primary);
  font-weight: 400;
  font-size: inherit;
  line-height: 1.5;
  text-align: left;
}

.home-program-card a.home-explore-link:hover,
.home-program-card a.home-explore-link:focus-visible {
  background: none !important;
  color: var(--primary-dark);
  box-shadow: none !important;
  transform: none;
}

.home-program-card p:has(> a.home-explore-link) {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Sponsorship children: same text link as news, no filled button. */
.child-card-excerpt {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dark-soft);
}

.child-card-read {
  margin: 10px 0 0;
}

button.news-story-link,
.child-modal .news-story-link {
  display: inline;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

button.news-story-link:hover,
button.news-story-link:focus-visible,
.child-modal .news-story-link:hover,
.child-modal .news-story-link:focus-visible {
  background: none;
  color: #9a3412;
  transform: none;
}

.children-grid .child-card,
.children-grid.in-view .child-card {
  animation: none;
  opacity: 1;
  transform: none;
}

.child-card:hover,
.child-card:hover .name,
.child-card:hover .child-card-image img {
  transform: none;
  color: inherit;
}

.child-card:hover .name {
  color: var(--dark);
}

.child-modal-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--dark-soft);
}

.child-story-text p {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
}

.child-story-text p:last-child {
  margin-bottom: 0;
}

.child-modal-sponsor {
  margin: 1.25rem 0 0;
}

.child-modal-overlay.modal-open .child-modal-image img,
.child-modal-overlay.modal-open .sponsorship-modal-detail,
.child-modal-close:hover {
  animation: none;
  transform: none;
}

.child-card,
.news-story-card,
.home-news-card,
.about-team-card {
  display: flex;
  flex-direction: column;
}

.child-card-body,
.news-card-body,
.about-team-card .team-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.child-card-read,
.news-card-link,
.team-card-read {
  margin-top: auto;
  padding-top: 14px;
  margin-bottom: 0;
}

.news-story-date,
.home-news-date {
  display: block;
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-soft);
  animation: none !important;
}

.news-story-card-image img,
.news-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-stories-section.in-view .news-story-card,
.news-stories-section.in-view .news-story-date,
.home-news-section.in-view .home-news-card,
.home-news-section.in-view .home-news-date,
.about-team-section.in-view .about-team-card,
.about-team-section.in-view .about-team-card .team-card-image img,
.about-team-card,
.about-team-card:hover,
.about-team-card:focus-within,
.news-story-card,
.news-story-card:hover,
.home-news-card,
.home-news-card:hover {
  animation: none !important;
  transform: none !important;
  opacity: 1;
}

.about-team-card:hover .team-card-image,
.about-team-card:focus-within .team-card-image,
.about-team-card:hover .team-card-image img,
.about-team-card:focus-within .team-card-image img,
.about-team-card:hover .team-card-name,
.about-team-card:focus-within .team-card-name,
.about-team-card:hover .team-card-role,
.about-team-card:focus-within .team-card-role {
  transform: none !important;
  box-shadow: none !important;
  color: inherit;
}

.about-team-card .team-card-name {
  color: var(--dark);
}

.team-card-footer,
.team-card-bio-sep,
.about-team-card .team-card-image::before {
  display: none !important;
}

.about-team-card .team-card-bio {
  color: var(--dark-soft);
  font-size: 0.9rem;
}

.team-bio-toggle.bio-toggle-visible {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.sponsorship-filter-item select {
  min-width: 10.5rem;
}

.sponsorship-filter-item.has-value select {
  border-color: #c8c2b8;
  background: #fff;
  color: var(--dark);
}

.child-modal {
  width: min(56rem, 94vw);
  max-width: none;
  min-height: min(36rem, 92vh);
  max-height: 92vh;
  height: auto;
  grid-template-columns: 16rem minmax(0, 1fr);
  align-items: stretch;
  border-radius: 8px;
  transform: none;
  opacity: 1;
  overflow: hidden;
}

.child-modal-overlay.open .child-modal,
.child-modal-overlay.modal-open .child-modal.sponsorship-modal-visible {
  transform: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.child-modal-image {
  height: auto;
  min-height: 100%;
  aspect-ratio: auto;
}

.child-modal-image img,
.child-modal-overlay.modal-open .child-modal-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transform: none;
  animation: none;
}

.child-modal-body {
  min-height: 0;
  overflow-y: auto;
}

.child-story-text {
  min-height: calc(1.75em * 10);
  font-size: 1.05rem;
  line-height: 1.75;
}

a.read-more,
button.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

a.read-more::before,
button.read-more::before {
  content: "→";
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s ease;
}

a.read-more:hover,
a.read-more:focus-visible,
button.read-more:hover,
button.read-more:focus-visible {
  background: none;
  color: #9a3412;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
  box-shadow: none;
}

a.read-more:hover::before,
a.read-more:focus-visible::before,
button.read-more:hover::before,
button.read-more:focus-visible::before {
  transform: translateX(3px);
}

button.team-bio-toggle.read-more {
  display: none;
}

button.team-bio-toggle.read-more.bio-toggle-visible {
  display: inline-flex;
}

@media (max-width: 480px) {
  .child-modal {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 92vh;
  }

  .child-modal-image {
    height: 12rem;
    min-height: 0;
  }
}

.news-stories-empty {
  margin: 0;
  color: var(--dark-soft);
}

/* Directory cards: square photo, name, one line, then the story link. */
.children-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.child-card,
.about-team-card,
.team-card {
  border: 1px solid #e4dfd8;
  border-radius: 6px;
  box-shadow: none;
  background: #fff;
  cursor: default;
  overflow: hidden;
}

.child-card:hover,
.child-card:focus-within,
.about-team-card:hover,
.about-team-card:focus-within,
.about-team-card:active,
.team-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #c9c2b8;
  background: #fff;
}

.child-card .child-card-image,
.child-card .child-card-image img,
.about-team-card .team-card-image,
.about-team-card .team-card-image img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  transform: none;
  object-position: center 18%;
}

.child-card:hover .child-card-image img,
.child-card:hover .name,
.about-team-card:hover .team-card-image,
.about-team-card:hover .team-card-image img,
.about-team-card:hover .team-card-name {
  transform: none;
  box-shadow: none;
  color: var(--dark);
}

.child-card-body,
.about-team-card .team-card-body,
.team-card .team-card-body {
  padding: 12px 14px 14px;
  gap: 0;
}

.child-card-body .name,
.about-team-card .team-card-name,
.team-card .team-card-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  margin: 0 0 2px;
}

.child-card-body .meta,
.about-team-card .team-card-role,
.team-card .team-card-role {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: #5c564e;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.about-team-card .team-card-bio {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #5c564e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.9em;
}

.about-team-card .team-card-bio.bio-expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.child-card-read,
.team-card-read {
  margin-top: 10px;
  padding-top: 0;
}

.child-card-excerpt {
  display: none;
}
