/* DLS Vidya landing page base build v5 */
:root {
  --green: #0C6C1C;
  --pink: #F03C70;
  --leaf: #74B61D;
  --white: #FFFFFF;
  --soft-green: #EEF6EA;
  --soft-pink: #FDEAF0;
  --text: #202820;
  --shadow: 0 14px 34px rgba(12, 108, 28, 0.075);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Montserrat", "Avenir", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  background: var(--white);
  overflow: visible;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 16px clamp(22px, 4.8vw, 76px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(12, 108, 28, 0.06);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 350px;
}

.brand-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: 240px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 108, 28, 0.16);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-outline {
  color: var(--pink);
  border: 2px solid var(--pink);
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(46px, 6vw, 88px);
  align-items: center;
  padding: 52px clamp(34px, 5vw, 76px) 42px;
  position: relative;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 300px;
  height: 300px;
  left: -215px;
  top: 100px;
  background: rgba(116, 182, 29, 0.045);
}

.hero::after {
  width: 560px;
  height: 560px;
  right: -350px;
  top: 28px;
  background: rgba(240, 60, 112, 0.023);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--pink);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--green);
  line-height: 1.06;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 4.65vw, 70px);
  letter-spacing: -0.02em;
  max-width: 720px;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: #3f453f;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.logo-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 108, 28, 0.07);
  min-height: 255px;
  max-width: 560px;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
}

.logo-card img {
  width: min(100%, 420px);
  display: block;
}

.principles {
  margin: 0 clamp(26px, 4vw, 46px) 34px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 108, 28, 0.07);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.principle {
  text-align: center;
  padding: 28px 44px 31px;
  position: relative;
}

.principle-divider {
  position: absolute;
  left: -1px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--green);
  opacity: 0.72;
}

.principle-divider .flower {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: var(--white);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: var(--soft-green);
}

.principle:nth-child(2) .icon-circle {
  background: var(--soft-pink);
}

.icon-circle svg {
  width: 34px;
  height: 34px;
  stroke: var(--green);
  stroke-width: 1.8;
  fill: none;
}

.principle:nth-child(2) svg {
  stroke: var(--pink);
}

.principle h3 {
  font-size: 31px;
  margin-bottom: 8px;
}

.principle p {
  margin: 0 auto;
  max-width: 290px;
  font-size: 14px;
  color: #333833;
  line-height: 1.62;
}

.initiative {
  margin: 24px clamp(30px, 4.2vw, 54px) 34px;
  display: grid;
  grid-template-columns: 390px 1fr 270px;
  align-items: center;
  gap: 34px;
  padding: 22px 32px;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFEFA 100%);
  border: 1px solid rgba(12, 108, 28, 0.12);
  box-shadow: 0 12px 28px rgba(12, 108, 28, 0.055);
  border-radius: 18px;
}

.initiative-art {
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.initiative-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.initiative-label {
  color: var(--pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  margin-bottom: 8px;
}

.initiative h2 {
  font-size: 38px;
}

.initiative p {
  margin: 10px 0 0;
  color: #3f453f;
  font-size: 15px;
}

.offerings {
  padding: 0 clamp(30px, 4.2vw, 54px) 34px;
}

.section-title {
  text-align: center;
  margin: 0 auto 28px;
}

.section-title h2 {
  font-size: clamp(36px, 3.4vw, 48px);
}

.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 340px);
  margin: 12px auto 0;
  color: var(--pink);
}

.floral-divider::before, .floral-divider::after {
  content: "";
  height: 2px;
  flex: 1;
  background: var(--pink);
}

.floral-divider span {
  transform: rotate(45deg);
  color: var(--pink);
  font-size: 20px;
  line-height: 1;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.offer-card {
  background: var(--white);
  border: 1px solid rgba(12, 108, 28, 0.08);
  box-shadow: 0 12px 28px rgba(12, 108, 28, 0.055);
  border-radius: 18px;
  text-align: center;
  padding: 28px 24px 26px;
  min-height: 230px;
}

.offer-card:nth-child(even) .icon-circle {
  background: var(--soft-pink);
}

.offer-card:nth-child(even) .icon-circle svg {
  stroke: var(--pink);
}

.offer-card h3 {
  font-size: 23px;
  margin: 12px 0 8px;
}

.offer-card p {
  margin: 0;
  color: #3d433d;
  font-size: 14px;
  line-height: 1.62;
}

.contact-strip {
  margin: 0 clamp(36px, 5vw, 76px) 18px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(240, 60, 112, 0.25);
  border-bottom: 1px solid rgba(240, 60, 112, 0.25);
  gap: 18px;
  text-align: center;
  color: #2f362f;
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-item + .contact-item {
  border-left: 1px solid rgba(12, 108, 28, 0.15);
}

.contact-item svg {
  width: 25px;
  height: 25px;
  stroke: var(--green);
  stroke-width: 1.8;
  fill: none;
}

.site-footer {
  text-align: center;
  padding: 0 40px 26px;
  color: #5d6b61;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer-brand {
  margin: 0;
  font-weight: 600;
}
.site-footer-brand .footer-copyright,
.site-footer-brand .footer-tagline-line {
  display: inline;
}

.site-footer-brand .footer-tagline-line::before {
  content: " · ";
}


.site-footer a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--pink);
}

