/* Prime London Index — loaded only on pages using [bb_prime_london_index]. */

.bb-pli {
    --pli-ink: #211F1F;
    --pli-ivory: #f7f5ef;
    --pli-paper: #f8f6f1;
    --pli-accent: #A0B100;
    --pli-rule: rgba(33, 31, 31, 0.12);
    --pli-muted: rgba(33, 31, 31, 0.62);
    color: var(--pli-ink);
}

.bb-pli-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 850px) {
    .bb-pli-container {
        padding: 0 40px;
    }
}

/* ---------------------------------------------------------------------------
 * Shell: the market update layout (bb-mu-hero, bb-guide-layout) supplies the
 * dark masthead, contents and author card. The index swaps the article byline
 * and photo for its own data header: edition picker, headline figures and
 * dates.
 * ------------------------------------------------------------------------ */

.bb-pli.bb-guide {
    overflow-x: clip;
    background-color: #fff;
}

.bb-pli-hero {
    background:
        radial-gradient(700px 360px at -10% 110%, rgba(247, 245, 239, 0.05), rgba(247, 245, 239, 0) 70%),
        #0b0b0c;
}

.bb-pli-hero .bb-mu-hero-inner {
    padding-bottom: 40px;
}

/* The site header wraps to two lines between 850 and 1199px wide. */
@media only screen and (min-width: 850px) {
    .bb-pli-hero .bb-mu-hero-inner {
        padding-top: 132px;
    }
}

@media only screen and (min-width: 1200px) {
    .bb-pli-hero .bb-mu-hero-inner {
        padding-top: 132px;
        padding-bottom: 56px;
    }
}

.bb-pli-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
}

.bb-pli-hero__top .bb-mu-breadcrumb {
    margin: 0;
}

@media only screen and (min-width: 1200px) {
    .bb-pli-hero__top {
        margin-bottom: 44px;
    }
}

/* Edition picker: a native disclosure, so the links work without script. */
.bb-pli-picker {
    position: relative;
    z-index: 5;
    font-size: 13px;
    color: var(--pli-ivory);
}

@media (min-width: 700px) {
    .bb-pli-picker {
        margin-left: auto;
    }
}

.bb-pli-picker summary,
.bb-pli-picker--single {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(247, 245, 239, 0.28);
}

.bb-pli-picker summary {
    position: relative;
    padding-right: 38px;
    list-style: none;
    cursor: pointer;
}

.bb-pli-picker summary::-webkit-details-marker {
    display: none;
}

.bb-pli-picker summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.bb-pli-picker[open] summary::after {
    margin-top: -1px;
    transform: rotate(-135deg);
}

.bb-pli-picker summary:hover,
.bb-pli-picker[open] summary {
    border-color: var(--pli-accent);
}

.bb-pli-picker__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(247, 245, 239, 0.5);
}

.bb-pli-picker small {
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pli-accent);
}

.bb-pli-picker ul {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 100%;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #1a1a1b;
    border: 1px solid rgba(247, 245, 239, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.bb-pli-picker li {
    margin: 0;
}

.bb-pli-picker ul a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    color: var(--pli-ivory);
    text-decoration: none;
    border-left: 2px solid transparent;
}

.bb-pli-picker ul a:hover,
.bb-pli-picker ul a:focus-visible {
    color: var(--pli-accent);
}

.bb-pli-picker ul a[aria-current="page"] {
    border-left-color: var(--pli-accent);
}

/* Line drawing of a stucco terrace, standing on the rule above the figures.
 * Wide screens only: on smaller ones it would push the figures down. */
.bb-pli-hero__art {
    display: none;
}

@media (min-width: 1000px) {
    .bb-pli-hero__intro {
        position: relative;
    }

    .bb-pli-hero__intro .bb-mu-hero-copy {
        position: relative;
        z-index: 1;
    }

    /* Three balanced lines, and a standfirst that stops short of the drawing. */
    .bb-pli-hero .bb-pli-hero__intro h1 {
        max-width: 9.6em;
        text-wrap: balance;
    }

    .bb-pli-hero .bb-pli-hero__intro .bb-mu-deck {
        max-width: 620px;
    }

    .bb-pli-hero__art {
        display: block;
        position: absolute;
        right: 0;
        bottom: -36px;
        width: clamp(300px, 30vw, 620px);
        height: auto;
        opacity: 0.5;
        pointer-events: none;
    }
}

@media (min-width: 1200px) {
    .bb-pli-hero__art {
        width: clamp(340px, 38vw, 620px);
    }
}

/* Headline figures. */
.bb-pli-stats {
    display: grid;
    grid-template-columns: 1fr;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(247, 245, 239, 0.16);
    border-bottom: 1px solid rgba(247, 245, 239, 0.16);
}

.bb-pli-stat {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 18px 0;
}

.bb-pli-stat + .bb-pli-stat {
    border-top: 1px solid rgba(247, 245, 239, 0.16);
}

.bb-pli-stat__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(247, 245, 239, 0.6);
}

