/* ============================
   GitBook/Laravel-style Docs UI
   ============================ */

:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --soft: #f8fafc;
    --border: #e2e8f0;

    --primary: #17314c;
    --primary-2: #4fd1a5;

    --radius: 14px;
    --shadow: 0 8px 30px rgba(2, 6, 23, 0.06);

    --sidebar-w: 290px;
    --toc-w: 260px;
    --topbar-h: 64px;

    --font:
        ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
        "Noto Sans", "Liberation Sans", sans-serif;
    --mono:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
}
.brand__text small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.pill {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    background: var(--soft);
}

/* Search */
.search {
    position: relative;
    width: min(620px, 56vw);
}
.search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 110px 12px 44px;
    outline: none;
    background: #fff;
    box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);
}
.search input:focus {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}
.search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--muted);
}
.kbd,
.kbdInline {
    font-family: var(--mono);
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 7px;
    background: var(--soft);
    color: var(--muted);
}
.kbdInline {
    margin: 0 4px;
}
.kbdPlus {
    color: var(--muted);
    margin: 0 6px;
    font-size: 12px;
}
.search .kbd,
.search .kbdPlus {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.search .kbd:nth-of-type(1) {
    right: 70px;
}
.search .kbdPlus {
    right: 58px;
}
.search .kbd:nth-of-type(2) {
    right: 28px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.btn--ghost {
    background: transparent;
}
.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
}
.btn--block {
    width: 100%;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr var(--toc-w);
    min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
    border-right: 1px solid var(--border);
    padding: 18px;
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow: auto;
    background: #fff;
}
.sidebar__title {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 14px 0 8px;
}
.sidebar__section {
    margin-bottom: 10px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav__link {
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid transparent;
}
.nav__link:hover {
    background: var(--soft);
    border-color: var(--border);
}
.nav__link.is-active {
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.22);
    color: #2e1065;
}

.sidebar__footer {
    margin-top: 18px;
}
.supportCard {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--soft);
}
.supportCard__title {
    font-weight: 800;
    margin-bottom: 6px;
}
.supportCard__text {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.supportCard--developer {
    background: linear-gradient(135deg, rgba(23, 49, 76, 0.06), rgba(79, 209, 165, 0.12));
}

.supportCard--developer a {
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
}

/* Main */
.main {
    padding: 24px 22px 40px;
    background: #fff;
}
.content {
    max-width: 920px;
    min-width: 0;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 32px;
    margin: 10px 0 8px;
    letter-spacing: -0.02em;
}
.lead {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 18px;
}

h2 {
    margin-top: 26px;
    padding-top: 10px;
    font-size: 22px;
    letter-spacing: -0.01em;
}
h3 {
    margin-top: 18px;
    font-size: 18px;
}
p {
    line-height: 1.8;
    color: var(--text);
}
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.card__title {
    font-weight: 800;
    margin-bottom: 10px;
}
.list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}
.steps {
    margin: 0;
    padding-left: 18px;
}
.steps li {
    margin: 8px 0;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
}

/* Callouts */
.callout {
    border-radius: var(--radius);
    padding: 14px 14px;
    border: 1px solid var(--border);
    margin: 12px 0;
    background: var(--soft);
}
.callout--note {
    border-left: 5px solid #3b82f6;
}
.callout--tip {
    border-left: 5px solid #22c55e;
}
.callout--warn {
    border-left: 5px solid #f59e0b;
}

/* Code blocks */
/* =========================
   Inline code vs code blocks
   ========================= */

/* Inline code (default) */
:not(pre) > code {
    font-family: var(--mono);
    font-size: 0.92em;
    color: var(--text); /* dark readable text */
    background: var(--soft); /* light chip */
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Code blocks */
pre {
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: #0b1220;
    overflow: auto;
    box-shadow: var(--shadow);
}

/* Code inside pre should be light */
pre code {
    font-family: var(--mono);
    font-size: 13px;
    color: #e5e7eb;
    background: transparent;
    border: 0;
    padding: 0;
    white-space: pre; /* keep formatting */
}

/* IMPORTANT: remove/override the old global rule if it exists */
code {
    font-family: var(--mono);
}
.copyBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}
.copyBtn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Pager */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.pager__next,
.pager__prev {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--soft);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

