/* Brand profile page: template design tokens, scoped so site header/footer keep default.css styles */
.bp-page {
    --bp-background: oklch(0.985 0.002 255);
    --bp-foreground: oklch(0.22 0.008 255);
    --bp-primary: oklch(0.58 0.2 255);
    --bp-primary-foreground: oklch(1 0 0);
    --bp-secondary: oklch(0.55 0.15 155);
    --bp-muted-foreground: oklch(0.48 0.012 255);
    --bp-border: oklch(0.89 0.005 255);
    --bp-surface: oklch(1 0 0);
    --bp-surface-soft: oklch(0.975 0.003 255);
    --bp-navy: oklch(0.35 0.065 250);
    --bp-info-bg: oklch(0.965 0.025 240);
    --bp-shadow-card: 0 5px 18px oklch(0.2 0.01 255 / 0.09);
    --bp-content-width: 1280px;
    background: var(--bp-background);
    color: var(--bp-foreground);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    overflow-x: hidden;
}

/* Reset inherited default.css spacing before applying template spacing */
.bp-page p,
.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4,
.bp-page li {
    margin: 0;
    padding: 0;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page h4 {
    color: var(--bp-foreground);
}

.bp-wrap {
    width: min(100% - 40px, var(--bp-content-width));
    margin-inline: auto;
    /* padding-bottom: 70px; */
}

.bp-kicker {
    margin-bottom: 8px;
    color: var(--bp-secondary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.bp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 52px;
    align-items: center;
    padding: 56px 0 50px;
}

.bp-hero h1 {
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-hero-copy {
    max-width: 640px;
    color: var(--bp-muted-foreground);
    font-size: 17px;
    line-height: 1.6;
}

/* Placeholder artwork: checkered fill until brand imagery is supplied */
.bp-hero-art {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-radius: 8px;
    background:
        repeating-conic-gradient(var(--bp-border) 0% 25%, var(--bp-surface) 0% 50%) 0 0 / 48px 48px;
    color: var(--bp-primary-foreground);
}

.bp-hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-hero-art::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(0deg, oklch(0.15 0.025 255 / .88), transparent);
}

.bp-hero-art-caption {
    position: absolute;
    z-index: 1;
    inset: auto 24px 22px;
}

.bp-hero-art-caption strong {
    font-size: 21px;
    line-height: 1.3;
}

.bp-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.bp-badge {
    padding: 6px 11px;
    background: var(--bp-info-bg);
    border: 1px solid color-mix(in oklab, var(--bp-primary) 20%, var(--bp-border));
    border-radius: 999px;
    color: var(--bp-navy);
    font-size: 12px;
    font-weight: 700;
}

.bp-note {
    margin-top: 14px !important;
    color: var(--bp-muted-foreground);
    font-size: 12px;
}

.bp-section {
    padding: 56px 0;
    border-top: 1px solid var(--bp-border);
}

.bp-prominent {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-inline: max(20px, calc((100vw - var(--bp-content-width)) / 2));
    background: var(--bp-surface-soft);
}

.bp-section-head {
    margin-bottom: 26px;
}

.bp-section-head h2 {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-section-intro {
    margin-top: 12px !important;
    color: var(--bp-muted-foreground);
    font-size: 16px;
    line-height: 1.6;
}

.bp-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bp-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.bp-cost-drivers-head {
    margin-bottom: 18px;
}

.bp-cost-drivers-head h3 {
    margin: 6px 0 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bp-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bp-card,
.bp-stat-card,
.bp-metric-card,
.bp-launch,
.bp-fee-group {
    padding: 18px;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    box-shadow: var(--bp-shadow-card);
}

.bp-card h3,
.bp-stat-card h3,
.bp-fee-group h4 {
    margin: -18px -18px 13px;
    padding: 11px 18px;
    background: var(--bp-surface-soft);
    border-bottom: 1px solid var(--bp-border);
    border-radius: 7px 7px 0 0;
    font-size: 14px;
}

.bp-stat-card h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-sub {
    margin-bottom: 10px;
    color: var(--bp-muted-foreground);
    font-size: 12px;
}

.bp-stat-card h3 + .bp-sub {
    margin-top: -6px;
    margin-bottom: 12px;
}

.bp-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--bp-border);
    font-size: 14px;
}

.bp-stat-row span {
    color: var(--bp-muted-foreground);
    font-size: 13px;
    font-weight: 500;
}

.bp-stat-row b {
    max-width: 55%;
    color: var(--bp-foreground);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.bp-metric-card {
    box-shadow: none;
    min-width: 0;
}

.bp-metric-card b {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.bp-metric-card span {
    color: var(--bp-muted-foreground);
    font-size: 13px;
    font-weight: 500;
}

.bp-metric-label {
    color: var(--bp-muted-foreground);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.bp-progression {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin-top: 34px;
    overflow: hidden;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 8px;
}

.bp-year-box {
    min-width: 0;
    padding: 0 24px 22px;
    text-align: center;
}

.bp-year-box .bp-metric-label {
    display: block;
    margin: 0 -24px 18px;
    padding: 18px 24px;
    background: var(--bp-surface-soft);
    border-bottom: 1px solid var(--bp-border);
    color: var(--bp-foreground);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: none;
}

.bp-year-box b {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
}

.bp-year-box > span:last-child {
    color: var(--bp-muted-foreground);
    font-size: 12px;
    font-weight: 700;
}

.bp-footnotes {
    margin-top: 20px;
    color: var(--bp-muted-foreground);
    font-size: 14px;
    line-height: 1.6;
}

.bp-footnotes p {
    margin: 0;
}

.bp-footnotes p + p {
    margin-top: 6px;
}

.bp-footnotes strong {
    color: var(--bp-foreground);
    font-weight: 800;
}

.bp-callout {
    margin: 20px 0;
    padding: 15px 17px;
    background: var(--bp-info-bg);
    border-left: 3px solid var(--bp-primary);
    color: var(--bp-navy);
}

.bp-bullets {
    margin: 7px 0 0;
    padding-left: 20px;
    list-style: disc;
}

.bp-page .listings {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-page .listings h3,
.bp-page .listings p {
    margin-bottom: 1rem;
}

.bp-page .listings p {
    color: var(--dark_gray);
}

.bp-source-block {
    padding: 16px;
    background: var(--bp-surface-soft);
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    color: var(--bp-muted-foreground);
    font-size: 13px;
}

.bp-source-block p + p {
    margin-top: 12px;
}

.bp-bullets li {
    margin-bottom: 7px;
    color: var(--bp-muted-foreground);
    font-size: 14px;
    line-height: 1.55;
}

.bp-bullets li:last-child {
    margin-bottom: 0;
}

.bp-launch {
    margin: 20px 0;
}

.bp-launch .bp-kicker {
    margin: -18px -18px 15px;
    padding: 11px 18px;
    background: var(--bp-surface-soft);
    border-bottom: 1px solid var(--bp-border);
    border-radius: 7px 7px 0 0;
}

.bp-launch-list div {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 11px 0;
    border-top: 1px solid var(--bp-border);
}

.bp-launch-list div:first-child {
    border-top: 0;
}

.bp-launch-list dt {
    color: var(--bp-foreground);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bp-launch-list dd {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.bp-dl {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) 1.2fr;
}

.bp-dl div {
    display: contents;
}

.bp-dl dt,
.bp-dl dd {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--bp-border);
    color: var(--bp-foreground);
}

.bp-dl div:last-child dt,
.bp-dl div:last-child dd {
    border-bottom: 0;
}

.bp-dl dt {
    font-weight: 700;
}

.bp-dl dd {
    font-weight: 500;
}

.bp-fee-dl {
    margin: 0;
}

.bp-fee-dl dt {
    margin-top: 10px;
    color: var(--bp-foreground);
    font-weight: 700;
}

.bp-fee-dl dd {
    margin: 5px 0 0;
    color: var(--bp-foreground);
    font-weight: 500;
}

.bp-fee-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bp-page details {
    margin-top: 20px;
    overflow: hidden;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 8px;
}

.bp-page summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    color: var(--bp-foreground);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.bp-page summary::-webkit-details-marker {
    display: none;
}

.bp-page summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--bp-primary);
    font-size: 18px;
    font-weight: 800;
}

.bp-page details[open] summary::after {
    content: "\2212";
}

.bp-details-body {
    padding: 0 17px 17px;
}

.bp-page .bp-more {
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

.bp-page .bp-more summary {
    padding: 10px 0;
    font-weight: 400;
}

.bp-more em {
    margin-left: 6px;
    color: var(--bp-primary);
    font-size: 13px;
    font-style: normal;
}

.bp-page .bp-more summary::after,
.bp-more-close,
.bp-more[open] .bp-more-open {
    display: none;
}

.bp-more[open] .bp-more-close {
    display: inline;
}

.bp-more p {
    margin: 0 0 10px;
    color: var(--bp-muted-foreground);
    font-size: 13px;
    line-height: 1.5;
}

/* Fee cards stay one height until opened */
.bp-fee-metrics {
    align-items: start;
}

.bp-page .bp-fee-card {
    margin: 0;
    padding: 0;
}

.bp-page .bp-fee-card summary {
    display: block;
    position: relative;
    padding: 18px 40px 18px 18px;
    font-weight: 400;
}

.bp-page .bp-fee-card summary::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--bp-primary);
    border-bottom: 2px solid var(--bp-primary);
    transform: rotate(45deg);
}

.bp-page .bp-fee-card[open] summary::after {
    content: "";
    top: 28px;
    transform: rotate(-135deg);
}

.bp-fee-card b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-fee-card span {
    display: -webkit-box;
    min-height: 3em;
    margin-top: 4px;
    overflow: hidden;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bp-fee-card[open] b {
    white-space: normal;
}

.bp-fee-card[open] span {
    display: block;
}

/* Text already fits: no arrow, no toggle */
.bp-page .bp-fee-card.bp-fit summary {
    padding-right: 18px;
    cursor: default;
}

.bp-page .bp-fee-card.bp-fit summary::after {
    display: none;
}

.border-top-none{
    border-top: none !important;
}

/* Growth and cost disclosures read as callouts until opened */
#growth details,
#costs details {
    background: var(--bp-info-bg);
    border-left: 3px solid var(--bp-primary);
    border-radius: 0 8px 8px 0;
}

#growth summary,
#costs summary {
    padding: 17px 18px;
    font-size: 15px;
}

#growth details[open],
#costs details[open] {
    background: var(--bp-surface);
}

#growth details[open] summary,
#costs details[open] summary {
    border-bottom: 1px solid var(--bp-border);
}

