#comparables-tool {
    border-top: 6px solid var(--brand-primary);
    margin-bottom: 0;
}

#comparables-tool [hidden] {
    display: none;
}

.comparables-hero {
    color: var(--white);
    height: 524px;
    background: linear-gradient(270deg, #08349B 0%, #031235 100%);
    overflow: hidden; /* cut off hero image because of negative right value */
}

.comparables-hero__wrap {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.comparables-hero picture {
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 732px;
    height: 524px;
}

/* .comparables-hero-text */

.comparables-hero-text {
    position: relative;
    display: flex;
    max-width: 678px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 128px 64px;
}

.comparables-hero-text__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}


.comparables-hero-text__description {
    color: var(--white-400);
    font-size: 16px;
    font-style: normal;
    font-variation-settings: "slnt" 0, "wght" 400;
    line-height: 22px; /* 137.5% */
}

/* .comparables-stats */

.comparables-stats {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.20);
}

.comparables-stats__wrap {
    max-width: 1280px;
    margin: 0 auto;
}

/* .comparables-stats-list */

.comparables-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
}

.comparables-stats-list__item {
    display: flex;
    padding: 40px 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex: 1 0 0;
}

.comparables-stats-list__item:not(:last-child) {
    border-right: 0.5px solid rgba(0, 0, 0, 0.20);
}

.comparables-stats-list__item-value {
    color: var(--blue-600);
    text-align: center;
    font-family: var(--font_face_2), serif;
    font-size: 40.982px;
    font-style: normal;
    font-variation-settings: "slnt" 0, "wght" 700;
    line-height: normal;
    letter-spacing: -0.82px;
    position: relative;
}

.comparables-stats-list__item-value::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -5px;
    right: -5px;
    height: 33px;
    background: var(--blue-100);
}

.comparables-stats-list__item-value span {
    position: relative;
}

.comparables-stats-list__item-label {
    color: var(--blue-600);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-variation-settings: "slnt" 0, "wght" 584;
    line-height: 22px; /* 137.5% */
}

/* .comparables-content */

.comparables-content {
    background: var(--grey-25);
}

.comparables-content__wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    padding: 104px 64px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

/* .comparables-input */

.comparables-input {
    display: flex;
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    align-self: stretch;
}

.comparables-input__header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.comparables-input__heading {
    text-align: center;
}

.comparables-input__subheading {
    text-align: center;
    color: var(--grey-800);
}

.comparables-input__container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    align-self: stretch;
    max-width: 792px;
    margin: 0 auto;
    width: 100%;
}

.comparables-input__form {
    display: flex;
    padding: 56px 64px 32px 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 8px -2px var(--transparent-grey-50), 0 2px 4px -2px var(--transparent-grey-50);
}

.comparables-input__rows {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

.comparables-input__row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

label.comparables-input__column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex: 1 0 0;
    margin: 0;
}

.comparables-input__label {
    display: block;
}

.comparables-input__required {
    color: var(--brand-primary);
}

.comparables-input__input {
    display: block;
}

.comparables-input__input select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comparables-input__input--number {
    --input-number-prefix-width: 30px;
    position: relative;
}

.comparables-input__input--number input {
    padding-left: var(--input-number-prefix-width);
}

.comparables-input__input--number::after {
    content: '$';
    position: absolute;
    top: 0;
    left: 3px;
    right: 0;
    bottom: 0;
    width: var(--input-number-prefix-width);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-800);
    font-size: 16px;
    line-height: 22px;
}

button[type="button"].comparables-input__reset-button {
    cursor: pointer;
    background: none;
    border: 0;
    margin: 0;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #31353F;
    font-size: 14px;
    font-family: inherit;
    font-variation-settings: "slnt" 0, "wght" 584;
    line-height: 18px; /* 128.571% */
    letter-spacing: 0.16px;
}

button[type="button"].comparables-input__reset-button:hover {
    color: var(--brand-primary);
}

button[type="button"].comparables-input__reset-button:hover svg {
    fill: var(--brand-primary);
}

.comparables-input__form-footer button.button2 {
    flex: 0 0 auto;
}

.comparables-input__reset-button svg {
    width: 16px;
    height: 16px;
    display: block;
}

.comparables-input__form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.comparables-input__container-footer {
    color: var(--grey-800);
    text-align: center;
    font-variation-settings: "slnt" 10, "wght" 400;
    margin: -4px 0;
}

/* .comparables-input-notice */

@keyframes comparables-input-notice-attention {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.comparables-input-notice {
    scroll-margin: 24px;
    display: flex;
    padding: 12px 20px 12px 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 12px;
    background: var(--yellow-100);
}

.comparables-input-notice.is-attention {
    background-image: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.45) 48%,
        rgba(255, 255, 255, 0.45) 52%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: comparables-input-notice-attention 700ms linear forwards;
}