.bb-pli-stat__value {
    margin: 12px 0 10px;
    white-space: nowrap;
    font-family: "Larken", serif;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--pli-ivory);
}

.bb-pli-stat__delta {
    font-size: 13px;
    font-weight: 500;
    color: var(--pli-accent);
}

.bb-pli-stat__deltas {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}

.bb-pli-stat__sep {
    font-size: 13px;
    color: rgba(247, 245, 239, 0.4);
}

/* Three narrow columns: keep "… > …" on one line. */
@media (min-width: 700px) and (max-width: 1199px) {
    .bb-pli-stat__deltas {
        gap: 2px 6px;
    }

    .bb-pli-stat__deltas .bb-pli-stat__delta,
    .bb-pli-stat__sep {
        font-size: 12px;
    }
}

.bb-pli-stat__delta--year {
    font-weight: 400;
    color: rgba(247, 245, 239, 0.55);
}

.bb-pli-stat__note {
    display: none;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(247, 245, 239, 0.5);
}

@media (min-width: 700px) {
    .bb-pli-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bb-pli-stat {
        padding: 28px 28px 30px;
    }

    .bb-pli-stat:first-child {
        padding-left: 0;
    }

    .bb-pli-stat + .bb-pli-stat {
        border-top: 0;
        border-left: 1px solid rgba(247, 245, 239, 0.16);
    }

    .bb-pli-stat__note {
        display: block;
    }
}

/* Dates. */
.bb-pli-hero__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px;
    margin-top: 28px;
}

.bb-pli-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 16px 32px;
    margin: 0;
}

.bb-pli-hero__meta dt {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pli-accent);
}

.bb-pli-hero__meta dd {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--pli-ivory);
}

.bb-pli-hero__meta a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--pli-accent);
    text-underline-offset: 3px;
}

@media (min-width: 850px) {
    .bb-pli-hero__meta {
        display: flex;
        gap: 0;
    }

    .bb-pli-hero__meta div {
        padding: 0 22px;
        border-left: 1px solid rgba(247, 245, 239, 0.16);
    }

    .bb-pli-hero__meta div:first-child {
        padding-left: 0;
        border-left: 0;
    }
}

.bb-pli-archive__inner {
    box-sizing: border-box;
    max-width: 1482px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 850px) {
    .bb-pli-archive__inner {
        padding: 0 30px;
    }
}

/* ---------------------------------------------------------------------------
 * Sections.
 * ------------------------------------------------------------------------ */

.bb-pli-body {
    padding-bottom: 8px;
}

.bb-pli-section {
    padding: 0 0 64px;
    scroll-margin-top: 160px;
}

.bb-pli-section + .bb-pli-section {
    padding-top: 56px;
    border-top: 1px solid var(--pli-rule);
}

.bb-pli-section h2 {
    max-width: 22em;
    margin: 0 0 20px;
}

.bb-pli-section h3 {
    margin: 40px 0 16px;
}

.bb-pli-section p {
    max-width: 44em;
}

.bb-pli-lead {
    font-size: 17px;
    line-height: 1.55;
}

@media (min-width: 850px) {
    .bb-pli-lead {
        font-size: 19px;
    }
}

.bb-pli-defs dd a,
.bb-pli-faq a {
    color: var(--pli-accent);
}

/* The short answer. */
.bb-pli-answer {
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--pli-rule);
    border-left: 4px solid var(--pli-accent);
}

.bb-pli-answer__label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pli-muted);
}

.bb-pli-answer__text {
    margin: 0;
    font-family: "Larken", serif;
    font-size: 19px;
    line-height: 1.5;
}

@media (min-width: 850px) {
    .bb-pli-answer__text {
        font-size: 21px;
    }
}

.bb-pli-findings {
    margin: 0;
    padding-left: 20px;
}

.bb-pli-findings li {
    margin: 0 0 10px;
    line-height: 1.6;
}

