/* Public blueprint showcase: /blueprints, /blueprints/{tag}/{section} and the teaser of the landing page.
   One set of variables; the landing (dark image background) and the dark theme only redefine them. */

.bp-shell,
.bp-landing-section {
    /* The landing theme everywhere: dark hero image, glass surfaces, white text. */
    --bp-text: #ffffff;
    --bp-muted: rgba(255, 255, 255, 0.74);
    --bp-surface: rgba(255, 255, 255, 0.12);
    --bp-surface-soft: rgba(255, 255, 255, 0.10);
    --bp-border: rgba(255, 255, 255, 0.20);
    --bp-accent: #ffffff;
    --bp-accent-soft: rgba(255, 255, 255, 0.18);
    --bp-person: #ffc078;
    --bp-choice: #e599f7;
    --bp-radius: 16px;
    color: var(--bp-text);
    font-family: Inter, var(--rz-text-font-family), sans-serif;
}

/* Full-page background of /blueprints and the sheet, as on the landing page. */
.bp-shell {
    min-height: 100vh;
    background: #0b1033 url('/images/landing-bg.png') no-repeat center top / cover fixed;
    overflow-x: hidden;
}

/* Radzen and the global styles color headings and paragraphs: the showcase sets its own. */
.bp-shell :is(h1, h2, h3, h4, p, li, summary, figcaption),
.bp-landing-section :is(h1, h2, h3, h4, p, li) { color: inherit; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.bp-page { max-width: 1200px; margin: 0 auto; padding: 0 1rem 4rem; }
.bp-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.bp-logo { display: block; width: 80px; height: auto; }   /* same mark as the landing hero (100px) */
.bp-header__nav { display: flex; align-items: center; gap: 1.25rem; }
.bp-header__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--bp-muted); text-decoration: none; }
.bp-header__link:hover { color: var(--bp-accent); }

.bp-hero { padding: 2.5rem 0 1.5rem; max-width: 820px; }
.bp-hero--sheet { display: flex; gap: 1.25rem; align-items: flex-start; max-width: none; }
.bp-hero__icon { font-size: 2.25rem !important; color: var(--bp-accent); background: var(--bp-accent-soft); border-radius: 14px; padding: .6rem; }
.bp-block { margin-top: 2.5rem; }

.bp-h1 { color: var(--bp-text); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: .25rem 0 .75rem; line-height: 1.15; }
.bp-h2 { color: var(--bp-text); font-size: 1.5rem; font-weight: 600; margin: 0 0 .5rem; }
.bp-h3 { display: flex; align-items: center; gap: .4rem; font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 .75rem; }
.bp-h4 { font-size: 1rem; font-weight: 600; margin: 0 0 .4rem; }
.bp-lead { font-size: 1.1rem; color: var(--bp-muted); line-height: 1.55; margin: 0 0 1rem; }
.bp-page p { line-height: 1.6; }

.bp-button {
    display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.4rem; border-radius: 999px;
    background: #ffffff; color: #1b2333; font-weight: 600; text-decoration: none;
}
.bp-button--small { padding: .45rem 1rem; font-size: .9rem; }
.bp-button:hover { filter: brightness(1.08); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.bp-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* On the showcase pages at most three cards per row, so titles and previews have room;
   the landing teaser keeps its own row of four. */
.bp-page .bp-grid { grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 2.5rem) / 3)), 1fr)); }

.bp-card {
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column; gap: .75rem; padding: 1.4rem; border-radius: var(--bp-radius);
    background: var(--bp-surface); border: 1px solid var(--bp-border); transition: transform .15s ease, box-shadow .15s ease;
}
.bp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.bp-card--upcoming { background: var(--bp-surface-soft); }
.bp-card__head { display: flex; gap: .8rem; align-items: flex-start; }
.bp-card__icon { font-size: 1.6rem !important; color: var(--bp-accent); background: var(--bp-accent-soft); border-radius: 12px; padding: .45rem; }
.bp-card__sector { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bp-muted); }
.bp-card__title { font-size: 1.1rem; font-weight: 600; margin: .1rem 0 0; color: var(--bp-text); }
.bp-card__preview { color: var(--bp-muted); margin: 0; flex: 1; font-size: .95rem; }
.bp-card__link { display: inline-flex; align-items: center; gap: .3rem; color: var(--bp-accent); font-weight: 600; text-decoration: none; }

.bp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bp-chip {
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px;
    background: var(--bp-accent-soft); color: var(--bp-text); font-size: .8rem;
}
.bp-chip .rzi { font-size: 1rem; color: var(--bp-accent); }
.bp-badge { align-self: flex-start; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bp-accent-soft); color: var(--bp-accent); }

