.mud-main-content {
    height: 100%;
    min-height: 100vh;
    display: flex;
}
 
.mud-chip {
    font-size: var(--mud-typography-default-size);
}
.mud-chip.mud-chip-size-small {
    font-size: var(--mud-typography-body1-size);
}
.mud-tabs {
    background-color: var(--mud-palette-surface);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: var(--mud-typography-subtitle1-size);
}

.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    font-size: var(--mud-typography-default-size) !important;
    
}

.mud-expand-panel .mud-expand-panel-header {
    font-size: var(--mud-typography-default-size) !important;
    
}

.mud-button-year {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-table-cell {
    font-size: var(--mud-typography-default-size) !important;
}


.mud-typography-subtitle2 {
    font-size: var(--mud-typography-subtitle2-size);
    color: var(--mud-palette-text-secondary);
}
.mud-typography-body1 {
    font-size: var(--mud-typography-body1-size);
}

.mud-typography-body2 {
    font-size: var(--mud-typography-body2-size);
    color: var(--mud-palette-text-secondary);
}

.mud-button-outlined-size-small {
    font-size: var(--mud-typography-body2-size);
}

.mud-grid.readonly-grid > .mud-grid-item {
    border-bottom: 1px solid var(--mud-palette-table-lines);
    padding-bottom:2px;
}

#blazor-error-ui {
    background: lightyellow;
    background-color: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    padding: 0.6rem 1.75rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

#reconnect-modal {
    background: lightyellow;
    background-color: var(--mud-palette-warning-hover);
    color: var(--mud-palette-warning-darken);
    top: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    padding: 0.6rem 1.75rem 0.7rem 1.25rem;
    margin: 0px;
    position: fixed;
    width: 100%;
    z-index: 9999;
}


.mud-nav-link {
    white-space: normal !important;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}

.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}
/* ---------------------------------------------------------------------------
   Proverbit type utilities. See Themes/Theme.cs — the palette is Manim's own,
   so UI accents and in-video highlights are literally the same values.
   --------------------------------------------------------------------------- */

/* Figures: durations, counts, costs, token totals. Tabular so columns of numbers
   line up and do not jitter as they tick during a render. */
.num {
    font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Opt-in display face for titles that are content rather than chrome — a video's
   topic, a scene heading. Chrome (nav, labels, buttons) stays sans on purpose. */
.serif {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    letter-spacing: -0.01em;
}

/* ── Public pages ───────────────────────────────────────────────────────────
   The layout a stranger sees. Plain CSS rather than MudBlazor layout components
   because these pages render statically: what ships is the HTML, so it should be
   the smallest honest amount of it. */

.pvx-public {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.pvx-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.pvx-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
}

.pvx-public-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pvx-public-nav a {
    color: var(--mud-palette-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.pvx-public-nav a:hover { color: var(--mud-palette-text-primary); }

.pvx-public-nav a.pvx-public-cta {
    color: var(--mud-palette-primary-text);
    background: var(--mud-palette-primary);
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
}

.pvx-public-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.pvx-public-footer {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
}

.pvx-public-footer a { color: inherit; }

/* Landing page. */

.pvx-hero {
    padding: 3.5rem 0 3rem;
    max-width: 46rem;
}

.pvx-hero h1 {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.pvx-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--mud-palette-text-secondary);
    margin: 0 0 2rem;
}

.pvx-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.pvx-btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.pvx-btn-primary { background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }

.pvx-btn-quiet {
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
}

/* The video grid, shared by the landing page and the library. */

.pvx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.pvx-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--mud-palette-surface);
}

.pvx-card:hover { border-color: var(--mud-palette-primary); }

.pvx-card-poster {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--mud-palette-background-grey);
}

.pvx-card-body { padding: 0.85rem 1rem 1rem; }

.pvx-card-title { font-weight: 600; line-height: 1.35; margin-bottom: 0.35rem; }

.pvx-card-meta { font-size: 0.8rem; color: var(--mud-palette-text-secondary); }

/* Chapter links on the watch page. Anchors rather than list buttons: a chapter is a position in the
   video, which is a URL, and the page has no circuit to route a click through. */

.pvx-chapter {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

.pvx-chapter:hover { background: var(--mud-palette-action-default-hover); }

.pvx-chapter-title { flex: 1 1 auto; font-size: 0.9rem; }

.pvx-chapter-time { font-size: 0.8rem; color: var(--mud-palette-text-secondary); }

/* The library's search form. A plain input so its value survives static rendering. */

.pvx-search { display: flex; gap: 0.5rem; max-width: 640px; }

.pvx-search input {
    flex: 1 1 auto;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--mud-palette-lines-input);
    border-radius: 6px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
}

.pvx-search input:focus {
    outline: none;
    border-color: var(--mud-palette-primary);
}

/* The invite-request form. Plain controls, since the page is statically rendered and posts over HTTP. */

.pvx-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 34rem;
}

.pvx-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.pvx-optional {
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
}

.pvx-form input,
.pvx-form textarea {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--mud-palette-lines-input);
    border-radius: 6px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
}

.pvx-form input:focus,
.pvx-form textarea:focus {
    outline: none;
    border-color: var(--mud-palette-primary);
}

.pvx-form button { margin-top: 1.25rem; align-self: flex-start; border: none; cursor: pointer; font: inherit; }

.pvx-form-error,
.pvx-form .validation-message {
    color: var(--mud-palette-error);
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

/* ── Pricing ────────────────────────────────────────────────────────────── */

.pvx-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.pvx-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.35rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background: var(--mud-palette-surface);
}

.pvx-plan-featured { border-color: var(--mud-palette-primary); border-width: 2px; }

.pvx-plan-flag {
    position: absolute;
    top: -0.7rem;
    left: 1.25rem;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pvx-plan-name { font-size: 1.05rem; margin: 0 0 0.5rem; }

.pvx-plan-price { margin: 0 0 0.5rem; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.pvx-plan-price strong { font-size: 2rem; line-height: 1; }
.pvx-plan-cadence { font-size: 0.8rem; color: var(--mud-palette-text-secondary); }

.pvx-plan-summary { margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--mud-palette-text-secondary); }

.pvx-plan-allowance {
    margin: 0 0 0.9rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    background: var(--mud-palette-background-grey);
    font-size: 0.85rem;
}

.pvx-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1 1 auto;
}

.pvx-plan-features li { padding-left: 1.1rem; position: relative; }
.pvx-plan-features li::before { content: "·"; position: absolute; left: 0.35rem; }

.pvx-plan .pvx-btn { text-align: center; }

.pvx-addon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 10px;
}

.pvx-faq { margin-top: 3rem; max-width: 44rem; }
.pvx-faq p { font-size: 0.92rem; line-height: 1.7; color: var(--mud-palette-text-secondary); }
.pvx-faq strong { color: var(--mud-palette-text-primary); }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.pvx-draft-notice {
    max-width: 44rem;
    margin-bottom: 2rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-warning);
    background: var(--mud-palette-background-grey);
    font-size: 0.88rem;
}

.pvx-legal { max-width: 44rem; }
.pvx-legal h1 { font-family: Georgia, "Iowan Old Style", serif; font-size: 2rem; margin: 0 0 0.35rem; }
.pvx-legal h2 { font-size: 1.15rem; margin: 2rem 0 0.6rem; }
.pvx-legal h3 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.pvx-legal p, .pvx-legal li { line-height: 1.75; font-size: 0.95rem; }
.pvx-legal ul { padding-left: 1.2rem; }
.pvx-legal-date { color: var(--mud-palette-text-secondary); font-size: 0.85rem; margin-top: 0; }