/* TOC */
.toc {
    border-left: 1px solid var(--border);
    padding: 18px;
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow: auto;
    background: #fff;
}
.toc__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
}
.toc__list a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
}
.toc__list a:hover {
    background: var(--soft);
    border-color: var(--border);
    color: var(--text);
}
.toc__list a.is-active {
    color: #2e1065;
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.22);
}

/* Responsive */
@media (max-width: 1100px) {
    :root {
        --toc-w: 0px;
    }
    .layout {
        grid-template-columns: var(--sidebar-w) 1fr;
    }
    .toc {
        display: none;
    }
}
@media (max-width: 860px) {
    :root {
        --sidebar-w: 0px;
    }
    body {
        overflow-x: hidden;
    }
    .topbar {
        gap: 10px;
        padding: 0 12px;
    }
    .topbar__left,
    .topbar__right {
        min-width: 0;
    }
    .topbar__center,
    .topbar__right .pill,
    .brand__text small {
        display: none;
    }
    .brand {
        gap: 8px;
    }
    .brand__logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .brand__text strong {
        display: block;
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .main {
        min-width: 0;
        padding: 18px 14px 32px;
    }
    .content {
        max-width: 100%;
        min-width: 0;
    }
    .grid2 {
        grid-template-columns: 1fr;
    }
    .search {
        width: min(92vw, 620px);
    }
}

/* Print */
@media print {
    .topbar,
    .sidebar,
    .toc,
    .pager,
    .copyBtn {
        display: none !important;
    }
    .main {
        padding: 0;
    }
    pre {
        background: #fff;
        color: #000;
    }
    code {
        color: #000;
    }
}
.muted {
    color: var(--muted);
}
.list li {
    margin: 8px 0;
    line-height: 1.7;
}

.media--window {
    max-width: 450px; /* Half size */
    margin: 30px auto;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.media--window img {
    width: 75%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

.media--window figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* ========================= */
/* Installation Step Panel   */
/* ========================= */

.doc-steps {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.doc-steps__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #111827;
}

.doc-steps__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-steps__list li {
    margin-bottom: 10px;
}

.doc-steps__list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: 0.2s ease;
}

.doc-steps__list a:hover {
    background: #f3f4f6;
    color: #111827;
}

.doc-steps__list span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
}
.doc-heading {
    font-size: 26px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 14px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}
.media {
    max-width: 720px;
    margin: 24px auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.media img,
.media video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.media figcaption,
.media__caption {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}
.callout {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

.callout--note {
    border-left-color: #10b981;
    background: #ecfdf5;
}

.callout--warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.callout--tip {
    border-left-color: #6366f1;
    background: #eef2ff;
}
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin: 20px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ========================= */
/* BookFlow product docs     */
/* ========================= */

.doc-hero {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(23, 49, 76, 0.94), rgba(23, 49, 76, 0.82)),
        radial-gradient(circle at 85% 20%, rgba(79, 209, 165, 0.42), transparent 34%);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.doc-hero h1 {
    color: #ffffff;
    margin-top: 8px;
}

.doc-hero .lead {
    color: rgba(255, 255, 255, 0.84);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.doc-grid,
.shot-grid,
.flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.doc-card,
.shot-card,
.flow-card,
.example-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.04);
}

.doc-card h3,
.flow-card h3,
.example-card h3 {
    margin-top: 0;
}

.shot-card img,
.wide-shot img,
.media-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--soft);
}

.shot-card figcaption,
.wide-shot figcaption,
.media-frame figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.wide-shot,
.media-frame {
    margin: 22px 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.04);
}

.flow-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 14px 0;
}

.flow-line span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(23, 49, 76, 0.16);
    background: rgba(23, 49, 76, 0.06);
    font-size: 13px;
    font-weight: 700;
}

.flow-line b {
    color: var(--muted);
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
}

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

.mini-table th {
    background: var(--soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mini-table tr:last-child td {
    border-bottom: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--soft);
    padding: 6px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.doc-link-list {
    display: grid;
    gap: 8px;
}

.doc-link-list a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.doc-link-list a:hover {
    text-decoration: underline;
}

.callout--example {
    border-left-color: var(--primary-2);
    background: rgba(79, 209, 165, 0.13);
}

.developer-note-card {
    margin-top: 18px;
}

.plain-code {
    font-family: var(--mono);
    font-size: 13px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2px 6px;
    overflow-wrap: anywhere;
}

.reference-banner {
    border: 1px solid rgba(23, 49, 76, 0.14);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(23, 49, 76, 0.08), rgba(79, 209, 165, 0.1));
    margin: 18px 0;
}

.reference-banner strong {
    display: block;
    margin-bottom: 6px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.reference-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.04);
}

