/* AstraWeave Documentation Custom Theme */

/* Copy button styling */
.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 8px;
    background: var(--bg);
    border: 1px solid var(--searchbar-border-color);
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s, transform 0.1s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
}

.copy-button:hover {
    background: var(--quote-bg);
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

pre:hover .copy-button {
    opacity: 1;
}

pre {
    position: relative;
}

/* Enhanced code block styling */
pre code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Admonish callout enhancements */
.admonition {
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admonition-title {
    font-weight: 600;
}

/* Table styling improvements */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
}

table th,
table td {
    padding: 12px 16px;
    border: 1px solid var(--table-border-color);
}

table th {
    background: var(--quote-bg);
    font-weight: 600;
}

table tr:hover {
    background: var(--table-alternate-bg);
}

/* Navigation improvements */
.chapter li.chapter-item {
    margin: 4px 0;
}

.chapter li.chapter-item a {
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.chapter li.chapter-item a:hover {
    background: var(--quote-bg);
}

/* Search improvements */
#searchresults {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

#searchresults li {
    padding: 12px 16px;
    border-bottom: 1px solid var(--table-border-color);
}

#searchresults li:last-child {
    border-bottom: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .copy-button {
        opacity: 1;
        padding: 4px 6px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

/* Print styling */
@media print {
    .copy-button {
        display: none;
    }
    
    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

/* Keyboard focus styles for accessibility */
.copy-button:focus {
    opacity: 1;
    outline: 2px solid var(--search-mark-bg);
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid var(--search-mark-bg);
    outline-offset: 2px;
}

/* Syntax highlighting enhancements */
.hljs-keyword,
.hljs-selector-tag,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-name,
.hljs-strong {
    font-weight: 600;
}

/* Scrollbar styling for code blocks */
pre::-webkit-scrollbar {
    height: 8px;
}

pre::-webkit-scrollbar-track {
    background: var(--quote-bg);
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: var(--sidebar-active);
}

/* ── Landing page: break out of mdBook's narrow content column ── */
main:has(> .astra-landing) {
    max-width: none;
    max-inline-size: none;
    padding: 0;
}

.content:has(.astra-landing) {
    padding: 0;
    max-width: none;
}

/* Landing page styling */
.astra-landing {
    --astra-bg: #f4efe7;
    --astra-bg-alt: #efe7db;
    --astra-panel: rgba(255, 252, 247, 0.86);
    --astra-panel-strong: #fffaf2;
    --astra-ink: #122430;
    --astra-muted: #425460;
    --astra-line: rgba(18, 36, 48, 0.12);
    --astra-navy: #15394a;
    --astra-teal: #0e7c74;
    --astra-teal-deep: #0a5f59;
    --astra-copper: #b96d35;
    --astra-shadow: 0 20px 60px rgba(15, 35, 48, 0.12);
    color: var(--astra-ink);
    background: var(--astra-bg);
    padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.astra-landing > * + * {
    margin-top: 1.4rem;
}

.content .astra-landing h1,
.content .astra-landing h2,
.content .astra-landing h3,
.content .astra-landing p {
    margin-top: 0;
}

.astra-hero,
.astra-split,
.astra-grid,
.astra-flow,
.astra-proof-strip,
.astra-actions,
.astra-chip-row,
.astra-meta {
    display: grid;
    gap: 1rem;
}

.astra-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 1.6rem;
    padding: 1rem 0 0.2rem;
}

.astra-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.78);
    border: 1px solid rgba(18, 36, 48, 0.08);
    color: var(--astra-teal-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.content .astra-landing h1,
.content .astra-landing h2,
.content .astra-landing .astra-cta h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    line-height: 1.03;
    letter-spacing: -0.03em;
    color: var(--astra-ink);
}

.content .astra-landing h1 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    max-width: 12ch;
}

.content .astra-landing h3 {
    color: var(--astra-ink);
}

.astra-lead,
.astra-section-heading p,
.astra-card p,
.astra-cta p,
.astra-hero__caption span {
    color: var(--astra-muted);
    line-height: 1.75;
}

.astra-proof-tile strong,
.astra-hero__highlights span,
.astra-hero__caption strong,
.astra-card h3 {
    color: var(--astra-ink);
}

.astra-note {
    margin: 0;
    color: var(--astra-muted);
    font-size: 0.96rem;
}

.astra-note--light {
    color: rgba(246, 239, 231, 0.9);
}

.astra-actions {
    grid-auto-flow: column;
    justify-content: flex-start;
    align-items: center;
    margin: 1.6rem 0 1rem;
}

.astra-meta {
    grid-auto-flow: column;
    justify-content: flex-start;
    gap: 0.7rem;
}

.astra-meta-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(14, 124, 116, 0.08);
    border: 1px solid rgba(14, 124, 116, 0.16);
    color: var(--astra-teal-deep);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.astra-actions--stacked {
    grid-auto-flow: row;
}

.astra-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.content .astra-landing a.astra-button:hover,
.content .astra-landing a.astra-button:focus-visible,
.content .astra-landing a.astra-chip:hover,
.content .astra-landing a.astra-chip:focus-visible {
    transform: translateY(-2px);
    text-decoration: none;
}

.astra-button--primary {
    background: linear-gradient(135deg, var(--astra-navy), var(--astra-teal));
    color: #fbf7f1;
    box-shadow: 0 18px 34px rgba(16, 61, 79, 0.18);
}

.astra-button--secondary {
    background: rgba(255, 252, 247, 0.92);
    color: var(--astra-ink);
    border: 1px solid rgba(18, 36, 48, 0.12);
}

.astra-hero__frame,
.astra-card,
.astra-proof-tile,
.astra-cta,
.astra-band {
    background: var(--astra-panel);
    border: 1px solid rgba(18, 36, 48, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(18, 36, 48, 0.07);
}

.astra-card,
.astra-proof-tile,
.astra-node,
.astra-hero__frame,
.astra-benchmark-image {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.astra-hero__frame {
    position: relative;
    padding: 1.3rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(249, 243, 234, 0.72)),
        linear-gradient(135deg, rgba(15, 57, 74, 0.2), rgba(14, 124, 116, 0.12));
    box-shadow: var(--astra-shadow);
}

.astra-hero__frame::before {
    content: "";
    position: absolute;
    inset: 0.9rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(14, 124, 116, 0.16), transparent 46%),
        linear-gradient(160deg, rgba(10, 27, 36, 0.02), rgba(185, 109, 53, 0.08));
}

.astra-hero__image-wrap,
.astra-hero__caption {
    position: relative;
    z-index: 1;
}

.astra-hero__image-wrap {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(21, 57, 74, 0.95), rgba(11, 28, 37, 0.96));
    padding: 1.1rem;
}

