/* Base resets + element styles for the member shell. */

:root {
    /* Surfaces */
    --paper: #faf7f2;
    --surface: #ffffff;
    --surface-tint: #f4ede0;

    /* Text */
    --ink: #0d1117;
    --ink-soft: #3c4350;
    --muted: #7d7466;

    /* Lines */
    --hairline: #ead9c3;
    --line: #e6d9c4;

    /* Accents */
    --gold: #b8924b;
    --gold-deep: #8c6d34;
    --navy: #16243f;

    /* Zone semantics */
    --success: #2f7d57;
    --warning: #a17524;
    --danger: #b1372d;

    /* Payment-history semantics — used by the credit-report drill-down and any future
       compact status grids. Kept within the warm-paper aesthetic (muted forest / amber
       / brick) rather than pulling in bright saturated dashboard colors. */
    --status-ok: #2f7d57;
    --status-late: #cf9825;
    --status-derog: #b1372d;
    --status-nodata: #d9cbb2;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--paper);
    color: var(--ink);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    font-family: "Fraunces", "Times New Roman", serif;
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 36, "SOFT" 30;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 0.75rem 0;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
}

a {
    color: var(--gold-deep);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--ink);
    text-decoration: none;
}

/* Authed page wrapper used by non-wizard pages (Dashboard, Reports, Profile, etc).
   Wizard pages use WizardShell which provides its own padding. */
.page-shell {
    padding: 2.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Shared eyebrow class — small uppercase tracked label above section titles. */
.eyebrow {
    display: inline-block;
    font-family: "Manrope", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
}

#blazor-error-ui {
    background: #fff4e5;
    color: #8a4b00;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