/* iPad / tablet */
@media (max-width: 1180px) {
  .quick-nav {
    display: none;
  }
  .site-header {
    padding: 14px 28px;
  }
  .header-brand {
    min-width: auto;
    gap: 12px;
  }
  .brand-icon {
    width: 62px;
    height: 62px;
  }
  .brand-wordmark {
    width: 205px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 34px;
    padding-right: 34px;
  }
  .logo-card {
    display: none;
  }
  h1 {
    font-size: clamp(40px, 5vw, 56px);
  }
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .initiative {
    grid-template-columns: 300px 1fr;
  }
  .initiative-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: -8px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .site-header {
    padding: 12px 14px;
    gap: 10px;
  }
  .header-brand {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand-icon {
    width: 44px;
    height: 44px;
  }
  .brand-wordmark {
    width: clamp(126px, 38vw, 150px);
  }
  .header-cta {
    padding: 10px 12px;
    font-size: 12px;
    display: inline-flex;
    flex: 0 0 auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 22px 30px;
    gap: 24px;
  }
  .logo-card {
    display: none;
  }
  h1 {
    font-size: 36px;
  }
  .hero-copy {
    font-size: 15px;
  }
  .principles {
    grid-template-columns: 1fr;
    margin: 0 22px 30px;
  }
  .principle {
    padding: 26px;
  }
  .principle-divider {
    left: 24px;
    right: 24px;
    top: -1px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .principle-divider .flower {
    top: 50%;
    left: 50%;
  }
  .initiative {
    grid-template-columns: 1fr;
    margin: 24px 22px 34px;
    padding: 20px;
    text-align: center;
  }
  .initiative-art {
    height: 170px;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
  }
  .initiative-btn {
    grid-column: auto;
    justify-self: center;
    margin-top: 0;
  }
  .offerings {
    padding: 0 22px 28px;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .contact-strip {
    grid-template-columns: 1fr;
    margin: 0 22px 18px;
    padding: 18px 0;
  }
  .contact-item + .contact-item {
    border-left: 0;
  }
  .site-footer {
    padding-bottom: 22px;
  }

  .site-footer-brand .footer-copyright,
  .site-footer-brand .footer-tagline-line {
    display: block;
  }

  .site-footer-brand .footer-tagline-line {
    margin-top: 0.12rem;
  }

  .site-footer-brand .footer-tagline-line::before {
    content: "";
  }
}

@media (max-width: 420px) {
  .brand-wordmark {
    width: 118px;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  h1 {
    font-size: 34px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-actions {
    gap: 12px;
  }
  .header-cta {
    padding: 9px 11px;
    font-size: 12px;
  }
}

/* ===== v9 fixes: fixed header, mobile overflow, and desktop-only Kichu & Leela link ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.page {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  overflow-x: clip;
  overflow-y: visible;
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(100%, 1680px) !important;
  z-index: 99999 !important;
}

main {
  padding-top: 112px;
}

.quick-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.quick-nav a {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  text-decoration: none;
}

.quick-nav a:hover {
  color: var(--pink);
}

@media (max-width: 1180px) {
  .quick-nav {
    display: none !important;
  }
  main {
    padding-top: 96px;
  }
}

@media (max-width: 760px) {
  .quick-nav {
    display: none !important;
  }
  .site-header {
    display: flex;
    padding: 10px 14px !important;
    gap: 10px !important;
  }
  .header-brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
  }
  .brand-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 auto !important;
  }
  .brand-wordmark {
    width: clamp(118px, 38vw, 150px) !important;
    max-width: 100% !important;
  }
  .header-cta {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
  }
  main {
    padding-top: 78px;
  }
  .hero {
    overflow: hidden;
  }
  h1 {
    overflow-wrap: break-word;
    word-break: normal;
  }
}

@media (max-width: 380px) {
  .brand-icon {
    width: 38px !important;
    height: 38px !important;
  }
  .brand-wordmark {
    width: 108px !important;
  }
  .header-cta {
    padding: 8px 9px !important;
    font-size: 11px !important;
  }
}

/* ===== Little Money Lab homepage integration ===== */
.quick-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.quick-nav a {
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: none;
}

.quick-nav a:hover {
  color: var(--pink);
}

.featured-work {
  margin: 24px clamp(30px, 4.2vw, 54px) 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.feature-card {
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFEFA 100%);
  border: 1px solid rgba(12, 108, 28, 0.12);
  box-shadow: 0 12px 28px rgba(12, 108, 28, 0.055);
  border-radius: 18px;
}

.featured-work .initiative {
  margin: 0;
  grid-template-columns: 320px 1fr 250px;
  min-height: 190px;
}

.learning-tool-card {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  background: linear-gradient(135deg, var(--soft-green) 0%, #FFFFFF 54%, var(--soft-pink) 100%);
}

.tool-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--green);
  background: var(--white);
  border: 1px solid rgba(12, 108, 28, 0.12);
  box-shadow: 0 8px 20px rgba(12, 108, 28, 0.065);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
}

.learning-tool-card h2 {
  font-size: 36px;
}

.learning-tool-card p {
  margin: 10px 0 20px;
  color: #3f453f;
  font-size: 15px;
  line-height: 1.62;
}

.tool-btn {
  align-self: flex-start;
}

@media (max-width: 1180px) {
  .featured-work {
    grid-template-columns: 1fr;
  }
  .featured-work .initiative {
    grid-template-columns: 300px 1fr;
  }
  .featured-work .initiative-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: -8px;
  }
}

@media (max-width: 760px) {
  .featured-work {
    grid-template-columns: 1fr;
    margin: 24px 22px 34px;
  }
  .featured-work .initiative {
    grid-template-columns: 1fr;
    padding: 20px;
    text-align: center;
  }
  .featured-work .initiative-btn {
    grid-column: auto;
    justify-self: center;
    margin-top: 0;
  }
  .learning-tool-card {
    padding: 22px 20px;
    text-align: center;
    align-items: center;
  }
  .tool-btn {
    align-self: center;
  }
}

/* ===== v17 featured work polish + shared nav style ===== */
.quick-nav {
  font-family: var(--sans);
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  gap: 28px !important;
}

.header-cta, .btn {
  font-family: var(--sans);
}

.featured-work {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.86fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.featured-work .initiative {
  display: grid !important;
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1fr) !important;
  gap: 30px !important;
  align-items: center !important;
  padding: 24px 30px !important;
  min-height: 220px !important;
}

.initiative-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.featured-work .initiative-art {
  width: 100%;
  height: 160px;
  border-radius: 16px;
}

.featured-work .initiative-btn {
  width: 100%;
  justify-self: stretch;
  margin: 0 !important;
  text-align: center;
}

.featured-work .initiative-copy {
  min-width: 0;
}

.featured-work .initiative-copy h2 {
  font-size: clamp(34px, 2.8vw, 48px);
  max-width: 520px;
}

.featured-work .initiative-copy p {
  max-width: 640px;
  line-height: 1.65;
}

.learning-tool-card {
  min-height: 220px !important;
  padding: 28px 30px !important;
}

.learning-tool-card h2 {
  font-size: clamp(32px, 2.35vw, 40px) !important;
}

.learning-tool-card .tool-btn {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--white);
}

.learning-tool-card .tool-btn:hover {
  color: var(--pink);
}

@media (max-width: 1180px) {
  .featured-work {
    grid-template-columns: 1fr !important;
  }
  .featured-work .initiative {
    grid-template-columns: 300px 1fr !important;
  }
}

@media (max-width: 760px) {
  .featured-work .initiative {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px !important;
    text-align: center;
  }
  .initiative-media {
    align-items: center;
  }
  .featured-work .initiative-art {
    height: 170px;
    max-width: 430px;
  }
  .featured-work .initiative-btn {
    width: auto;
    min-width: 240px;
  }
}

/* ===== v18 button alignment + shared primary/secondary styling ===== */
.btn {
  border-radius: 8px !important;
  padding: 12px 28px !important;
  min-height: 48px !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--green) !important;
  color: var(--white) !important;
  border: 2px solid var(--green) !important;
}

.btn-outline {
  color: var(--pink) !important;
  border: 2px solid var(--pink) !important;
  background: var(--white) !important;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(12, 108, 28, 0.16) !important;
}

.quick-nav {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  gap: 28px !important;
}

.quick-nav a {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.header-cta {
  min-width: 130px !important;
}

.featured-work {
  grid-template-columns: minmax(0, 1.68fr) minmax(330px, 0.86fr) !important;
  align-items: stretch !important;
}

.featured-work .initiative {
  grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.initiative-media {
  height: 100%;
  justify-content: center;
}

.featured-work .initiative-art {
  flex: 0 0 auto;
}

.featured-work .initiative-btn, .learning-tool-card .tool-btn {
  width: min(100%, 320px) !important;
  min-height: 54px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.learning-tool-card {
  justify-content: center !important;
}

.learning-tool-card .tool-btn {
  margin-top: 4px;
  align-self: flex-start !important;
}

@media (max-width: 1180px) {
  .featured-work .initiative {
    grid-template-columns: 300px 1fr !important;
    align-items: center !important;
  }
}

@media (max-width: 760px) {
  .featured-work .initiative-btn, .learning-tool-card .tool-btn {
    width: min(100%, 320px) !important;
    align-self: center !important;
  }
  .header-cta {
    min-width: auto !important;
  }
}

/* ===== v19: final button parity + featured-card button placement polish ===== */
.btn, .header-cta, .initiative-btn, .tool-btn {
  border-radius: 8px !important;
  min-height: 48px !important;
  padding: 12px 28px !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 180ms ease, box-shadow 180ms ease !important;
}

.btn-primary, .header-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border: 2px solid var(--green) !important;
}

.btn-outline, .initiative-btn, .tool-btn {
  background: var(--white) !important;
  color: var(--pink) !important;
  border: 2px solid var(--pink) !important;
  box-shadow: none !important;
}

.btn:hover, .btn:focus-visible, .header-cta:hover, .header-cta:focus-visible, .initiative-btn:hover, .initiative-btn:focus-visible, .tool-btn:hover, .tool-btn:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(12, 108, 28, 0.16) !important;
}

/* Keep secondary buttons visually secondary even on hover. */
.btn-outline:hover, .btn-outline:focus-visible, .initiative-btn:hover, .initiative-btn:focus-visible, .tool-btn:hover, .tool-btn:focus-visible {
  background: var(--white) !important;
  color: var(--pink) !important;
  border-color: var(--pink) !important;
}

.featured-work {
  align-items: stretch !important;
}

.featured-work .initiative {
  align-items: center !important;
}

.initiative-media {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  height: 100% !important;
}

.featured-work .initiative-art {
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  margin: 0 auto !important;
}

.featured-work .initiative-btn {
  width: min(100%, 360px) !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  align-self: center !important;
}

.featured-work .initiative-copy {
  align-self: center !important;
}

.learning-tool-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.learning-tool-card .tool-btn {
  width: min(100%, 360px) !important;
  max-width: 360px !important;
  margin-top: 18px !important;
  align-self: flex-start !important;
}

@media (max-width: 1180px) {
  .featured-work .initiative {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .featured-work .initiative {
    grid-template-columns: 1fr !important;
  }
  .featured-work .initiative-copy, .learning-tool-card {
    text-align: center !important;
    align-items: center !important;
  }
  .learning-tool-card .tool-btn, .featured-work .initiative-btn {
    align-self: center !important;
    width: min(100%, 320px) !important;
  }
  .header-cta {
    min-height: 38px !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }
}

/* ===== v20: lock featured-card CTA alignment ===== */
.featured-work {
  align-items: stretch !important;
  grid-template-columns: minmax(0, 1.95fr) minmax(360px, 0.95fr) !important;
}

.featured-work .feature-card {
  height: 100% !important;
  min-height: 330px !important;
}

.featured-work .initiative {
  display: grid !important;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr) !important;
  gap: 34px !important;
  align-items: stretch !important;
  padding: 28px 34px !important;
}

.initiative-media {
  height: 100% !important;
  min-height: 270px !important;
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  align-items: end !important;
  justify-items: center !important;
  gap: 22px !important;
}

.featured-work .initiative-art {
  align-self: end !important;
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  height: 170px !important;
  margin: 0 auto !important;
}

.featured-work .initiative-btn, .learning-tool-card .tool-btn {
  width: min(100%, 360px) !important;
  max-width: 360px !important;
  min-height: 52px !important;
  margin: 0 !important;
  align-self: auto !important;
  justify-self: start !important;
}

.featured-work .initiative-btn {
  justify-self: center !important;
}

.featured-work .initiative-copy {
  align-self: center !important;
  padding: 0 !important;
}

.learning-tool-card {
  min-height: 330px !important;
  display: grid !important;
  grid-template-rows: auto auto auto 1fr auto !important;
  align-items: start !important;
  justify-items: start !important;
  padding: 32px 34px !important;
}

.learning-tool-card .tool-btn {
  grid-row: 5 !important;
  align-self: end !important;
}

@media (max-width: 1180px) {
  .featured-work {
    grid-template-columns: 1fr !important;
  }
  .featured-work .initiative {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .featured-work .feature-card {
    min-height: auto !important;
  }
  .featured-work .initiative {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 18px !important;
    text-align: center !important;
  }
  .initiative-media {
    min-height: auto !important;
    gap: 16px !important;
  }
  .featured-work .initiative-art {
    height: 170px !important;
  }
  .learning-tool-card {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 22px 20px !important;
  }
  .featured-work .initiative-btn, .learning-tool-card .tool-btn {
    width: min(100%, 320px) !important;
    justify-self: center !important;
    align-self: center !important;
  }
}

/* ===== v21: mobile featured card order fix =====
   Desktop keeps the Kichu & Leela CTA visually under the image.
   Mobile orders the content as image -> copy -> button, so the CTA appears after the description. */
.featured-work .initiative {
  grid-template-rows: 1fr auto !important;
}

.featured-work .initiative-media {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: 210px !important;
}

.featured-work .initiative-copy {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}

.featured-work .initiative-btn {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: center !important;
  align-self: start !important;
}

@media (max-width: 760px) {
  .featured-work .initiative {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .featured-work .initiative-media {
    width: 100% !important;
    min-height: auto !important;
    order: 1 !important;
  }
  .featured-work .initiative-copy {
    order: 2 !important;
    width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .featured-work .initiative-btn {
    order: 3 !important;
    width: min(100%, 320px) !important;
    margin-top: 4px !important;
  }
}

@media (max-width: 760px) {
  .social-links {
    margin: 0 22px 20px;
  }
  .social-list {
    gap: 18px;
  }
}

.social-links {
  margin: 0 clamp(36px, 5vw, 76px) 22px;
  text-align: center;
}

.social-label {
  display: block;
  margin-bottom: 14px;
  color: #5b6158;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-list a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.social-list i {
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 760px) {
  .social-links {
    margin: 0 22px 20px;
  }
  .social-list {
    gap: 18px;
  }
  .social-list a {
    font-size: 14px;
  }
  .social-list i {
    font-size: 24px;
  }
}

/* ===== Little Color Lab homepage addition ===== */
.featured-work {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.featured-work .feature-card-primary {
  grid-column: 1 / -1 !important;
}

.color-tool-icon {
  color: transparent !important;
  background: radial-gradient(circle at center, #ffffff 0 24%, transparent 25%), conic-gradient(from 0deg, #ef4444, #f59e0b, #facc15, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444) !important;
  border: 8px solid #ffffff !important;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.12), 0 10px 22px rgba(24, 48, 31, 0.12) !important;
}

.color-tool-card .tool-btn:hover {
  background: var(--pink) !important;
  border-color: var(--pink) !important;
  color: #ffffff !important;
}

@media (max-width: 1180px) {
  .featured-work {
    grid-template-columns: 1fr !important;
  }
  .featured-work .feature-card-primary {
    grid-column: auto !important;
  }
}

/* ===== v18: Little Learning Labs grouped navigation ===== */
.learning-labs-menu {
  position: relative;
  flex: 0 0 auto;
}

.learning-labs-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.learning-labs-menu > summary::-webkit-details-marker {
  display: none;
}

.learning-labs-menu > summary::after {
  content: "▾";
  color: var(--pink);
  font-size: 0.78em;
  transform: translateY(-1px);
}

.learning-labs-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 100000;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(12, 108, 28, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(24, 48, 31, 0.13);
}

.learning-labs-menu:not([open]) .learning-labs-panel {
  display: none;
}

.quick-nav .learning-labs-panel a {
  display: block !important;
  padding: 11px 12px !important;
  border-radius: 10px;
  color: var(--green) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.quick-nav .learning-labs-panel a:hover, .quick-nav .learning-labs-panel a:focus-visible {
  background: var(--soft-green);
  color: var(--pink) !important;
}

.learning-label-short {
  display: none;
}

@media (max-width: 1180px) {
  .quick-nav {
    display: flex !important;
    margin-left: auto !important;
    margin-right: 14px !important;
    gap: 14px !important;
  }
  .quick-nav .external-nav-link {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .quick-nav {
    display: flex !important;
    margin-right: 6px !important;
    gap: 8px !important;
    font-size: 12px !important;
  }
  .learning-labs-menu > summary {
    font-size: 12px !important;
  }
  .learning-label-full {
    display: none;
  }
  .learning-label-short {
    display: inline;
  }
  .learning-labs-panel {
    right: 0;
    min-width: 190px;
  }
}

@media (max-width: 430px) {
  .quick-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 4px 0 0 !important;
  }
  .site-header {
    flex-wrap: wrap;
  }
}

/* ===== v8 polish: homepage mobile hamburger nav to match lab pages ===== */
.mobile-contact-link, .mobile-menu-toggle {
  display: none;
}

.quick-nav .home-link {
  display: none;
}

@media (min-width: 761px) {
  .quick-nav.header-links {
    display: flex !important;
  }
}

@media (max-width: 760px) {
  body.mobile-nav-open {
    overflow: hidden !important;
  }
  .site-header {
    min-height: 74px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }
  .header-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  .brand-icon {
    width: 42px !important;
    height: 42px !important;
  }
  .brand-wordmark {
    width: clamp(128px, 40vw, 166px) !important;
    max-width: 100% !important;
  }
  .header-cta {
    display: none !important;
  }
  .mobile-contact-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: var(--green) !important;
    color: #ffffff !important;
    border: 1px solid var(--green) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 10px 22px rgba(12, 108, 28, 0.14) !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    gap: 3px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(12, 108, 28, 0.18) !important;
    background: #ffffff !important;
    color: var(--green) !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px rgba(24, 48, 31, 0.08) !important;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible, .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--green) !important;
    border-color: var(--green) !important;
    outline: none !important;
  }
  .hamburger-line {
    display: block !important;
    width: 17px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: var(--green) !important;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease !important;
  }
  .mobile-menu-toggle:hover .hamburger-line, .mobile-menu-toggle:focus-visible .hamburger-line, .mobile-menu-toggle[aria-expanded="true"] .hamburger-line {
    background: #ffffff !important;
  }
  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg) !important;
  }
  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }
  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg) !important;
  }
  .quick-nav.header-links {
    position: fixed !important;
    top: 74px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99990 !important;
    display: none !important;
    width: 100vw !important;
    height: calc(100vh - 74px) !important;
    margin: 0 !important;
    padding: 24px clamp(22px, 6vw, 40px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    font-size: 0.95rem !important;
  }
  .quick-nav.header-links.open {
    display: flex !important;
  }
  .quick-nav .home-link, .quick-nav .nav-link, .learning-labs-menu > summary {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 14px !important;
    color: var(--green) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(12, 108, 28, 0.08) !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-align: left !important;
    text-decoration: none !important;
  }
  .quick-nav .nav-link:hover, .quick-nav .nav-link:focus-visible, .learning-labs-menu > summary:hover, .learning-labs-menu > summary:focus-visible {
    background: var(--soft-green) !important;
    color: var(--green) !important;
    outline: none !important;
  }
  .learning-label-full {
    display: inline !important;
  }
  .learning-label-short {
    display: none !important;
  }
  .learning-labs-menu {
    width: 100% !important;
    position: static !important;
  }
  .learning-labs-panel {
    position: static !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 8px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(12, 108, 28, 0.1) !important;
    box-shadow: none !important;
  }
  .learning-labs-menu:not([open]) .learning-labs-panel {
    display: none !important;
  }
  .quick-nav .learning-labs-panel a {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    align-items: center !important;
    padding: 0.62rem 0.7rem !important;
    border-radius: 12px !important;
    color: var(--green) !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
  }
  .quick-nav .learning-labs-panel a:hover, .quick-nav .learning-labs-panel a:focus-visible {
    background: #ffffff !important;
    color: var(--pink) !important;
  }
}

@media (max-width: 390px) {
  .mobile-contact-link {
    padding: 0 10px !important;
    font-size: 10.5px !important;
  }
  .brand-wordmark {
    width: clamp(112px, 38vw, 136px) !important;
  }
}

/* ===== v9 polish: compact mobile menu, real contact button, and cleaner homepage mobile header ===== */
@media (max-width: 760px) {
  body.mobile-nav-open {
    overflow: auto !important;
  }
  .site-header {
    min-height: 74px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }
  .header-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 7px !important;
  }
  .brand-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 auto !important;
  }
  .brand-wordmark {
    width: clamp(118px, 34vw, 168px) !important;
    max-width: 100% !important;
  }
  .mobile-contact-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 104px !important;
    max-width: none !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: var(--green) !important;
    color: #ffffff !important;
    border: 1px solid var(--green) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    box-shadow: 0 10px 22px rgba(12, 108, 28, 0.14) !important;
  }
  .mobile-contact-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .mobile-menu-toggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
  .quick-nav.header-links {
    position: fixed !important;
    top: 74px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 99990 !important;
    display: none !important;
    width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - 74px) !important;
    margin: 0 !important;
    padding: 18px 24px 22px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    background: rgba(255, 254, 251, 0.98) !important;
    border: 0 !important;
    border-top: 1px solid rgba(12, 108, 28, 0.08) !important;
    border-bottom: 1px solid rgba(12, 108, 28, 0.08) !important;
    border-radius: 0 0 24px 24px !important;
    box-shadow: 0 22px 38px rgba(24, 48, 31, 0.12) !important;
    overflow-y: auto !important;
  }
  .quick-nav.header-links.open {
    display: flex !important;
  }
  .quick-nav .home-link, .quick-nav .nav-link, .learning-labs-menu > summary {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0.55rem 0.1rem !important;
    border-radius: 0 !important;
    color: var(--green) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    text-decoration: none !important;
  }
  .quick-nav .nav-link:hover, .quick-nav .nav-link:focus-visible, .learning-labs-menu > summary:hover, .learning-labs-menu > summary:focus-visible {
    background: transparent !important;
    color: var(--pink) !important;
    outline: none !important;
  }
  .learning-labs-menu {
    width: 100% !important;
    position: static !important;
    border: 0 !important;
  }
  .learning-labs-panel {
    position: static !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 2px 0 0 !important;
    padding: 0 0 0 16px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .learning-labs-menu:not([open]) .learning-labs-panel {
    display: none !important;
  }
  .quick-nav .learning-labs-panel a {
    display: flex !important;
    width: 100% !important;
    min-height: 36px !important;
    align-items: center !important;
    padding: 0.45rem 0 !important;
    border-radius: 0 !important;
    color: var(--green) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
  }
  .quick-nav .learning-labs-panel a:hover, .quick-nav .learning-labs-panel a:focus-visible {
    background: transparent !important;
    color: var(--pink) !important;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding: 10px 8px !important;
    gap: 6px !important;
  }
  .brand-wordmark {
    width: clamp(104px, 31vw, 126px) !important;
  }
  .mobile-contact-link {
    width: auto !important;
    min-width: 96px !important;
    padding: 0 10px !important;
    font-size: 10.25px !important;
  }
  .mobile-menu-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* ===== v13: compact right-side homepage mobile menu ===== */
@media (max-width: 760px) {
  .quick-nav.header-links {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 12px !important;
    bottom: auto !important;
    width: min(58vw, 300px) !important;
    min-width: 210px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    padding: 14px 16px 16px !important;
    align-items: flex-end !important;
    gap: 8px !important;
    background: rgba(255, 254, 251, 0.98) !important;
    border-radius: 0 0 22px 22px !important;
    border: 0 !important;
    border-top: 1px solid rgba(12, 108, 28, 0.08) !important;
    box-shadow: 0 18px 34px rgba(24, 48, 31, 0.12) !important;
    overflow-y: visible !important;
  }
  .quick-nav .home-link, .quick-nav .nav-link, .learning-labs-menu > summary, .quick-nav .learning-labs-panel a {
    width: auto !important;
    min-height: 36px !important;
    justify-content: flex-end !important;
    padding: 0.45rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: right !important;
  }
  .learning-labs-menu, .learning-labs-panel {
    width: auto !important;
  }
  .learning-labs-panel {
    margin-top: 2px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
}

/* ===== v20: non-desktop Get in Touch button repair =====
   Match the rounded-rectangle CTA style used across the lab pages. */
@media (max-width: 900px) {
  .header-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 112px !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    background: var(--green) !important;
    color: var(--white) !important;
    border: 2px solid var(--green) !important;
    font-family: var(--sans) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 430px) {
  .header-cta {
    min-width: 98px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
  }
}

/* ===== v23: emergency homepage mobile duplicate CTA fix =====
   Homepage has its own real .header-cta button, so keep the lab-style
   .mobile-contact-link hidden on the homepage in all responsive states. */
.site-header .mobile-contact-link {
  display: none !important;
}

/* ===== v24: homepage mobile header order fix =====
   Keep homepage mobile/tablet header ordered as Logo → Get in Touch → Menu. */
@media (max-width: 900px) {
  .site-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .site-header .header-brand {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .site-header .header-cta {
    order: 2 !important;
    flex: 0 0 auto !important;
  }

  .site-header .mobile-menu-toggle {
    order: 3 !important;
    flex: 0 0 auto !important;
  }

  .site-header .quick-nav.header-links {
    order: 4 !important;
  }

  .site-header .mobile-contact-link {
    display: none !important;
  }
}

/* ===== Little Learning Labs landing page ===== */
.labs-landing-page {
  min-height: 100vh;
}

.labs-kicker {
  color: var(--pink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.labs-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 2.6rem clamp(1.4rem, 4.8vw, 4.75rem) 1.2rem;
  position: relative;
}

.labs-hero-section::before,
.labs-hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.labs-hero-section::before {
  width: 260px;
  height: 260px;
  left: -180px;
  top: 120px;
  background: rgba(116, 182, 29, 0.045);
}

.labs-hero-section::after {
  width: 420px;
  height: 420px;
  right: -280px;
  top: 24px;
  background: rgba(240, 60, 112, 0.026);
}

.labs-hero-section > * {
  position: relative;
  z-index: 1;
}

.labs-hero-copy h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.95;
}

.labs-hero-tagline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--green);
}

.labs-hero-note {
  max-width: 43rem;
  margin: 0;
  color: #3f453f;
  font-size: 16px;
  line-height: 1.75;
}

.labs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.labs-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.labs-hero-art img {
  width: 100%;
  max-width: 640px;
  border-radius: 30px;
  box-shadow: 0 20px 45px rgba(12, 108, 28, 0.08);
  display: block;
}

.labs-intro-strip {
  padding: 0 clamp(1.4rem, 4.8vw, 4.75rem) 1.1rem;
}

.labs-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: rgba(240, 60, 112, 0.09);
  border: 1px dashed rgba(240, 60, 112, 0.45);
  color: var(--green);
  font-weight: 700;
}

