/* Partner report: canvas page, every chart on a card island (the
   /resources/<id>/ article pattern), contents on a strip at the top. */
html[data-theme="light"] body.asp-page {
    --asp-nav: 71px;
    background: var(--chart-canvas);
    font-family: var(--font-sans);
}

.asp-main {
    max-width: 1180px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 96px 2rem 3rem;
    background: transparent;
}

.asp-header > * { max-width: 760px; }
.asp-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}
.asp-breadcrumbs a { color: inherit; text-decoration: none; }
.asp-breadcrumbs a:hover { color: var(--blue); }
.asp-status {
    margin-left: 0.25rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--border-mid);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-light);
}
/* The deck card: the report as slides (adams-street/deck/), the deck's cover art as its thumbnail. */
.asp-deck-card {
    display: flex; align-items: center; gap: 1.5rem; width: fit-content; max-width: 100%; margin: 1.5rem 0 0.25rem; padding: 0.875rem 1.5rem 0.875rem 0.875rem;
    border: 1px solid var(--border-light); border-radius: 14px; background: var(--surface-card); box-shadow: var(--shadow-sm);
    color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.asp-deck-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.asp-deck-thumb { flex: none; width: 240px; aspect-ratio: 16 / 9; height: auto; border-radius: 9px; object-fit: cover; object-position: 70% center; }
.asp-deck-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; min-width: 0; }
.asp-deck-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--eyebrow); }
.asp-deck-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; color: var(--white); }
.asp-deck-meta { font-size: 0.875rem; color: var(--text-light); }
.asp-deck-card .asp-deck-btn { margin-top: 0.75rem; }
.asp-deck-btn {
    display: inline-flex; align-items: center; padding: 0.6rem 1.1rem; border-radius: 8px;
    background: var(--blue); color: var(--text-on-inverse); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.asp-deck-btn:hover, .asp-deck-card:hover .asp-deck-btn { background: var(--blue-hover); color: var(--text-on-inverse); }
.asp-lockup { display: flex; align-items: center; gap: 1.5rem; margin: 1.75rem 0 1.75rem; }
.asp-lockup a { display: inline-flex; flex-shrink: 0; }
.asp-lockup img { display: block; object-fit: contain; }
.asp-partner img { width: 174px; height: auto; }
.asp-dealroom img { width: 150px; height: auto; }
.asp-lockup-x { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-faint); }
.asp-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.25rem + 2.4vw, 2.8rem);
    font-weight: 650;
    line-height: 1.13;
    letter-spacing: -0.02em;
    color: var(--white);
}
.asp-intro { margin-top: 1.1rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-light); }
.asp-scope { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.6; color: var(--text-faint); }

/* Report contents: a strip that sticks under the site nav. A tinted tray
   with the chapter in view as the solid pill, and a reading-progress line. */
.asp-toc {
    position: sticky;
    top: var(--asp-nav);
    z-index: 90;
    margin: 2rem -2rem 0;
    padding: 0.75rem 2rem 0;
    background: var(--chart-canvas);
}
.asp-toc-list {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--surface-card);
    box-shadow: var(--shadow-sm);
    scrollbar-width: none;
}
.asp-toc-list::-webkit-scrollbar { display: none; }
.asp-toc-list li { flex: 1 0 auto; }
.asp-toc-link {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.15s ease, background 0.15s ease;
}
.asp-toc-link:hover { color: var(--white); }
.asp-toc-link:hover { background: var(--surface-tray); }
.asp-toc-link[aria-current="location"] { color: var(--white); font-weight: 600; background: var(--surface-tray); box-shadow: inset 0 -2px 0 var(--blue); }
.asp-toc-n { font-family: var(--font-display); font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--blue); }
.asp-toc-link[aria-current="location"] .asp-toc-n { color: var(--blue); }
.asp-toc-progress { height: 2px; margin-top: 0.5rem; border-radius: 2px; overflow: hidden; background: var(--border-light); }
.asp-toc-progress-bar { width: 0; height: 100%; background: var(--blue); transition: width 0.15s ease; }

/* One header per section, an optional standfirst, then body and islands. */
.asp-chapter { padding-top: 4.5rem; }
.asp-chapter, .asp-chart-section, .asp-pending { scroll-margin-top: calc(var(--asp-nav) + 6.5rem); }
.asp-chapter h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
}
.asp-standfirst { max-width: 680px; margin-top: 0.75rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-light); }
.asp-chart-section { margin-top: 2.5rem; }
.asp-body { max-width: 680px; margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.65; color: var(--text-light); }
.asp-pending { max-width: 680px; margin-top: 2.5rem; font-size: 0.9375rem; line-height: 1.6; color: var(--text-faint); }

/* The island. chart-blocks.js lifts the chart's own title and subtitle into it. */
.asp-figure { margin: 0; }
.asp-figure[data-chart-block] {
    padding: 2rem 2rem 1.5rem;
    border-radius: 18px;
    background: var(--surface-card);
}
.asp-figure .dr-chart-insight {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.asp-figure .dr-chart-subtitle { margin-top: 0.4rem; font-size: 0.9375rem; }
.asp-figure figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; font-size: 0.75rem; line-height: 1.55; color: var(--text-faint); }
.asp-figure figcaption > span:first-child { flex: 1 1 320px; }
.asp-figure figcaption a { color: var(--blue); }
.asp-figure-brands { display: flex; align-items: center; gap: 0.75rem; }
.asp-figure-brands img { object-fit: contain; }

/* A deck slide shown as it is in the deck: 16:9, scaled to the column. */
.asp-slide { margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--surface-card); }
.asp-slide iframe { display: block; width: 100%; height: 100%; border: 0; }

.asp-explainer-details { max-width: 680px; margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.65; color: var(--text-light); }
.asp-explainer-details summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--text-light); }
.asp-explainer-details summary:hover { color: var(--blue); }
.asp-explainer-details p { margin: 0.6rem 0 0; }

.asp-footer { margin-top: 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); font-size: 0.875rem; color: var(--text-faint); }
.asp-page :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.asp-toc-link:focus-visible { outline-offset: -2px; }
.asp-skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 1100;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--surface-card);
}
.asp-skip-link:focus { top: 0.75rem; }

@media (max-width: 720px) {
    .asp-main { padding: 88px 1rem 2rem; }
    .asp-lockup { gap: 0.9rem; margin: 1.25rem 0; }
    .asp-partner img { width: 138px; }
    .asp-dealroom img { width: 114px; }
    .asp-lockup-x { font-size: 1.25rem; }
    .asp-chapter { padding-top: 3.5rem; }
    .asp-toc { margin: 1.5rem -1rem 0; padding: 0.5rem 1rem 0; }
    .asp-toc-link { padding: 0.5rem 0.8rem; font-size: 0.8125rem; }
    .asp-deck-card { flex-direction: column; align-items: stretch; gap: 0.9rem; padding: 0.6rem 0.6rem 1rem; }
    .asp-deck-thumb { width: 100%; }
    .asp-deck-body { padding: 0 0.4rem; }
    .asp-deck-title { font-size: 1.15rem; }
    .asp-chart-section { margin-top: 2rem; }
    .asp-body, .asp-standfirst { font-size: 1rem; }
    .asp-figure[data-chart-block] { padding: 1.1rem 1rem 1rem; border-radius: 14px; }
}
@media (max-width: 360px) {
    .asp-lockup { gap: 0.7rem; }
    .asp-partner img { width: 112px; }
    .asp-dealroom img { width: 96px; }
    .asp-header h1 br { display: none; }
}
