
.hme-tools { margin: 2.5rem auto 4rem; max-width: 64rem; }
.hme-tools > h1 { margin-bottom: .5rem; }
.hme-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.75rem; padding: clamp(1rem, 4vw, 2.5rem); background: #fff7dd; border-radius: 1.25rem; color: #20265b; }
.hme-tool h2, .hme-tool h3 { margin-top: 0; }
.hme-tool label { display: block; font-weight: 700; margin: .9rem 0 .25rem; }
.hme-tool select, .hme-tool input { width: 100%; max-width: 100%; min-height: 44px; border: 1px solid #81734a; border-radius: .5rem; padding: .55rem; background: white; color: #20265b; font: inherit; }
.hme-tool input { max-width: 8rem; }
.hme-tool button { display: block; margin-top: 1rem; min-height: 44px; padding: .65rem 1rem; border: 0; border-radius: .5rem; background: #1e2982; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.hme-tool :focus-visible, .hme-tools-home a:focus-visible { outline: 3px solid #1e2982; outline-offset: 3px; }
.hme-tool-results { background: white; border-radius: .85rem; padding: 1.25rem; min-width: 0; }
.hme-tool-results ul { padding-inline-start: 1.25rem; }
.hme-tool-note { font-size: .9rem; margin-bottom: 0; }
.hme-tools-home { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: #fff7dd; border-inline-start: .35rem solid #ffb703; border-radius: .65rem; }
.hme-tools-home h2 { margin: 0; }
.hme-tools-home p { margin: .35rem 0 .75rem; }
@media (max-width: 640px) { .hme-tool { grid-template-columns: minmax(0, 1fr); } }

#ciclo-menstrual { scroll-margin-top: 6rem; }
#hme-cycle-start { max-width: 13rem; }
#hme-cycle-results dt { font-weight: 700; }
#hme-cycle-results dd { margin: 0 0 .65rem; }
.hme-tools-home .button { margin: .25rem .5rem .25rem 0; }

.hme-tool-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-block: 1.5rem 2rem; }
.hme-tool-catalog a { display: block; overflow: hidden; background: #fff7dd; border: 1px solid #e3c471; border-radius: .85rem; color: #1e2982; text-decoration: none; }
.hme-tool-catalog img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hme-tool-catalog span { display: grid; gap: .25rem; padding: .9rem 1rem 1rem; }
.hme-tool-catalog small { font-size: .9rem; color: #353b59; }
.hme-tool-catalog a:hover strong { text-decoration: underline; }
.hme-tool-catalog a:focus-visible { outline: 3px solid #1e2982; outline-offset: 3px; }
.hme-tool[id] { scroll-margin-top: 6rem; }
.hme-quiz { display: block; }
.hme-quiz fieldset { min-inline-size: 0; border: 1px solid #d9c88f; border-radius: .65rem; padding: .6rem 1rem; margin-bottom: 1rem; }
.hme-quiz legend { font-weight: 700; }
.hme-quiz label { display: flex; gap: .5rem; align-items: center; font-weight: 400; min-height: 38px; margin: 0; }
.hme-quiz input[type=radio] { width: 1.15rem; min-height: 0; accent-color: #1e2982; }
.hme-quiz-explanation { padding: .75rem; background: white; border-radius: .4rem; }
.hme-quiz-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hme-quiz-actions button[type=reset] { color: #1e2982; background: white; }
#hme-quiz-score { font-weight: 700; }
.hme-quiz iframe { width: 100%; min-height: 28rem; border: 1px solid #d9c88f; background: white; }
.hme-tools-home .hme-tool-catalog { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.hme-tool-cover { display: block; width: 100%; height: auto; max-height: 18rem; object-fit: cover; border-radius: 1rem; }
.hme-tool-single > h2 { margin-top: 2rem; }
.hme-tool [data-result] { font-weight: 700; }
.hme-cost { display: block; }
.hme-cost fieldset { border: 1px solid #d9c88f; border-radius: .65rem; margin: 1rem 0; padding: .75rem; min-width: 0; }
.hme-cost legend { font-weight: 700; }
.hme-cost-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .75rem; }
.hme-cost input { display: block; max-width: none; }
.hme-cost [data-remove] { background: white; color: #1e2982; }
.hme-cost button:disabled { opacity: .55; cursor: default; }
.hme-cost .hme-tool-results { margin-top: 1rem; }

.hme-interactive input { display: block; max-width: 13rem; }
.hme-interactive form { min-width: 0; }
.hme-interactive [data-tool-result] h3 { margin-block: .7rem; }
.hme-interactive [data-tool-result] p { margin-block: .6rem; }
.hme-interactive [data-tool-result] li + li { margin-top: .5rem; }
.hme-tool-shop { margin-top: 1.75rem; }
.hme-tool-shop .button { display: inline-flex; align-items: center; min-height: 44px; }
.hme-cheeses { min-inline-size: 0; margin: 1rem 0 0; padding: .75rem; border: 1px solid #d9c88f; border-radius: .65rem; }
.hme-cheeses legend { padding-inline: .25rem; font-weight: 700; }
.hme-cheeses p { margin: 0 0 .5rem; font-size: .9rem; }
.hme-cheese-options { display: grid; gap: .25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.hme-cheese-options label { display: flex; min-height: 44px; align-items: center; gap: .55rem; margin: 0; padding: .35rem .45rem; border-radius: .4rem; background: white; font-weight: 400; cursor: pointer; }
.hme-cheese-options input[type="checkbox"] { flex: 0 0 1.1rem; width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; accent-color: #1e2982; }
.hme-interactive .hme-pairing-list { list-style: none; padding: 0; }
.hme-pairing-list li { padding: .7rem .85rem; background: #fff7dd; border-radius: .5rem; }
.hme-pairing-list a { display: inline-flex; min-height: 44px; align-items: center; color: #1e2982; text-decoration: underline; }
