/* Stamp duty calculator — loaded only on pages using [bb_sdlt_calculator]. */

:root {
    --sdlt-ink: #211F1F;
    --sdlt-ivory: #f7f5ef;
    --sdlt-accent: #A0B100;
    --sdlt-rule-dark: rgba(247, 245, 239, 0.16);
    --sdlt-rule-light: rgba(33, 31, 31, 0.12);
}

/* ---------------------------------------------------------------------------
 * Hero: the ink band the testimonials page opens on (bb-quotes-band carries
 * the ground and the watermark), with the calculator running on below it.
 * ------------------------------------------------------------------------ */

.bb-sdlt-hero.bb-quotes-band {
    padding: 128px 0 0;
    color: var(--sdlt-ivory);
    text-align: center;
}

@media (min-width: 850px) {
    .bb-sdlt-hero.bb-quotes-band {
        padding-top: 160px;
    }
}

.bb-sdlt-hero .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1482px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (min-width: 1540px) {
    .bb-sdlt-hero .container {
        padding: 0;
    }
}

.bb-sdlt-hero .bb-quotes-eyebrow {
    margin-bottom: 26px !important;
}

.bb-sdlt-hero .bb-sdlt-hero-title {
    margin: 0 auto 20px;
    max-width: none;
    color: var(--sdlt-ivory);
}

.bb-sdlt-hero .bb-sdlt-hero-lead {
    max-width: 40em;
    margin: 0 auto;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(247, 245, 239, 0.6);
}

.bb-sdlt-hero .wp-block-buttons.bb-quotes-actions {
    margin-top: 40px;
}

/* Same button as the header's "Book a Consultation". */
.bb-sdlt-hero .wp-block-buttons.bb-quotes-actions .wp-block-button .wp-block-button__link {
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--sdlt-accent);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bb-sdlt-hero .wp-block-buttons.bb-quotes-actions .wp-block-button .wp-block-button__link:hover,
.bb-sdlt-hero .wp-block-buttons.bb-quotes-actions .wp-block-button .wp-block-button__link:focus-visible {
    color: #0b0b0c;
    background-color: var(--sdlt-ivory);
}

.bb-sdlt-hero .bb-quotes-stats {
    text-align: left;
}

.bb-sdlt-hero .bb-quotes-stat {
    padding-top: 48px;
    padding-bottom: 12px;
}

@media (min-width: 850px) {
    .bb-sdlt-hero .bb-quotes-stats {
        margin-top: 72px;
    }

    .bb-sdlt-hero .bb-quotes-stat {
        padding-top: 56px;
        padding-bottom: 16px;
    }
}

/* ---------------------------------------------------------------------------
 * Calculator section, on the dark ground under the hero.
 * ------------------------------------------------------------------------ */

.bb-sdlt-intro.text-columns {
    background: #0b0b0c;
    color: var(--sdlt-ivory);
    padding-top: 88px;
    padding-bottom: 88px;
}

@media (max-width: 849px) {
    .bb-sdlt-intro.text-columns {
        padding-top: 48px;
        padding-bottom: 56px;
    }
}

.bb-sdlt {
    scroll-margin-top: 120px;
}

.bb-sdlt__form {
    display: grid;
    gap: 40px;
    margin: 0;
}

