/* Capabilities highlight box on the index page. Colors are fixed (not theme
   variables) so the gradient reads the same in both light and dark mode. */
.capabilities-box {
    background: linear-gradient(135deg, #3a5ba0 0%, #6d3fa0 100%) !important;
    border: none !important;
    color: #f5f3ff !important;
    margin-bottom: 6rem !important;
}

.capabilities-box .sd-card-header,
.capabilities-box .sd-card-title,
.capabilities-box .sd-card-body,
.capabilities-box p {
    color: #f5f3ff !important;
    background: transparent !important;
    border: none !important;
}

.capabilities-box .sd-octicon {
    color: #ffd166;
}

.capabilities-box .capabilities-icon {
    display: block;
    margin: 0 auto 0.5rem auto;
}

/* User Guide landing page cards: fix the intro block (module line + blurb) to a
   uniform height so the divider/TOC below it starts at the same position on every
   card, regardless of how long each card's blurb is or how many TOC entries it has. */
.guide-card .sd-card-body {
    flex: 0 0 auto;
}

.guide-card .card-intro {
    min-height: 6rem;
}

.guide-card .sd-card-footer {
    background-color: transparent;
}

/* Short description banner at the top of each example gallery page, above the
   sphinx-gallery thumbnail grid. Deliberately lighter than .capabilities-box --
   a subtle accent, not a second hero. */
.gallery-banner {
    border: none !important;
    border-left: 4px solid #6d3fa0 !important;
    border-radius: 0.25rem !important;
    background: linear-gradient(135deg, rgba(58, 91, 160, 0.08), rgba(109, 63, 160, 0.08)) !important;
    margin-bottom: 2rem !important;
}

.gallery-banner .sd-card-body {
    padding: 0.75rem 1.25rem;
}

/* Run cards on the Report page: one per simulation run, each linking to that run's gallery.
   The whole card is the link (sphinx-design stretches it), so just lift it a little on hover. */
.run-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.run-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(58, 91, 160, 0.25) !important;
}

.run-card .sd-card-title {
    font-weight: 600;
}

.run-card .sd-card-footer {
    background-color: transparent;
    font-size: 0.85em;
}

.run-card .sd-card-footer a {
    position: relative;
    z-index: 2;
}

/* The Report page's title, centered under its logo like the landing page's. */
.report-title > h1 {
    text-align: center;
}