/* Charts. */
.bb-pli-chart {
    margin: 28px 0 24px;
}

.bb-pli-chart svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
}

.bb-pli-chart__axis {
    stroke: var(--pli-rule);
    stroke-width: 1;
}

.bb-pli-chart__bar rect {
    fill: #d9d5c9;
}

.bb-pli-chart__bar.is-latest rect {
    fill: var(--pli-ink);
}

.bb-pli-chart__value {
    font-size: 13px;
    font-weight: 500;
    fill: var(--pli-ink);
}

.bb-pli-chart__label {
    font-size: 12px;
    fill: var(--pli-muted);
}

/* The SVG scales with its box, so on phones the text is set larger in chart
 * units to stay readable. */
@media (max-width: 699px) {
    .bb-pli-chart__value {
        font-size: 22px;
    }

    .bb-pli-chart__label {
        font-size: 19px;
    }
}

.bb-pli-chart figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--pli-muted);
}

/* Tables. */
.bb-pli-table-wrap {
    margin: 24px 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bb-pli-table {
    display: table;
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
}

.bb-pli-table tbody {
    display: table-row-group;
}

.bb-pli-table--compact {
    min-width: 0;
}

.bb-pli-table caption {
    padding: 0 0 12px;
    font-size: 13px;
    text-align: left;
    color: var(--pli-muted);
}

.bb-pli-table th,
.bb-pli-table td {
    padding: 14px 16px;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid var(--pli-rule);
}

.bb-pli-table thead th {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--pli-ivory);
    background: #0b0b0c;
}

.bb-pli-table th:first-child,
.bb-pli-table td:first-child {
    text-align: left;
}

.bb-pli-table th {
    min-width: 0;
    font-size: inherit;
}

.bb-pli-table tbody th {
    font-weight: 500;
    color: var(--pli-ink);
    background: transparent;
}

.bb-pli-table tbody th a {
    color: var(--pli-ink) !important;
    text-decoration: underline;
    text-decoration-color: var(--pli-accent);
    text-underline-offset: 4px;
}

.bb-pli-table tbody tr:nth-child(even) {
    background: var(--pli-paper);
}

.bb-pli-table tbody tr:target {
    background: #eef3c6;
}

.bb-pli-table tfoot th,
.bb-pli-table tfoot td {
    font-size: 13px;
    font-weight: 400;
    color: var(--pli-muted);
    background: transparent;
    border-bottom: 0;
}

.bb-pli-table__suppressed {
    font-size: 13px;
    text-align: left !important;
    color: var(--pli-muted);
}

/* Commentary. */
.bb-pli-quote {
    margin: 24px 0 0;
    padding: 0 0 0 28px;
    border-left: 3px solid var(--pli-accent);
}

.bb-pli-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

.bb-pli-quote p {
    font-family: "Larken", serif;
    font-size: 20px;
    line-height: 1.55;
}

.bb-pli-quote figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
}

.bb-pli-quote cite {
    font-style: normal;
}

.bb-pli-quote__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* Methodology. */
.bb-pli-defs {
    display: grid;
    gap: 0;
    margin: 8px 0 0;
    padding: 0;
}

.bb-pli-defs div {
    display: grid;
    gap: 6px;
    padding: 18px 0;
    border-bottom: 1px solid var(--pli-rule);
}

.bb-pli-defs > div:last-child {
    border-bottom: 0;
}

@media (min-width: 850px) {
    .bb-pli-defs div {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 32px;
    }
}

.bb-pli-defs dt {
    font-weight: 500;
}

.bb-pli-defs dd {
    margin: 0;
    line-height: 1.6;
    max-width: 44em;
}

/* Citation. */
.bb-pli-cite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--pli-paper);
}

.bb-pli-cite__text {
    flex: 1 1 320px;
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.bb-pli-cite__copy {
    padding: 10px 18px;
    font-size: 13px;
    color: var(--pli-ivory);
    cursor: pointer;
    background: var(--pli-ink);
    border: 0;
}

.bb-pli-cite__copy:hover,
.bb-pli-cite__copy:focus-visible {
    background: #000;
}

.bb-pli-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    font-size: 15px;
}

/* Ready-to-quote figures. */
.bb-pli-quotables {
    display: grid;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.bb-pli-quotables li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--pli-rule);
    border-left: 3px solid var(--pli-accent);
    scroll-margin-top: 160px;
}

.bb-pli-quotables li:target {
    background: #fbfbe8;
}