.astra-hero__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
}

.astra-hero__caption {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.95rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 250, 242, 0.88);
    border: 1px solid rgba(18, 36, 48, 0.08);
}

.astra-hero__caption strong {
    font-size: 1rem;
}

.astra-hero__highlights {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.astra-hero__highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--astra-ink);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.astra-hero__highlights span::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--astra-copper), var(--astra-teal));
    flex: 0 0 auto;
}

.astra-proof-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.astra-proof-tile {
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
}

.astra-proof-tile::before {
    content: "";
    display: block;
    width: 3.2rem;
    height: 0.24rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--astra-copper), var(--astra-teal));
}

.astra-proof-tile strong {
    display: block;
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
}

.astra-proof-tile span {
    color: var(--astra-muted);
    line-height: 1.55;
}

.astra-section {
    padding-top: 0.8rem;
}

.astra-section-heading {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.astra-section-heading--compact {
    margin-bottom: 0;
}

.astra-section-heading--wide h2 {
    max-width: 16ch;
}

.content .astra-landing h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    max-width: 12ch;
}

.content .astra-landing h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

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

.astra-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.astra-card {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1.45rem;
}

.astra-card--panel {
    padding: 1.5rem;
}

.astra-card-icon {
    width: 36px;
    height: 36px;
    color: var(--astra-teal);
    opacity: 0.85;
}

.astra-kicker {
    display: inline-flex;
    color: var(--astra-copper);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.astra-band {
    display: grid;
    gap: 1rem;
    margin-top: 1.8rem;
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(16, 61, 79, 0.92), rgba(12, 98, 92, 0.9));
    color: #f7f0e7;
    box-shadow: 0 18px 48px rgba(10, 46, 60, 0.22);
}

.astra-band .astra-section-heading p,
.astra-node span {
    color: rgba(247, 240, 231, 0.8);
}

.astra-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.astra-node {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.astra-node strong {
    display: block;
    margin-bottom: 0.35rem;
}

.astra-chip-row {
    grid-auto-flow: column;
    justify-content: flex-start;
    gap: 0.65rem;
}

.astra-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(18, 36, 48, 0.05);
    color: var(--astra-navy);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}

.astra-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
}

.astra-split--offset {
    margin-top: 1rem;
}

