.td-calculator {
  width: min(100%, 48rem); margin: 1.5rem auto 2.5rem; padding: clamp(1.25rem, 3vw, 2rem);
  color: #082819; background: linear-gradient(145deg, #fff, #f1fbf5); border: 1px solid rgb(8 66 31 / 16%);
  border-radius: 1.35rem; box-shadow: 0 22px 55px rgb(8 66 31 / 10%);
}
.td-calculator__eyebrow { margin: 0 0 .4rem !important; color: #08768a !important; font-size: .78rem !important; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.td-calculator [hidden] { display: none !important; }
.td-calculator h3 { margin: 0 0 1.25rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.td-calculator__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.td-calculator label { display: flex; flex-direction: column; gap: .45rem; color: #123e2b; font-size: .95rem; font-weight: 750; }
.td-calculator input, .td-calculator select { width: 100%; min-height: 3.25rem; box-sizing: border-box; padding: .75rem .9rem; color: #082819; background: #fff; border: 1px solid #9bb7a8; border-radius: .75rem; font: inherit; }
.td-calculator input:focus-visible, .td-calculator select:focus-visible, .td-calculator button:focus-visible { outline: 3px solid #1ac9de; outline-offset: 3px; }
.td-calculator button { min-height: 3.4rem; margin-top: 1.25rem; padding: .8rem 1.25rem; color: #071d0f; background: linear-gradient(135deg, #a8f7ff, #35d6f2); border: 1px solid #d8fbff; border-radius: 999px; font: inherit; font-weight: 850; cursor: pointer; box-shadow: 0 14px 34px rgb(4 181 224 / 22%); }
.td-calculator__message { margin-top: 1rem; padding: .8rem 1rem; color: #781a1a; background: #fff3f3; border: 1px solid #e4a3a3; border-radius: .75rem; }
.td-calculator__result { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; padding: 1rem 1.1rem; color: #07301b; background: #e9fbe9; border: 1px solid #8dcc93; border-radius: .9rem; }
.td-calculator__result strong { font-size: 1.25rem; }
.td-calculator__note { margin: 1rem 0 0 !important; color: #536d60 !important; font-size: .9rem !important; }

.td-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.td-gallery-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgb(8 66 31 / 14%); border-radius: 1.1rem; box-shadow: 0 15px 36px rgb(8 49 26 / 8%); }
.td-gallery-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dfeee5; }
.td-gallery-card__media img { width: 100%; height: 100% !important; margin: 0 !important; object-fit: cover; border-radius: 0 !important; transition: transform 240ms ease; }
.td-gallery-card__media:hover img { transform: scale(1.025); }
.td-gallery-card--portrait-proof .td-gallery-card__media img { object-fit: contain; background: #f5faf7; }
.td-gallery-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, #d8f4e0, #caeef1); }
.td-gallery-card__copy { flex: 1; display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; }
.td-gallery-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.td-gallery-card h3 a { color: #082819; text-decoration: none; }
.td-gallery-card p { margin: 0 !important; color: #536d60 !important; font-size: .95rem !important; line-height: 1.6 !important; }
.td-gallery-card__link { display: inline-flex; justify-content: space-between; gap: .75rem; margin-top: auto; color: #0a6a33; font-weight: 800; }

@media (max-width: 900px) { .td-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .td-calculator__grid, .td-gallery-grid { grid-template-columns: minmax(0, 1fr); } }
