/* RPRA Consulting -- global styles */

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/CormorantGaramond.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/CormorantGaramond-Italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/InstrumentSans.woff2') format('woff2');
}

/* 2026-07 redesign palette. Gold #b1832e is for rules, borders, motif blocks, and
   large-text accents only: it is 3.03:1 on cream, so SMALL gold text takes the
   darkened ink --dark-ochre (#7d5719, 5.75:1 on cream) instead. On plum bands the
   gold lightens to --gold (#c89a4b, 6.06:1 on the footer plum). */
:root {
    --aubergine: #3c2140;
    --deep-plum: #2e1832;
    --footer-plum: #331b36;
    --ochre: #b1832e;
    --dark-ochre: #7d5719;
    --gold: #c89a4b;
    --sand: #e4ca92;
    --ivory: #f7f1e6;
    --ivory-tint: #fdfbf5;
    --white: #ffffff;
    --ink: #3c2140;
    --muted: #6b5a70;
    --hair-08: rgba(60, 33, 64, .08);
    --hair-12: rgba(60, 33, 64, .12);
    --hair-14: rgba(60, 33, 64, .14);
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

/* Animated anchor scrolling only for users who have not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--aubergine);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Blazor error UI (kept from template) */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    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;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ============ LEGAL + UTILITY PAGES (EULA, Privacy, QBO callback) ============ */
/* Global (not scoped) so ChildContent passed into LegalPage.razor is styled regardless of
   Blazor's per-component CSS scope. */

.legal-header {
    border-bottom: 1px solid var(--hair-12);
    background: var(--white);
}

.legal-header {
    padding: 18px 24px;
}

.legal-brand {
    display: flex;
    align-items: center;
}

    .legal-brand img {
        /* 45px, not 30. The 2026-07-25 lockup has far more internal padding than the
           micro lockup it replaced (ink is 46% of the box vs 69%), so 30px rendered the
           mark a third smaller and the gold descriptor became unreadable. */
        height: 45px;
        width: auto;
        display: block;
    }

.legal-main {
    background: var(--ivory);
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(48px, 8vh, 88px) 24px clamp(56px, 9vh, 96px);
}

.legal-title {
    font: 600 clamp(30px, 5vw, 44px)/1.15 var(--serif);
    color: var(--aubergine);
    margin: 0 0 8px;
}

.legal-updated {
    font: 400 13px/1.5 var(--sans);
    color: var(--muted);
    margin: 0 0 36px;
}

.legal-inner h2 {
    font: 600 19px/1.35 var(--sans);
    color: var(--ink);
    margin: 34px 0 10px;
}

.legal-inner p {
    font: 400 15.5px/1.7 var(--sans);
    color: var(--ink);
    margin: 0 0 14px;
}

.legal-inner a {
    color: var(--dark-ochre);
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .legal-inner a:hover {
        color: var(--aubergine);
    }

/* footer (redefined here; the Home footer classes are component-scoped) */
.legal-footer {
    background: var(--deep-plum);
}

.legal-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.legal-footer .footer-brand {
    font: 600 15px/1.5 var(--serif);
    letter-spacing: .12em;
    color: var(--ivory);
}

/* Contrast-safe: 65% cream holds AA on the plum band; 50% sat at the 4.5:1 line. */
.legal-footer .footer-legal {
    font: 400 11.5px/1.6 var(--sans);
    color: rgba(247, 241, 230, .65);
}

.legal-footer .footer-email {
    font: 400 11.5px/1 var(--sans);
    color: var(--gold);
    transition: color .2s ease;
}

    .legal-footer .footer-email:hover {
        color: var(--ivory);
    }

/* QBO callback specifics */
.callback-url {
    width: 100%;
    font: 400 13px/1.5 var(--sans);
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--hair-12);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 6px 0 18px;
}

.callback-hint {
    font-size: 14px !important;
    color: var(--muted) !important;
    margin-bottom: 8px !important;
}

.callback-values {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .callback-values li {
        display: flex;
        gap: 12px;
        align-items: baseline;
        padding: 7px 0;
        border-bottom: 1px solid var(--hair-08);
    }

    .callback-values span {
        font: 600 12px/1 var(--sans);
        color: var(--muted);
        min-width: 68px;
    }

    .callback-values code {
        font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
        font-size: 13px;
        color: var(--ink);
        word-break: break-all;
    }
