/*
 * PENNY LEDGER
 * File 115 — Shared Brand Design System
 * Stagecoach West, L.L.C.
 *
 * Apply class="pl-theme" to the page body.
 * Load before page-specific refresh stylesheets.
 */

:root {
    --pl-navy-950: #0c192b;
    --pl-navy-900: #14263d;
    --pl-navy-800: #1b3551;
    --pl-navy-700: #244d68;

    --pl-gold-700: #a67d33;
    --pl-gold-600: #b58d45;
    --pl-gold-500: #d8b46b;
    --pl-gold-300: #ead4a3;
    --pl-gold-100: #faf1de;

    --pl-ivory: #faf8f3;
    --pl-surface: #ffffff;
    --pl-surface-soft: #f5f7fa;

    --pl-ink: #19283a;
    --pl-muted: #53657a;
    --pl-border: #dce3e9;

    --pl-success: #18734e;
    --pl-danger: #b42332;
    --pl-warning: #996319;
    --pl-info: #245a91;

    --pl-radius-sm: 9px;
    --pl-radius-md: 14px;
    --pl-radius-lg: 22px;

    --pl-shadow-sm:
        0 4px 15px rgba(12,25,43,.06);

    --pl-shadow-md:
        0 15px 40px rgba(12,25,43,.10);

    --pl-shadow-lg:
        0 25px 70px rgba(12,25,43,.17);

    --pl-ease: 180ms ease;
}

.pl-theme {
    color-scheme: light;
    color: var(--pl-ink);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pl-theme *,
.pl-theme *::before,
.pl-theme *::after {
    box-sizing: border-box;
}

.pl-theme button,
.pl-theme input,
.pl-theme select,
.pl-theme textarea {
    font: inherit;
}

.pl-theme a {
    text-underline-offset: 3px;
}

.pl-theme :focus-visible {
    outline: 3px solid var(--pl-gold-500);
    outline-offset: 3px;
}

.pl-theme .pl-card {
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow-md);
}

.pl-theme .pl-card-header {
    padding: 23px 28px;
    border-bottom: 1px solid var(--pl-border);
}

.pl-theme .pl-card-body {
    padding: 28px;
}

.pl-theme .pl-heading {
    margin: 0 0 12px;
    color: var(--pl-navy-900);
    font-weight: 800;
    letter-spacing: -.8px;
}

.pl-theme .pl-muted {
    color: var(--pl-muted);
}

.pl-theme .pl-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.pl-theme .pl-field label {
    color: var(--pl-navy-900);
    font-size: 13px;
    font-weight: 700;
}

.pl-theme .pl-input,
.pl-theme .pl-select,
.pl-theme .pl-textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 15px;
    color: var(--pl-ink);
    background: #ffffff;
    border: 1.5px solid var(--pl-border);
    border-radius: var(--pl-radius-sm);
    transition:
        border-color var(--pl-ease),
        box-shadow var(--pl-ease);
}

.pl-theme .pl-input,
.pl-theme .pl-select {
    min-height: 48px;
}

.pl-theme .pl-input:focus,
.pl-theme .pl-select:focus,
.pl-theme .pl-textarea:focus {
    outline: none;
    border-color: var(--pl-gold-600);
    box-shadow: 0 0 0 4px rgba(216,180,107,.18);
}

.pl-theme .pl-input:disabled,
.pl-theme .pl-select:disabled,
.pl-theme .pl-textarea:disabled {
    background: #edf0f3;
    color: #69798a;
    cursor: not-allowed;
}

.pl-theme .pl-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 47px;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--pl-ease),
        background var(--pl-ease),
        box-shadow var(--pl-ease);
}

.pl-theme .pl-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.pl-theme .pl-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.pl-theme .pl-button-primary {
    color: white;
    background: var(--pl-navy-900);
    box-shadow: 0 8px 22px rgba(20,38,61,.16);
}

.pl-theme .pl-button-primary:hover:not(:disabled) {
    background: var(--pl-navy-700);
}

.pl-theme .pl-button-gold {
    color: var(--pl-navy-950);
    background: var(--pl-gold-500);
}

.pl-theme .pl-button-gold:hover:not(:disabled) {
    background: var(--pl-gold-300);
}

.pl-theme .pl-button-outline {
    color: var(--pl-navy-900);
    background: white;
    border-color: var(--pl-border);
}

.pl-theme .pl-button-outline:hover:not(:disabled) {
    background: var(--pl-surface-soft);
}

.pl-theme .pl-alert {
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.6;
}

.pl-theme .pl-alert-success {
    color: var(--pl-success);
    background: #effaf4;
    border-color: #b9e6ca;
}

.pl-theme .pl-alert-error {
    color: var(--pl-danger);
    background: #fff2f2;
    border-color: #f1c2c7;
}

.pl-theme .pl-alert-warning {
    color: var(--pl-warning);
    background: #fff8e9;
    border-color: #ecd7a3;
}

.pl-theme .pl-divider {
    height: 1px;
    background: var(--pl-border);
    border: 0;
}

.pl-theme .pl-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 100px;
    background: var(--pl-gold-100);
    color: #78591e;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .pl-theme .pl-card-header,
    .pl-theme .pl-card-body {
        padding: 20px;
    }

    .pl-theme .pl-button {
        min-height: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-theme *,
    .pl-theme *::before,
    .pl-theme *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}