.astra-list,
.astra-link-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.astra-list li,
.astra-link-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--astra-line);
}

.astra-list li:first-child,
.astra-link-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.astra-list span,
.astra-link-list span {
    color: var(--astra-muted);
}

.astra-list strong,
.astra-link-list a {
    text-align: right;
    font-weight: 700;
}

.content .astra-landing .astra-link-list a {
    color: var(--astra-navy);
}

.astra-link-list--stacked li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.astra-link-list--stacked a {
    text-align: left;
}

.astra-bench-card {
    background: #161922;
    border: 1px solid #1e2230;
    border-radius: 12px;
    padding: 32px 32px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    color: #e2e4ea;
}

.astra-bench-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.astra-bench-title {
    font-size: 18px;
    font-weight: 600;
    color: #e2e4ea;
    letter-spacing: -0.01em;
}

.astra-bench-subtitle {
    font-size: 13px;
    color: #8b90a0;
    margin-top: 4px;
}

.astra-bench-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #5bc9a0;
    background: rgba(91, 201, 160, 0.08);
    border: 1px solid rgba(91, 201, 160, 0.15);
    border-radius: 6px;
    padding: 5px 10px;
    font-family: Consolas, 'Courier New', monospace;
    white-space: nowrap;
}

.astra-bench-badge-dot {
    width: 6px;
    height: 6px;
    background: #5bc9a0;
    border-radius: 50%;
    display: inline-block;
}

.astra-bench-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 20px;
}

.astra-bench-li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #8b90a0;
}

.astra-bench-sw {
    width: 14px;
    height: 3px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.astra-bench-svg {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.astra-bench-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #1e2230;
    gap: 16px;
}

.astra-bench-caption {
    font-size: 12.5px;
    color: #555a6e;
    font-style: italic;
    max-width: 520px;
    line-height: 1.55;
}

.astra-bench-source {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11px;
    color: #555a6e;
    white-space: nowrap;
}

@media (hover: hover) {
    .astra-card:hover,
    .astra-proof-tile:hover,
    .astra-bench-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 48px rgba(18, 36, 48, 0.11);
    }

    .astra-band .astra-node:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.26);
    }

    .astra-hero__frame:hover {
        transform: translateY(-2px);
        box-shadow: 0 24px 64px rgba(15, 35, 48, 0.16);
    }
}

.astra-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1.9rem;
    background:
        linear-gradient(135deg, rgba(15, 57, 74, 0.97), rgba(12, 98, 92, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    color: #f6efe7;
}

.content .astra-landing .astra-cta h2 {
    margin: 0.9rem 0 0.8rem;
    font-size: clamp(2rem, 3.2vw, 3rem);
    max-width: 10ch;
}

@media (max-width: 1080px) {
    .astra-hero,
    .astra-split,
    .astra-cta,
    .astra-grid--four,
    .astra-grid--three,
    .astra-flow,
    .astra-proof-strip,
    .astra-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .astra-hero,
    .astra-split,
    .astra-cta,
    .astra-grid--four,
    .astra-grid--three,
    .astra-flow,
    .astra-proof-strip,
    .astra-actions,
    .astra-meta {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
    }

    .astra-chip-row {
        grid-auto-flow: row;
    }

    .astra-list li,
    .astra-link-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .astra-list strong,
    .astra-link-list a {
        text-align: left;
    }

    .content .astra-landing h1,
    .content .astra-landing h2,
    .content .astra-landing .astra-cta h2 {
        max-width: none;
    }
}

/* ── Tables, blockquotes, and code inside astra-landing pages ── */
.astra-landing table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--astra-line);
    margin: 1rem 0;
    background: var(--astra-panel);
    box-shadow: 0 4px 14px rgba(18, 36, 48, 0.05);
}

.astra-landing table th {
    background: var(--astra-panel-strong);
    color: var(--astra-ink);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.7rem 1rem;
    border-bottom: 2px solid var(--astra-line);
    border-right: 1px solid var(--astra-line);
    text-align: left;
}

.astra-landing table th:last-child {
    border-right: none;
}

.astra-landing table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--astra-line);
    border-right: 1px solid var(--astra-line);
    color: var(--astra-muted);
    font-size: 0.88rem;
}

.astra-landing table td:last-child {
    border-right: none;
}

.astra-landing table tbody tr:last-child td {
    border-bottom: none;
}

.astra-landing table tr:hover td {
    background: rgba(14, 124, 116, 0.04);
}

.astra-landing table strong {
    color: var(--astra-ink);
    font-weight: 700;
}

