/* Provenance Landing — App Styles */
html, body {
    font-family: 'Inter', sans-serif;
}

.mud-main-content {
    min-height: calc(100vh - 64px);
}

/* App-bar wordmark (SiteBrand). Clear space is built into the SVG, so the box runs edge to edge. */
.site-brand-wordmark {
    display: block;
    height: 40px;
    width: auto;
}

/* IOFlex preset (Site:Theme=ioflex), set as a class on <html> with data-theme="light". Mirrors
   Theme/IoFlexTokens.cs and remaps the Provenance.Blazor --pv-* tokens that ProvenanceBlazor.css and the
   library's MudTheme read. The selector is on :root because MudBlazor resolves var(--pv-*) there; a
   value set lower in the tree would never reach --mud-typography-*. Royal on light, Royal Bright on dark. */
:root.theme-ioflex {
    --io-ink: #0D0B14;
    --io-graphite: #1C1828;
    --io-slate: #625B73;
    --io-mist: #CEC9D9;
    --io-bone: #F4F2F7;
    --io-rule: #D8D3E2;
    --io-royal: #6B2FBF;
    --io-royal-bright: #9B6DFF;
    --io-font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Remap the Provenance.Blazor type tokens its MudTheme typography reads. */
    --pv-font-heading: 'Oxanium', 'Inter', sans-serif;
    --pv-font-body: 'Inter', sans-serif;
    --pv-font-mono: var(--io-font-mono);
    --pv-font-data: var(--io-font-mono);

    /* Remap the Provenance.Blazor brand, ground and shape tokens onto the IOFlex palette. */
    --pv-primary: var(--io-royal);
    --pv-primary-dark: color-mix(in srgb, var(--io-royal) 80%, var(--io-ink));
    --pv-primary-tint: color-mix(in srgb, var(--io-royal) 14%, var(--io-bone));
    --pv-page: var(--io-bone);
    --pv-text-primary: var(--io-ink);
    --pv-radius-xl: 12px;
    --pv-radius-2xl: 12px;
    /* The library's blue zero-offset halo on filled-button hover becomes a soft offset shadow. */
    --pv-glow-info: 0 1px 2px rgb(13 11 20 / 0.12), 0 4px 12px rgb(13 11 20 / 0.08);

    scrollbar-color: var(--io-slate) var(--io-bone);
}

.theme-ioflex ::selection {
    background: var(--io-royal);
    color: var(--io-bone);
}

.theme-ioflex :focus-visible {
    outline: 2px solid var(--io-royal);
    outline-offset: 2px;
}

.theme-ioflex .mud-appbar :focus-visible {
    outline-color: var(--io-royal-bright);
}

/* Square="true" papers (the public footer) stay square; the library rounds every paper. */
.theme-ioflex .mud-paper.mud-paper-square {
    border-radius: 0;
}

.theme-ioflex a {
    text-underline-offset: 0.2em;
}

.theme-ioflex code,
.theme-ioflex kbd,
.theme-ioflex pre,
.theme-ioflex samp {
    font-family: var(--io-font-mono);
}

/* Public app-bar links (PublicLayout). Plain links hidden by a media query: MudHidden needs its
   breakpoint listener, which a statically rendered layout never starts, so it rendered nothing. */
.shell-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shell-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.86;
}

.shell-nav a:hover,
.shell-nav a.active,
.shell-menu nav a:hover {
    opacity: 1;
    background: rgb(255 255 255 / 0.08);
}

.shell-menu { display: none; position: relative; }

.shell-menu summary {
    list-style: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.shell-menu summary::-webkit-details-marker { display: none; }
.shell-menu summary svg { width: 22px; height: 22px; }

.shell-menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    display: grid;
    padding: 8px;
    border-radius: 10px;
    background: var(--mud-palette-appbar-background);
    border: 1px solid rgb(206 201 217 / 0.18);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}

.shell-menu nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 959.98px) {
    .shell-nav { display: none; }
    .shell-menu { display: block; }
}