@media (min-width: 850px) {
    .bb-sdlt__form {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: 64px;
        row-gap: 56px;
        align-items: start;
    }

    /* The questions and the result share one ivory card across the first
       row; the breakdown and the comparison start together on the row below. */
    .bb-sdlt__form::before {
        content: "";
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: stretch;
        background: var(--sdlt-ivory);
    }

    .bb-sdlt .bb-sdlt__inputs {
        grid-column: 1;
        grid-row: 1;
        padding-right: 0;
        background: transparent;
    }

    .bb-sdlt .bb-sdlt__results {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        position: relative;
        background: transparent;
    }

    .bb-sdlt__results::before {
        content: "";
        position: absolute;
        top: 44px;
        bottom: 40px;
        left: 0;
        border-left: 1px solid var(--sdlt-rule-light);
    }

    .bb-sdlt__results .bb-sdlt__facts {
        margin-top: auto;
    }

    /* Both sides of the second row end on the same line: the table's rows
       share out any spare height, and the button sits at the foot. */
    .bb-sdlt__breakdown {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .bb-sdlt__breakdown .bb-sdlt__bands {
        flex: 1 1 auto;
        height: 100%;
    }

    .bb-sdlt.is-pending .bb-sdlt__bands tbody th,
    .bb-sdlt.is-pending .bb-sdlt__bands tbody td {
        vertical-align: middle;
    }

    .bb-sdlt .bb-sdlt__bands tbody tr:last-child th,
    .bb-sdlt .bb-sdlt__bands tbody tr:last-child td {
        border-bottom: 1px solid var(--sdlt-rule-dark);
    }

    .bb-sdlt__compare {
        grid-column: 2;
        grid-row: 2;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .bb-sdlt .bb-sdlt__compare .bb-sdlt__compare-cta {
        margin-top: auto;
    }
}

.bb-sdlt__inputs > fieldset.bb-sdlt__field:last-of-type {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * Inputs, on the left of the ivory card.
 * ------------------------------------------------------------------------ */

.bb-sdlt__field {
    border: 0;
    margin: 0 0 36px;
    padding: 0;
    min-width: 0;
}

.bb-sdlt .bb-sdlt__label {
    display: block;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(33, 31, 31, 0.62);
    margin: 0 0 14px;
    padding: 0;
}

.bb-sdlt__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-bottom: 1px solid rgba(33, 31, 31, 0.4);
    font-family: "Larken", serif;
    font-size: clamp(36px, 3.6vw, 48px);
    line-height: 1.1;
    color: var(--sdlt-ink);
    transition: border-color 0.2s;
}

.bb-sdlt__price:focus-within {
    border-bottom-color: var(--sdlt-accent);
}

.bb-sdlt .bb-sdlt__price input {
    flex: 1;
    min-width: 0;
    height: auto;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
    color: inherit;
    padding: 4px 0 12px;
    margin: 0;
}

.bb-sdlt__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.bb-sdlt:not(.is-live) .bb-sdlt__chips {
    display: none;
}

.bb-sdlt .bb-sdlt__chip {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(33, 31, 31, 0.28);
    border-radius: 999px;
    color: var(--sdlt-ink);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 9px 14px;
    margin: 0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bb-sdlt .bb-sdlt__chip:hover {
    border-color: var(--sdlt-ink);
}

.bb-sdlt .bb-sdlt__chip.is-active {
    background: var(--sdlt-accent);
    border-color: var(--sdlt-accent);
    color: #fff;
}

.bb-sdlt__segments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(33, 31, 31, 0.28);
}

.bb-sdlt__segments--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-sdlt__segment {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.bb-sdlt__segment + .bb-sdlt__segment {
    border-left: 1px solid rgba(33, 31, 31, 0.28);
}

.bb-sdlt__segment input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.bb-sdlt__segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 8px;
    text-align: center;
    font-size: 15px;
    line-height: 1.25;
    color: rgba(33, 31, 31, 0.85);
    transition: background 0.2s, color 0.2s;
}

.bb-sdlt__segment:hover span {
    background: rgba(33, 31, 31, 0.06);
}

.bb-sdlt__segment input:checked + span {
    background: var(--sdlt-accent);
    color: #fff;
    font-weight: 600;
}

.bb-sdlt__segment input:focus-visible + span {
    outline: 2px solid var(--sdlt-ink);
    outline-offset: -4px;
}

.bb-sdlt__hint {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(33, 31, 31, 0.55);
}

.bb-sdlt .bb-sdlt__submit {
    width: 100%;
    cursor: pointer;
    border: 0;
    justify-content: center;
}

.bb-sdlt.is-live .bb-sdlt__submit {
    display: none;
}

/* A square reset in the corner of the result card, level with its eyebrow,
   styled like the site's CTAs. It only appears once there is something to
   clear, and opens into a labelled button on hover. Absolutely placed, so
   nothing moves when it comes and goes. */
.bb-sdlt__results {
    position: relative;
}

.bb-sdlt .bb-sdlt__clear {
    appearance: none;
    position: absolute;
    top: 32px;
    right: 36px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0 13px;
    background: transparent;
    border: 1px solid rgba(33, 31, 31, 0.22);
    border-radius: 0;
    color: var(--sdlt-ink);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.bb-sdlt .bb-sdlt__clear-icon {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    transition: transform 0.45s ease;
}

.bb-sdlt .bb-sdlt__clear-text {
    display: inline-block;
    overflow: hidden;
    max-width: 0;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.2s, margin 0.3s ease;
}

.bb-sdlt .bb-sdlt__clear:hover,
.bb-sdlt .bb-sdlt__clear:focus-visible {
    background: var(--sdlt-accent);
    border-color: var(--sdlt-accent);
    border-radius: 0;
    color: #fff;
}

.bb-sdlt .bb-sdlt__clear:hover .bb-sdlt__clear-text,
.bb-sdlt .bb-sdlt__clear:focus-visible .bb-sdlt__clear-text {
    max-width: 120px;
    margin-left: 8px;
    opacity: 1;
}

.bb-sdlt .bb-sdlt__clear:hover .bb-sdlt__clear-icon,
.bb-sdlt .bb-sdlt__clear:focus-visible .bb-sdlt__clear-icon {
    transform: rotate(-360deg);
}

.bb-sdlt .bb-sdlt__clear:focus-visible {
    outline: 2px solid var(--sdlt-accent);
    outline-offset: 3px;
}

.bb-sdlt .bb-sdlt__clear:disabled {
    visibility: hidden;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.bb-sdlt:not(.is-live) .bb-sdlt__clear {
    display: none;
}

/* No hover on touch screens, so the label is always shown there. */
@media (hover: none), (max-width: 849px) {
    .bb-sdlt .bb-sdlt__clear {
        top: 24px;
        right: 20px;
        height: 40px;
    }

    .bb-sdlt .bb-sdlt__clear-text {
        max-width: 120px;
        margin-left: 8px;
        opacity: 1;
    }
}

/* Too narrow for the label beside the eyebrow, so the square icon alone. */
@media (max-width: 549px) {
    .bb-sdlt .bb-sdlt__clear {
        min-width: 40px;
        padding: 0 11px;
    }

    .bb-sdlt .bb-sdlt__clear .bb-sdlt__clear-text {
        max-width: 0;
        margin-left: 0;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-sdlt .bb-sdlt__clear,
    .bb-sdlt .bb-sdlt__clear-icon,
    .bb-sdlt .bb-sdlt__clear-text {
        transition: none;
    }
}

.bb-sdlt .bb-sdlt__price input::placeholder {
    color: rgba(33, 31, 31, 0.3);
    opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Result: the right of the ivory card, behind a rule.
 * ------------------------------------------------------------------------ */

.bb-sdlt__inputs,
.bb-sdlt__results {
    background: var(--sdlt-ivory);
    color: var(--sdlt-ink);
    padding: 44px 48px 40px;
}

.bb-sdlt .bb-sdlt__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: rgba(33, 31, 31, 0.6);
}

.bb-sdlt__total {
    font-family: "Larken", serif;
    font-size: clamp(56px, 6.4vw, 96px);
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0 0 32px;
    font-variant-numeric: tabular-nums;
    color: var(--sdlt-accent);
}

/* Until the visitor has answered everything, the card says what is missing
   instead of showing a figure for a situation they never chose. */
.bb-sdlt__prompt {
    display: none;
    margin: -16px 0 32px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(33, 31, 31, 0.7);
}

.bb-sdlt.is-pending .bb-sdlt__prompt {
    display: block;
}

.bb-sdlt__summary {
    margin: -16px 0 0;
    max-width: 30em;
    font-size: 18px;
    line-height: 1.45;
    color: rgba(33, 31, 31, 0.8);
}

.bb-sdlt__summary:empty {
    display: none;
}

.bb-sdlt__due {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin: 14px 0 32px;
    max-width: 30em;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(33, 31, 31, 0.6);
}

.bb-sdlt__due::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sdlt-accent);
    transform: translateY(-1px);
}

.bb-sdlt.is-pending .bb-sdlt__due {
    margin-top: 0;
}

.bb-sdlt.is-pending .bb-sdlt__total,
.bb-sdlt.is-pending .bb-sdlt__facts dd,
.bb-sdlt.is-pending .bb-sdlt__compare-stats dd {
    color: rgba(128, 128, 128, 0.55);
}

.bb-sdlt.is-pending .bb-sdlt__note {
    display: none;
}

.bb-sdlt__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--sdlt-rule-light);
}

.bb-sdlt__facts > div {
    padding: 16px 0 0;
}

.bb-sdlt__facts > div + div {
    padding-left: 24px;
    border-left: 1px solid var(--sdlt-rule-light);
}

.bb-sdlt__facts dt {
    font-size: 13px;
    color: rgba(33, 31, 31, 0.6);
    margin: 0 0 4px;
}

.bb-sdlt__facts dd {
    font-family: "Larken", serif;
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.bb-sdlt__note {
    margin: 24px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--sdlt-accent);
    background: rgba(160, 177, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
}

.bb-sdlt__note[hidden] {
    display: none;
}

.bb-sdlt__breakdown {
    padding-top: 32px;
    border-top: 1px solid var(--sdlt-rule-dark);
}

.bb-sdlt.is-pending .bb-sdlt__bands td:last-child {
    color: rgba(247, 245, 239, 0.35);
}

.bb-sdlt__taxed:empty {
    display: none;
}

.bb-sdlt__bands,
.bb-sdlt .bb-sdlt__bands {
    display: table;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    margin: 0;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.bb-sdlt__bands caption {
    caption-side: top;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 245, 239, 0.62);
    padding: 0 0 12px;
}

.bb-sdlt__bands tbody {
    display: table-row-group;
    min-width: 0;
}

.bb-sdlt__bands tr,
.bb-sdlt__bands tr:nth-child(odd) {
    background: transparent;
}

.bb-sdlt__bands th,
.bb-sdlt__bands td {
    background: transparent;
    color: var(--sdlt-ivory);
    min-width: 0;
    padding: 12px 0 12px 12px;
    border: 0;
    border-bottom: 1px solid var(--sdlt-rule-dark);
    text-align: right;
    vertical-align: top;
    font-size: inherit;
    font-weight: 400;
}

.bb-sdlt__bands th:first-child {
    text-align: left;
    padding-left: 0;
    font-weight: 600;
}

.bb-sdlt__bands td:last-child {
    font-weight: 600;
}

.bb-sdlt__bands thead th {
    font-size: 12px;
    font-weight: 500;
    color: rgba(247, 245, 239, 0.5);
    padding-top: 0;
    padding-bottom: 8px;
}

.bb-sdlt__bands tbody tr:last-child th,
.bb-sdlt__bands tbody tr:last-child td {
    border-bottom: 0;
}

.bb-sdlt__bands tr.is-empty th,
.bb-sdlt__bands tr.is-empty td {
    color: rgba(247, 245, 239, 0.35);
}

.bb-sdlt__taxed {
    display: block;
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: rgba(247, 245, 239, 0.5);
}

/* ---------------------------------------------------------------------------
 * What negotiation is worth.
 * ------------------------------------------------------------------------ */

.bb-sdlt__compare {
    padding-top: 32px;
    border-top: 1px solid var(--sdlt-rule-dark);
    color: var(--sdlt-ivory);
}

.bb-sdlt__compare .bb-sdlt__eyebrow {
    color: var(--sdlt-accent);
}

.bb-sdlt__compare-lead {
    font-family: "Larken", serif;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.3;
    margin: 0 0 28px;
    max-width: 24em;
    color: var(--sdlt-ivory);
}

.bb-sdlt__compare-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.bb-sdlt__compare-stats > div {
    padding: 0 24px;
    border-left: 1px solid var(--sdlt-rule-dark);
}

.bb-sdlt__compare-stats > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.bb-sdlt__compare-stats dt {
    font-size: 13px;
    color: rgba(247, 245, 239, 0.6);
    margin: 0 0 8px;
}

.bb-sdlt__compare-stats dd {
    font-family: "Larken", serif;
    font-size: clamp(22px, 2.3vw, 34px);
    line-height: 1.1;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.bb-sdlt__compare-stats dd s {
    display: block;
    margin-top: 6px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    color: rgba(247, 245, 239, 0.45);
}

.bb-sdlt__compare-stats .is-key dd {
    color: var(--sdlt-accent);
}

.bb-sdlt__compare-note {
    margin: 24px 0;
    max-width: 40em;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(247, 245, 239, 0.55);
}

.bb-sdlt .bb-sdlt__compare-cta {
    margin: 0;
}

.bb-sdlt .bb-sdlt__compare-cta .wp-block-button__link {
    background: var(--sdlt-accent);
    color: var(--sdlt-ink);
}

.bb-sdlt .bb-sdlt__compare-cta .wp-block-button__link:hover {
    background: var(--sdlt-ivory);
}

.bb-sdlt__disclaimer {
    margin: 48px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(247, 245, 239, 0.45);
    max-width: 900px;
}

/* ---------------------------------------------------------------------------
 * Reference tables further down the page (rates, worked examples).
 * ------------------------------------------------------------------------ */

.bb-sdlt-table-wrap {
    overflow-x: auto;
    margin: 0 0 48px;
    -webkit-overflow-scrolling: touch;
}

.bb-sdlt-table-wrap .bb-sdlt__table {
    display: table;
    width: 100%;
    min-width: 680px;
    table-layout: auto;
    border-collapse: collapse;
    margin: 0;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.bb-sdlt__table tbody {
    display: table-row-group;
    min-width: 0;
}

.bb-sdlt__table tr,
.bb-sdlt__table tr:nth-child(odd) {
    background: transparent;
}

.bb-sdlt__table th,
.bb-sdlt__table td {
    background: transparent;
    color: var(--sdlt-ink);
    min-width: 0;
    padding: 16px 14px;
    border: 0;
    border-bottom: 1px solid var(--sdlt-rule-light);
    text-align: right;
    vertical-align: middle;
    font-size: inherit;
    font-weight: 400;
}

.bb-sdlt__table th:first-child {
    text-align: left;
    padding-left: 0;
    font-family: "Larken", serif;
    font-size: 19px;
}

.bb-sdlt__table th:last-child,
.bb-sdlt__table td:last-child {
    padding-right: 0;
}

.bb-sdlt__table thead th,
.bb-sdlt__table thead th:first-child {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(33, 31, 31, 0.55);
    vertical-align: bottom;
    border-bottom-color: var(--sdlt-ink);
}

.bb-sdlt__table caption {
    caption-side: top;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    padding: 0 0 14px;
}

.bb-sdlt__rate {
    display: block;
    font-size: 13px;
    color: rgba(33, 31, 31, 0.55);
}

/* ---------------------------------------------------------------------------
 * "Stamp duty is charged on the price you negotiate": photo collage beside
 * three numbered points.
 * ------------------------------------------------------------------------ */

.bb-sdlt-agent .bb-sdlt-agent-layout {
    gap: 88px;
    align-items: center;
    margin: 0;
}

.bb-sdlt-agent .bb-sdlt-agent-media {
    position: relative;
    align-self: center;
}

.bb-sdlt-agent .bb-sdlt-agent-photo {
    margin: 0;
}

.bb-sdlt-agent .bb-sdlt-agent-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 60%;
}

.bb-sdlt-agent .bb-sdlt-agent-stat {
    position: absolute;
    top: 32px;
    left: -32px;
    background: var(--sdlt-ink);
    color: var(--sdlt-ivory);
    padding: 24px 28px 22px;
    max-width: 230px;
    box-shadow: 0 24px 48px rgba(33, 31, 31, 0.22);
}

.bb-sdlt-agent .bb-sdlt-agent-stat-figure {
    font-family: "Larken", serif;
    font-size: 72px;
    line-height: 0.9;
    color: var(--sdlt-accent);
    margin: 0 0 12px;
}

.bb-sdlt-agent .bb-sdlt-agent-stat-label {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    color: rgba(247, 245, 239, 0.85);
}

.bb-sdlt-agent .bb-sdlt-agent-copy h2 {
    margin-top: 0;
}

.bb-sdlt-agent .bb-sdlt-agent-lead {
    font-size: 19px;
    line-height: 1.55;
    margin-bottom: 36px;
}

.bb-sdlt-agent .bb-sdlt-points {
    border-top: 1px solid rgba(33, 31, 31, 0.18);
    margin: 0 0 40px;
}

/* The number hangs in the gutter; positioned rather than gridded because the
   group block may or may not wrap its children in an inner container. */
.bb-sdlt-agent .bb-sdlt-point {
    position: relative;
    padding: 24px 0 24px 64px;
    border-bottom: 1px solid rgba(33, 31, 31, 0.18);
}

.bb-sdlt-agent .bb-sdlt-point-num {
    position: absolute;
    top: 29px;
    left: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(33, 31, 31, 0.5);
}

.bb-sdlt-agent .bb-sdlt-point-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.bb-sdlt-agent .bb-sdlt-point-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: rgba(33, 31, 31, 0.8);
}

.bb-sdlt-agent .bb-sdlt-agent-cta {
    margin: 0;
}

/* One named adviser under the photo, rather than a team carousel: a white card
   the full width of the photo, closing it off at the foot. */
.bb-sdlt-advisor {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 28px 32px 30px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(33, 31, 31, 0.12);
}

.bb-sdlt-advisor p {
    margin: 0;
}

.bb-sdlt-advisor-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--sdlt-rule-light);
}

