.wh-shell {
  --wh-accent: #176f68;
}
.wh-card {
  min-height: 108px;
}
.wh-card h2 {
  font-size: 1.15rem;
}
.wh-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.wh-event {
  border: 1px solid #d9e6e5;
  border-top: 3px solid var(--wh-accent);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.wh-event:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px #173b3810;
}
.wh-event h2 {
  font-size: 1.05rem;
  margin: 14px 0 8px;
}
.wh-event p {
  color: #546773;
  font-size: 0.9rem;
  margin: 0;
}
.wh-badge {
  display: inline-block;
  background: #eaf5f2;
  color: #176f68;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 650;
}
.wh-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  font-weight: 400 !important;
}
.wh-check input,
.wh-methods input {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  flex: 0 0 18px;
  margin: 2px 0;
  accent-color: #176f68;
}
.wh-methods label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #d8e4e6;
  border-radius: 8px;
  cursor: pointer;
}
.wh-methods label:has(:checked) {
  background: #e7f4f1;
  border-color: #176f68;
}
.wh-methods label:has(:disabled) {
  opacity: 0.5;
  cursor: default;
}
.wh-conditions {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wh-conditions .si-box {
  margin: 0;
  padding: 14px;
}
.wh-conditions summary {
  cursor: pointer;
  min-height: 30px;
}
.wh-category[data-level='4'] {
  border-left: 4px solid #ad363e;
}
.wh-category[data-level='3'] {
  border-left: 4px solid #ac7024;
}
.wh-category[data-level='0'] {
  border-left: 4px solid #647785;
}
.wh-category a {
  font-size: 0.8rem;
}
.wh-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wh-shell :focus-visible {
  outline: 3px solid #148579;
  outline-offset: 3px;
}
.wh-shell .si-form > div:has(select) {
  display: contents;
}
@media (max-width: 1050px) {
  .wh-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .wh-timeline,
  .wh-conditions,
  .wh-checklist {
    grid-template-columns: 1fr;
  }
  .wh-event {
    border-top: 1px solid #d9e6e5;
    border-left: 3px solid var(--wh-accent);
  }
  .wh-timeline {
    gap: 10px;
  }
  .wh-event h2 {
    margin: 8px 0;
  }
  .wh-methods {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wh-event {
    transition: none;
  }
  .wh-event:hover {
    transform: none;
  }
}
@media (min-width: 1100px) {
  .wh-shell > .si-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.wh-timeline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: -10px 0 24px;
}
.wh-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 16px 0;
  border-block: 1px solid #d8e4e8;
  margin-bottom: 20px;
}
.wh-timeline-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.wh-timeline-key i {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--moment);
}
[data-kind='consult'] {
  --moment: #16756a;
  --moment-bg: #e9f6f1;
}
[data-kind='scan'] {
  --moment: #2865ad;
  --moment-bg: #ebf2fc;
}
[data-kind='screen'] {
  --moment: #7851a8;
  --moment-bg: #f3edfa;
}
[data-kind='prevention'] {
  --moment: #9a631c;
  --moment-bg: #fff5df;
}
[data-kind='milestone'] {
  --moment: #a74766;
  --moment-bg: #fbeef3;
}
.wh-care-timeline {
  list-style: none !important;
  position: relative;
  padding: 0 0 0 44px !important;
  margin: 24px 0 36px !important;
  max-width: 850px;
}
.wh-care-timeline:before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 46px;
  width: 2px;
  background: #c7d7de;
}
.wh-care-step {
  position: relative;
  margin: 0 0 14px !important;
}
.wh-care-phase {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #536a77;
  margin: 28px 0 12px;
}
.wh-care-step:first-child .wh-care-phase {
  margin-top: 0;
}
.wh-care-card {
  display: block;
  position: relative;
  padding: 18px 48px 18px 22px;
  background: #fff;
  border: 1px solid #dbe5e9;
  border-left: 4px solid var(--moment);
  border-radius: 12px;
  color: #23343e;
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.wh-care-marker {
  position: absolute;
  left: -44px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--moment);
  border: 3px solid #f3f7fa;
  box-shadow: 0 0 0 2px var(--moment);
}
.wh-care-type {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--moment-bg);
  color: var(--moment);
  font-size: 0.8rem;
  font-weight: 650;
}
.wh-care-card h2 {
  font-size: 1.15rem;
  margin: 10px 0 6px;
}
.wh-care-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: #536774;
}
.wh-care-open {
  position: absolute;
  right: 20px;
  top: 50%;
  color: var(--moment);
}
.wh-care-card:hover {
  transform: translateX(3px);
  border-color: var(--moment);
  box-shadow: 0 5px 16px #1235430c;
}
.wh-care-card:active {
  background: var(--moment-bg);
}
.am-calculator .field {
  min-width: 0;
}
.am-calculator select {
  width: 100%;
  max-width: 100%;
  text-overflow: ellipsis;
}
.am-calculator #am-picker {
  display: grid;
  gap: 14px;
  margin-block: 16px;
}
.am-calculator [hidden] {
  display: none !important;
}
.am-calculator #am-weight-field {
  margin-block: 18px;
}
.am-dose-component + .am-dose-component {
  border-top: 1px solid #ffffff35;
  margin-top: 24px;
  padding-top: 16px;
}
.am-dose-component h3 {
  font-size: 1rem;
}
.am-calculator .dose-source > label {
  margin-block: 14px;
}
.am-calculator .dose-pathology-trigger {
  white-space: normal;
  text-align: left;
}
@media (max-width: 600px) {
  .wh-care-timeline {
    padding-left: 30px !important;
  }
  .wh-care-timeline:before {
    left: 7px;
  }
  .wh-care-marker {
    left: -33px;
    width: 13px;
    height: 13px;
    top: 27px;
  }
  .wh-care-card {
    padding: 15px 30px 15px 14px;
  }
  .wh-care-open {
    right: 12px;
  }
  .wh-care-card h2 {
    font-size: 1.05rem;
  }
  .wh-care-card p {
    font-size: 0.9rem;
  }
  .wh-timeline-legend {
    gap: 10px 14px;
  }
  .wh-timeline-key {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wh-care-card {
    transition: none;
  }
  .wh-care-card:hover {
    transform: none;
  }
}
.wh-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.wh-featured .wh-card {
  min-height: 175px;
  padding: 1.8rem;
  background: #e6f3f1;
  border: 1px solid #9bc9c2;
  border-top: 5px solid #176f67;
  align-items: center;
}
.wh-featured .wh-card:nth-child(2) {
  background: #edf2fb;
  border-color: #b5c7e3;
  border-top-color: #466da4;
}
.wh-featured h2 {
  font-size: 1.65rem;
}
.wh-featured p {
  font-size: 1rem;
  line-height: 1.5;
}
.wh-method-cards {
  align-items: start;
}
.wh-method-card h2 {
  margin-bottom: 1.2rem;
}
.wh-method-facts {
  margin: 0;
}
.wh-method-facts > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1e9ed;
}
.wh-method-facts dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: #476273;
  margin-bottom: 0.3rem;
}
.wh-method-facts dd {
  margin: 0;
  line-height: 1.5;
  font-size: 1rem;
}
.wh-method-card details {
  margin-top: 1rem;
}
.wh-method-card summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .wh-featured {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .wh-featured .wh-card {
    min-height: 130px;
    padding: 1.25rem;
  }
  .wh-featured h2 {
    font-size: 1.4rem;
  }
}
.am-presentation {
  border: 1px solid #bed9d5;
  border-left: 4px solid #176f68;
  border-radius: 10px;
  padding: 1rem;
  margin: 1.25rem 0;
  background: #f2f8f7;
}
.am-presentation h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.am-presentation .field {
  margin-bottom: 1rem;
}
.am-presentation .atb-meta {
  line-height: 1.5;
  margin-bottom: 0;
}
.wh-featured .wh-card:hover {
  box-shadow: 0 8px 22px #173b3818;
}
.wh-featured .wh-card:active {
  transform: translateY(0);
}