.comparables-input-notice__message {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparables-input-notice__icon {
    display: flex;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: var(--orange-25);
    box-shadow: var(--shadow-sm-interior-grey-100);
}

.comparables-input-notice__icon svg {
    width: 24px;
    height: 24px;
    fill: var(--yellow-500);
}

.comparables-input-notice__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.comparables-input-notice__heading {
    color: var(--text-primary);
}

.comparables-input-notice__description {
    color: var(--text-secondary);
}

.comparables-input-notice__button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparables-input-notice__button button[type] {
    margin: -5px;
    padding: 5px;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comparables-input-notice__button button[type]:hover svg {
    fill: var(--grey-600);
}

.comparables-input-notice__button svg {
    transition: fill var(--transition_d1) var(--transition_e1);
    width: 24px;
    height: 24px;
    fill: var(--grey-400);
}

/* .comparables-output */

.comparables-output {
    display: flex;
    padding: 48px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 8px -2px var(--transparent-grey-100), 0 2px 4px -2px var(--transparent-grey-100);
    position: relative;
    width: 100%;
    margin-top: 14px; /* make room for the marker which is positioned absolutely */
}

.comparables-output__marker {
    position: absolute;
    bottom: 100%;
    right: 0;
    left: 0;
}

.comparables-output__marker svg {
    display: block;
    margin: 0 auto -1px;
}

/* .comparables-transactions */

.comparables-transactions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    align-self: stretch;
}

.comparables-transactions__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
}

.comparables-transactions__header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    flex: 1 0 0;
}

.comparables-transactions__table {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    gap: 24px;
}

.comparables-transactions__below {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    align-self: stretch;
}

.comparables-transactions__footnote {
    align-self: flex-start;
    font-variation-settings: "slnt" 10, "wght" 400;
}

.comparables-transactions__buttons {
    margin-left: auto;
}

.comparables-fuzzy::after {
    content: ' *';
}

.comparables-cross::after {
    content: ' **';
}

/* .comparables-sectors */

.comparables-sectors {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    align-self: stretch;
}

.comparables-sectors__chart-container {
    overflow: auto;
}

.comparables-sectors__chart {
    padding: 36px 44px;
    border-radius: 12px;
    border: 0.5px solid var(--grey-150);
    background: var(--grey-25);
    overflow: hidden; /* echarts can invisibly overflow this container */
    min-width: 400px;
}

.comparables-sectors__chart-description {
    margin-bottom: 12px;
    color: var(--grey-600);
}

.comparables-sectors__chart-relative {
    position: relative;
}

.comparables-sectors__chart-spacer {
    padding-top: calc(372 / 968 * 100%);
}

.comparables-sectors__chart-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@media screen and (max-width: 1279px) {
    .comparables-hero {
        height: auto;
    }

    .comparables-hero__wrap {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .comparables-hero-text {
        padding: 64px 32px;
        max-width: 678px;
    }

    .comparables-hero picture {
        position: relative;
        top: 44px;
        right: -59px;
        align-self: flex-end;
        width: 667px;
        height: 477px;
        margin-top: -113px;
    }

    .comparables-stats-list__item-value {
        font-size: 36px;
    }

    .comparables-content__wrap {
        padding: 104px 32px;
    }

    .comparables-transactions {
        gap: 40px;
    }

    .comparables-transactions__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .comparables-transactions__table {
        gap: 32px;
        align-items: flex-start;
    }

    .comparables-sectors__chart-spacer {
        padding-top: calc(384 / 560 * 100%);
    }
}

@media screen and (max-width: 767px) {
    .comparables-hero picture {
        right: -94px;
    }

    .comparables-content__wrap {
        padding: 82px 32px;
    }

    .comparables-input__form {
        padding: 40px 48px 32px 48px;
    }

    .comparables-input__rows {
        gap: 16px;
    }

    .comparables-output {
        padding: 32px;
    }

    .comparables-sectors__chart {
        padding: 24px;
    }

    .comparables-sectors__chart-spacer {
        padding-top: calc(384 / 522 * 100%);
    }
}

@media screen and (max-width: 599px) {
    .comparables-stats-list {
        flex-direction: column;
    }

    .comparables-stats-list__item:not(:last-child) {
        border-right: 0;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.20);
    }

    .comparables-hero picture {
        right: -24px;
        width: 400px;
        height: 281px;
    }

    .comparables-input__row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .comparables-sectors__chart {
        padding: 12px;
    }
}