.bb-sdlt-advisor .bb-sdlt-advisor-photo {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sdlt-accent);
}

.bb-sdlt-advisor .bb-sdlt-advisor-name {
    font-family: "Larken", serif;
    font-size: 20px;
    line-height: 1.2;
}

.bb-sdlt-advisor .bb-sdlt-advisor-name a {
    color: var(--sdlt-ink);
    text-decoration: none;
}

.bb-sdlt-advisor .bb-sdlt-advisor-name a:hover {
    text-decoration: underline;
    text-decoration-color: var(--sdlt-accent);
    text-underline-offset: 4px;
}

.bb-sdlt-advisor .bb-sdlt-advisor-role {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sdlt-accent);
}

.bb-sdlt-advisor .bb-sdlt-advisor-ask {
    font-family: "Larken", serif;
    font-size: 24px;
    line-height: 1.25;
    color: var(--sdlt-ink);
}

.bb-sdlt-advisor .bb-sdlt-advisor-cred {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(33, 31, 31, 0.6);
}

.bb-sdlt-advisor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 22px;
}

.bb-sdlt-advisor .bb-sdlt-advisor-actions .bb-sdlt-agent-cta {
    margin: 0;
}

.bb-sdlt-advisor .bb-sdlt-advisor-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--sdlt-ink);
    text-decoration: underline;
    text-decoration-color: var(--sdlt-accent);
    text-underline-offset: 4px;
}