#growth .bp-details-body,
#costs .bp-details-body {
    padding: 18px;
}

.bp-table-title {
    margin-top: 16px !important;
}

.bp-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
}

.bp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bp-table th,
.bp-table td {
    padding: 10px;
    border-bottom: 1px solid var(--bp-border);
    text-align: left;
    vertical-align: top;
}

.bp-table th {
    background: var(--bp-surface-soft);
    color: var(--bp-muted-foreground);
    font-size: 11px;
    text-transform: uppercase;
}

.bp-num {
    white-space: nowrap;
    text-align: right !important;
}

.bp-data-note {
    line-height: 1.5;
}

.bp-cta-bar,
.bp-cta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 56px;
}

.bp-cta-bar {
    padding: 20px 22px;
    background: var(--bp-surface);
    border: 1px solid color-mix(in oklab, var(--bp-primary) 26%, var(--bp-border));
    border-radius: 10px;
    box-shadow: var(--bp-shadow-card);
}

.bp-cta-inline {
    padding: 18px 20px;
    background: var(--bp-info-bg);
    border-left: 3px solid var(--bp-primary);
    border-radius: 0 8px 8px 0;
}

.bp-cta-bar strong,
.bp-cta-inline strong,
.bp-cta-grid h3 {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.bp-cta-bar p,
.bp-cta-inline p,
.bp-cta-grid p {
    max-width: 52ch;
    margin-top: 5px;
    color: var(--bp-muted-foreground);
    font-size: 13px;
}

.bp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bp-cta-primary,
.bp-cta-secondary,
.bp-cta-tertiary {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    transition: background .15s ease, color .15s ease;
}

.bp-cta-primary {
    background: var(--bp-primary);
    color: var(--bp-primary-foreground);
}

.bp-cta-primary:hover {
    background: color-mix(in oklab, var(--bp-primary) 86%, var(--bp-foreground));
}

.bp-cta-secondary {
    background: var(--bp-surface);
    border-color: color-mix(in oklab, var(--bp-primary) 40%, var(--bp-border));
    color: var(--bp-primary);
}

.bp-cta-secondary:hover {
    background: var(--bp-info-bg);
}

.bp-cta-tertiary {
    padding: 0 6px;
    color: var(--bp-muted-foreground);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-cta-tertiary:hover {
    color: var(--bp-primary);
}

.bp-cta-grid .bp-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.bp-cta-grid h3 {
    margin: 6px 0 0;
    padding: 0;
    background: none;
    border: 0;
}

.bp-cta-grid p {
    flex: 1;
}

.bp-cta-grid .bp-cta-primary,
.bp-cta-grid .bp-cta-secondary,
.bp-cta-grid .bp-cta-tertiary {
    align-self: flex-start;
    margin-top: 14px;
}

.bp-mobile-action {
    display: none;
}

/* Clear the site tab bar, which stays fixed below the desktop breakpoint */
@media (max-width: 1200px) {
    .bp-wrap {
        padding-bottom: 100px;
    }
}

@media (max-width: 900px) {
    .bp-hero {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .bp-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bp-card-grid,
    .bp-fee-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .bp-page {
        font-size: 14px;
    }

    .bp-wrap {
        width: min(100% - 28px, var(--bp-content-width));
        padding-bottom: 84px;
    }

    /* The sticky request action takes over the bottom bar, as on the /franchise profile */
    body:has(.bp-page) header#bottom {
        display: none;
    }

    .bp-mobile-action {
        display: block;
        position: fixed;
        inset: auto 0 0;
        z-index: 3;
        padding: 9px 14px;
        background: var(--bp-surface);
        border-top: 1px solid var(--bp-border);
    }

    .bp-mobile-action a {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--bp-primary);
        color: var(--bp-primary-foreground);
        font-size: 15px;
        font-weight: 800;
    }

    .bp-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .bp-hero h1 {
        font-size: 28px;
    }

    .bp-hero-copy {
        font-size: 15px;
    }

    .bp-hero-art {
        min-height: 220px;
    }

    .bp-section {
        padding: 40px 0;
    }

    .bp-prominent {
        padding-inline: 14px;
    }

    .bp-section-head h2 {
        font-size: 21px;
    }

    .bp-stat-grid,
    .bp-two-col,
    .bp-metrics,
    .bp-cta-grid {
        grid-template-columns: 1fr;
    }

    .bp-progression {
        margin-top: 28px;
    }

    .bp-year-box {
        padding: 0 5px 16px;
    }

    .bp-year-box .bp-metric-label {
        margin: 0 -5px 14px;
        padding: 14px 3px;
        font-size: 18px;
    }

    .bp-year-box b {
        font-size: 14px;
    }

    .bp-year-box > span:last-child {
        display: block;
        font-size: 9px;
        line-height: 1.3;
    }

    .bp-footnotes {
        font-size: 13px;
    }

    .bp-launch-list div,
    .bp-dl {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .bp-dl div {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid var(--bp-border);
    }

    .bp-dl div:last-child {
        border-bottom: 0;
    }

    .bp-dl dt,
    .bp-dl dd {
        padding: 0;
        border: 0;
    }

    .bp-stat-row b {
        max-width: none;
    }

    .bp-cta-bar,
    .bp-cta-inline,
    .bp-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bp-cta-primary,
    .bp-cta-secondary {
        width: 100%;
    }
}