.badge-star {
  color: var(--pink);
}

.labs-grid-section {
  padding: 1rem clamp(1.4rem, 4.8vw, 4.75rem) 2.75rem;
}

.labs-section-title {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.labs-section-title p {
  margin: 0.8rem auto 0;
  color: #3f453f;
  line-height: 1.75;
}

.labs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.labs-overview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.65rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(12, 108, 28, 0.11);
  border-radius: 28px;
  box-shadow: 0 16px 32px rgba(12, 108, 28, 0.06);
}

.labs-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.labs-card-top h3 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
}

.labs-card-icon {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(12, 108, 28, 0.12);
}

.labs-card-icon.money {
  background: rgba(12, 108, 28, 0.12);
  color: var(--green);
}

.labs-card-icon.color {
  background: rgba(240, 60, 112, 0.14);
  color: var(--pink);
}

.labs-card-icon.maze {
  background: linear-gradient(135deg, rgba(240, 60, 112, 0.08), rgba(12, 108, 28, 0.06)) !important;
  border: 1px solid rgba(240, 60, 112, 0.18) !important;
  overflow: hidden;
}

.labs-card-icon.maze img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}

.labs-overview-card p {
  margin: 0;
  color: #3f453f;
  line-height: 1.75;
}

.labs-feature-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #3f453f;
  line-height: 1.75;
}

.labs-overview-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1180px) {
  .labs-hero-section {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .labs-hero-copy,
  .labs-hero-art {
    text-align: center;
  }

  .labs-hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .labs-hero-actions {
    justify-content: center;
  }

  .labs-intro-strip {
    text-align: center;
  }
}


@media (max-width: 1080px) and (min-width: 761px) {
  .labs-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .labs-hero-section,
  .labs-intro-strip,
  .labs-grid-section {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .labs-hero-section {
    gap: 1.4rem;
  }

  .labs-hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .labs-hero-art img {
    border-radius: 22px;
  }

  .labs-hero-actions .btn {
    width: min(100%, 320px);
  }

  .labs-intro-badge {
    width: 100%;
    justify-content: center;
    border-radius: 22px;
    text-align: center;
  }

  .labs-card-grid {
    grid-template-columns: 1fr;
  }

  .labs-overview-card .btn {
    width: min(100%, 320px);
    align-self: center;
  }
}

/* ===== v2 Little Learning Labs polish: square hero art, homepage umbrella card, icon parity ===== */

/* Homepage now shows the umbrella Little Learning Labs card instead of separate lab cards. */
.learning-labs-home-card {
  position: relative;
}

.learning-labs-home-icon {
  color: var(--pink) !important;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 22%, transparent 23%),
    conic-gradient(from 0deg, #ef4444, #f59e0b, #facc15, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444) !important;
  border: 8px solid #ffffff !important;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.12), 0 10px 22px rgba(24, 48, 31, 0.12) !important;
}

.home-labs-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.25rem 0 0.5rem;
}

.home-labs-mini-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 108, 28, 0.08);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.home-labs-mini-links a:hover,
.home-labs-mini-links a:focus-visible {
  color: var(--pink);
  background: rgba(240, 60, 112, 0.1);
}

/* The Little Learning Labs page uses the square transparent artwork in the hero. */
.labs-hero-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr) !important;
  overflow: hidden;
}

.labs-hero-art img {
  max-width: min(100%, 560px) !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Match Little Learning Labs page card icons more closely to the homepage tool icons. */
.labs-card-icon {
  width: 74px !important;
  height: 74px !important;
  border-radius: 50% !important;
  font-family: var(--serif) !important;
  font-size: 2.2rem !important;
  box-shadow: 0 10px 22px rgba(24, 48, 31, 0.08) !important;
}

.labs-card-icon.money {
  background: linear-gradient(135deg, rgba(12, 108, 28, 0.1), rgba(240, 60, 112, 0.05)) !important;
  color: var(--green) !important;
  border: 1px solid rgba(12, 108, 28, 0.12) !important;
}

.labs-card-icon.color {
  color: transparent !important;
  background:
    radial-gradient(circle at center, #ffffff 0 24%, transparent 25%),
    conic-gradient(from 0deg, #ef4444, #f59e0b, #facc15, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444) !important;
  border: 8px solid #ffffff !important;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.12), 0 10px 22px rgba(24, 48, 31, 0.12) !important;
}

.labs-card-icon.maze {
  background: linear-gradient(135deg, rgba(240, 60, 112, 0.08), rgba(12, 108, 28, 0.06)) !important;
  border: 1px solid rgba(240, 60, 112, 0.18) !important;
  overflow: hidden;
}

.labs-card-icon.maze img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}

.labs-overview-card {
  align-items: flex-start;
}

.labs-card-top {
  align-items: center;
}

/* Slightly wider dropdown to fit the umbrella item comfortably. */
.learning-labs-panel {
  min-width: 260px;
}

@media (max-width: 1180px) {
  .labs-hero-section {
    grid-template-columns: 1fr !important;
  }

  .labs-hero-art img {
    max-width: min(100%, 520px) !important;
  }
}

@media (max-width: 760px) {
  .home-labs-mini-links {
    justify-content: center;
  }

  .labs-card-top {
    flex-direction: column;
    text-align: center;
  }

  .labs-overview-card {
    align-items: center;
    text-align: center;
  }

  .labs-feature-list {
    text-align: left;
  }

  .labs-hero-art img {
    max-width: min(100%, 390px) !important;
  }
}

/* ===== v3 Little Learning Labs polish: direct nav + framed hero artwork ===== */

/* Little Learning Labs is now a direct nav link. Labs themselves are selected from the landing page. */
.learning-labs-direct-link {
  color: var(--green) !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.learning-labs-direct-link[aria-current="page"] {
  color: var(--pink) !important;
}

/* Hide any old dropdown panel styling if cached markup is ever present. */
.learning-labs-menu,
.learning-labs-panel {
  display: none;
}

/* Put the hero artwork inside an intentional soft card so it does not float awkwardly. */
.labs-hero-section {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr) !important;
  gap: clamp(1.4rem, 3vw, 2.4rem) !important;
  align-items: center !important;
  padding-top: 2.35rem !important;
  padding-bottom: 1rem !important;
}

.labs-hero-art {
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(240, 60, 112, 0.10), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(116, 182, 29, 0.12), transparent 32%),
    linear-gradient(135deg, #fff9ef, #fffdf8 48%, #f5faef) !important;
  border: 1px solid rgba(12, 108, 28, 0.08) !important;
  box-shadow: 0 18px 42px rgba(12, 108, 28, 0.08) !important;
  padding: clamp(1rem, 2.4vw, 1.75rem) !important;
  min-height: 360px !important;
  overflow: hidden !important;
}

.labs-hero-art img {
  width: 100% !important;
  max-width: 420px !important;
  max-height: 420px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.labs-intro-strip {
  padding-top: 0.5rem !important;
}

@media (max-width: 1180px) {
  .labs-hero-section {
    grid-template-columns: 1fr !important;
  }

  .labs-hero-art {
    width: min(100%, 620px) !important;
    margin: 0 auto !important;
    min-height: auto !important;
  }

  .labs-hero-art img {
    max-width: 430px !important;
    max-height: 430px !important;
  }
}

@media (max-width: 760px) {
  .labs-hero-art {
    border-radius: 24px !important;
    padding: 0.75rem !important;
  }

  .labs-hero-art img {
    max-width: 330px !important;
    max-height: 330px !important;
  }

  .learning-labs-direct-link {
    font-size: 14px !important;
  }
}

/* ===== v4 Little Learning Labs layout tighten + homepage card pairing ===== */

/* Learning Labs landing page: concise hero, not a giant billboard. */
.labs-hero-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr) !important;
  gap: clamp(1rem, 2.3vw, 2rem) !important;
  align-items: center !important;
  padding-top: clamp(1.4rem, 3vw, 2rem) !important;
  padding-bottom: 0.35rem !important;
}

.labs-hero-copy h1 {
  font-size: clamp(3rem, 4.5vw, 4.6rem) !important;
  line-height: 0.98 !important;
  max-width: 720px !important;
}

.labs-hero-tagline {
  font-size: clamp(1.2rem, 1.65vw, 1.45rem) !important;
  margin-bottom: 0.5rem !important;
}

.labs-hero-note {
  max-width: 42rem !important;
  font-size: 15.5px !important;
  line-height: 1.7 !important;
}

.labs-hero-actions {
  margin-top: 1.05rem !important;
}

.labs-hero-art {
  min-height: 0 !important;
  padding: clamp(0.85rem, 1.6vw, 1.25rem) !important;
  border-radius: 26px !important;
}

.labs-hero-art img {
  max-width: 320px !important;
  max-height: 320px !important;
}

.labs-intro-strip {
  padding-top: 0 !important;
  padding-bottom: 0.8rem !important;
}

.labs-intro-badge {
  padding: 0.65rem 1rem !important;
}

/* Homepage: Kichu & Leela and Little Learning Labs should sit side-by-side on desktop. */
.featured-work {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}

.featured-work .feature-card-primary {
  grid-column: auto !important;
}

.featured-work .initiative,
.featured-work .learning-tool-card {
  min-height: 330px !important;
}

/* Keep the Kichu card balanced inside the half-width layout. */
.featured-work .initiative {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr) !important;
  gap: 24px !important;
  padding: 28px 30px !important;
}

.featured-work .initiative-art {
  height: 150px !important;
  max-width: 360px !important;
}

.featured-work .initiative-btn,
.learning-tool-card .tool-btn {
  width: min(100%, 320px) !important;
  max-width: 320px !important;
}

/* Learning Labs home icon: curiosity/learning instead of color-specific. */
.learning-labs-home-icon {
  color: var(--green) !important;
  background: linear-gradient(135deg, rgba(116, 182, 29, 0.15), rgba(240, 60, 112, 0.10)) !important;
  border: 8px solid #ffffff !important;
  box-shadow: 0 10px 22px rgba(24, 48, 31, 0.10) !important;
  font-size: 1.85rem !important;
}

@media (max-width: 1180px) {
  .labs-hero-section {
    grid-template-columns: 1fr !important;
    padding-top: 1.55rem !important;
  }

  .labs-hero-copy {
    text-align: center !important;
  }

  .labs-hero-art {
    width: min(100%, 470px) !important;
    margin: 0 auto !important;
  }

  .labs-hero-art img {
    max-width: 310px !important;
    max-height: 310px !important;
  }

  .featured-work {
    grid-template-columns: 1fr !important;
  }

  .featured-work .initiative {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .labs-hero-section {
    padding-top: 1.1rem !important;
    gap: 1rem !important;
  }

  .labs-hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem) !important;
  }

  .labs-hero-note {
    font-size: 15px !important;
  }

  .labs-hero-art {
    width: min(100%, 360px) !important;
    border-radius: 22px !important;
    padding: 0.65rem !important;
  }

  .labs-hero-art img {
    max-width: 260px !important;
    max-height: 260px !important;
  }

  .featured-work .initiative {
    grid-template-columns: 1fr !important;
    padding: 22px 20px !important;
  }

  .featured-work .initiative-copy,
  .learning-tool-card {
    text-align: center !important;
    align-items: center !important;
  }

  .featured-work .initiative-btn,
  .learning-tool-card .tool-btn {
    width: min(100%, 320px) !important;
    align-self: center !important;
    justify-self: center !important;
  }
}