.bb-pli-quotables p {
    flex: 1 1 360px;
    margin: 0;
    line-height: 1.55;
}

.bb-pli-quotables__actions {
    display: flex;
    flex: none;
    gap: 14px;
    align-items: center;
    font-size: 13px;
}

.bb-pli-copy-link {
    padding: 0;
    font: inherit;
    color: var(--pli-ink);
    text-decoration: underline;
    text-decoration-color: var(--pli-accent);
    text-underline-offset: 4px;
    cursor: pointer;
    background: none;
    border: 0;
}

.bb-pli-quotables__actions a {
    color: var(--pli-ink) !important;
    text-decoration: underline;
    text-decoration-color: var(--pli-accent);
    text-underline-offset: 4px;
}

/* Wider market and revisions. */
.bb-pli-context {
    margin: 0 0 18px;
    padding-left: 20px;
}

.bb-pli-context li {
    margin: 0 0 10px;
    line-height: 1.6;
}

.bb-pli-context a {
    color: var(--pli-accent);
}

.bb-pli-revisions {
    margin: 10px 0 0;
    padding-left: 18px;
}

/* Archived edition notice. */
.bb-pli-archive {
    padding: 16px 0;
    font-size: 15px;
    line-height: 1.5;
    background: var(--pli-paper);
    border-bottom: 1px solid var(--pli-rule);
}

.bb-pli-archive p {
    margin: 0;
}

.bb-pli-archive--preview {
    background: #fff4d6;
    border-bottom-color: #e6c35c;
}

.bb-pli-empty {
    padding-top: 120px;
    padding-bottom: 120px;
}

.bb-pli-archive a {
    font-weight: 500;
    color: var(--pli-ink) !important;
    text-decoration: underline;
    text-decoration-color: var(--pli-accent);
    text-underline-offset: 4px;
}

/* All editions. */
.bb-pli-editions {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--pli-rule);
}

.bb-pli-editions li {
    border-bottom: 1px solid var(--pli-rule);
}

.bb-pli-editions a {
    display: grid;
    gap: 6px;
    padding: 20px 36px 20px 0;
    color: var(--pli-ink) !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23211F1F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat right 4px center;
}

@media (min-width: 850px) {
    .bb-pli-editions a {
        grid-template-columns: 160px 1fr auto;
        align-items: baseline;
        gap: 24px;
        padding-right: 44px;
    }
}

.bb-pli-editions a:hover .bb-pli-editions__title,
.bb-pli-editions a:focus-visible .bb-pli-editions__title {
    text-decoration: underline;
    text-decoration-color: var(--pli-accent);
    text-underline-offset: 5px;
}

.bb-pli-editions__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pli-muted);
}

.bb-pli-editions__title {
    font-family: "Larken", serif;
    font-size: 20px;
    line-height: 1.3;
}

.bb-pli-editions__date {
    font-size: 13px;
    color: var(--pli-muted);
}

.bb-pli-editions li[aria-current="page"] .bb-pli-editions__label {
    color: var(--pli-accent);
}

/* Questions. */
.bb-pli-faq details {
    border-bottom: 1px solid var(--pli-rule);
}

.bb-pli-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}

.bb-pli-faq summary::-webkit-details-marker {
    display: none;
}

.bb-pli-faq summary::after {
    flex: none;
    font-size: 22px;
    line-height: 1;
    content: "+";
}

.bb-pli-faq details[open] summary::after {
    content: "−";
}

.bb-pli-faq summary h3 {
    margin: 0;
    font-size: 20px;
}

.bb-pli-faq details p {
    margin: 0 0 22px;
    line-height: 1.65;
}

/* Call to action. */
.bb-pli-cta {
    margin: 8px 0 64px;
    padding: 56px 32px;
    color: var(--pli-ivory);
    text-align: center;
    background: #0b0b0c;
}

.bb-pli-cta h2 {
    margin: 0 0 14px;
    color: var(--pli-ivory);
}

.bb-pli-cta p {
    max-width: 34em;
    margin: 0 auto 28px;
    color: rgba(247, 245, 239, 0.7);
}

/* Matches the header's "Book a consultation" button. */
.bb-pli-cta__button {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 22px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background-color: var(--pli-accent);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bb-pli-cta__button:hover,
.bb-pli-cta__button:focus-visible {
    color: #0b0b0c !important;
    background-color: #f7f5ef;
}

@media (min-width: 768px) {
    .bb-pli-stats.bb-pli-stats--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .bb-pli-stats.bb-pli-stats--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
