/* ApartMind identity: the single source for interface color and shape tokens. */
:root {
    --brand-primary: #343078;
    --brand-primary-hover: #29265F;
    --brand-gold: #D8C39A;
    --brand-gold-soft: #F4EEE2;
    --brand-background: #FAF7F2;
    --brand-surface: #FFFFFF;
    --brand-ink: #25243A;
    --brand-muted: #686779;
    --brand-border: #E5E2EC;
    --brand-soft: #F0EEF7;
    --brand-shadow-color: rgba(52, 48, 120, .18);
    --brand-shadow: 0 8px 28px -16px var(--brand-shadow-color);
    --brand-radius-card: 12px;
    --brand-radius-control: 8px;
}
html, body { background: var(--brand-background); color: var(--brand-ink); }
body { overflow-x: clip; }
.brand-home-link { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.brand-logo { width: 204px; height: 59px; object-fit: contain; }
.brand-tagline { color: var(--brand-muted); font-size: 11px; line-height: 1.4; }
:root body :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
}
:where(button, input, select, textarea) { accent-color: var(--brand-primary); }
:where(button, input, select, textarea):disabled { cursor: not-allowed; opacity: .55; }
body :is(.rounded-2xl, .rounded-3xl) { border-radius: var(--brand-radius-card); }
body :is(a, button, input, select, textarea).rounded-xl,
body :is(a, button, input, select, textarea).rounded-lg { border-radius: var(--brand-radius-control); }
body .shadow-card { box-shadow: var(--brand-shadow); }
body .bg-blob { display: none; }
body header { border-bottom-color: var(--brand-border); }
body footer { border-top-color: var(--brand-gold); }
body .oya-tools-panel { border-color: var(--brand-border); background: var(--brand-surface); }
body .oya-tools-panel[open] { border-color: var(--brand-gold); }
body .oya-tools-summary { border-radius: var(--brand-radius-card); }
body .oya-tools-summary:hover { background: var(--brand-soft); }
body .hero-visual-carousel { background: var(--brand-background); }
body #slider-shell { border-color: var(--brand-border); }
body #slider-track a { color: var(--brand-ink); }
/* Brand promotion surfaces; semantic warning/error/success colors remain unchanged. */
.brand-promotion { background: var(--brand-gold-soft); border-color: var(--brand-gold); }
.brand-promotion :is(h2, h3, p) { color: var(--brand-ink); }
@media (max-width: 639px) {
    .brand-logo { width: 160px; height: 46px; }
    .brand-tagline { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Inline legacy action backgrounds also share the hover state. */
body :is(a, button)[style*="background-color:var(--brand-primary)"]:not(:disabled):hover,
body :is(a, button)[style*="background:var(--brand-primary)"]:not(:disabled):hover {
    background-color: var(--brand-primary-hover) !important;
}