@media (max-width: 849px) {
    .bb-sdlt-advisor {
        margin: 0;
        padding: 24px 22px 26px;
        box-shadow: 0 16px 32px rgba(33, 31, 31, 0.1);
    }

    .bb-sdlt-advisor .bb-sdlt-advisor-ask {
        font-size: 21px;
    }
}

/* A single client quote on the testimonials page's ink band. */
.bb-sdlt-quote.bb-quotes-band {
    padding: 96px 0;
    color: var(--sdlt-ivory);
    text-align: center;
}

.bb-sdlt-quote .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1482px;
    margin: 0 auto;
    padding: 0 30px;
}

.bb-sdlt-quote .bb-quotes-eyebrow {
    margin-bottom: 32px !important;
}

.bb-sdlt-quote .bb-sdlt-quote-figure {
    max-width: 900px;
    margin: 0 auto;
}

.bb-sdlt-quote .bb-sdlt-quote-text {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Larken", serif;
    font-weight: 300;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.3;
    color: var(--sdlt-ivory);
}

.bb-sdlt-quote .bb-sdlt-quote-text::before,
.bb-sdlt-quote .bb-sdlt-quote-text::after {
    content: none;
}

.bb-sdlt-quote .bb-sdlt-quote-cite {
    margin-top: 28px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(247, 245, 239, 0.55);
}

