/* Readability refinements for Everitt Reports */

body.whr-page {
  --muted: #4f5c64;
  --line: rgba(23, 41, 54, 0.26);
  font-size: 19px;
}

.whr-order-layout {
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1.48fr);
}

.whr-order-copy h2 {
  font-size: clamp(3rem, 4.2vw, 4.35rem);
  line-height: 0.98;
}

.whr-order-support {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
}

.whr-eyebrow {
  color: #607583;
  font-size: 0.92rem;
  letter-spacing: 0.15em;
}

.whr-picker > label,
.whr-field label {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.whr-picker-button {
  min-height: 76px;
  padding: 0.95rem 1.15rem;
  font-size: clamp(1.55rem, 2.3vw, 1.9rem);
}

.whr-picker-menu {
  max-height: min(500px, 62vh);
}

.whr-picker-menu button {
  min-height: 86px;
  gap: 0.28rem;
  padding: 1rem 1.25rem;
  color: #172936;
  font-size: 1.42rem;
  font-weight: 500;
}

.whr-picker-menu button span {
  color: #53616a;
  font-size: 1.06rem;
  line-height: 1.35;
}

.whr-selection-note {
  color: #46545d;
  font-size: 1.12rem;
  line-height: 1.55;
}

.whr-field input,
.whr-field select,
.whr-field textarea {
  color: #172936;
  font-size: 1.28rem;
  line-height: 1.4;
}

.whr-field input {
  min-height: 56px;
}

.whr-field select {
  min-height: 64px;
}

.whr-field textarea {
  min-height: 108px;
}

.whr-field input::placeholder,
.whr-field textarea::placeholder {
  color: #77838a;
  opacity: 1;
}

.whr-check {
  grid-template-columns: 1.2rem 1fr;
  gap: 0.75rem;
  color: #4c5961;
  font-size: 1.03rem;
  line-height: 1.45;
}

.whr-check input {
  width: 1.1rem;
  height: 1.1rem;
}

.whr-btn,
.whr-page button.whr-btn {
  min-height: 66px;
  font-size: 1.12rem;
  letter-spacing: 0.045em;
}

.whr-progress,
.whr-status {
  color: #4f5c64;
}

@media (max-width: 860px) {
  .whr-order-copy h2 {
    font-size: clamp(2.8rem, 9vw, 4rem);
  }
}

@media (max-width: 640px) {
  body.whr-page {
    font-size: 18px;
    overflow-x: hidden;
  }

  .whr-order-layout {
    width: 100%;
    min-width: 0;
    gap: 1.75rem;
    padding: 2.25rem 1rem 3rem;
  }

  .whr-order-copy,
  .whr-form,
  .whr-picker,
  .whr-dynamic-fields,
  .whr-contact-fields,
  .whr-field {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .whr-order-copy h2 {
    font-size: clamp(2.7rem, 13vw, 3.5rem);
    line-height: 1;
  }

  .whr-picker-button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 1.35rem;
    line-height: 1.15;
  }

  #report-picker-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .whr-picker-menu {
    left: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
    max-height: min(430px, 58vh);
    overscroll-behavior: contain;
  }

  .whr-picker-menu button {
    width: 100%;
    min-width: 0;
    min-height: 72px;
    padding: 0.85rem 1rem;
    font-size: 1.2rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .whr-picker-menu button span {
    font-size: 0.95rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .whr-selection-note {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .whr-field label {
    font-size: 1rem;
    line-height: 1.3;
  }

  .whr-field input,
  .whr-field select,
  .whr-field textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .whr-field input,
  .whr-field select {
    min-height: 56px;
  }

  .whr-field select {
    padding-right: 2.75rem;
    background-position:
      calc(100% - 18px) 51%,
      calc(100% - 11px) 51%;
    background-size: 7px 7px, 7px 7px;
  }

  .whr-field textarea {
    min-height: 104px;
  }

  .whr-check {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.7rem;
    font-size: 0.96rem;
  }

  .whr-check span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .whr-btn,
  .whr-page button.whr-btn {
    width: 100%;
    min-height: 60px;
    padding-inline: 1rem;
  }
}

@media (max-width: 380px) {
  .whr-order-layout {
    padding-inline: 0.85rem;
  }

  .whr-picker-button {
    font-size: 1.22rem;
  }

  .whr-picker-menu button {
    padding-inline: 0.85rem;
    font-size: 1.12rem;
  }
}
