/* Scoped presentation changes; native selections, answers and scores are retained. */
@layer illnessfinder-search-clarity {
  #IFBody.if-overview-layout .if-result-table :is(th:last-child, td:last-child) {
    width: 7.75rem !important;
  }
  #IFBody.if-overview-layout .if-result-table th:last-child {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  #IFBody.if-overview-layout .if-result-table td:nth-child(2) {
    hyphens: auto;
    word-break: normal;
  }
  #IFBody .if-result-table[data-clarity-pager] tr[hidden],
  #IFBody .if-score-help-panel[hidden],
  #IFBody .if-draft-status:empty {
    display: none !important;
  }
  #IFBody .if-score-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
  }
  #IFBody .if-score-heading h3 { margin: 0 !important; }
  #IFBody button.if-score-info {
    flex: 0 0 auto;
    inline-size: 2rem !important;
    block-size: 2rem !important;
    min-height: 2rem !important;
    padding: 0 !important;
    border: 1px solid #527a91 !important;
    border-radius: 50% !important;
    background: #f5f9fb;
    color: #24526d;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
  }
  #IFBody button.if-score-info:is(:hover, :focus-visible, [aria-expanded=true]) {
    background: #dcebf5 !important;
    border-color: #24526d !important;
    color: #163e56 !important;
  }
  #IFBody .if-score-help-panel {
    margin-block: 0 1rem;
  }
  #IFBody .if-score-help-panel .if-score-boundary { margin-block: 0 !important; }
  #IFBody .if-result-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-block: .75rem 1rem;
  }
  #IFBody .if-result-page-status {
    flex-basis: 100%;
    margin: 0 !important;
    font-size: .9rem;
  }
  #IFBody button.if-result-page-button {
    min-height: 2.75rem;
    padding: .45rem .75rem;
    font: inherit;
    font-size: .9rem;
    border: 1px solid #c6d6df !important;
    border-radius: .3rem;
    background: #f5f9fb;
    color: #24526d;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
  }
  #IFBody button.if-result-page-button:is(:hover, :focus-visible):not(:disabled) {
    background: #dcebf5 !important;
    border-color: #24526d !important;
  }
  #IFBody button.if-result-page-button:disabled { opacity: .55; cursor: default; }
  @media (min-width: 1100px) {
    #IFBody.if-overview-layout :is(.if-search-card, .if-chosen-card, #if-ranked-results) {
      align-self: stretch !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      margin-block: 0 !important;
    }
  }
  @media (max-width: 620px) {
    #IFBody button.if-score-info {
      inline-size: 2.75rem !important;
      block-size: 2.75rem !important;
      min-height: 2.75rem !important;
    }
  }
  @media (forced-colors: active) {
    #IFBody button:is(.if-score-info, .if-result-page-button):focus-visible:not(:disabled) {
      forced-color-adjust: none;
      border-color: CanvasText !important;
      background: CanvasText !important;
      color: Canvas !important;
    }
  }
}
