@import 'Chartwave.Client.aweyt2ba7s.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Brand bar: Rako + app name, Install, hub link, language and theme.
   In the installed app it also shows Back, Share and Reload (js/app-shell.js runs them). */
.cw-nav[b-ve4ynlkqc7] {
    position: sticky;
    top: 0;
    z-index: 10;
    /* Below the notch / status bar of the installed app. */
    padding-top: env(safe-area-inset-top);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.cw-nav-in[b-ve4ynlkqc7] {
    max-width: 1240px;
    margin: 0 auto;
    padding: .8rem max(1.5rem, env(safe-area-inset-right)) .8rem max(1.5rem, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cw-brand[b-ve4ynlkqc7] {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    margin-right: auto;
    font-weight: 500;
    letter-spacing: .32em;
    color: var(--text);
    text-decoration: none;
}

.cw-mark[b-ve4ynlkqc7] {
    flex: none;
    width: 30px;
    height: 30px;
    display: block;
}

.cw-nav-tools[b-ve4ynlkqc7] {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font: 400 .75rem var(--font-label);
    letter-spacing: .15em;
    color: var(--text-muted);
}

.cw-nav-tools a[b-ve4ynlkqc7] {
    color: var(--text-muted);
    text-decoration: none;
}

.cw-nav-tools a:hover[b-ve4ynlkqc7] {
    color: var(--text);
}

.cw-hub-link[b-ve4ynlkqc7] {
    white-space: nowrap;
}

/* Install: hidden until the browser can install the app. */
.cw-install[b-ve4ynlkqc7] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .8rem;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: var(--cream);
    font: 500 .8rem var(--font-title);
    letter-spacing: normal;
    white-space: nowrap;
    text-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 50%, transparent);
    cursor: pointer;
}

.cw-install[hidden][b-ve4ynlkqc7] {
    display: none;
}

.cw-install svg[b-ve4ynlkqc7] {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-lang[b-ve4ynlkqc7] {
    display: flex;
    gap: .5rem;
}

.cw-lang a.cw-active[b-ve4ynlkqc7] {
    color: var(--text);
    border-bottom: 2px solid var(--accent-3);
    padding-bottom: 2px;
}

.cw-theme-toggle[b-ve4ynlkqc7] {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.cw-theme-toggle:hover[b-ve4ynlkqc7] {
    border-color: var(--accent-2);
}

.cw-theme-toggle svg[b-ve4ynlkqc7] {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The button shows the theme it switches to. */
.cw-icon-moon[b-ve4ynlkqc7] {
    display: none;
}

[data-bs-theme="light"] .cw-icon-sun[b-ve4ynlkqc7] {
    display: none;
}

[data-bs-theme="light"] .cw-icon-moon[b-ve4ynlkqc7] {
    display: block;
}

/* Back, Share and Reload. */
.cw-icon-btn[b-ve4ynlkqc7] {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s ease;
}

.cw-icon-btn:hover[b-ve4ynlkqc7] {
    color: var(--text);
}

.cw-icon-btn svg[b-ve4ynlkqc7] {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Only in the installed app; the browser has its own Back, Share and Reload. After .cw-icon-btn so it wins. */
.cw-app-only[b-ve4ynlkqc7] {
    display: none;
}

@media (display-mode: standalone) {
    .cw-app-only[b-ve4ynlkqc7] {
        display: grid;
    }
}

/* Hub link at the end of the page, only on phones. */
.cw-footer[b-ve4ynlkqc7] {
    display: none;
    margin-top: 3rem;
    text-align: center;
    font: 400 .75rem var(--font-label);
    letter-spacing: .15em;
}

.cw-footer a[b-ve4ynlkqc7] {
    color: var(--text-muted);
    text-decoration: none;
}

.cw-footer a:hover[b-ve4ynlkqc7] {
    color: var(--text);
}

/* Steps to install on iPhone / iPad. */
.cw-ios-install[b-ve4ynlkqc7] {
    max-width: min(340px, calc(100vw - 32px));
    padding: 1.4rem 1.5rem;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 5px 5px 0 var(--accent-2);
}

.cw-ios-install[b-ve4ynlkqc7]::backdrop {
    background: rgb(0 0 0 / .45);
}

.cw-ios-install h2[b-ve4ynlkqc7] {
    margin: 0 0 .8rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.cw-ios-install ol[b-ve4ynlkqc7] {
    margin: 0 0 1.2rem;
    padding-left: 1.2rem;
    line-height: 1.9;
}

.cw-ios-install ol svg[b-ve4ynlkqc7] {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Phones: tighter bar, and the hub link moves to the end of the page. */
@media (max-width: 600px) {
    .cw-nav-in[b-ve4ynlkqc7] {
        padding: .7rem max(16px, env(safe-area-inset-right)) .7rem max(16px, env(safe-area-inset-left));
        gap: .6rem;
    }

    .cw-brand[b-ve4ynlkqc7] {
        letter-spacing: .2em;
    }

    .cw-nav-tools[b-ve4ynlkqc7] {
        gap: .7rem;
    }

    .cw-nav-tools .cw-hub-link[b-ve4ynlkqc7] {
        display: none;
    }

    .cw-footer[b-ve4ynlkqc7] {
        display: block;
    }
}

#blazor-error-ui[b-ve4ynlkqc7] {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Above the gesture bar of the installed app. */
    padding: .7rem max(1.25rem, env(safe-area-inset-right)) calc(.7rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    background: var(--surface);
    color: var(--text);
    border-top: 2px solid var(--accent-3);
}

#blazor-error-ui .reload[b-ve4ynlkqc7] {
    color: var(--accent-1);
    margin-left: .5rem;
}

#blazor-error-ui .dismiss[b-ve4ynlkqc7] {
    cursor: pointer;
    position: absolute;
    right: max(1rem, env(safe-area-inset-right));
    top: .6rem;
}
