@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Bricolage+Grotesque:opsz,wght@12..96,400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;500;600;700&display=swap");

:root {
    --bg-top: #f8fcff;
    --bg-bottom: #eef5fa;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --ink: #102436;
    --ink-soft: #5b6478;
    --brand: #1565c0;
    --brand-strong: #0d47a1;
    --brand-emerald: #00897b;
    --accent: #f26b3a;
    --line: rgba(16, 36, 54, 0.12);
    --shadow-soft: 0 2px 8px rgba(16, 36, 54, 0.07);
    --shadow-strong: 0 6px 18px rgba(9, 25, 39, 0.12);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: #f6f8fb;
}

::selection {
    background: rgba(10, 122, 199, 0.16);
    color: var(--ink);
}

#quarto-header .navbar {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(16, 36, 54, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#quarto-header .navbar-brand,
#quarto-header .navbar-title,
#quarto-header .nav-link,
#quarto-header .quarto-navbar-tools a {
    color: var(--ink) !important;
}

#quarto-header .navbar-brand,
#quarto-header .navbar-title {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#quarto-header .navbar-nav .nav-link {
    font-weight: 600;
    opacity: 0.72;
}

#quarto-header .navbar-nav .nav-link:hover,
#quarto-header .navbar-nav .nav-link.active {
    opacity: 1;
    color: var(--brand) !important;
}

