/* Shared by the homepage, legacy treatment pages, and patient questionnaire. */
.hh-hero {
  padding: clamp(1.75rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  background: #073d53;
  color: #fff;
}
.hh-hero-inner {
  max-width: 68rem;
  margin-inline: auto;
}
.hh-hero h1 {
  max-width: 23ch;
  margin: .35em 0;
  color: inherit;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.08;
}
.hh-hero p {
  max-width: 54ch;
  margin: 0 0 1rem;
  color: inherit;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}
.hh-hero .hh-practice {
  color: #c3ebe7;
  font-size: 1rem;
  font-weight: 700;
}
.hh-actions, .hh-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hh-actions a, .hh-quick-links a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .75rem;
  font: 700 1rem/1.3 system-ui, sans-serif;
}
.hh-actions a, .hh-actions a:visited {
  border: 1px solid #08665e;
  border-radius: .45rem;
  background: #08665e;
  color: #fff;
  text-decoration: none;
}
.hh-actions a + a, .hh-actions a + a:visited {
  background: #fff;
  color: #07594f;
}
.hh-quick-links a, .hh-quick-links a:visited {
  color: #08496b;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.hh-hero .hh-quick-links a {
  color: #e2f6ff;
}
.hh-hero .hh-quick-links {
  margin-top: .75rem;
}
.hh-actions a:focus-visible, .hh-quick-links a:focus-visible {
  outline: 3px solid #e29322;
  outline-offset: 2px;
}
.hh-legacy-intro {
  padding: 1rem .75rem .25rem;
}
.hh-legacy-intro .hh-quick-links {
  display: none;
}
.hh-questionnaire > table {
  width: min(100%, 500px);
}
.hh-questionnaire img {
  max-width: 100%;
  height: auto;
}
.hh-questionnaire :is(input, select, textarea) {
  max-width: 100%;
  font-size: 16px;
}

@media (max-width: 1000px) {
  .hh-legacy-layout {
    width: 100% !important;
    height: auto !important;
  }
  .hh-legacy-layout > tbody,
  .hh-legacy-layout > tbody > tr,
  .hh-legacy-layout > tbody > tr > td {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-width: 0;
  }
  .hh-legacy-layout > tbody > tr:has(> .hh-legacy-content) {
    display: flex;
    flex-direction: column;
  }
  .hh-legacy-layout > tbody > tr > .hh-legacy-content {
    order: -1;
  }
  .hh-legacy-layout table {
    max-width: 100% !important;
    height: auto !important;
  }
  .hh-legacy-layout td {
    overflow-wrap: anywhere;
  }
  .hh-legacy-content > table {
    table-layout: fixed;
  }
  .hh-legacy-content table[align] {
    float: none !important;
    margin-inline: auto;
  }
  .hh-legacy-layout :is(img, iframe, embed, object, video) {
    max-width: 100% !important;
  }
  .hh-legacy-layout :is(img,video) {
    height: auto !important;
  }
  .hh-legacy-intro .hh-quick-links {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hh-questionnaire {
    padding-inline: .75rem;
  }
  .hh-questionnaire > table,
  .hh-questionnaire > table > tbody,
  .hh-questionnaire > table > tbody > tr,
  .hh-questionnaire > table > tbody > tr > :is(th, td) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    text-align: start;
  }
  .hh-questionnaire > table > tbody > tr {
    padding-block: .3rem;
  }
  .hh-questionnaire :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
    box-sizing: border-box;
    min-height: 44px;
  }
  .hh-questionnaire :is(input[type="text"], textarea) {
    width: 100%;
  }
  .hh-hero .hh-actions a {
    flex: 1 1 12rem;
    justify-content: center;
  }
}
