/* ===== UYB brand — app shell. Type + palette from live unlockyourbizniche.com:
   Playfair Display + DM Sans + Caveat; cream #faf2e1 / brown #3d2817 / terracotta #c0703f
   / amber #965800 / teal #2b7d86. ===== */

/* ⭐ THE BOOK'S BLUE, AVAILABLE TO EVERY PAGE. Sampled from the cover artwork itself
   (wwwroot/img/uyb-cover.png): the field behind the keyhole runs #0094D6 into #006CB5, and the
   title is #C11A2B. Mary, 2026-09-04: "the discovery page needs to bring in the blue of the
   book" — then, seeing the home page, "wheres the blue???". I had scoped it to /adult only,
   which was too narrow. It belongs anywhere the six Keys or the book appear.
   ⛔ ACCENT ONLY. Amber #965800 stays the action colour on every surface, so a button is always
   a button and never competes with the accent. */
:root {
    --bk-blue: #0094d6;
    --bk-blue-deep: #006cb5;
    --bk-red: #c11a2b;

    /*  ⛔⛔ THE BRAND RULE — DEFINED ONCE, REFERENCED EVERYWHERE, NEVER RETYPED.
        Mary, 2026-09-08: "blue in branding is fading... i want this fixed and set to NOT CHANGE."
        The login and register cards were still drawing the OLD strip — amber → terracotta → TEAL
        — so the blue vanished on the first page a new customer ever sees, and the teal that was
        removed from status colours was still living here.
        ⚠️ THE CAUSE WAS FOUR HAND-TYPED COPIES of the same gradient (this file twice, the nav
        bar, the Discovery card). Updating three of four is not a mistake anyone notices; it is
        what "fading" looks like. One token now, so a change lands everywhere or nowhere.
        ⛔ Do not inline this gradient again. If you need it somewhere new, use var(--bk-rule). */
    --bk-rule: linear-gradient(90deg, var(--bk-blue), var(--bk-blue-deep) 72%, var(--bk-red));
}

/*  The cover's field, quoted as an edge along the top of a panel. Put this on anything that is
    "out of the book" — the Keys, the book credit. ⛔ Not on every card; it stops meaning
    anything if it is everywhere. */
/*  ⚠️ DOUBLED SELECTORS THROUGHOUT. MudBlazor.min.css is linked AFTER app.css in App.razor, so a
    single-class rule here loses every tie against .mud-paper / .mud-typography-*. Repeating the
    class raises specificity without !important. ⛔ Do not "tidy" these back to one class. */
.uyb-bookedge.uyb-bookedge {
    position: relative;
    overflow: hidden;
}

    .uyb-bookedge.uyb-bookedge::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--bk-rule);
    }

/*  Key numbers, matching the Discovery. */
.uyb-keynum.uyb-keynum {
    color: var(--bk-blue-deep);
    flex: none;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/*  ⭐ EYEBROWS AND SMALL-CAPS LABELS ARE BLUE APP-WIDE. MudBlazor paints Typo.overline with
    whatever Color you pass, and Color.Primary is amber — which put amber on labels that are not
    pressable. ⛔ Amber means "you can press this". Blue means "this is a label". Keeping those
    separate is what lets a button read as a button on a page full of accents.
    Specificity is doubled so it beats MudBlazor's own .mud-typography-overline, which loads
    after this file. */
.uyb-eyebrow.uyb-eyebrow {
    color: var(--bk-blue-deep);
    font-weight: 800;
    letter-spacing: .14em;
}

/*  A blue rule to open a section — same role as the Discovery's card edge. */
.uyb-rule.uyb-rule {
    border: 0;
    height: 3px;
    border-radius: 99px;
    background: var(--bk-rule);
    margin: 26px 0 18px;
    opacity: 1;
}
html, body {
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #faf2e1;
    color: #3d2817;
}

h1, h2, h3, .h1, .h2, .h3 {
    font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
    color: #3d2817;
    letter-spacing: -.01em;
}

a, .btn-link {
    color: #a85a2e;
}

    a:hover, .btn-link:hover {
        color: #7a4700;
    }

.btn-primary {
    color: #fff;
    background-color: #965800;
    border-color: #7a4700;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background-color: #7a4700 !important;
        border-color: #613800 !important;
        color: #fff;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #c0703f;
  border-color: #c0703f;
}

.form-check-input:checked {
    background-color: #965800;
    border-color: #7a4700;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ===== Branded auth pages (Login / Register) ===== */
.uyb-auth {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(24px, 6vh, 64px) 16px;
}

.uyb-auth-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #fefbf8;
    border: 1px solid #ece0c8;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(61,40,23,.05), 0 22px 50px rgba(90,64,41,.14);
    padding: 40px 32px 30px;
    overflow: hidden;
}

    .uyb-auth-card::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 5px;
        background: var(--bk-rule);
    }

.uyb-auth-brand {
    font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .01em;
    color: #7a4700;
    margin: 4px 0 20px;
}

    .uyb-auth-brand b { color: #c0703f; }

.uyb-auth-h {
    font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
    text-align: center;
    font-size: 31px;
    font-weight: 700;
    color: #3d2817;
    margin: 0 0 6px;
    letter-spacing: -.01em;
}

.uyb-auth-sub {
    font-family: "Caveat", "Segoe Script", cursive;
    text-align: center;
    color: #c0703f;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 22px;
}

.uyb-auth .form-control {
    border-radius: 13px;
    border: 1.5px solid #e3d4b4;
    background: #fffdf9;
    font-size: 15px;
}

.uyb-auth .form-floating > label { color: #8a7357; }

.uyb-auth .btn-lg {
    border-radius: 14px;
    padding: 13px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 5px 0 #7a4700;
    margin-top: 4px;
    transition: transform .06s, box-shadow .06s;
}

    .uyb-auth .btn-lg:active {
        transform: translateY(3px);
        box-shadow: 0 2px 0 #7a4700;
    }

.uyb-auth .checkbox .form-label { color: #5a4029; font-size: 14px; }

.uyb-auth-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f0e6d0;
}

    .uyb-auth-links a {
        color: #a85a2e;
        font-weight: 700;
        font-size: 13.5px;
        text-decoration: none;
    }

        .uyb-auth-links a:hover { text-decoration: underline; }
