/* DataGourram report theme — layered on top of Quarto's default Bootstrap
   export to match the main site's ink / paper / signal palette. Loaded
   after Quarto's own stylesheet so these custom-property overrides win
   the cascade without needing to fight component-level rules. */

:root {
    --bs-body-bg: #f1f1ec;
    --bs-body-color: #17161c;
    --bs-emphasis-color: #17161c;
    --bs-secondary-color: rgba(23, 22, 28, 0.66);
    --bs-secondary-bg: #e7e7e1;
    --bs-tertiary-bg: #e7e7e1;
    --bs-border-color: #d8d8d2;
    --bs-link-color: #17161c;
    --bs-link-hover-color: #d97b29;
    --bs-code-color: #17161c;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --quarto-body-bg: #f1f1ec;
    --quarto-body-color: #17161c;
    --quarto-border-color: #d8d8d2;
}

::selection {
    color: #17161c;
    background: #d97b29;
}

a {
    text-decoration-color: #d8d8d2;
}

a:hover {
    text-decoration-color: currentColor;
}

pre.sourceCode,
div.sourceCode {
    background-color: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
}

code:not(.sourceCode) {
    padding: 0.15em 0.35em;
    background: #e7e7e1;
    border-radius: 4px;
}

#quarto-margin-sidebar #TOC a.nav-link.active,
#quarto-margin-sidebar #TOC a.nav-link:hover {
    color: #d97b29;
}

/* Bridge bar linking back to datagourram.com, injected as the first
   element in <body> so it sits above the report regardless of theme. */
.dg-bridge {
    position: sticky;
    top: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #17161c;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.dg-bridge:hover {
    color: #d97b29;
}

.dg-bridge-mark {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid currentColor;
    font-size: 0.72rem;
}

.dg-bridge-arrow {
    margin-left: auto;
}