.bb-sdlt-quote .bb-sdlt-quote-cite a {
    color: var(--sdlt-accent);
    text-decoration: none;
}

.bb-sdlt-quote .bb-sdlt-quote-cite a:hover {
    text-decoration: underline;
}

@media (max-width: 849px) {
    .bb-sdlt-quote.bb-quotes-band {
        padding: 72px 0;
    }
}

@media (max-width: 849px) {
    .bb-sdlt-agent .bb-sdlt-agent-layout {
        gap: 48px;
    }

    .bb-sdlt-agent .bb-sdlt-agent-photo img {
        aspect-ratio: 3 / 2;
    }


    .bb-sdlt-agent .bb-sdlt-agent-stat {
        top: 16px;
        left: 16px;
        padding: 16px 18px;
        max-width: 170px;
    }

    .bb-sdlt-agent .bb-sdlt-agent-stat-figure {
        font-size: 48px;
    }

    .bb-sdlt-agent .bb-sdlt-agent-stat-label {
        font-size: 12px;
    }

    .bb-sdlt-agent .bb-sdlt-point {
        padding-left: 44px;
    }
}

/* ---------------------------------------------------------------------------
 * Small screens.
 * ------------------------------------------------------------------------ */

@media (max-width: 849px) {
    .bb-sdlt__inputs,
    .bb-sdlt__results {
        padding: 32px 24px 28px;
        margin: 0 -4px;
    }

    /* One card: the result carries straight on from the questions. */
    .bb-sdlt .bb-sdlt__results {
        margin-top: -40px;
        border-top: 1px solid var(--sdlt-rule-light);
    }

    .bb-sdlt__facts dd {
        font-size: 24px;
    }

    .bb-sdlt__compare-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .bb-sdlt__compare-stats > div,
    .bb-sdlt__compare-stats > div:first-child {
        padding: 0 0 20px;
        border-left: 0;
        border-bottom: 1px solid var(--sdlt-rule-dark);
    }

    .bb-sdlt__compare-stats dd s {
        display: inline;
        margin: 0 0 0 10px;
    }
}

@media (max-width: 549px) {
    .bb-sdlt__segment span {
        font-size: 14px;
        min-height: 48px;
        padding: 8px 4px;
    }

    .bb-sdlt__bands th,
    .bb-sdlt__bands td {
        font-size: 14px;
    }
}