/* ===== v5 Little Learning Labs spacing/nav refinements ===== */

/* Homepage nav: keep the primary nav cleaner now that labs has a hub page. */
.site-header .quick-nav {
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
}

/* Homepage feature cards: line up action areas and keep mini lab labels above the Explore button. */
.featured-work .feature-card {
  display: flex;
  flex-direction: column;
}

.featured-work .initiative-btn {
  margin-top: auto !important;
}

.home-labs-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.home-labs-mini-links {
  margin: 0 !important;
}

.learning-tool-card .tool-btn {
  margin-top: 0 !important;
}

/* Learning Labs landing page hero: visually center the card art with the copy and reduce loose vertical spacing. */
.labs-hero-section {
  min-height: 0 !important;
  align-items: center !important;
  padding-top: clamp(1.1rem, 2.5vw, 1.65rem) !important;
  padding-bottom: 0 !important;
}

.labs-hero-copy {
  align-self: center !important;
}

.labs-hero-art {
  align-self: center !important;
  transform: translateY(-4px);
}

.labs-intro-strip {
  margin-top: clamp(-0.25rem, -0.6vw, 0rem) !important;
  padding-top: 0 !important;
  padding-bottom: clamp(0.45rem, 1.3vw, 0.8rem) !important;
}

.labs-intro-badge {
  margin-top: 0 !important;
}

/* Learning Labs landing page nav: no "What We Offer" here; direct children lab links are clearer. */
.labs-landing-page .header-links {
  justify-content: flex-end;
}

.labs-landing-page .header-links .nav-link[aria-current="page"] {
  color: var(--pink);
}

/* Lab page nav direct link remains green unless currently selected. */
.learning-labs-direct-link {
  text-decoration: none;
}

/* Responsive tuning */
@media (min-width: 1181px) {
  .featured-work {
    gap: 2rem !important;
  }

  .featured-work .initiative,
  .featured-work .learning-tool-card {
    min-height: 350px !important;
  }

  .featured-work .initiative-copy,
  .learning-tool-card {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .labs-hero-art {
    transform: none;
  }

  .labs-intro-strip {
    margin-top: 0 !important;
  }

  .home-labs-actions {
    align-items: center;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .header-links {
    justify-content: flex-start;
  }

  .home-labs-actions {
    width: 100%;
    align-items: center;
  }

  .home-labs-mini-links {
    justify-content: center;
  }

  .featured-work .initiative-btn,
  .learning-tool-card .tool-btn {
    width: min(100%, 320px) !important;
  }
}

/* ===== v6 Little Learning Labs compact hero + visible Home nav ===== */

/* Show Home on the Little Learning Labs landing page desktop nav. */
.labs-landing-page .quick-nav .home-link {
  display: inline-flex !important;
}

/* Make the landing page hero compact like the individual lab pages. */
.labs-landing-page .labs-hero-section {
  width: min(100% - 48px, 1660px) !important;
  margin: clamp(1.25rem, 2.4vw, 2.2rem) auto 0 !important;
  padding: clamp(1.55rem, 3vw, 2.35rem) !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr) !important;
  gap: clamp(1.2rem, 3vw, 2.25rem) !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(12, 108, 28, 0.10) !important;
  border-radius: 34px !important;
  box-shadow: 0 18px 38px rgba(12, 108, 28, 0.055) !important;
}

.labs-landing-page .labs-hero-section::before,
.labs-landing-page .labs-hero-section::after {
  display: none !important;
}

.labs-landing-page .labs-hero-copy h1 {
  font-size: clamp(3rem, 4.2vw, 4.55rem) !important;
  line-height: 0.98 !important;
  max-width: 760px !important;
  margin-bottom: 0.75rem !important;
}

.labs-landing-page .labs-hero-tagline {
  margin-bottom: 0.55rem !important;
  font-size: clamp(1.15rem, 1.55vw, 1.42rem) !important;
}

.labs-landing-page .labs-hero-note {
  max-width: 44rem !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
}

.labs-landing-page .labs-hero-actions {
  margin-top: 1rem !important;
}

.labs-landing-page .labs-hero-art {
  min-height: auto !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  padding: clamp(0.75rem, 1.4vw, 1.05rem) !important;
  border-radius: 26px !important;
  transform: none !important;
}

.labs-landing-page .labs-hero-art img {
  max-width: 300px !important;
  max-height: 300px !important;
}

.labs-landing-page .labs-intro-strip {
  width: min(100% - 48px, 1660px) !important;
  margin: 0.9rem auto 0 !important;
  padding: 0 !important;
}

/* Keep the badge close and visually aligned with the compact hero card. */
.labs-landing-page .labs-intro-badge {
  margin: 0 !important;
}

/* Desktop nav spacing on the landing page after adding Home back. */
.labs-landing-page .site-header .quick-nav {
  gap: clamp(1rem, 2vw, 1.8rem) !important;
}

@media (max-width: 1180px) {
  .labs-landing-page .labs-hero-section {
    width: min(100% - 34px, 760px) !important;
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 1.45rem !important;
    margin-top: 1.1rem !important;
  }

  .labs-landing-page .labs-hero-art {
    max-width: 390px !important;
  }

  .labs-landing-page .labs-hero-art img {
    max-width: 250px !important;
    max-height: 250px !important;
  }

  .labs-landing-page .labs-intro-strip {
    width: min(100% - 34px, 760px) !important;
    text-align: center !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-section {
    width: min(100% - 22px, 560px) !important;
    border-radius: 26px !important;
    padding: 1.15rem !important;
  }

  .labs-landing-page .labs-hero-copy h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.15rem) !important;
  }

  .labs-landing-page .labs-hero-art {
    max-width: 320px !important;
    border-radius: 22px !important;
  }

  .labs-landing-page .labs-hero-art img {
    max-width: 210px !important;
    max-height: 210px !important;
  }

  .labs-landing-page .labs-intro-strip {
    width: min(100% - 22px, 560px) !important;
  }
}

/* ===== v7 Little Learning Labs hero uses social preview + badge inside copy ===== */

.labs-landing-page .labs-hero-section {
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr) !important;
  align-items: center !important;
}

.labs-landing-page .labs-hero-art {
  max-width: 640px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.labs-landing-page .labs-hero-art img {
  width: 100% !important;
  max-width: 640px !important;
  max-height: none !important;
  aspect-ratio: 1200 / 630 !important;
  object-fit: contain !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 40px rgba(12, 108, 28, 0.08) !important;
  border: 1px solid rgba(12, 108, 28, 0.08) !important;
  background: #fff9ef !important;
}

.labs-hero-badge {
  margin: 1rem 0 0 !important;
  width: fit-content !important;
}

.labs-landing-page .labs-hero-actions {
  margin-top: 1rem !important;
}

.labs-landing-page .labs-intro-strip {
  display: none !important;
}

@media (max-width: 1180px) {
  .labs-landing-page .labs-hero-section {
    grid-template-columns: 1fr !important;
  }

  .labs-landing-page .labs-hero-art {
    max-width: 680px !important;
  }

  .labs-landing-page .labs-hero-art img {
    max-width: 680px !important;
  }

  .labs-hero-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-section {
    padding: 1rem !important;
  }

  .labs-landing-page .labs-hero-art {
    max-width: 100% !important;
  }

  .labs-landing-page .labs-hero-art img {
    border-radius: 18px !important;
  }

  .labs-hero-badge {
    width: 100% !important;
  }
}

/* ===== v8 Learning Labs responsive polish + homepage action alignment ===== */

/* Give the inside-hero pink badge breathing room from the paragraph. */
.labs-landing-page .labs-hero-note {
  margin-bottom: 1.05rem !important;
}

.labs-landing-page .labs-hero-badge {
  margin: 0 0 1.05rem !important;
}

/* Keep the CTA naturally below the badge. */
.labs-landing-page .labs-hero-actions {
  margin-top: 0 !important;
}

/* On tablet/mobile, keep the Learning Labs landing page focused on copy and remove the hero image. */
@media (max-width: 1180px) {
  .labs-landing-page .labs-hero-section {
    display: block !important;
  }

  .labs-landing-page .labs-hero-art {
    display: none !important;
  }

  .labs-landing-page .labs-hero-copy {
    text-align: center !important;
  }

  .labs-landing-page .labs-hero-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .labs-landing-page .labs-hero-actions {
    justify-content: center !important;
  }
}

/* Make the homepage Kichu and Learning Labs cards feel aligned as a pair. */
@media (min-width: 1181px) {
  .featured-work {
    align-items: stretch !important;
  }

  .featured-work .feature-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 390px !important;
  }

  .featured-work .initiative-copy,
  .featured-work .learning-tool-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .featured-work .initiative-copy p,
  .learning-tool-card p {
    margin-bottom: 1.1rem !important;
  }

  .featured-work .initiative-btn {
    margin-top: auto !important;
  }

  .learning-tool-card .home-labs-actions {
    margin-top: auto !important;
    padding-top: 0.35rem !important;
  }

  .learning-tool-card .tool-btn {
    margin-top: 0.35rem !important;
  }
}

/* Mobile/tablet homepage polish: balanced cards and no awkward button drift. */
@media (max-width: 1180px) {
  .featured-work .feature-card {
    min-height: auto !important;
  }

  .featured-work .initiative-copy,
  .featured-work .learning-tool-card {
    text-align: center !important;
    align-items: center !important;
  }

  .learning-tool-card .home-labs-actions {
    align-items: center !important;
    width: 100% !important;
    padding-top: 0.4rem !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-note {
    margin-bottom: 0.85rem !important;
  }

  .labs-landing-page .labs-hero-badge {
    margin-bottom: 0.9rem !important;
  }

  .labs-landing-page .labs-hero-actions .btn {
    width: min(100%, 320px) !important;
  }

  .featured-work .initiative-btn,
  .learning-tool-card .tool-btn {
    width: min(100%, 320px) !important;
  }
}

/* ===== v9 Learning Labs hero: separate intro card + image card like lab pages ===== */

/* The landing page hero should behave like the individual lab pages:
   left intro card + right visual card, not one large enclosing card. */
.labs-landing-page .labs-hero-section {
  width: min(100% - 48px, 1660px) !important;
  margin: clamp(1.45rem, 3vw, 2.4rem) auto 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr) !important;
  gap: clamp(1.25rem, 2.6vw, 2rem) !important;
  align-items: stretch !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.labs-landing-page .labs-hero-section::before,
.labs-landing-page .labs-hero-section::after {
  display: none !important;
}

.labs-landing-page .labs-hero-copy {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: clamp(1.7rem, 3.2vw, 2.8rem) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(12, 108, 28, 0.10) !important;
  border-radius: 34px !important;
  box-shadow: 0 18px 38px rgba(12, 108, 28, 0.055) !important;
  text-align: left !important;
}

.labs-landing-page .labs-hero-copy h1 {
  font-size: clamp(3.1rem, 4.3vw, 4.8rem) !important;
  line-height: 0.98 !important;
  max-width: 760px !important;
  margin: 0.25rem 0 0.65rem !important;
}

.labs-landing-page .labs-hero-tagline {
  margin: 0 0 0.55rem !important;
  font-size: clamp(1.15rem, 1.55vw, 1.45rem) !important;
}

.labs-landing-page .labs-hero-note {
  max-width: 44rem !important;
  margin: 0 0 1rem !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
}

.labs-landing-page .labs-hero-badge {
  width: fit-content !important;
  margin: 0 0 1rem !important;
}

.labs-landing-page .labs-hero-actions {
  margin-top: 0 !important;
  justify-content: flex-start !important;
}

.labs-landing-page .labs-hero-art {
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(1rem, 2vw, 1.55rem) !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(240, 60, 112, 0.10), transparent 32%),
    radial-gradient(circle at 90% 16%, rgba(116, 182, 29, 0.12), transparent 34%),
    linear-gradient(135deg, #fff9ef, #fffdf8 48%, #f5faef) !important;
  border: 1px solid rgba(12, 108, 28, 0.10) !important;
  border-radius: 34px !important;
  box-shadow: 0 18px 38px rgba(12, 108, 28, 0.055) !important;
  overflow: hidden !important;
  transform: none !important;
}

.labs-landing-page .labs-hero-art img {
  width: 100% !important;
  max-width: 620px !important;
  max-height: none !important;
  aspect-ratio: 1200 / 630 !important;
  object-fit: contain !important;
  border-radius: 22px !important;
  border: 1px solid rgba(12, 108, 28, 0.08) !important;
  box-shadow: 0 14px 28px rgba(12, 108, 28, 0.07) !important;
  background: #fff9ef !important;
}

/* On tablet/mobile, keep the visual optional/hidden to reduce scrolling,
   but retain the intro card layout. */
@media (max-width: 1180px) {
  .labs-landing-page .labs-hero-section {
    width: min(100% - 34px, 760px) !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1.15rem !important;
  }

  .labs-landing-page .labs-hero-copy {
    text-align: center !important;
    align-items: center !important;
    padding: 1.5rem !important;
  }

  .labs-landing-page .labs-hero-art {
    display: none !important;
  }

  .labs-landing-page .labs-hero-actions {
    justify-content: center !important;
  }

  .labs-landing-page .labs-hero-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-section {
    width: min(100% - 22px, 560px) !important;
  }

  .labs-landing-page .labs-hero-copy {
    border-radius: 26px !important;
    padding: 1.2rem !important;
  }

  .labs-landing-page .labs-hero-copy h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.15rem) !important;
  }

  .labs-landing-page .labs-hero-note {
    font-size: 15px !important;
  }

  .labs-landing-page .labs-hero-actions .btn {
    width: min(100%, 320px) !important;
  }
}

/* ===== v10 fix: home cards compact + Learning Labs hero as separate intro/image columns ===== */

/* HOME PAGE: restore compact, balanced two-card feature section. */
body:not(.labs-landing-body) .featured-work {
  width: min(100% - 48px, 1660px) !important;
  margin: clamp(1.4rem, 2.8vw, 2.2rem) auto 2.3rem !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 2.2vw, 2rem) !important;
  align-items: stretch !important;
}

body:not(.labs-landing-body) .featured-work .feature-card {
  min-height: 0 !important;
  height: auto !important;
  border-radius: 30px !important;
}