.astra-landing blockquote {
    background: rgba(14, 124, 116, 0.06);
    border-left: 4px solid var(--astra-teal);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    color: var(--astra-muted);
}

.astra-landing blockquote strong {
    color: var(--astra-ink);
}

.astra-landing pre {
    background: var(--astra-panel-strong);
    border: 1px solid var(--astra-line);
    border-radius: 12px;
    margin: 1rem 0;
}

.astra-landing hr {
    border: none;
    border-top: 1px solid var(--astra-line);
    margin: 2rem 0;
}

/* Dark theme support — Coal, Navy, Ayu */
html.coal .astra-landing,
html.navy .astra-landing,
html.ayu .astra-landing {
    --astra-bg: #1c1f2b;
    --astra-bg-alt: #1a1d28;
    --astra-panel: rgba(30, 34, 48, 0.88);
    --astra-panel-strong: #232838;
    --astra-ink: #e2dfd8;
    --astra-muted: #a8a4b0;
    --astra-line: rgba(255, 255, 255, 0.1);
    --astra-navy: #6ab0d6;
    --astra-teal: #3fc5b0;
    --astra-teal-deep: #5ed4c1;
    --astra-copper: #e4a06a;
    --astra-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: #e2dfd8;
}

/* Force text colors — mdBook theme CSS sets explicit color on h1/h2/h3/p etc.
   which overrides the inherited color from .astra-landing. */
html.coal .content .astra-landing h1,
html.coal .content .astra-landing h2,
html.coal .content .astra-landing h3,
html.navy .content .astra-landing h1,
html.navy .content .astra-landing h2,
html.navy .content .astra-landing h3,
html.ayu .content .astra-landing h1,
html.ayu .content .astra-landing h2,
html.ayu .content .astra-landing h3 {
    color: #e2dfd8;
}

html.coal .content .astra-landing p,
html.coal .content .astra-landing li,
html.coal .content .astra-landing td,
html.coal .content .astra-landing th,
html.navy .content .astra-landing p,
html.navy .content .astra-landing li,
html.navy .content .astra-landing td,
html.navy .content .astra-landing th,
html.ayu .content .astra-landing p,
html.ayu .content .astra-landing li,
html.ayu .content .astra-landing td,
html.ayu .content .astra-landing th {
    color: #a8a4b0;
}

html.coal .content .astra-landing .astra-proof-tile strong,
html.coal .content .astra-landing .astra-hero__highlights span,
html.coal .content .astra-landing .astra-hero__caption strong,
html.coal .content .astra-landing .astra-card h3,
html.coal .content .astra-landing .astra-node strong,
html.navy .content .astra-landing .astra-proof-tile strong,
html.navy .content .astra-landing .astra-hero__highlights span,
html.navy .content .astra-landing .astra-hero__caption strong,
html.navy .content .astra-landing .astra-card h3,
html.navy .content .astra-landing .astra-node strong,
html.ayu .content .astra-landing .astra-proof-tile strong,
html.ayu .content .astra-landing .astra-hero__highlights span,
html.ayu .content .astra-landing .astra-hero__caption strong,
html.ayu .content .astra-landing .astra-card h3,
html.ayu .content .astra-landing .astra-node strong {
    color: #e2dfd8;
}