.dropdown-menu {
    border: 1px solid rgba(16, 36, 54, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.4rem;
}

.dropdown-item {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
}

.dropdown-item:hover {
    background: rgba(10, 122, 199, 0.08);
    color: var(--ink);
}

.quarto-title-banner {
    position: relative;
    overflow: hidden;
    padding: calc(4rem + 36px) 0 2.5rem;
    background: transparent !important;
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.quarto-title-banner::before {
    content: "";
    position: absolute;
    inset: 1rem 1.25rem 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg,
            rgba(8, 33, 50, 0.97),
            rgba(10, 86, 135, 0.93) 55%,
            rgba(11, 94, 168, 0.88));
}

.quarto-title-banner .quarto-title,
.quarto-title-banner .quarto-categories,
.quarto-title-banner .quarto-title-meta,
.quarto-title-banner .description,
.quarto-title-banner .subtitle {
    position: relative;
    z-index: 1;
    max-width: min(1080px, calc(100% - 2.5rem));
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.quarto-title-banner .title {
    color: #ffffff;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 16ch;
}

.quarto-title-banner .subtitle {
    color: rgba(244, 251, 255, 0.82);
    font-size: 1.05rem;
    max-width: 48rem;
    margin-top: 0.9rem;
}

.quarto-title-banner .subtitle code {
    background: rgba(255, 255, 255, 0.14);
    color: #f4fbff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    font-size: 0.93em;
}

.quarto-title-meta {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
.navbar-title,
.callout-title {
    font-family: "Bricolage Grotesque", sans-serif;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-top: 2.5rem;
    margin-bottom: 0.65rem;
}

h3 {
    font-size: 1.15rem;
}

a {
    color: var(--brand-strong);
    text-decoration-color: rgba(11, 94, 168, 0.28);
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--brand);
}

pre,
code,
kbd,
samp {
    font-family: "IBM Plex Mono", monospace;
}

div.sourceCode,
pre.sourceCode,
.cell-output-display pre,
pre code {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.callout.callout-style-simple {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.callout.callout-style-simple .callout-header {
    background: transparent;
    border-bottom: none;
    padding: 1rem 1.2rem 0.25rem;
}

.callout.callout-style-simple .callout-body {
    padding: 0.2rem 1.2rem 1rem;
    color: var(--ink-soft);
}

.callout.callout-style-simple .callout-body p:last-child {
    margin-bottom: 0;
}

.table,
table {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table>thead,
table>thead {
    background: rgba(10, 122, 199, 0.07);
}

.table>thead th,
table>thead th {
    color: var(--ink);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 0.95rem;
}

.table> :not(caption)>*>*,
table> :not(caption)>*>* {
    padding: 0.9rem 1rem;
    border-color: var(--line);
}

tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.48);
}

#TOC,
.sidebar nav[role="doc-toc"] {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

#TOC .nav-link {
    color: var(--ink-soft);
    border-left: 2px solid transparent;
    padding-left: 0.85rem;
    margin: 0.15rem 0;
}

#TOC .nav-link.active,
#TOC .nav-link:hover {
    color: var(--ink);
    border-left-color: var(--brand);
    background: rgba(10, 122, 199, 0.05);
    border-radius: 0 6px 6px 0;
}

.cell-output-display img,
figure img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.page-footer {
    border-top: 1px solid var(--line);
    background: rgba(248, 251, 253, 0.9);
}

.surface-section,
.hero-copy,
.hero-panel,
.docs-card,
.feature-card,
.workflow-step {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.surface-section {
    padding: 1.4rem 1.5rem;
    margin: 1rem 0 2.2rem;
}

.surface-section p:last-child {
    margin-bottom: 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
    margin: -4rem 0 2.5rem;
    position: relative;
    z-index: 2;
}

.hero-layout-landing {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-copy,
.hero-panel {
    padding: 1.35rem;
}

.hero-copy p:first-child {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--ink-soft);
    margin-top: 0;
    max-width: 42rem;
}

.hero-copy-landing p:first-child {
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    max-width: 30rem;
    margin-bottom: 0;
}

.hero-panel {
    position: relative;
    overflow: hidden;
}

.hero-panel>* {
    position: relative;
    z-index: 1;
}

.hero-panel p:last-child {
    margin: 1rem 0 0;
    color: var(--ink-soft);
}

.hero-panel-plot {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
}

.plot-caption {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    margin: 0 0 0.7rem;
}

.hero-curve {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.curve-base {
    stroke-dasharray: 820;
    stroke-dashoffset: 820;
    animation: drawCurve 2.2s ease forwards;
}

.curve-forecast {
    stroke-dasharray: 12 10;
    animation: pulseDash 6s linear infinite;
}

.hero-points circle {
    animation: pointRise 3.4s ease-in-out infinite;
    transform-origin: center;
}

.hero-points circle:nth-child(2n) {
    animation-delay: 0.35s;
}

.hero-points circle:nth-child(3n) {
    animation-delay: 0.7s;
}

.curve-marker {
    animation: markerPulse 2.3s ease-in-out infinite;
    transform-origin: 364px 141px;
}

.chart-label {
    animation: fadeSlideUp 900ms ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.chart-label-model {
    animation-delay: 0.55s;
}

.chart-label-truth {
    animation-delay: 0.8s;
}

.landing-card-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0.75rem 0 2.4rem;
}

.landing-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.landing-card:hover {
    box-shadow: var(--shadow-strong);
    border-color: rgba(21, 101, 192, 0.2);
    transform: translateY(-2px);
}

.landing-card h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.landing-card p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.landing-card .card-link {
    margin-top: 1rem;
}

@keyframes drawCurve {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulseDash {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -66;
    }
}

@keyframes markerPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pointRise {

    0%,
    100% {
        opacity: 0.42;
        transform: translateY(0px);
    }

    50% {
        opacity: 0.65;
        transform: translateY(-3px);
    }
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.4rem 0 1rem;
}

.hero-button,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hero-button-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(10, 122, 199, 0.22);
}

.hero-button-primary:hover {
    color: #ffffff;
    background: var(--brand-strong);
    box-shadow: 0 5px 14px rgba(21, 101, 192, 0.28);
    transform: translateY(-1px);
}

.hero-button-secondary,
.card-link {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.hero-button-secondary:hover,
.card-link:hover {
    color: var(--ink);
    border-color: rgba(21, 101, 192, 0.22);
    transform: translateY(-1px);
}

.hero-button-tertiary {
    background: rgba(16, 36, 54, 0.06);
    color: var(--ink);
    border: 1px solid rgba(16, 36, 54, 0.12);
}

.hero-button-tertiary:hover {
    color: var(--ink);
    background: rgba(16, 36, 54, 0.1);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.surface-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(10, 122, 199, 0.08);
    color: var(--ink);
    border: 1px solid rgba(10, 122, 199, 0.12);
    font-size: 0.92rem;
    font-weight: 600;
}

.section-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-strong);
    margin: 1.1rem 0 0.5rem;
}

/* pandoc wraps standalone inline spans in <p> — normalize those wrappers */
p:has(> .section-kicker) {
    margin: 1.5rem 0 0.6rem;
    line-height: 1;
}

p:has(> .section-kicker) .section-kicker {
    margin: 0;
}

.feature-grid,
.docs-card-grid,
.workflow-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 2.5rem;
}

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

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

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

.feature-card,
.docs-card,
.workflow-step {
    padding: 1.3rem;
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.docs-card:hover,
.feature-card:hover,
.workflow-step:hover {
    box-shadow: var(--shadow-strong);
    border-color: rgba(21, 101, 192, 0.2);
    transform: translateY(-2px);
}

.docs-card h3,
.feature-card h3,
.workflow-step h3 {
    margin-top: 0;
    margin-bottom: 0.55rem;
}

.docs-card p:last-child,
.feature-card p:last-child,
.workflow-step p:last-child {
    margin-bottom: 0;
}

.docs-card .card-link {
    margin-top: 1rem;
}

blockquote {
    border-left: 3px solid rgba(10, 122, 199, 0.3);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.75rem 1rem;
}

@media (max-width: 991.98px) {
    .quarto-title-banner {
        padding-top: calc(3.5rem + 32px);
    }

    .quarto-title-banner::before {
        inset: 0.75rem 0.75rem 0.5rem;
        border-radius: 10px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        margin-top: -1.75rem;
    }

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

    .feature-grid,
    .docs-card-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button,
    .card-link {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .quarto-title-banner .title {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .quarto-title-banner .subtitle {
        font-size: 1rem;
    }

    .surface-section,
    .hero-copy,
    .hero-panel,
    .docs-card,
    .feature-card,
    .workflow-step,
    .landing-card {
        padding: 1.1rem;
    }
}

.home-install-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -3.6rem 0 1rem;
    position: relative;
    z-index: 3;
}

.home-install-cmd {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(4, 11, 20, 0.92);
    color: #c8f0e8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 1.3rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-soft);
}

.home-install-cmd::before {
    content: "$ ";
    color: rgba(200, 240, 232, 0.45);
    font-size: 0.9em;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0 0 2.4rem;
    position: relative;
    z-index: 2;
}

.home-intro-panel {
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.92);
}

.home-intro-panel .section-kicker {
    margin-top: 0;
}

.home-lead {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.5;
    color: var(--ink);
    margin: 0.1rem 0 0.9rem;
    max-width: 52rem;
}

.home-supporting-copy {
    color: var(--ink-soft);
    margin: 0;
    max-width: 38rem;
}

.home-intro-panel .button-row {
    margin-bottom: 0;
}

.home-proof-grid,
.home-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-proof-grid {
    margin-top: 1.35rem;
}

.home-proof-card,
.home-outcome-card {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(16, 36, 54, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.home-proof-card strong,
.home-outcome-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.35;
}

.home-proof-card code,
.home-cta-band code {
    background: rgba(10, 122, 199, 0.08);
    border-radius: 999px;
    padding: 0.08rem 0.42rem;
}

.home-proof-label {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-bottom: 0.45rem;
}

.home-code-panel {
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
    border-radius: 12px;
    background: linear-gradient(160deg, #07202f, #093552 56%, #0b4a6a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-strong);
}

.home-code-panel>* {
    position: relative;
    z-index: 1;
}

.home-code-window {
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(4, 11, 20, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.home-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.home-window-dots {
    display: flex;
    gap: 0.4rem;
}

.home-window-dots span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(244, 251, 255, 0.34);
}

.home-window-dots span:nth-child(1) {
    background: #ff7d66;
}

.home-window-dots span:nth-child(2) {
    background: #f2c14e;
}

.home-window-dots span:nth-child(3) {
    background: #55d2a6;
}

.home-window-title {
    color: rgba(244, 251, 255, 0.74);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.home-code-block,
.home-code-block code {
    margin: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #e8f7ff;
    font-size: 0.92rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.home-outcome-grid {
    margin-top: 0.9rem;
    gap: 0.8rem;
}

.home-outcome-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f4fbff;
}

.home-outcome-card .home-proof-label {
    color: rgba(244, 251, 255, 0.7);
}

.home-benefit-grid,
.home-sequence-grid,
.home-intent-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 2.5rem;
}

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

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

.home-intent-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-sequence-step {
    position: relative;
    padding-top: 3.25rem;
}

.home-step-number {
    position: absolute;
    top: 1.15rem;
    left: 1.2rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
}

.home-cta-band {
    position: relative;
    overflow: hidden;
    padding: 1.7rem 1.6rem;
    background: rgba(10, 122, 199, 0.05);
    border-color: rgba(10, 122, 199, 0.14);
}

.home-cta-band h2 {
    margin-top: 0;
    max-width: 18ch;
}

.home-cta-band p {
    max-width: 46rem;
    color: var(--ink-soft);
}

.home-cta-band .button-row {
    margin: 1.2rem 0 0;
}

@media (max-width: 1100px) {

    .home-proof-grid,
    .home-outcome-grid,
    .home-benefit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        margin-top: -1.75rem;
    }

    .home-sequence-grid,
    .home-intent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .home-code-panel,
    .home-intro-panel,
    .home-cta-band {
        padding: 1.1rem;
    }

    .home-code-window {
        padding: 0.9rem;
    }

    .home-window-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-window-title {
        font-size: 0.7rem;
    }
}

.dataset-browser {
    margin-top: 1.5rem;
}

.dataset-browser__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.dataset-browser__label {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.dataset-browser__select {
    min-width: min(26rem, 100%);
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(16, 36, 54, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(16, 36, 54, 0.04);
}

.dataset-panel[hidden] {
    display: none !important;
}

.dataset-panel {
    padding: 1.4rem 1.35rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.dataset-panel__title {
    margin-top: 0;
}

.dataset-panel__description {
    max-width: 62ch;
    color: var(--ink-soft);
    margin-bottom: 1.1rem;
}

.dataset-example {
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(248, 252, 255, 0.92);
    border: 1px solid rgba(16, 36, 54, 0.1);
    border-radius: 12px;
}

.dataset-example__meta {
    margin-bottom: 0.85rem;
}

.dataset-example__title {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.dataset-example__summary {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.dataset-example__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(16, 36, 54, 0.1);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.dataset-example__docstring {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(16, 36, 54, 0.08);
}

.dataset-docstring__paragraph {
    margin: 0.75rem 0;
    max-width: 72ch;
    color: var(--ink);
}

.dataset-docstring__heading {
    margin: 1rem 0 0.35rem;
    font-size: 1rem;
}

.dataset-docstring__math {
    margin: 0.85rem 0;
    padding: 0.75rem 0.9rem;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 36, 54, 0.08);
    border-radius: 10px;
}

.dataset-docstring__fields {
    margin: 0.85rem 0;
    padding: 0.85rem 1rem;
    max-width: 82ch;
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 36, 54, 0.08);
    border-radius: 10px;
}

.dataset-docstring__field-term,
.dataset-docstring__field-body {
    margin: 0;
}

.dataset-docstring__field-term {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--ink);
    font-weight: 600;
}

.dataset-docstring__field-name {
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.12);
}

.dataset-docstring__field-separator,
.dataset-docstring__field-type {
    color: var(--ink-soft);
    font-weight: 500;
}

.dataset-docstring__field-body {
    color: var(--ink);
}

.dataset-docstring__field-paragraph {
    margin: 0 0 0.45rem;
}

.dataset-docstring__field-paragraph:last-child {
    margin-bottom: 0;
}

.dataset-panel__description .dataset-docstring__paragraph:first-child,
.dataset-example__docstring .dataset-docstring__paragraph:first-child,
.dataset-example__docstring .dataset-docstring__heading:first-child,
.dataset-example__docstring .dataset-docstring__math:first-child,
.dataset-example__docstring .dataset-docstring__fields:first-child {
    margin-top: 0;
}

.dataset-panel__description .dataset-docstring__paragraph:last-child,
.dataset-example__docstring .dataset-docstring__paragraph:last-child,
.dataset-example__docstring .dataset-docstring__heading:last-child,
.dataset-example__docstring .dataset-docstring__math:last-child,
.dataset-example__docstring .dataset-docstring__fields:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .dataset-browser__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .dataset-browser__select {
        min-width: 0;
        width: 100%;
    }

    .dataset-docstring__fields {
        grid-template-columns: 1fr;
    }
}