/* Contraceção: ações essenciais e apoio progressivo. */
.wh-contraception-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}
.wh-contraception-primary .si-card {
  min-height: 150px;
  padding: 24px;
  background: linear-gradient(145deg, #f4fbf9, #fff);
  border-top: 4px solid #17766e;
}
.wh-contraception-primary .si-card h2 {
  font-size: 1.3rem;
}
.wh-contraception-groups {
  display: grid;
  gap: 12px;
}
.wh-contraception-groups > details {
  padding: 8px 18px;
}
.wh-contraception-groups > details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  color: #294750;
}
.wh-contraception-groups > details > summary > span:last-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f3f1;
  color: #176f68;
  font-size: 0.78rem;
}
.wh-contraception-groups .si-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0 12px;
}
.wh-contraception-groups .si-card {
  padding: 16px;
  min-height: 88px;
}

/* Elegibilidade: leitura imediata por estado. */
.wh-eligibility-heading {
  padding: 4px 0 8px;
}
.wh-eligibility-heading h1 {
  margin-bottom: 8px;
}
.wh-eligibility-heading > p:last-child {
  color: #607580;
  max-width: 720px;
}
.wh-category-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 22px;
}
.wh-category-key span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7f8;
  color: #4a606a;
  font-size: 0.82rem;
}
.wh-category-key b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dae6e8;
  color: #263d45;
}
.wh-category-key [data-level='1'] b {
  background: #d8f0e7;
  color: #126447;
}
.wh-category-key [data-level='2'] b {
  background: #e5f1dc;
  color: #486c2a;
}
.wh-category-key [data-level='3'] b {
  background: #fbe8cb;
  color: #8b591b;
}
.wh-category-key [data-level='4'] b {
  background: #f6dadd;
  color: #942f3a;
}
.wh-condition-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  grid-column: 1/-1;
}
.wh-condition-fieldset > legend {
  font-weight: 700;
  margin-bottom: 12px;
}
.wh-conditions details {
  padding: 8px 14px;
  background: #fafcfc;
}
.wh-conditions summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wh-condition-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: #e7f1f0;
  color: #176f68;
  font-size: 0.75rem;
}
.wh-condition-options {
  padding: 8px 2px 2px;
}
.wh-condition-options .wh-check {
  padding: 10px;
  border-radius: 8px;
  margin: 3px 0;
}
.wh-condition-options .wh-check:hover {
  background: #edf6f4;
}
.wh-condition-options .wh-check:has(input:checked) {
  background: #e2f2ee;
  color: #124f49;
}
.wh-evaluation-mode {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  border-top: 1px solid #dce6e8;
  padding-top: 12px;
}
.wh-eligibility-results {
  margin: 24px 0;
}
.wh-results-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}
.wh-results-heading h2 {
  font-size: 1.35rem;
  margin: 0;
}
.wh-results-heading p:last-child {
  font-size: 0.83rem;
  color: #647983;
  max-width: 370px;
}
.wh-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.wh-category {
  border: 1px solid #dce6e8;
  border-top: 4px solid #91a4aa;
  border-radius: 14px;
  padding: 17px;
  background: #fff;
}
.wh-category[data-level='1'] {
  border-top-color: #2f9671;
}
.wh-category[data-level='2'] {
  border-top-color: #79a74c;
}
.wh-category[data-level='3'] {
  border-top-color: #d3953c;
}
.wh-category[data-level='4'] {
  border-top-color: #c34e59;
  background: #fffafb;
}
.wh-category-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.wh-category-number {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  background: #edf2f3;
  font-weight: 800;
  font-size: 1.05rem;
}
.wh-category[data-level='1'] .wh-category-number {
  background: #dff2eb;
  color: #176b4e;
}
.wh-category[data-level='2'] .wh-category-number {
  background: #eaf3e2;
  color: #557a34;
}
.wh-category[data-level='3'] .wh-category-number {
  background: #fbeedb;
  color: #8d5d20;
}
.wh-category[data-level='4'] .wh-category-number {
  background: #f8e2e4;
  color: #9b3540;
}
.wh-category-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #63757c;
}
.wh-category h3 {
  margin: 3px 0 0;
  font-size: 1rem;
}
.wh-category details {
  margin-top: 14px;
  border-top: 1px solid #e5ebed;
  padding-top: 8px;
}
.wh-category details ul {
  font-size: 0.86rem;
}
.wh-category-empty {
  font-size: 0.83rem;
  color: #687b83;
  margin: 14px 0 0;
}
.wh-interpretation {
  margin-top: 18px;
}
@media (max-width: 850px) {
  .wh-contraception-primary,
  .wh-result-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wh-contraception-primary .si-card:first-child {
    grid-column: 1/-1;
  }
  .wh-category-key {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .wh-contraception-primary,
  .wh-contraception-groups .si-cards,
  .wh-result-grid {
    grid-template-columns: 1fr;
  }
  .wh-contraception-primary .si-card:first-child {
    grid-column: auto;
  }
  .wh-contraception-primary .si-card {
    min-height: 105px;
  }
  .wh-results-heading {
    display: block;
  }
  .wh-category-key {
    grid-template-columns: 1fr;
  }
  .wh-evaluation-mode {
    display: block;
  }
}
.pv-entry-icon svg {
  width: 25px;
  height: 25px;
  color: #14766c;
}
.wh-shell #wh-eligibility {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
#wh-eligibility .wh-condition-fieldset {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#wh-eligibility .wh-conditions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
#wh-eligibility .wh-condition-group {
  margin: 0;
  padding: 18px;
  min-width: 0;
  background: #fff;
  border: 1px solid #dce6e8;
  border-radius: 12px;
}
#wh-eligibility .wh-condition-group h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f2;
  font-size: 1rem;
}
#wh-eligibility .wh-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
}
#wh-eligibility .wh-check span {
  min-width: 0;
  line-height: 1.5;
}
#wh-eligibility .wh-check input[type='checkbox'] {
  appearance: none;
  display: block;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0;
  margin: 1px 0 0;
  border: 1.5px solid #a8bebc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
#wh-eligibility .wh-check input:checked {
  border-color: #176f68;
  background: #176f68
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/18px no-repeat;
}
#wh-eligibility .wh-check input:focus-visible {
  outline: 3px solid #78b8af;
  outline-offset: 3px;
}
#wh-eligibility .wh-evaluation-mode {
  margin-top: 20px;
}
#wh-eligibility > button {
  margin-top: 14px;
}
@media (max-width: 700px) {
  #wh-eligibility .wh-conditions {
    grid-template-columns: 1fr;
  }
  #wh-eligibility .wh-condition-group {
    padding: 15px;
  }
}
@media (forced-colors: active) {
  #wh-eligibility .wh-check input[type='checkbox'] {
    appearance: auto;
  }
}
