/* Homepage only. Mobile first; validated header and theme-wide tokens stay intact. */
.tm-home { background: var(--tm-cream); font: 400 17px/1.65 var(--tm-font-body); }
.tm-home *, .tm-home *::before, .tm-home *::after { box-sizing: border-box; }
.tm-home :is(h1,h2,h3,p,ol) { margin: 0; }
.tm-home a { text-decoration: none; }
.tm-home-shell { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.tm-home .tm-home-eyebrow { color: var(--tm-emerald); font: 600 11px/1.5 var(--tm-font-body); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 12px; }
.tm-home h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.18; letter-spacing: -.035em; }
.tm-home h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.tm-home-hero { background: var(--tm-night); color: var(--tm-on-dark); padding: 44px 0 52px; }
.tm-home-hero__grid { display: grid; gap: 36px; }
.tm-home .tm-home-hero__eyebrow { color: var(--tm-mint); display: inline-block; padding: 5px 10px; border: 1px solid #33584f; border-radius: 20px; font-size: 10px; }
.tm-home h1 { font-size: clamp(33px, 4.3vw, 62px); line-height: 1.06; letter-spacing: -.045em; color: white; margin: 8px 0 22px; }
.tm-home-intro { color: var(--tm-on-dark-muted); max-width: 540px; font-size: 18px; }
.tm-home-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.tm-home .tm-button { gap: 15px; font-size: 15px; }
.tm-home .tm-home-button-ghost { background: transparent; border-color: #506073; color: white; }
.tm-home .tm-home-button-ghost:hover { background: #1a2c40; }
.tm-home-hero__principles { display: none; }
.tm-home-spotlight { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #e7eee9; color: var(--tm-night); border: 1px solid #334354; }
.tm-home-spotlight__top { padding: 18px 22px 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.tm-home-spotlight__top span:first-child { color: var(--tm-emerald-dark); }
.tm-home-spotlight__image { display: flex; align-items: center; justify-content: center; height: 220px; }
.tm-home-drawing { width: 80%; height: 90%; color: var(--tm-emerald-dark); }
.tm-home-spotlight__image .tm-home-drawing { width: 240px; height: 220px; }
.tm-home-spotlight__image img { width: 100%; height: 100%; object-fit: cover; }
.tm-home-spotlight__caption { background: white; padding: 22px; }
.tm-home .tm-home-spotlight__caption h2 { font-size: 23px; line-height: 1.25; margin-bottom: 16px; }
.tm-home .tm-home-spotlight__caption .tm-home-eyebrow { margin-bottom: 8px; }
.tm-home-text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--tm-emerald-dark); font-size: 14px; font-weight: 600; }
.tm-home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tm-home-section { padding-block: 42px; scroll-margin-top: 130px; }
.tm-home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.tm-home-cards { display: grid; gap: 22px; }
.tm-home-card { border: 1px solid var(--tm-border); border-radius: 12px; overflow: hidden; background: white; box-shadow: var(--tm-shadow); }
.tm-home-card > a { display: flex; flex-direction: column; height: 100%; color: var(--tm-night); }
.tm-home-card__image { position: relative; height: 210px; display: flex; justify-content: center; align-items: center; background: #e9e7e0; }
.tm-home-card:nth-child(2) .tm-home-card__image { background: #e2ebe5; }
.tm-home-card:nth-child(3) .tm-home-card__image { background: #e3e8ed; }
.tm-home-card:nth-child(3) .tm-home-drawing { color: #3d566e; }
.tm-home-card__image img { width: 100%; height: 100%; object-fit: cover; }
.tm-home-card__tag { position: absolute; top: 15px; left: 15px; border-radius: 4px; padding: 4px 8px; background: var(--tm-emerald); color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tm-home-card__body { padding: 22px; display: flex; flex: 1; flex-direction: column; }
.tm-home .tm-home-card__body .tm-home-eyebrow { color: #647078; font-size: 10px; margin-bottom: 8px; }
.tm-home-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--tm-text-muted); padding-top: 12px; padding-bottom: 20px; }
.tm-home-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tm-border); font-size: 12px; color: #657079; }
.tm-home-card__meta > span { color: var(--tm-emerald); font-size: 22px; }
.tm-home :is(.tm-home-card a:hover h3,.tm-home-row a:hover h4), .tm-home-spotlight:hover h2 { color: var(--tm-emerald); }
.tm-home-preview { display: grid; gap: 24px; background: white; border: 1px solid var(--tm-border); border-radius: 16px; padding: 26px 22px; box-shadow: var(--tm-shadow); }
.tm-home-preview__intro > p:not(.tm-home-eyebrow) { margin-block: 18px 24px; color: var(--tm-text-muted); }
.tm-home-preview__list { list-style: none; padding: 0; counter-reset: preview; }
.tm-home-preview__list li { counter-increment: preview; display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--tm-border); }
.tm-home-preview__list li:last-child { border: 0; }
.tm-home-preview__list li::before { content: counter(preview, decimal-leading-zero); font: 600 24px var(--tm-font-heading); color: var(--tm-emerald); }
.tm-home-preview__list h3 { font-size: 17px; }
.tm-home-advice { background: var(--tm-night); color: var(--tm-on-dark-muted); border-radius: 16px; padding: 30px 24px; margin-top: 42px; display: grid; gap: 28px; }
.tm-home .tm-home-advice .tm-home-eyebrow { color: var(--tm-mint); }
.tm-home-advice :is(h2,h3) { color: white; }
.tm-home-advice h2 { max-width: 470px; margin-bottom: 16px; }
.tm-home-advice ol { list-style: none; padding: 0; display: grid; gap: 22px; }
.tm-home-advice h3 { font-size: 18px; margin-bottom: 6px; }
.tm-home-advice li p { font-size: 15px; line-height: 1.6; }
.tm-home-carousel__header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.tm-home-carousel__header h2 { max-width: 750px; }
.tm-home-carousel__controls { display: none; align-items: center; gap: 10px; flex: none; }
.tm-home-carousel.is-enhanced .tm-home-carousel__controls { display: flex; }
.tm-home-carousel__controls button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--tm-night); border-radius: 50%; background: transparent; color: var(--tm-night); font: 600 20px/1 var(--tm-font-body); cursor: pointer; }
.tm-home-carousel__controls button:not(:disabled):hover { background: var(--tm-night); color: white; }
.tm-home-carousel__controls button:disabled { opacity: .35; cursor: default; }
.tm-home-carousel__status { min-width: 75px; text-align: center; color: var(--tm-text-muted); font-size: 13px; white-space: nowrap; }
.tm-home-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; -webkit-overflow-scrolling: touch; }
.tm-home-carousel__track:focus-visible { outline: 2px solid var(--tm-emerald); outline-offset: 3px; }
.tm-home-carousel.is-enhanced .tm-home-carousel__track { scrollbar-width: none; }
.tm-home-carousel.is-enhanced .tm-home-carousel__track::-webkit-scrollbar { display: none; }
.tm-home-carousel__slide { min-width: 0; scroll-snap-align: start; }
.tm-home-carousel__slide-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid var(--tm-night); padding-bottom: 12px; }
.tm-home-carousel__slide-heading h3 { font-size: 23px; }
.tm-home-carousel__slide-heading a { font-size: 12px; white-space: nowrap; }
.tm-home-row { border-bottom: 1px solid var(--tm-border); }
.tm-home-row:last-child { border: 0; }
.tm-home-row a { display: grid; grid-template-columns: 80px minmax(0,1fr); align-items: center; gap: 16px; padding: 20px 0; }
.tm-home-row__image { display: flex; align-items: center; justify-content: center; height: 72px; border-radius: 8px; overflow: hidden; background: #e4e9e4; }
.tm-home-row__image img { width: 100%; height: 100%; object-fit: cover; }
.tm-home-row h4 { font-size: 16px; line-height: 1.4; }
.tm-home-row a > div > span { font-size: 12px; color: #647078; display: block; margin-top: 4px; }
.tm-home-archive-link { text-align: center; padding-bottom: 56px; }
.tm-home a:focus-visible { outline: 3px solid var(--tm-emerald); outline-offset: 4px; }
.tm-home-hero a:focus-visible, .tm-home-advice a:focus-visible { outline-color: var(--tm-mint); }
@media (max-width: 599px) {
 .tm-home-carousel__header { flex-direction: column; align-items: stretch; }
 .tm-home-carousel__controls { align-self: flex-end; }
}
@media (min-width: 600px) {
 .tm-home-shell { width: min(1280px, calc(100% - 64px)); }
 .tm-home-actions { flex-direction: row; flex-wrap: wrap; }
 .tm-home-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .tm-home-card:last-child { grid-column: 1 / -1; }
 .tm-home-carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
 .tm-home-preview, .tm-home-advice { padding: 36px; }
}
@media (min-width: 900px) {
 .tm-home-hero { padding: 66px 0 78px; }
 .tm-home-hero__grid { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
 .tm-home-hero__principles { display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid #2c3a4a; margin-top: 36px; padding-top: 22px; color: #bbc3cd; font-size: 13px; }
 .tm-home-hero__principles span::before { content: '✓'; color: var(--tm-mint); margin-right: 7px; }
 .tm-home-spotlight__image { height: 260px; }
 .tm-home-spotlight__image .tm-home-drawing { width: 290px; height: 260px; }
 .tm-home-spotlight__caption { padding: 24px 28px; }
 .tm-home-section { padding-block: 58px; }
 .tm-home-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
 .tm-home-card:last-child { grid-column: auto; }
 .tm-home-card__image { height: 215px; }
 .tm-home-preview { grid-template-columns: 1fr 1.2fr; gap: 60px; padding: 44px; align-items: center; }
 .tm-home-advice { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px; margin-top: 58px; }
 .tm-home-row a { grid-template-columns: 100px minmax(0,1fr); }
}
@media (max-width: 359px) {
 .tm-home-shell { width: calc(100% - 28px); }
 .tm-home h1 { font-size: 31px; }
 .tm-home-row a { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
 .tm-home-carousel__header { align-items: start; flex-direction: column; }
}

/* Newsletter form, connected to the existing Brevo list. */
.tm-home-newsletter { display: grid; gap: 28px; background: var(--tm-green-veil); border: 1px solid #cedfd5; border-radius: 16px; padding: 30px 24px; margin-bottom: 42px; scroll-margin-top: 32px; }
.tm-home-newsletter h2 { margin-bottom: 20px; }
.tm-home-newsletter p:not(.tm-home-eyebrow) { color: var(--tm-text-muted); }
.tm-home-newsletter__fields { display: grid; gap: 12px; align-content: center; min-width: 0; }
.tm-home-newsletter__fields > label:not(.tm-home-newsletter__consent) { font-size: 14px; font-weight: 600; }
.tm-home-newsletter__fields input[type=email], .tm-home-newsletter__fields input[type=tel] { width: 100%; min-height: 50px; border: 1px solid #8b9c93; border-radius: 8px; background: white; padding: 12px 16px; color: var(--tm-night); font: 400 16px/1.4 var(--tm-font-body); }
.tm-home-newsletter__fields input[type=tel]:disabled { background: #eff3ef; color: var(--tm-text-muted); }
.tm-home-newsletter .tm-home-newsletter__help { margin-top: -8px; font-size: 13px; }
.tm-home-newsletter__honeypot { position: absolute !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important; opacity: 0; pointer-events: none; }
.tm-home-newsletter__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; padding-block: 4px; }
.tm-home-newsletter__consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; appearance: auto; accent-color: var(--tm-emerald); }
.tm-home-newsletter__privacy { font-size: 13px; color: var(--tm-emerald-dark); text-decoration: underline !important; text-underline-offset: 3px; }
.tm-home-newsletter .tm-button { width: 100%; margin-top: 4px; text-transform: none; letter-spacing: normal; }
.tm-home-newsletter .tm-home-newsletter__status { font-size: 13px; text-align: center; }
@media (min-width: 900px) {
 .tm-home-newsletter { grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 44px; margin-bottom: 58px; }
}