body:not(.labs-landing-body) .featured-work .initiative {
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 1.25rem 1.6rem !important;
  align-items: center !important;
  padding: clamp(1.4rem, 2.4vw, 2rem) !important;
  min-height: 0 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-media {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
}

body:not(.labs-landing-body) .featured-work .initiative-art {
  width: 100% !important;
  max-width: 310px !important;
  height: 145px !important;
  margin: 0 auto !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  min-width: 0 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy h2 {
  font-size: clamp(2.05rem, 2.85vw, 3rem) !important;
  line-height: 1.02 !important;
  max-width: 520px !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy p {
  margin: 0.8rem 0 0 !important;
  max-width: 640px !important;
  line-height: 1.65 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-btn {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: min(100%, 340px) !important;
  margin: 0 !important;
}

body:not(.labs-landing-body) .featured-work .learning-tool-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: clamp(1.4rem, 2.4vw, 2rem) !important;
  min-height: 0 !important;
  height: auto !important;
}

body:not(.labs-landing-body) .featured-work .learning-tool-card h2 {
  font-size: clamp(2.05rem, 2.85vw, 3rem) !important;
  line-height: 1.02 !important;
}

body:not(.labs-landing-body) .featured-work .learning-tool-card p {
  margin: 0.8rem 0 1rem !important;
  line-height: 1.65 !important;
}

body:not(.labs-landing-body) .featured-work .home-labs-actions {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  width: 100% !important;
}

body:not(.labs-landing-body) .featured-work .home-labs-mini-links {
  margin: 0 !important;
}

body:not(.labs-landing-body) .featured-work .tool-btn {
  width: min(100%, 340px) !important;
  margin: 0 !important;
  align-self: flex-start !important;
}

/* LITTLE LEARNING LABS LANDING: separate left intro card and right image, matching the width of the lower cards. */
.labs-landing-page .labs-hero-section {
  width: min(100% - 48px, 1660px) !important;
  margin: clamp(1.4rem, 2.8vw, 2.2rem) auto 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr) !important;
  gap: clamp(1.25rem, 2.2vw, 2rem) !important;
  align-items: stretch !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.labs-landing-page .labs-hero-section::before,
.labs-landing-page .labs-hero-section::after {
  display: none !important;
}

.labs-landing-page .labs-hero-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: clamp(1.55rem, 2.8vw, 2.4rem) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(12, 108, 28, 0.10) !important;
  border-radius: 34px !important;
  box-shadow: 0 18px 38px rgba(12, 108, 28, 0.055) !important;
}

.labs-landing-page .labs-hero-copy h1 {
  font-size: clamp(3rem, 4.05vw, 4.45rem) !important;
  line-height: 0.98 !important;
  max-width: 760px !important;
  margin: 0.25rem 0 0.65rem !important;
}

.labs-landing-page .labs-hero-tagline {
  margin: 0 0 0.55rem !important;
  font-size: clamp(1.15rem, 1.55vw, 1.42rem) !important;
}

.labs-landing-page .labs-hero-note {
  max-width: 44rem !important;
  margin: 0 0 1rem !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
}

.labs-landing-page .labs-hero-badge {
  width: fit-content !important;
  margin: 0 0 1rem !important;
}

.labs-landing-page .labs-hero-actions {
  margin: 0 !important;
  justify-content: flex-start !important;
}

.labs-landing-page .labs-hero-art {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}

.labs-landing-page .labs-hero-art img {
  width: 100% !important;
  max-width: 640px !important;
  aspect-ratio: 1200 / 630 !important;
  object-fit: contain !important;
  border-radius: 24px !important;
  border: 1px solid rgba(12, 108, 28, 0.08) !important;
  box-shadow: 0 18px 38px rgba(12, 108, 28, 0.08) !important;
  background: #fff9ef !important;
}

/* Align the lower cards with the hero width. */
.labs-landing-page .labs-grid-section {
  width: min(100% - 48px, 1660px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Tablet/mobile: keep pages compact and avoid hero-image scrolling. */
@media (max-width: 1180px) {
  body:not(.labs-landing-body) .featured-work {
    width: min(100% - 34px, 760px) !important;
    grid-template-columns: 1fr !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-media,
  body:not(.labs-landing-body) .featured-work .initiative-copy,
  body:not(.labs-landing-body) .featured-work .initiative-btn {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: center !important;
  }

  body:not(.labs-landing-body) .featured-work .learning-tool-card {
    align-items: center !important;
    text-align: center !important;
  }

  body:not(.labs-landing-body) .featured-work .home-labs-actions {
    align-items: center !important;
  }

  body:not(.labs-landing-body) .featured-work .tool-btn {
    align-self: center !important;
  }

  .labs-landing-page .labs-hero-section {
    width: min(100% - 34px, 760px) !important;
    grid-template-columns: 1fr !important;
  }

  .labs-landing-page .labs-hero-copy {
    align-items: center !important;
    text-align: center !important;
  }

  .labs-landing-page .labs-hero-art {
    display: none !important;
  }

  .labs-landing-page .labs-hero-actions {
    justify-content: center !important;
  }

  .labs-landing-page .labs-grid-section {
    width: min(100% - 34px, 760px) !important;
  }
}

@media (max-width: 760px) {
  body:not(.labs-landing-body) .featured-work,
  .labs-landing-page .labs-hero-section,
  .labs-landing-page .labs-grid-section {
    width: min(100% - 22px, 560px) !important;
  }

  .labs-landing-page .labs-hero-copy,
  body:not(.labs-landing-body) .featured-work .feature-card {
    border-radius: 26px !important;
  }

  .labs-landing-page .labs-hero-actions .btn,
  body:not(.labs-landing-body) .featured-work .initiative-btn,
  body:not(.labs-landing-body) .featured-work .tool-btn {
    width: min(100%, 320px) !important;
  }
}

/* ===== v11 final home feature card alignment fix ===== */

/* Keep the two homepage feature cards clean, aligned, and compact. */
body:not(.labs-landing-body) .featured-work {
  width: min(100% - 48px, 1660px) !important;
  margin: clamp(1.4rem, 2.8vw, 2.2rem) auto 2.3rem !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 2.2vw, 2rem) !important;
  align-items: stretch !important;
}

/* Reset the Kichu card so it does not create the awkward image-left/button-bottom split. */
body:not(.labs-landing-body) .featured-work .initiative.feature-card {
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 1rem 1.65rem !important;
  align-items: start !important;
  padding: clamp(1.6rem, 2.4vw, 2.15rem) !important;
  min-height: 340px !important;
  border-radius: 30px !important;
}

/* Image sits neatly on the left, centered vertically across text + button. */
body:not(.labs-landing-body) .featured-work .initiative-media {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  align-self: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

body:not(.labs-landing-body) .featured-work .initiative-art {
  width: 100% !important;
  max-width: 240px !important;
  height: 150px !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

/* Kichu text starts at the same visual top as Learning Labs text. */
body:not(.labs-landing-body) .featured-work .initiative-copy {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-label,
body:not(.labs-landing-body) .featured-work .learning-tool-card .initiative-label {
  margin-top: 0 !important;
  margin-bottom: 0.65rem !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy h2,
body:not(.labs-landing-body) .featured-work .learning-tool-card h2 {
  font-size: clamp(2.05rem, 2.75vw, 2.85rem) !important;
  line-height: 1.03 !important;
  margin: 0 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy p,
body:not(.labs-landing-body) .featured-work .learning-tool-card p {
  margin: 0.85rem 0 0 !important;
  line-height: 1.6 !important;
  font-size: 15.5px !important;
}

/* Kichu button lines up visually with the Learning Labs button group. */
body:not(.labs-landing-body) .featured-work .initiative-btn {
  grid-column: 2 !important;
  grid-row: 3 !important;
  justify-self: start !important;
  align-self: end !important;
  width: min(100%, 360px) !important;
  margin: 1.05rem 0 0 !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

/* Learning Labs card mirrors the same vertical rhythm. */
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding: clamp(1.6rem, 2.4vw, 2.15rem) !important;
  min-height: 340px !important;
  border-radius: 30px !important;
}

body:not(.labs-landing-body) .featured-work .learning-labs-home-icon {
  width: 58px !important;
  height: 58px !important;
  margin-bottom: 1rem !important;
}

body:not(.labs-landing-body) .featured-work .home-labs-actions {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  width: 100% !important;
}

body:not(.labs-landing-body) .featured-work .tool-btn {
  width: min(100%, 360px) !important;
  align-self: flex-start !important;
  margin: 0 !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* Tablet/mobile: stack gracefully and keep buttons centered. */
@media (max-width: 1180px) {
  body:not(.labs-landing-body) .featured-work {
    width: min(100% - 34px, 760px) !important;
    grid-template-columns: 1fr !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative.feature-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    text-align: center !important;
    min-height: auto !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-media,
  body:not(.labs-landing-body) .featured-work .initiative-copy,
  body:not(.labs-landing-body) .featured-work .initiative-btn {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-copy,
  body:not(.labs-landing-body) .featured-work .learning-tool-card {
    align-items: center !important;
    text-align: center !important;
  }

  body:not(.labs-landing-body) .featured-work .home-labs-actions {
    align-items: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-btn,
  body:not(.labs-landing-body) .featured-work .tool-btn {
    width: min(100%, 340px) !important;
    align-self: center !important;
  }
}

@media (max-width: 760px) {
  body:not(.labs-landing-body) .featured-work {
    width: min(100% - 22px, 560px) !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative.feature-card,
  body:not(.labs-landing-body) .featured-work .learning-tool-card {
    border-radius: 26px !important;
    padding: 1.25rem !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-art {
    max-width: 230px !important;
    height: 138px !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-copy h2,
  body:not(.labs-landing-body) .featured-work .learning-tool-card h2 {
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
  }
}

/* ===== v12 final: signature initiative icon + preserve individual lab previews ===== */

/* Add a soft Signature Initiative icon to balance the Learning Labs card icon. */
body:not(.labs-landing-body) .featured-work .initiative-copy::before {
  content: "📖";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 0 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(116, 182, 29, 0.14), rgba(240, 60, 112, 0.08));
  border: 8px solid #ffffff;
  box-shadow: 0 10px 22px rgba(24, 48, 31, 0.10);
  font-size: 1.65rem;
  line-height: 1;
}

/* With matching icons, both card copy blocks should start at the same visual rhythm. */
body:not(.labs-landing-body) .featured-work .initiative-copy,
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  padding-top: 0 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy h2,
body:not(.labs-landing-body) .featured-work .learning-tool-card h2 {
  margin-top: 0 !important;
}

/* Keep the Kichu button visually aligned and not overly wide. */
body:not(.labs-landing-body) .featured-work .initiative-btn,
body:not(.labs-landing-body) .featured-work .tool-btn {
  width: min(100%, 360px) !important;
}

@media (max-width: 1180px) {
  body:not(.labs-landing-body) .featured-work .initiative-copy::before {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== v13 home feature cards: fix icon/border spacing and final visual rhythm ===== */

/* Make both homepage cards use the same clean card rhythm. */
body:not(.labs-landing-body) .featured-work .initiative.feature-card,
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  min-height: 0 !important;
  padding: clamp(2rem, 2.8vw, 2.6rem) !important;
  border-radius: 30px !important;
}

/* Kichu card: image left, content right, no awkward oversized top gap. */
body:not(.labs-landing-body) .featured-work .initiative.feature-card {
  display: grid !important;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 1rem 1.65rem !important;
  align-items: center !important;
}

body:not(.labs-landing-body) .featured-work .initiative-media {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: center !important;
}

body:not(.labs-landing-body) .featured-work .initiative-art {
  width: 100% !important;
  max-width: 250px !important;
  height: 155px !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding-top: 0 !important;
  min-width: 0 !important;
}

/* Use a smaller inline icon so it balances without creating huge vertical spacing. */
body:not(.labs-landing-body) .featured-work .initiative-copy::before,
body:not(.labs-landing-body) .featured-work .learning-labs-home-icon {
  width: 52px !important;
  height: 52px !important;
  margin: 0 0 0.85rem 0 !important;
  border-radius: 50% !important;
  border: 7px solid #ffffff !important;
  box-shadow: 0 8px 18px rgba(24, 48, 31, 0.09) !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}

/* Prevent the Learning Labs icon from touching the top border. */
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding-top: clamp(2.2rem, 3vw, 2.8rem) !important;
  padding-bottom: clamp(2rem, 2.8vw, 2.6rem) !important;
}

body:not(.labs-landing-body) .featured-work .initiative-label,
body:not(.labs-landing-body) .featured-work .learning-tool-card .initiative-label {
  margin: 0 0 0.55rem 0 !important;
}

/* Align headings and body copy visually across both cards. */
body:not(.labs-landing-body) .featured-work .initiative-copy h2,
body:not(.labs-landing-body) .featured-work .learning-tool-card h2 {
  margin: 0 !important;
  font-size: clamp(2.05rem, 2.65vw, 2.75rem) !important;
  line-height: 1.04 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy p,
body:not(.labs-landing-body) .featured-work .learning-tool-card p {
  margin: 0.8rem 0 0 !important;
  font-size: 15.5px !important;
  line-height: 1.62 !important;
}

/* Button row: same width, same bottom rhythm. */
body:not(.labs-landing-body) .featured-work .initiative-btn {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: min(100%, 360px) !important;
  margin: 1rem 0 0 !important;
}

body:not(.labs-landing-body) .featured-work .home-labs-actions {
  margin-top: 1rem !important;
  width: 100% !important;
  align-items: flex-start !important;
}

body:not(.labs-landing-body) .featured-work .tool-btn {
  width: min(100%, 360px) !important;
  align-self: flex-start !important;
  margin: 0 !important;
}

/* Tablet/mobile: stack without giant empty spaces. */
@media (max-width: 1180px) {
  body:not(.labs-landing-body) .featured-work .initiative.feature-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    text-align: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-media,
  body:not(.labs-landing-body) .featured-work .initiative-copy,
  body:not(.labs-landing-body) .featured-work .initiative-btn {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-copy,
  body:not(.labs-landing-body) .featured-work .learning-tool-card {
    align-items: center !important;
    text-align: center !important;
    justify-content: flex-start !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-copy::before,
  body:not(.labs-landing-body) .featured-work .learning-labs-home-icon {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body:not(.labs-landing-body) .featured-work .home-labs-actions {
    align-items: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-btn,
  body:not(.labs-landing-body) .featured-work .tool-btn {
    align-self: center !important;
    justify-self: center !important;
    width: min(100%, 340px) !important;
  }
}

@media (max-width: 760px) {
  body:not(.labs-landing-body) .featured-work .initiative.feature-card,
  body:not(.labs-landing-body) .featured-work .learning-tool-card {
    padding: 1.35rem !important;
    border-radius: 26px !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-art {
    max-width: 230px !important;
    height: 138px !important;
  }
}

/* ===== v14 final home cards: equal gradient cards, top-aligned icons, no floating rhythm ===== */

/* Make both homepage feature cards feel like siblings. */
body:not(.labs-landing-body) .featured-work .initiative.feature-card,
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  background:
    radial-gradient(circle at 10% 8%, rgba(116, 182, 29, 0.12), transparent 32%),
    radial-gradient(circle at 92% 92%, rgba(240, 60, 112, 0.11), transparent 36%),
    rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(12, 108, 28, 0.12) !important;
  border-radius: 30px !important;
  padding: clamp(1.75rem, 2.45vw, 2.25rem) !important;
  min-height: 330px !important;
  box-shadow: 0 16px 34px rgba(12, 108, 28, 0.045) !important;
}

/* Kichu card: clean two-column card with the icon/label/title top-aligned in the content column. */
body:not(.labs-landing-body) .featured-work .initiative.feature-card {
  display: grid !important;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) !important;
  grid-template-rows: 1fr auto !important;
  column-gap: clamp(1.5rem, 2.4vw, 2.2rem) !important;
  row-gap: 1rem !important;
  align-items: center !important;
}

body:not(.labs-landing-body) .featured-work .initiative-media {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 100% !important;
}

body:not(.labs-landing-body) .featured-work .initiative-art {
  width: 100% !important;
  max-width: 250px !important;
  height: 150px !important;
  object-fit: contain !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 0 !important;
  min-width: 0 !important;
}

/* Icon: same size/position language as Learning Labs. No centered floating icon. */
body:not(.labs-landing-body) .featured-work .initiative-copy::before,
body:not(.labs-landing-body) .featured-work .learning-labs-home-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 0 0.9rem 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(116, 182, 29, 0.16), rgba(240, 60, 112, 0.09)) !important;
  border: 7px solid #ffffff !important;
  box-shadow: 0 8px 18px rgba(24, 48, 31, 0.09) !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}

/* Learning Labs card gets the same top content rhythm and no icon crowding. */
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left !important;
}

body:not(.labs-landing-body) .featured-work .initiative-label,
body:not(.labs-landing-body) .featured-work .learning-tool-card .initiative-label {
  margin: 0 0 0.55rem 0 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy h2,
body:not(.labs-landing-body) .featured-work .learning-tool-card h2 {
  margin: 0 !important;
  font-size: clamp(2.05rem, 2.65vw, 2.75rem) !important;
  line-height: 1.04 !important;
}

body:not(.labs-landing-body) .featured-work .initiative-copy p,
body:not(.labs-landing-body) .featured-work .learning-tool-card p {
  margin: 0.8rem 0 0 !important;
  font-size: 15.5px !important;
  line-height: 1.62 !important;
}

/* Button alignment. */
body:not(.labs-landing-body) .featured-work .initiative-btn {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: min(100%, 360px) !important;
  margin: 0 !important;
}

body:not(.labs-landing-body) .featured-work .home-labs-actions {
  width: 100% !important;
  margin-top: 1.1rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
}

body:not(.labs-landing-body) .featured-work .tool-btn {
  width: min(100%, 360px) !important;
  margin: 0 !important;
  align-self: flex-start !important;
}

/* Tablet/mobile: stack cleanly and center everything. */
@media (max-width: 1180px) {
  body:not(.labs-landing-body) .featured-work .initiative.feature-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    text-align: center !important;
    min-height: auto !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-media,
  body:not(.labs-landing-body) .featured-work .initiative-copy,
  body:not(.labs-landing-body) .featured-work .initiative-btn {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-copy,
  body:not(.labs-landing-body) .featured-work .learning-tool-card {
    align-items: center !important;
    text-align: center !important;
    justify-content: flex-start !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-copy::before,
  body:not(.labs-landing-body) .featured-work .learning-labs-home-icon {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body:not(.labs-landing-body) .featured-work .home-labs-actions {
    align-items: center !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-btn,
  body:not(.labs-landing-body) .featured-work .tool-btn {
    align-self: center !important;
    justify-self: center !important;
    width: min(100%, 340px) !important;
  }
}

@media (max-width: 760px) {
  body:not(.labs-landing-body) .featured-work .initiative.feature-card,
  body:not(.labs-landing-body) .featured-work .learning-tool-card {
    padding: 1.35rem !important;
    border-radius: 26px !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-art {
    max-width: 230px !important;
    height: 138px !important;
  }
}

/* ===== v15 final publish polish: soft warm page background ===== */

:root {
  --page-bg: #FCF8F7;
}

html,
body {
  background-color: #FCF8F7 !important;
}

/* Keep the soft page background consistent behind all pages and responsive views. */
body::before {
  background-color: #FCF8F7 !important;
}

/* ===== v16 force warm background across every visible page canvas ===== */

/* The visible site canvas was still white because .page and a few page wrappers painted over body. */
:root {
  --page-bg: #FCF8F7;
}

html,
body,
.page {
  background: #FCF8F7 !important;
  background-color: #FCF8F7 !important;
}

main,
main.page-main,
.labs-landing-page,
.lab-page,
.money-lab-page,
.color-lab-page,
.home-page,
.game-page,
.page-shell,
.app-shell,
.site-main {
  background-color: #FCF8F7 !important;
}

/* Keep decorative soft gradients, but make their base warm beige instead of white. */
.hero,
.labs-hero-section,
.lab-hero-section,
.learning-lab-hero,
.game-shell,
.lab-shell,
.play-section,
.how-to-section,
.grownups-section,
.featured-work,
.labs-grid-section {
  background-color: transparent !important;
}

/* Preserve the white/soft card surfaces so they still pop against the warm page. */
.card,
.feature-card,
.hero-card,
.lab-card,
.info-card,
.practice-card,
.tool-card,
.game-card,
.panel,
.site-header,
.mobile-menu,
.mobile-menu-panel {
  /* Do not force these to beige; cards/nav should remain their designed surfaces. */
}

/* Mobile/tablet safety: prevent any wrapper from showing a white strip behind the content. */
@media (max-width: 1180px) {
  html,
  body,
  .page,
  main,
  main.page-main,
  .labs-landing-page,
  .lab-page,
  .money-lab-page,
  .color-lab-page,
  .home-page,
  .game-page,
  .page-shell,
  .app-shell,
  .site-main {
    background: #FCF8F7 !important;
    background-color: #FCF8F7 !important;
  }
}

/* ===== v17 Learning Labs mobile hero compact like individual lab pages ===== */

/* Tablet/mobile: make Learning Labs hero intro feel like the individual lab intro cards. */
@media (max-width: 1180px) {
  .labs-landing-page .labs-hero-section {
    width: min(100% - 34px, 760px) !important;
    margin-top: 1rem !important;
  }

  .labs-landing-page .labs-hero-copy {
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding: clamp(1.25rem, 4vw, 1.75rem) !important;
  }

  .labs-landing-page .labs-hero-copy .labs-kicker {
    margin-bottom: 0.45rem !important;
  }

  .labs-landing-page .labs-hero-copy h1 {
    font-size: clamp(2.55rem, 8vw, 3.65rem) !important;
    line-height: 1.02 !important;
    margin: 0 0 0.55rem !important;
    max-width: 100% !important;
  }

  .labs-landing-page .labs-hero-tagline {
    font-size: clamp(1.1rem, 3.7vw, 1.45rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.55rem !important;
  }

  .labs-landing-page .labs-hero-note {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 0.85rem !important;
    max-width: 100% !important;
  }

  .labs-landing-page .labs-hero-badge {
    width: 100% !important;
    margin: 0 0 0.9rem !important;
    padding: 0.85rem 1rem !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border-radius: 22px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  .labs-landing-page .labs-hero-badge .badge-star {
    flex: 0 0 auto !important;
  }

  .labs-landing-page .labs-hero-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .labs-landing-page .labs-hero-actions .btn {
    width: min(100%, 320px) !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-section {
    width: min(100% - 22px, 560px) !important;
    margin-top: 0.85rem !important;
  }

  .labs-landing-page .labs-hero-copy {
    border-radius: 26px !important;
    padding: 1.05rem 1rem 1.15rem !important;
  }

  .labs-landing-page .labs-hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 2.95rem) !important;
    line-height: 1.03 !important;
  }

  .labs-landing-page .labs-hero-tagline {
    font-size: 1.05rem !important;
  }

  .labs-landing-page .labs-hero-note {
    font-size: 14.5px !important;
    line-height: 1.5 !important;
  }

  .labs-landing-page .labs-hero-badge {
    padding: 0.75rem 0.85rem !important;
    font-size: 14px !important;
  }

  .labs-landing-page .labs-hero-actions .btn {
    width: min(100%, 280px) !important;
    min-height: 52px !important;
    padding: 0.85rem 1rem !important;
  }
}

@media (max-width: 420px) {
  .labs-landing-page .labs-hero-copy h1 {
    font-size: clamp(2.1rem, 10.5vw, 2.55rem) !important;
  }

  .labs-landing-page .labs-hero-copy {
    padding: 0.95rem 0.9rem 1.05rem !important;
  }
}

/* ===== v18 final mobile CTA + unified mobile header alignment ===== */

/* Learning Labs landing mobile CTA should feel like individual lab CTAs:
   full-width inside the card on mobile, centered on tablet. */
@media (max-width: 760px) {
  .labs-landing-page .labs-hero-actions,
  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: 100% !important;
  }

  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    max-width: none !important;
    min-height: 58px !important;
    border-radius: 10px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .labs-landing-page .labs-hero-actions {
    width: 100% !important;
    justify-content: center !important;
  }

  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: min(100%, 360px) !important;
  }
}

/* Normalize mobile/tablet header across Home, Learning Labs, Money Lab, and Color Lab.
   Some lab pages had slightly different inherited spacing. */
@media (max-width: 1180px) {
  .site-header {
    width: 100% !important;
    min-height: 96px !important;
    padding: 0.75rem clamp(1rem, 3.5vw, 1.4rem) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .site-header .brand,
  .site-header .brand-link,
  .site-header .logo-link {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .site-header .brand img,
  .site-header .logo,
  .site-header .site-logo,
  .site-header .brand-logo {
    display: block !important;
    height: clamp(54px, 11vw, 74px) !important;
    width: auto !important;
    max-width: min(50vw, 270px) !important;
    object-fit: contain !important;
  }

  .site-header .quick-nav {
    display: none !important;
  }

  .site-header .header-actions,
  .site-header .nav-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  .site-header .contact-button,
  .site-header .contact-btn,
  .site-header .header-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: clamp(50px, 9vw, 60px) !important;
    min-height: 0 !important;
    padding: 0 1.05rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    font-size: clamp(0.9rem, 2.8vw, 1rem) !important;
    line-height: 1 !important;
  }

  .site-header .menu-toggle,
  .site-header .mobile-menu-toggle,
  .site-header .hamburger,
  .site-header .hamburger-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(50px, 9vw, 60px) !important;
    height: clamp(50px, 9vw, 60px) !important;
    min-width: clamp(50px, 9vw, 60px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 86px !important;
    padding: 0.65rem 0.8rem !important;
    gap: 0.5rem !important;
  }

  .site-header .brand img,
  .site-header .logo,
  .site-header .site-logo,
  .site-header .brand-logo {
    height: clamp(48px, 12vw, 60px) !important;
    max-width: 43vw !important;
  }

  .site-header .header-actions,
  .site-header .nav-actions {
    gap: 0.45rem !important;
  }

  .site-header .contact-button,
  .site-header .contact-btn,
  .site-header .header-cta {
    height: 52px !important;
    padding: 0 0.85rem !important;
    font-size: 0.9rem !important;
  }

  .site-header .menu-toggle,
  .site-header .mobile-menu-toggle,
  .site-header .hamburger,
  .site-header .hamburger-button {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
  }
}

@media (max-width: 390px) {
  .site-header .contact-button,
  .site-header .contact-btn,
  .site-header .header-cta {
    padding: 0 0.7rem !important;
    font-size: 0.82rem !important;
  }

  .site-header .menu-toggle,
  .site-header .mobile-menu-toggle,
  .site-header .hamburger,
  .site-header .hamburger-button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }
}

/* ===== v19 publish polish: simple home cards + consistent tablet/mobile header ===== */

/* Remove the gradient treatment from the two homepage feature cards.
   Keep them simple/soft like the other cards. */
body:not(.labs-landing-body) .featured-work .initiative.feature-card,
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  background: rgba(255, 255, 255, 0.92) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
}

/* Keep the small icons soft without adding a card-wide gradient feeling. */
body:not(.labs-landing-body) .featured-work .initiative-copy::before,
body:not(.labs-landing-body) .featured-work .learning-labs-home-icon {
  background: #f4faef !important;
}

/* Tablet header should use hamburger consistently on Home and Little Learning Labs too,
   not just individual lab pages. */
@media (max-width: 1180px) {
  .quick-nav,
  .quick-nav.header-links,
  .site-header .quick-nav,
  .site-header .quick-nav.header-links,
  .nav,
  .site-header .nav {
    display: none !important;
  }

  .mobile-menu-toggle,
  .site-header .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .site-header {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .header-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
}

/* Learning Labs landing page: center the CTA cleanly on tablet,
   full-width only on smaller mobile. */
@media (min-width: 761px) and (max-width: 1180px) {
  .labs-landing-page .labs-hero-actions {
    width: 100% !important;
    justify-content: center !important;
  }

  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: min(100%, 360px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-actions {
    width: 100% !important;
  }

  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== v23 final: stable desktop nav + one clean tablet/mobile nav ===== */

/* Desktop safety: keep desktop nav visible and hide mobile-only controls above tablet breakpoint. */
@media (min-width: 1181px) {
  .site-header {
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .quick-nav.header-links,
  .site-header .quick-nav.header-links {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: 24px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 22px !important;
  }

  .mobile-contact-link,
  .mobile-menu-toggle {
    display: none !important;
  }

  .header-cta {
    display: inline-flex !important;
  }
}

/* Tablet/mobile header: logo + wordmark, Get in Touch, hamburger.
   This mirrors the working individual lab rhythm but does not alter desktop. */
@media (max-width: 1180px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    min-height: 86px !important;
    padding: 0.75rem clamp(1rem, 3vw, 1.6rem) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(234, 223, 205, 0.65) !important;
    box-shadow: 0 2px 18px rgba(24, 48, 31, 0.035) !important;
  }

  .header-brand {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .brand-icon {
    width: clamp(50px, 7vw, 62px) !important;
    height: clamp(50px, 7vw, 62px) !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
  }

  .brand-wordmark {
    width: clamp(165px, 24vw, 220px) !important;
    max-width: 100% !important;
    height: auto !important;
    flex: 0 1 auto !important;
    object-fit: contain !important;
  }

  .header-cta {
    display: none !important;
  }

  .mobile-contact-link {
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: clamp(50px, 7vw, 58px) !important;
    padding: 0 1.15rem !important;
    border-radius: 10px !important;
    background: var(--green, #0c6c1c) !important;
    color: #ffffff !important;
    border: 1px solid var(--green, #0c6c1c) !important;
    font-size: clamp(0.85rem, 1.7vw, 1rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 10px 22px rgba(12, 108, 28, 0.14) !important;
    flex: 0 0 auto !important;
  }

  .mobile-menu-toggle {
    order: 3 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: clamp(50px, 7vw, 58px) !important;
    height: clamp(50px, 7vw, 58px) !important;
    min-width: clamp(50px, 7vw, 58px) !important;
    min-height: clamp(50px, 7vw, 58px) !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(12, 108, 28, 0.18) !important;
    background: #ffffff !important;
    color: var(--green, #0c6c1c) !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px rgba(24, 48, 31, 0.08) !important;
    flex: 0 0 auto !important;
  }

  .hamburger-line {
    display: block !important;
    width: 21px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: var(--green, #0c6c1c) !important;
    opacity: 1 !important;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease !important;
  }

  .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--green, #0c6c1c) !important;
    border-color: var(--green, #0c6c1c) !important;
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line {
    background: #ffffff !important;
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
  }

  .quick-nav.header-links,
  .site-header .quick-nav.header-links {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 1px) !important;
    right: clamp(0.8rem, 3vw, 1.6rem) !important;
    left: auto !important;
    width: min(340px, calc(100vw - 1.6rem)) !important;
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(12, 108, 28, 0.12) !important;
    border-radius: 0 0 22px 22px !important;
    box-shadow: 0 18px 38px rgba(24, 48, 31, 0.14) !important;
    z-index: 10000 !important;
    backdrop-filter: blur(14px) !important;
  }

  .quick-nav.header-links.open,
  .site-header .quick-nav.header-links.open {
    display: flex !important;
  }

  .quick-nav.header-links .nav-link,
  .quick-nav.header-links a {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0.58rem 0.35rem !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--green, #0c6c1c) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: right !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }
}

/* Phone sizing: keep all three header elements visible. */
@media (max-width: 520px) {
  .site-header {
    min-height: 72px !important;
    padding: 0.6rem 0.8rem !important;
    gap: 0.5rem !important;
  }

  .brand-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .brand-wordmark {
    width: clamp(132px, 35vw, 160px) !important;
  }

  .mobile-contact-link {
    height: 46px !important;
    padding: 0 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .mobile-menu-toggle {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .hamburger-line {
    width: 18px !important;
  }
}

/* Keep Kichu image centered on tablet/mobile feature cards. */
@media (max-width: 1180px) {
  body:not(.labs-landing-body) .featured-work .initiative-media {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-art {
    display: block !important;
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
  }
}

/* Learning Labs landing CTA: tablet centered, mobile full width. */
@media (min-width: 761px) and (max-width: 1180px) {
  .labs-landing-page .labs-hero-actions {
    width: 100% !important;
    justify-content: center !important;
  }

  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: min(100%, 360px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-actions,
  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== v24 final header rescue: visible logo + compact tablet/mobile menu ===== */

/* Desktop remains untouched except making sure mobile controls stay hidden. */
@media (min-width: 1181px) {
  .site-header .mobile-contact-link,
  .site-header .mobile-menu-toggle {
    display: none !important;
  }

  .site-header .quick-nav.header-links {
    display: flex !important;
    position: static !important;
    transform: none !important;
  }
}

/* Tablet/mobile: rebuild the header layout from first principles so old accumulated rules
   cannot push the logo off-screen or place controls before the logo. */
@media (max-width: 1180px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 86px !important;
    padding: 0.7rem clamp(0.9rem, 3vw, 1.4rem) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0.7rem !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(234, 223, 205, 0.65) !important;
    box-shadow: 0 2px 18px rgba(24, 48, 31, 0.04) !important;
    z-index: 9999 !important;
  }

  .site-header .header-inner {
    display: contents !important;
  }

  .site-header .header-brand {
    order: 1 !important;
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
  }

  .site-header .brand-icon {
    display: block !important;
    width: clamp(50px, 7vw, 62px) !important;
    height: clamp(50px, 7vw, 62px) !important;
    min-width: clamp(50px, 7vw, 62px) !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .brand-wordmark {
    display: block !important;
    width: clamp(165px, 24vw, 220px) !important;
    max-width: min(46vw, 220px) !important;
    height: auto !important;
    flex: 0 1 auto !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .header-cta {
    display: none !important;
  }

  .site-header .mobile-contact-link {
    order: 2 !important;
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    height: clamp(50px, 7vw, 58px) !important;
    min-height: 0 !important;
    padding: 0 1.05rem !important;
    border-radius: 10px !important;
    border: 1px solid var(--green, #0c6c1c) !important;
    background: var(--green, #0c6c1c) !important;
    color: #ffffff !important;
    font-size: clamp(0.85rem, 1.7vw, 1rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 10px 22px rgba(12, 108, 28, 0.14) !important;
  }

  .site-header .mobile-menu-toggle {
    order: 3 !important;
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    width: clamp(50px, 7vw, 58px) !important;
    height: clamp(50px, 7vw, 58px) !important;
    min-width: clamp(50px, 7vw, 58px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(12, 108, 28, 0.18) !important;
    background: #ffffff !important;
    color: var(--green, #0c6c1c) !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px rgba(24, 48, 31, 0.08) !important;
  }

  .site-header .hamburger-line {
    display: block !important;
    width: 21px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: var(--green, #0c6c1c) !important;
    opacity: 1 !important;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--green, #0c6c1c) !important;
    border-color: var(--green, #0c6c1c) !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line {
    background: #ffffff !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
  }

  .site-header .quick-nav.header-links {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 1px) !important;
    right: clamp(0.8rem, 3vw, 1.4rem) !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(340px, calc(100vw - 1.6rem)) !important;
    height: auto !important;
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(12, 108, 28, 0.12) !important;
    border-radius: 0 0 22px 22px !important;
    box-shadow: 0 18px 38px rgba(24, 48, 31, 0.14) !important;
    z-index: 10000 !important;
    backdrop-filter: blur(14px) !important;
  }

  .site-header .quick-nav.header-links.open {
    display: flex !important;
  }

  .site-header .quick-nav.header-links .nav-link,
  .site-header .quick-nav.header-links a {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0.58rem 0.35rem !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--green, #0c6c1c) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: right !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }
}

/* Narrow phones: all three header elements remain visible without clipping. */
@media (max-width: 560px) {
  .site-header {
    min-height: 74px !important;
    padding: 0.58rem 0.75rem !important;
    gap: 0.45rem !important;
  }

  .site-header .header-brand {
    gap: 0.45rem !important;
  }

  .site-header .brand-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  .site-header .brand-wordmark {
    width: clamp(130px, 35vw, 158px) !important;
    max-width: 36vw !important;
  }

  .site-header .mobile-contact-link {
    height: 46px !important;
    padding: 0 0.82rem !important;
    font-size: 0.82rem !important;
  }

  .site-header .mobile-menu-toggle {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  .site-header .hamburger-line {
    width: 18px !important;
  }
}

@media (max-width: 390px) {
  .site-header .brand-wordmark {
    width: clamp(116px, 33vw, 140px) !important;
    max-width: 33vw !important;
  }

  .site-header .mobile-contact-link {
    padding: 0 0.68rem !important;
    font-size: 0.78rem !important;
  }

  .site-header .mobile-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
}

/* Keep feature cards simple and Kichu image centered. */
body:not(.labs-landing-body) .featured-work .initiative.feature-card,
body:not(.labs-landing-body) .featured-work .learning-tool-card {
  background: rgba(255, 255, 255, 0.94) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
}

@media (max-width: 1180px) {
  body:not(.labs-landing-body) .featured-work .initiative-media {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body:not(.labs-landing-body) .featured-work .initiative-art {
    display: block !important;
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
  }
}

/* Learning Labs landing CTA: tablet centered, mobile full width. */
@media (min-width: 761px) and (max-width: 1180px) {
  .labs-landing-page .labs-hero-actions {
    width: 100% !important;
    justify-content: center !important;
  }

  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: min(100%, 360px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .labs-landing-page .labs-hero-actions,
  .labs-landing-page .labs-hero-actions .btn,
  .labs-landing-page .labs-hero-actions .primary-btn {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===== v25 final polish: hamburger reset + final social previews + mobile top spacing ===== */

/* Hamburger must visibly return to the three-line green icon after closing.
   This handles cases where older transform/color rules linger after aria-expanded flips back. */
@media (max-width: 1180px) {
  .site-header .mobile-menu-toggle[aria-expanded="false"],
  .site-header .mobile-menu-toggle:not([aria-expanded="true"]) {
    background: #ffffff !important;
    border-color: rgba(12, 108, 28, 0.18) !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="false"] .hamburger-line,
  .site-header .mobile-menu-toggle:not([aria-expanded="true"]) .hamburger-line {
    background: var(--green, #0c6c1c) !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="false"] .hamburger-line:nth-child(1),
  .site-header .mobile-menu-toggle[aria-expanded="false"] .hamburger-line:nth-child(2),
  .site-header .mobile-menu-toggle[aria-expanded="false"] .hamburger-line:nth-child(3),
  .site-header .mobile-menu-toggle:not([aria-expanded="true"]) .hamburger-line:nth-child(1),
  .site-header .mobile-menu-toggle:not([aria-expanded="true"]) .hamburger-line:nth-child(2),
  .site-header .mobile-menu-toggle:not([aria-expanded="true"]) .hamburger-line:nth-child(3) {
    background: var(--green, #0c6c1c) !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Home page mobile/tablet: remove the extra visual gap under the header.
   Individual lab pages already look fine, so this is scoped to the home hero. */
@media (max-width: 760px) {
  body:not(.labs-landing-body) .hero {
    padding-top: clamp(1.35rem, 5vw, 2rem) !important;
  }

  body:not(.labs-landing-body) .hero-content,
  body:not(.labs-landing-body) .hero-copy {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.labs-landing-body .labs-landing-page {
    padding-top: clamp(1.25rem, 4.5vw, 1.8rem) !important;
  }

  body.labs-landing-body .labs-hero {
    margin-top: 0 !important;
  }

  body.labs-landing-body .labs-hero-copy {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* Tablet: tighten top spacing on Home and Learning Labs landing page without touching lab pages. */
@media (min-width: 761px) and (max-width: 1180px) {
  body:not(.labs-landing-body) .hero {
    padding-top: clamp(2rem, 4vw, 3rem) !important;
  }

  body.labs-landing-body .labs-landing-page {
    padding-top: clamp(1.75rem, 3vw, 2.5rem) !important;
  }

  body.labs-landing-body .labs-hero {
    margin-top: 0 !important;
  }
}

/* ===== v26 spacing fix: remove unnecessary gap below header on Home + Learning Labs ===== */

/* Home page: hero should begin close to the header like the individual lab pages. */
body:not(.labs-landing-body) main,
body:not(.labs-landing-body) .page-shell,
body:not(.labs-landing-body) .home-page,
body:not(.labs-landing-body) .hero,
body:not(.labs-landing-body) .hero-section {
  margin-top: 0 !important;
}

/* Learning Labs landing page: no blank band above the header or hero card. */
body.labs-landing-body,
body.labs-landing-body main,
body.labs-landing-body .page-shell,
body.labs-landing-body .labs-landing-page,
body.labs-landing-body .labs-page,
body.labs-landing-body .labs-hero,
body.labs-landing-body .labs-hero-section {
  margin-top: 0 !important;
}

/* Remove the pale strip above the header on Learning Labs page if it comes from body/page padding. */
body.labs-landing-body {
  padding-top: 0 !important;
}

/* Desktop/tablet: tighten the first content section after header. */
@media (min-width: 761px) {
  body:not(.labs-landing-body) .hero {
    padding-top: clamp(2rem, 4vw, 3rem) !important;
  }

  body.labs-landing-body .labs-landing-page {
    padding-top: clamp(1.75rem, 3vw, 2.5rem) !important;
  }

  body.labs-landing-body .labs-hero {
    padding-top: 0 !important;
  }
}

/* Mobile: match the compact rhythm of Money Lab / Color Lab pages. */
@media (max-width: 760px) {
  body:not(.labs-landing-body) .hero {
    padding-top: 1.15rem !important;
  }

  body:not(.labs-landing-body) .hero-content,
  body:not(.labs-landing-body) .hero-copy {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.labs-landing-body .labs-landing-page {
    padding-top: 1.1rem !important;
  }

  body.labs-landing-body .labs-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.labs-landing-body .labs-hero-copy {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Very small screens: keep the hero card comfortably close but not cramped. */
@media (max-width: 520px) {
  body:not(.labs-landing-body) .hero {
    padding-top: 0.95rem !important;
  }

  body.labs-landing-body .labs-landing-page {
    padding-top: 0.95rem !important;
  }
}

/* ===== v27 actual spacing fix: remove old responsive main padding on Home + Learning Labs ===== */

/*
  Root cause:
  An older responsive rule had:
    @media (max-width: 1180px) { main { padding-top: 96px; } }
    @media (max-width: 760px)  { main { padding-top: 78px; } }

  That rule is what created the big empty band below the sticky header on Home
  and Little Learning Labs. Individual lab pages use their own CSS, so they did
  not have this same gap.
*/

@media (max-width: 1180px) {
  body:not(.money-lab-body):not(.color-lab-body) main,
  body:not(.money-lab-body):not(.color-lab-body) .page > main {
    padding-top: 0 !important;
  }

  body:not(.money-lab-body):not(.color-lab-body) .hero {
    padding-top: clamp(1.1rem, 3vw, 1.6rem) !important;
  }

  body.labs-landing-body .labs-hero-section {
    margin-top: 0 !important;
    padding-top: clamp(1rem, 2.5vw, 1.45rem) !important;
  }
}

@media (max-width: 760px) {
  body:not(.money-lab-body):not(.color-lab-body) main,
  body:not(.money-lab-body):not(.color-lab-body) .page > main {
    padding-top: 0 !important;
  }

  body:not(.money-lab-body):not(.color-lab-body) .hero {
    padding-top: 0.85rem !important;
  }

  body.labs-landing-body .labs-landing-page {
    padding-top: 0 !important;
  }

  body.labs-landing-body .labs-hero-section {
    margin-top: 0 !important;
    padding-top: 0.85rem !important;
  }
}

/* Keep the hamburger icon visible after menu close. */
@media (max-width: 1180px) {
  .site-header .mobile-menu-toggle[aria-expanded="false"] .hamburger-line,
  .site-header .mobile-menu-toggle:not([aria-expanded="true"]) .hamburger-line {
    background: var(--green, #0c6c1c) !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="false"],
  .site-header .mobile-menu-toggle:not([aria-expanded="true"]) {
    background: #ffffff !important;
    border-color: rgba(12, 108, 28, 0.18) !important;
  }
}

/* ===== v28 final spacing polish: Learning Labs tablet header + mobile hero label ===== */

/* Learning Labs landing page only:
   remove the tablet-only strip above the header by resetting page/body wrapper spacing. */
@media (min-width: 761px) and (max-width: 1180px) {
  html,
  body.labs-landing-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.labs-landing-body .page,
  body.labs-landing-body .site-shell,
  body.labs-landing-body .page-shell,
  body.labs-landing-body .labs-landing-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.labs-landing-body .site-header {
    top: 0 !important;
    margin-top: 0 !important;
  }

  body.labs-landing-body main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.labs-landing-body .labs-hero-section {
    padding-top: 1.25rem !important;
  }
}

/* Learning Labs mobile only:
   add a small comfortable space above the pink label inside the hero card. */
@media (max-width: 760px) {
  body.labs-landing-body .labs-hero-copy {
    padding-top: 0.55rem !important;
  }

  body.labs-landing-body .labs-hero-kicker,
  body.labs-landing-body .eyebrow,
  body.labs-landing-body .section-eyebrow {
    margin-top: 0.15rem !important;
  }
}

@media (max-width: 520px) {
  body.labs-landing-body .labs-hero-copy {
    padding-top: 0.7rem !important;
  }
}

/* ===== v30 Color Lab slider fix: keep controls thick and kid-friendly ===== */

/* Scope only to Color Lab so Home, Learning Labs landing, and Money Lab stay unchanged. */
.color-lab-body input[type="range"],
.color-lab-page input[type="range"],
body.color-lab-body input[type="range"] {
  width: 100% !important;
  min-width: 180px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  touch-action: pan-y !important;
}

/* Saturation and Light/Dark tracks: visibly thick pink track. */
.color-lab-body input[type="range"]:not(.hue-slider)::-webkit-slider-runnable-track,
.color-lab-page input[type="range"]:not(.hue-slider)::-webkit-slider-runnable-track {
  height: 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #ef3b73 !important;
  box-shadow: inset 0 0 0 1px rgba(239, 59, 115, 0.08) !important;
}

.color-lab-body input[type="range"]:not(.hue-slider)::-moz-range-track,
.color-lab-page input[type="range"]:not(.hue-slider)::-moz-range-track {
  height: 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #ef3b73 !important;
  box-shadow: inset 0 0 0 1px rgba(239, 59, 115, 0.08) !important;
}

/* Hue track stays color-wheel style but thick enough to grab. */
.color-lab-body input[type="range"].hue-slider::-webkit-slider-runnable-track,
.color-lab-page input[type="range"].hue-slider::-webkit-slider-runnable-track {
  height: 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
}

.color-lab-body input[type="range"].hue-slider::-moz-range-track,
.color-lab-page input[type="range"].hue-slider::-moz-range-track {
  height: 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
}

/* Large, obvious thumb for all three sliders. */
.color-lab-body input[type="range"]::-webkit-slider-thumb,
.color-lab-page input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 42px !important;
  height: 42px !important;
  margin-top: -12px !important;
  border-radius: 50% !important;
  border: 6px solid #ffffff !important;
  background: #ef3b73 !important;
  box-shadow: 0 8px 18px rgba(239, 59, 115, 0.28), 0 0 0 1px rgba(12, 108, 28, 0.08) !important;
}

.color-lab-body input[type="range"]::-moz-range-thumb,
.color-lab-page input[type="range"]::-moz-range-thumb {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 6px solid #ffffff !important;
  background: #ef3b73 !important;
  box-shadow: 0 8px 18px rgba(239, 59, 115, 0.28), 0 0 0 1px rgba(12, 108, 28, 0.08) !important;
}

/* Mobile/tablet: keep the same child-friendly touch size. */
@media (max-width: 1180px) {
  .color-lab-body input[type="range"],
  .color-lab-page input[type="range"] {
    height: 48px !important;
    min-width: 200px !important;
  }

  .color-lab-body input[type="range"]:not(.hue-slider)::-webkit-slider-runnable-track,
  .color-lab-page input[type="range"]:not(.hue-slider)::-webkit-slider-runnable-track,
  .color-lab-body input[type="range"].hue-slider::-webkit-slider-runnable-track,
  .color-lab-page input[type="range"].hue-slider::-webkit-slider-runnable-track {
    height: 20px !important;
  }

  .color-lab-body input[type="range"]:not(.hue-slider)::-moz-range-track,
  .color-lab-page input[type="range"]:not(.hue-slider)::-moz-range-track,
  .color-lab-body input[type="range"].hue-slider::-moz-range-track,
  .color-lab-page input[type="range"].hue-slider::-moz-range-track {
    height: 20px !important;
  }

  .color-lab-body input[type="range"]::-webkit-slider-thumb,
  .color-lab-page input[type="range"]::-webkit-slider-thumb {
    width: 46px !important;
    height: 46px !important;
    margin-top: -13px !important;
  }

  .color-lab-body input[type="range"]::-moz-range-thumb,
  .color-lab-page input[type="range"]::-moz-range-thumb {
    width: 46px !important;
    height: 46px !important;
  }
}


/* ===== v30: final Learning Labs landing-card consistency pass ===== */
.labs-card-grid {
  align-items: stretch !important;
}

.labs-overview-card {
  height: 100% !important;
  padding: 1.65rem !important;
  border: 1px solid rgba(12, 108, 28, 0.11) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 45px rgba(24, 48, 31, 0.1) !important;
}

.labs-card-top {
  width: 100% !important;
  min-height: 78px !important;
  align-items: center !important;
}

.labs-card-top h3 {
  margin: 0.2rem 0 0 !important;
  color: var(--green) !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}

.labs-overview-card > p,
.labs-feature-list {
  color: #3f453f !important;
  font-family: var(--sans) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.68 !important;
}

.labs-card-icon.maze {
  background: #fff7fa !important;
  border: 1px solid rgba(240, 60, 112, 0.2) !important;
}

.labs-overview-card .btn {
  min-height: 48px !important;
  padding: 0.75rem 1.15rem !important;
  border: 2px solid var(--pink) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--pink) !important;
  font-family: var(--sans) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.labs-overview-card .btn:hover,
.labs-overview-card .btn:focus-visible {
  border-color: #c92f5c !important;
  background: #fff0f4 !important;
  color: #c92f5c !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

@media (min-width: 901px) {
  .labs-overview-card > p {
    min-height: 5.15em !important;
  }

  .labs-feature-list {
    min-height: 5.15em !important;
  }
}

@media (max-width: 760px) {
  .labs-card-top {
    min-height: 0 !important;
  }

  .labs-overview-card > p,
  .labs-feature-list {
    min-height: 0 !important;
  }
}


/* ===== v38: consistent two-line legal footer on mobile ===== */
@media (max-width: 760px) {
  .site-footer-brand {
    width: 100% !important;
    text-align: center !important;
    line-height: 1.55 !important;
  }

  .site-footer-brand .footer-copyright,
  .site-footer-brand .footer-tagline-line {
    display: block !important;
    width: 100% !important;
  }

  .site-footer-brand .footer-tagline-line {
    margin-top: 0.12rem !important;
  }

  .site-footer-brand .footer-tagline-line::before {
    content: "" !important;
  }
}

/* ===== v43: universal tablet/mobile navigation ===== */
@media (max-width: 1180px) {
  body.mobile-nav-open {
    overflow: hidden !important;
  }

  .site-header {
    position: relative !important;
    overflow: visible !important;
  }

  .site-header .header-cta {
    display: none !important;
  }

  .site-header .mobile-contact-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    min-width: 104px !important;
    min-height: 40px !important;
    padding: 0 0.78rem !important;
    border: 2px solid #0c6c1c !important;
    border-radius: 8px !important;
    background: #0c6c1c !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(12, 108, 28, 0.12) !important;
    font-family: var(--sans) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .site-header .mobile-menu-toggle {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex: 0 0 42px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border: 1px solid rgba(234, 223, 205, 0.98) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0c6c1c !important;
    box-shadow: 0 4px 14px rgba(24, 48, 31, 0.06) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transform: none !important;
  }

  .site-header .mobile-menu-toggle:hover,
  .site-header .mobile-menu-toggle:focus-visible,
  .site-header .mobile-menu-toggle[aria-expanded="true"] {
    border-color: rgba(12, 108, 28, 0.28) !important;
    background: #f7fbf7 !important;
    color: #0c6c1c !important;
    box-shadow: 0 6px 18px rgba(24, 48, 31, 0.09) !important;
  }

  .site-header .mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(240, 60, 112, 0.25) !important;
    outline-offset: 2px !important;
  }

  .site-header .mobile-menu-toggle .hamburger-line {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: currentColor !important;
    opacity: 1 !important;
    transform: translate(0, 0) rotate(0deg) !important;
    transform-origin: center !important;
    transition: transform 0.2s ease, opacity 0.16s ease !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  .site-header .header-links,
  .site-header .quick-nav.header-links {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    z-index: 9999 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100vh - 86px) !important;
    margin: 0 !important;
    padding: 14px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(234, 223, 205, 0.98) !important;
    border-radius: 0 0 18px 18px !important;
    background: rgba(255, 255, 255, 0.99) !important;
    box-shadow: 0 18px 42px rgba(24, 48, 31, 0.16) !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .header-links.open,
  .site-header .quick-nav.header-links.open {
    display: flex !important;
  }

  .site-header .header-links .nav-link,
  .site-header .header-links .home-link,
  .site-header .header-links .learning-labs-direct-link {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0.62rem 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(12, 108, 28, 0.08) !important;
    border-radius: 10px !important;
    background: #edf7ef !important;
    color: #0c6c1c !important;
    font-family: var(--sans) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
  }

  .site-header .header-links .nav-link:hover,
  .site-header .header-links .nav-link:focus-visible,
  .site-header .header-links .home-link:hover,
  .site-header .header-links .home-link:focus-visible,
  .site-header .header-links .learning-labs-direct-link:hover,
  .site-header .header-links .learning-labs-direct-link:focus-visible {
    border-color: rgba(240, 60, 112, 0.22) !important;
    background: #fff4f7 !important;
    color: #f03c70 !important;
  }
}

@media (max-width: 430px) {
  .site-header .mobile-contact-link {
    display: none !important;
  }

  .site-header .mobile-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }

  .site-header .header-links,
  .site-header .quick-nav.header-links {
    left: 8px !important;
    right: 8px !important;
  }
}

@media (min-width: 1181px) {
  .site-header .mobile-menu-toggle,
  .site-header .mobile-contact-link {
    display: none !important;
  }

  .site-header .header-links,
  .site-header .quick-nav.header-links {
    display: flex !important;
  }
}

/* v43 final guard: keep homepage and landing-page hamburger/menu identical to lab pages. */
@media (max-width: 1180px) {
  html body .site-header .mobile-menu-toggle .hamburger-line {
    background: #0c6c1c !important;
    background-color: #0c6c1c !important;
  }

  html body .site-header nav#primaryNav.header-links > a.nav-link,
  html body .site-header nav#primaryNav.header-links > a.home-link,
  html body .site-header nav#primaryNav.header-links > a.learning-labs-direct-link {
    justify-content: center !important;
    text-align: center !important;
    padding: 0.62rem 0.8rem !important;
  }
}
@media (max-width: 1180px) {
  html body .site-header .mobile-menu-toggle[aria-expanded="false"] .hamburger-line,
  html body .site-header .mobile-menu-toggle[aria-expanded="true"] .hamburger-line {
    background: #0c6c1c !important;
    background-color: #0c6c1c !important;
  }
}


/* ===== v44: final unified tablet/mobile menu treatment ===== */
/* Home and Learning Labs use a separate desktop CTA, so the menu CTA is mobile/tablet only. */
@media (min-width: 1181px) {
  .site-header .quick-nav.header-links .nav-button {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .site-header > .header-cta,
  .site-header .mobile-contact-link {
    display: none !important;
  }

  html body .site-header nav#primaryNav.header-links,
  html body .site-header nav#primaryNav.quick-nav.header-links {
    padding: 14px !important;
    gap: 8px !important;
    border: 1px solid rgba(234, 223, 205, 0.98) !important;
    border-radius: 0 0 18px 18px !important;
    background: rgba(255, 255, 255, 0.99) !important;
    box-shadow: 0 18px 42px rgba(24, 48, 31, 0.16) !important;
  }

  html body .site-header nav#primaryNav.header-links > a,
  html body .site-header nav#primaryNav.quick-nav.header-links > a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.62rem 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-family: var(--sans, "Montserrat", sans-serif) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  html body .site-header nav#primaryNav.header-links > a:not(.nav-button),
  html body .site-header nav#primaryNav.quick-nav.header-links > a:not(.nav-button) {
    border: 1px solid rgba(12, 108, 28, 0.10) !important;
    background: #edf7ef !important;
    color: #0c6c1c !important;
    box-shadow: none !important;
  }

  html body .site-header nav#primaryNav.header-links > a:not(.nav-button):hover,
  html body .site-header nav#primaryNav.header-links > a:not(.nav-button):focus-visible,
  html body .site-header nav#primaryNav.quick-nav.header-links > a:not(.nav-button):hover,
  html body .site-header nav#primaryNav.quick-nav.header-links > a:not(.nav-button):focus-visible {
    border-color: rgba(240, 60, 112, 0.24) !important;
    background: #fff4f7 !important;
    color: #f03c70 !important;
  }

  html body .site-header nav#primaryNav.header-links > a.nav-button,
  html body .site-header nav#primaryNav.quick-nav.header-links > a.nav-button {
    display: flex !important;
    min-height: 44px !important;
    padding: 0.62rem 0.8rem !important;
    border: 2px solid #0c6c1c !important;
    background: #0c6c1c !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(12, 108, 28, 0.12) !important;
  }

  html body .site-header nav#primaryNav.header-links > a.nav-button:hover,
  html body .site-header nav#primaryNav.header-links > a.nav-button:focus-visible,
  html body .site-header nav#primaryNav.quick-nav.header-links > a.nav-button:hover,
  html body .site-header nav#primaryNav.quick-nav.header-links > a.nav-button:focus-visible {
    background: #095716 !important;
    border-color: #095716 !important;
    color: #ffffff !important;
  }
}

/* ===== v45: unified page-intro eyebrow across Home and Learning Labs ===== */
.eyebrow,
.labs-kicker {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 0.55rem !important;
  color: var(--pink) !important;
  font-family: var(--sans) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
}

@media (max-width: 1180px) {
  .eyebrow,
  .labs-kicker {
    font-size: 0.75rem !important;
    letter-spacing: 0.16em !important;
  }
}

@media (max-width: 760px) {
  .eyebrow,
  .labs-kicker {
    font-size: 0.75rem !important;
    letter-spacing: 0.16em !important;
    margin-bottom: 0.5rem !important;
  }
}