.reference-card h3 {
    margin-top: 0;
}

.reference-card p:last-child {
    margin-bottom: 0;
}

.reference-list {
    margin: 0;
    padding-left: 18px;
}

.reference-list li {
    margin: 7px 0;
    line-height: 1.65;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    font-size: 14px;
}

.reference-table th,
.reference-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.reference-table th {
    background: #f8fafc;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
}

.reference-table tr:last-child td {
    border-bottom: 0;
}

.reference-table td:first-child {
    font-weight: 700;
    color: var(--primary);
}

.reference-table--wide {
    min-width: 760px;
}

.reference-scroll {
    overflow-x: auto;
    border-radius: 14px;
}

.screen-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.screen-link::after {
    content: "open";
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 6px;
    color: var(--muted);
}

.reference-note {
    border-left: 4px solid var(--primary-2);
    background: rgba(79, 209, 165, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 12px 0;
}

.reference-checklist {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.reference-checklist span {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

/* ========================= */
/* Workflow playbook docs    */
/* ========================= */

.playbook-hero {
    border: 1px solid rgba(23, 49, 76, 0.14);
    border-radius: 22px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(236, 253, 245, 0.82)),
        radial-gradient(circle at 96% 14%, rgba(79, 209, 165, 0.32), transparent 30%);
    box-shadow: var(--shadow);
}

.playbook-hero h1 {
    max-width: 760px;
}

.playbook-grid,
.impact-grid,
.proof-grid,
.script-grid,
.benefit-grid,
.callout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.impact-grid,
.proof-grid,
.benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-card,
.impact-card,
.proof-card,
.script-card,
.benefit-card,
.callout-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.04);
}

.path-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.path-card h3,
.impact-card h3,
.proof-card h3,
.script-card h3,
.benefit-card h3,
.callout-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.path-card p,
.impact-card p,
.proof-card p,
.script-card p,
.benefit-card p,
.callout-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.path-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.provider-badge,
.persona-badge,
.result-badge,
.proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border: 1px solid rgba(23, 49, 76, 0.16);
    border-radius: 999px;
    background: rgba(23, 49, 76, 0.06);
    color: var(--primary);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.result-badge {
    border-color: rgba(79, 209, 165, 0.35);
    background: rgba(79, 209, 165, 0.14);
    color: #047857;
}

.proof-badge {
    border-color: rgba(59, 130, 246, 0.22);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

.annotated-shot {
    margin: 18px 0 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.05);
}

.annotated-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--soft);
}

.annotated-shot figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.callout-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 20px;
}

.callout-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 11px;
    background: #fff;
}

.callout-number {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.callout-item strong {
    display: block;
    margin-bottom: 3px;
}

.callout-item span {
    color: var(--muted);
    line-height: 1.55;
}

.result-panel,
.proof-panel,
.operator-panel {
    border: 1px solid rgba(23, 49, 76, 0.14);
    border-radius: 16px;
    padding: 15px;
    margin: 14px 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(236, 253, 245, 0.56));
}

.result-panel h3,
.proof-panel h3,
.operator-panel h3 {
    margin-top: 0;
}

.scenario-row {
    display: grid;
    grid-template-columns: 110px 130px 1fr 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin: 10px 0;
    background: #fff;
}

.scenario-row strong {
    display: block;
}

.scenario-row span {
    color: var(--muted);
    line-height: 1.55;
}

.reference-details {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 12px 0;
    background: #fff;
}

.reference-details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--primary);
}

.reference-details[open] summary {
    margin-bottom: 10px;
}

@media (max-width: 860px) {
    .doc-grid,
    .shot-grid,
    .flow-grid,
    .doc-grid--three,
    .reference-grid,
    .playbook-grid,
    .impact-grid,
    .proof-grid,
    .script-grid,
    .benefit-grid,
    .callout-grid {
        grid-template-columns: 1fr;
    }

    .scenario-row {
        grid-template-columns: 1fr;
    }

    .flow-line span {
        max-width: 100%;
        border-radius: 12px;
        white-space: normal;
    }

    .mini-table,
    .reference-table {
        display: block;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: auto;
    }

    .mini-table th,
    .mini-table td,
    .reference-table th,
    .reference-table td {
        overflow-wrap: anywhere;
    }

    pre code {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .pager {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
}
