.astro-tools-page { background: #fbfaf6; color: #1e3027; }
.astro-tools-wrap { width: min(1400px, 100%); margin-inline: auto; padding-inline: 20px; }
.astro-tools-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 3rem; background: linear-gradient(120deg, #eaf3eb, #f6f1df); }
.astro-tools-crumb { display: flex; gap: .65rem; align-items: center; margin-bottom: 2.2rem; color: #66766d; font-size: .92rem; }
.astro-tools-crumb a { color: #245c42; }
.astro-tools-kicker { margin: 0 0 .55rem; color: #557362; font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.astro-tools-hero h1 { max-width: 780px; margin: 0; color: #173f2e; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.04; }
.astro-tools-hero > .astro-tools-wrap > p:last-child { max-width: 720px; margin: 1.2rem 0 0; color: #54635b; font-size: 1.1rem; line-height: 1.7; }
.astro-tools-content { padding-block: clamp(2rem, 5vw, 4rem); }
.astro-tool-form, .astro-tool-results, .astro-tools-disclaimer { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #dce4dc; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(31, 71, 48, .06); }
.astro-form-heading, .astro-results-heading { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.astro-form-heading h2, .astro-results-heading h2 { margin: 0; color: #173f2e; font-size: clamp(1.45rem, 3vw, 2rem); }
.astro-form-heading > p { max-width: 380px; margin: 0; color: #67736c; font-size: .92rem; line-height: 1.55; }
.astro-form-grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto; gap: 1rem; align-items: end; }
.astro-tool-form label { display: grid; gap: .45rem; color: #34483d; font-size: .9rem; font-weight: 700; }
.astro-tool-form input, .astro-tool-form select { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid #cbd8ce; border-radius: 10px; background: #fff; color: #26392f; font: inherit; }
.astro-tool-form input:focus, .astro-tool-form select:focus { outline: 3px solid rgba(202, 168, 43, .35); border-color: #987b16; }
.astro-tool-submit { min-height: 48px; padding: .75rem 1.3rem; border: 0; border-radius: 999px; background: #174331; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.astro-tool-submit:hover { background: #236442; }
.astro-tool-status { min-height: 1.3rem; margin: .85rem 0 0; color: #8a392f; }
.astro-tool-results { margin-top: 1.5rem; }
.astro-results-heading { align-items: center; }
.astro-results-badge { padding: .55rem .8rem; border-radius: 999px; background: #edf4ee; color: #245c42; font-size: .8rem; font-weight: 800; }
.astro-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.astro-result-card { min-height: 126px; padding: 1rem; border: 1px solid #e2e9e2; border-radius: 15px; background: #fcfdfb; }
.astro-result-card span, .astro-result-card small { display: block; color: #68756c; font-size: .82rem; }
.astro-result-card strong { display: block; margin: .65rem 0 .25rem; color: #173f2e; font-size: 1.2rem; }
.astro-observance, .astro-match-summary { margin-top: 1rem; padding: 1rem 1.15rem; border-radius: 14px; background: #f7f2df; color: #51471f; line-height: 1.6; }
.astro-calculation-note { margin: 1rem 0 0; color: #68756c; font-size: .88rem; line-height: 1.6; }
.astro-tools-disclaimer { margin-top: 1.5rem; background: #f5f7f3; box-shadow: none; color: #58675d; line-height: 1.6; }
.astro-tools-disclaimer strong { color: #244a36; }
.astro-tools-disclaimer p { margin: .35rem 0 0; }
.astro-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.astro-person-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; min-width: 0; padding: 1rem; border: 1px solid #dce4dc; border-radius: 16px; }
.astro-person-fields legend { padding: 0 .5rem; color: #173f2e; font-size: 1.15rem; font-weight: 800; }
.astro-person-fields label:first-of-type { grid-column: 1 / -1; }
.astro-people-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.astro-birth-summary { padding: 1.1rem; border: 1px solid #e2e9e2; border-radius: 15px; background: #fcfdfb; }
.astro-birth-summary h3 { margin: 0 0 .65rem; color: #173f2e; }
.astro-birth-summary p { margin: .35rem 0; color: #58675d; }
.astro-planet-details { margin-top: .85rem; border-top: 1px solid #e2e9e2; padding-top: .75rem; }
.astro-planet-details summary { color: #245c42; font-weight: 800; cursor: pointer; }
.astro-planet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin-top: .7rem; }
.astro-planet-row { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid #edf0ed; font-size: .82rem; }
.astro-planet-row strong { color: #34483d; }
.astro-planet-row span { color: #68756c; text-align: right; }
.astro-match-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin-top: 1rem; }
.astro-match-item { padding: .9rem; border: 1px solid #e2e9e2; border-radius: 12px; }
.astro-match-item strong, .astro-match-item span { display: block; }
.astro-match-item strong { color: #173f2e; }
.astro-match-item span { margin-top: .3rem; color: #68756c; font-size: .9rem; }
@media (max-width: 760px) {
  .astro-form-heading { align-items: flex-start; flex-direction: column; }
  .astro-form-grid { grid-template-columns: 1fr; }
  .astro-tool-submit { width: 100%; }
  .astro-result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .astro-people-grid, .astro-people-results, .astro-match-details { grid-template-columns: 1fr; }
  .astro-person-fields { grid-template-columns: 1fr; }
  .astro-person-fields label:first-of-type { grid-column: auto; }
  .astro-results-heading { align-items: flex-start; flex-direction: column; }
  .astro-tools-crumb { margin-bottom: 1.4rem; }
}