/* ── Landing teaser ─────────────────────────────────────────────────────── */
.bp-landing-section { display: flex; flex-direction: column; align-items: center; gap: 2rem; width: 100%; max-width: 1200px; margin: 0 auto; padding: 3rem 1rem; }
.bp-landing-section__intro { text-align: center; max-width: 760px; }
.bp-landing-section .bp-grid { width: 100%; }

/* ── Sheet ──────────────────────────────────────────────────────────────── */
.bp-sheet { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; margin-top: 1rem; }
.bp-nav { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.bp-nav__item { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: 10px; color: var(--bp-muted); text-decoration: none; }
.bp-nav__item:hover { background: var(--bp-surface-soft); color: var(--bp-text); }
.bp-nav__item--active { background: var(--bp-accent-soft); color: var(--bp-accent); font-weight: 600; }
.bp-sheet__content { min-width: 0; }

.bp-section { backdrop-filter: blur(8px); background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: var(--bp-radius); padding: 1.75rem; }
.bp-section__summary { color: var(--bp-muted); margin: 0 0 1.25rem; }
.bp-panel { background: var(--bp-surface-soft); border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.bp-panel p { margin: 0 0 .5rem; }
.bp-panel--muted { display: flex; gap: .5rem; align-items: center; color: var(--bp-muted); }

.bp-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; margin-top: .75rem; }
.bp-compare--stacked { grid-template-columns: 1fr; }
.bp-labeled__label { display: flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--bp-accent); }
.bp-labeled__label .rzi { font-size: 1rem; }
.bp-labeled__text { margin-top: .2rem; line-height: 1.5; }

.bp-ask { margin-top: .75rem; }
.bp-ask__label { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--bp-muted); }
.bp-ask__question { margin: .35rem 0 0; padding: .7rem .9rem; border-left: 3px solid var(--bp-accent); background: var(--bp-surface); border-radius: 0 10px 10px 0; white-space: pre-line; font-style: italic; }
.bp-steps-inline { margin: .5rem 0; padding-left: 1.2rem; }
.bp-steps-inline li { margin-bottom: .3rem; }

.bp-story-title { font-size: 1.3rem; font-weight: 600; margin: 0 0 1rem; }
.bp-chapter { border-top: 1px solid var(--bp-border); padding: .9rem 0; }
.bp-chapter > summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bp-prose p { margin: .6rem 0; }

/* ── Flows ──────────────────────────────────────────────────────────────── */
.bp-flow-card__people { display: inline-flex; align-items: center; gap: .3rem; font-weight: 400; font-size: .85rem; color: var(--bp-muted); }
.bp-flow-card__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.bp-flow { list-style: none; margin: 0; padding: 0; }
.bp-flow__step { position: relative; display: flex; gap: .8rem; padding-bottom: 1rem; }
.bp-flow__step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--bp-border); }
.bp-flow__dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bp-accent-soft); color: var(--bp-accent); }
.bp-flow__step--persona .bp-flow__dot { background: rgba(255, 192, 120, .18); color: var(--bp-person); }
.bp-flow__step--bivio .bp-flow__dot { background: rgba(229, 153, 247, .18); color: var(--bp-choice); }
.bp-flow__kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bp-muted); }
.bp-flow__name { font-weight: 600; }
.bp-flow__text { font-size: .92rem; }
.bp-flow__time { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; color: var(--bp-muted); }
.bp-flow__time .rzi { font-size: .95rem; }

/* ── Videos ─────────────────────────────────────────────────────────────── */
.bp-video { margin: 0 0 2rem; }
.bp-video video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
.bp-video figcaption { margin-top: .75rem; }
.bp-video__title { font-weight: 600; font-size: 1.05rem; }
.bp-video__duration { margin-left: .5rem; font-weight: 400; color: var(--bp-muted); font-size: .9rem; }
.bp-video__chapters-label { font-size: .78rem; text-transform: uppercase; color: var(--bp-muted); margin-bottom: .35rem; }
.bp-video__chapters { display: flex; flex-wrap: wrap; gap: .4rem; }
.bp-video__chapter { border: 1px solid var(--bp-border); background: var(--bp-surface-soft); color: var(--bp-text); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; font-size: .85rem; }
.bp-video__chapter span { color: var(--bp-accent); font-variant-numeric: tabular-nums; margin-right: .25rem; }
.bp-video__chapter:hover { border-color: var(--bp-accent); }

/* ── Small screens: the index becomes a scrolling strip at the top ──────── */
@media (max-width: 900px) {
    .bp-sheet { grid-template-columns: 1fr; gap: 1rem; }
    .bp-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .25rem; }
    .bp-nav__item { white-space: nowrap; }
    .bp-flow-card__layout { grid-template-columns: 1fr; }
    .bp-section { padding: 1.1rem; }
    .bp-hero--sheet { flex-direction: column; }
    .bp-logo { width: 64px; }
}
