/* ==========================================================================
   Portal autora Diablaq — shell styles.
   Vendored from Indyq static/css/indyq.css (commit ad67465d): fonts, dashboard
   shell, toasts, auth card. Comic, campaign, storefront and
   cookie-banner rules were left behind. Dark theme only.
   ========================================================================== */

/* Fonts — self-hosted (CSP: font-src 'self'), variable weight, latin + latin-ext */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-ext.6d36d5bdedfa.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.938c6e8019b6.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.0bb2ef2eda4e.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.87c506d88b9f.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --tblr-font-sans-serif: 'Manrope', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
    --portal-font-display: 'Space Grotesk', var(--tblr-font-sans-serif);
    --portal-brand-color-rgb: 32, 107, 196;
}

h1, h2, h3, .h1, .h2, .h3,
.page-title,
.card-title,
.navbar-brand,
.modal-title {
    font-family: var(--portal-font-display);
    letter-spacing: -0.01em;
}

.page-title,
.empty-title,
.card-title {
    text-wrap: balance;
}

.page-subtitle,
.empty-subtitle {
    text-wrap: pretty;
}

body.portal-app {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--tblr-bg-surface-secondary);
}

#main-content {
    outline: none;
}

.navbar,
.navbar-vertical {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-subtitle {
    max-width: 48rem;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: color-mix(in srgb, var(--tblr-bg-surface) 92%, transparent);
    backdrop-filter: blur(18px);
}

.dashboard-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.dashboard-topbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-page-context {
    padding: 1.25rem 0 0;
}

.dashboard-page-context .breadcrumb {
    font-size: 0.8125rem;
    font-weight: 500;
}

.breadcrumb .is-truncated {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.dashboard-page-context__inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-page-context__copy {
    min-width: 0;
}

.dashboard-page-context__copy > .page-title {
    margin-bottom: 0.5rem;
    line-height: 1.05;
}

.dashboard-page-context__actions {
    flex-shrink: 0;
}

.toast-container {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}

.toast-alert {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin-bottom: 0;
    animation: toast-enter 200ms ease-out;
}

.toast-alert.toast-exit {
    opacity: 0;
    transform: translateX(1rem);
    transition: opacity 200ms ease-in, transform 200ms ease-in;
}

.toast-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.toast-progress-bar {
    height: 100%;
    background: currentColor;
    animation: toast-progress 5000ms linear forwards;
}

.toast-alert:hover .toast-progress-bar {
    animation-play-state: paused;
}

@keyframes toast-enter {
    from { opacity: 0; transform: translateX(1rem); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0; }
}

.auth-brand {
    font-family: var(--portal-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--tblr-primary);
    text-decoration: none;
}

/* Author dashboard — the twelve-month trend, drawn server-side as inline SVG (spec 7.7). */
.dashboard-trend {
    width: 9rem;
}

.sparkline {
    display: block;
    width: 100%;
    height: 2.25rem;
}

/* Publication detail — the netting note reads as one line of arithmetic (spec 7.8). */
.publication-netting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.publication-netting__term {
    min-width: 7rem;
}

.publication-netting__operator {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--tblr-secondary);
}