html.coal .astra-eyebrow,
html.navy .astra-eyebrow,
html.ayu .astra-eyebrow {
    background: rgba(40, 44, 60, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
}

html.coal .astra-meta-badge,
html.navy .astra-meta-badge,
html.ayu .astra-meta-badge {
    background: rgba(63, 197, 176, 0.12);
    border-color: rgba(63, 197, 176, 0.22);
}

html.coal .astra-button--secondary,
html.navy .astra-button--secondary,
html.ayu .astra-button--secondary {
    background: rgba(40, 44, 60, 0.9);
    color: var(--astra-ink);
    border-color: rgba(255, 255, 255, 0.14);
}

html.coal .astra-hero__frame,
html.navy .astra-hero__frame,
html.ayu .astra-hero__frame {
    background:
        linear-gradient(160deg, rgba(35, 40, 56, 0.9), rgba(28, 31, 43, 0.85)),
        linear-gradient(135deg, rgba(106, 176, 214, 0.15), rgba(63, 197, 176, 0.1));
}

html.coal .astra-hero__frame::before,
html.navy .astra-hero__frame::before,
html.ayu .astra-hero__frame::before {
    background:
        radial-gradient(circle at top, rgba(63, 197, 176, 0.12), transparent 46%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(228, 160, 106, 0.06));
}

html.coal .astra-hero__image-wrap,
html.navy .astra-hero__image-wrap,
html.ayu .astra-hero__image-wrap {
    background: linear-gradient(180deg, rgba(18, 22, 34, 0.95), rgba(10, 14, 22, 0.96));
}

html.coal .astra-hero__caption,
html.navy .astra-hero__caption,
html.ayu .astra-hero__caption {
    background: rgba(35, 40, 56, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

html.coal .astra-bench-card,
html.navy .astra-bench-card,
html.ayu .astra-bench-card {
    border-color: rgba(255, 255, 255, 0.06);
}

html.coal .astra-chip,
html.navy .astra-chip,
html.ayu .astra-chip {
    background: rgba(255, 255, 255, 0.07);
    color: var(--astra-navy);
}

html.coal .content .astra-landing .astra-link-list a,
html.navy .content .astra-landing .astra-link-list a,
html.ayu .content .astra-landing .astra-link-list a {
    color: var(--astra-navy);
}

html.coal .astra-band,
html.navy .astra-band,
html.ayu .astra-band {
    background: linear-gradient(135deg, rgba(22, 30, 48, 0.95), rgba(16, 60, 56, 0.9));
}

html.coal .astra-cta,
html.navy .astra-cta,
html.ayu .astra-cta {
    background:
        linear-gradient(135deg, rgba(22, 30, 48, 0.97), rgba(16, 60, 56, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

/* Rust theme (warm mid-tone) */
html.rust .astra-landing {
    --astra-bg: #3b2e2a;
    --astra-bg-alt: #342826;
    --astra-panel: rgba(52, 40, 38, 0.88);
    --astra-panel-strong: #3d302c;
    --astra-ink: #e8ddd4;
    --astra-muted: #b0a49a;
    --astra-line: rgba(255, 255, 255, 0.1);
    --astra-navy: #7dbcd5;
    --astra-teal: #4dc9b0;
    --astra-teal-deep: #6ad6c3;
    --astra-copper: #e4a06a;
    --astra-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: #e8ddd4;
}

html.rust .content .astra-landing h1,
html.rust .content .astra-landing h2,
html.rust .content .astra-landing h3 {
    color: #e8ddd4;
}

html.rust .content .astra-landing p,
html.rust .content .astra-landing li,
html.rust .content .astra-landing td,
html.rust .content .astra-landing th {
    color: #b0a49a;
}

html.rust .content .astra-landing .astra-proof-tile strong,
html.rust .content .astra-landing .astra-hero__highlights span,
html.rust .content .astra-landing .astra-hero__caption strong,
html.rust .content .astra-landing .astra-card h3,
html.rust .content .astra-landing .astra-node strong {
    color: #e8ddd4;
}

html.rust .astra-eyebrow {
    background: rgba(52, 40, 38, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
}

html.rust .astra-meta-badge {
    background: rgba(77, 201, 176, 0.12);
    border-color: rgba(77, 201, 176, 0.22);
}

html.rust .astra-button--secondary {
    background: rgba(52, 40, 38, 0.9);
    color: var(--astra-ink);
    border-color: rgba(255, 255, 255, 0.14);
}

html.rust .astra-hero__frame {
    background:
        linear-gradient(160deg, rgba(59, 46, 42, 0.9), rgba(52, 40, 38, 0.85)),
        linear-gradient(135deg, rgba(125, 188, 213, 0.12), rgba(77, 201, 176, 0.08));
}

html.rust .astra-hero__frame::before {
    background:
        radial-gradient(circle at top, rgba(77, 201, 176, 0.1), transparent 46%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(228, 160, 106, 0.06));
}

html.rust .astra-hero__image-wrap {
    background: linear-gradient(180deg, rgba(30, 22, 20, 0.95), rgba(20, 14, 12, 0.96));
}

html.rust .astra-hero__caption {
    background: rgba(52, 40, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

html.rust .astra-bench-card {
    border-color: rgba(255, 255, 255, 0.06);
}

html.rust .astra-chip {
    background: rgba(255, 255, 255, 0.07);
    color: var(--astra-navy);
}

html.rust .content .astra-landing .astra-link-list a {
    color: var(--astra-navy);
}

html.rust .astra-band {
    background: linear-gradient(135deg, rgba(30, 22, 20, 0.95), rgba(16, 50, 46, 0.9));
}

html.rust .astra-cta {
    background:
        linear-gradient(135deg, rgba(30, 22, 20, 0.97), rgba(16, 50, 46, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}
