/* The molCore brand on every DataRoom page: brand kit "wine-coral" (branding/logo/wine-coral,
   BRAND-GUIDE.md, 2026-11-18). Wine text on bone; coral is the one accent, never small text.
   Light only: the brand defines no dark theme.

   Loaded by the three shells, after vendor/manrope/manrope.css and before the shell's own
   stylesheet: templates/base.html (sign-in, room, notices), templates/allauth/layouts/base.html,
   dataroom/templates/console/base.html. A static file like every stylesheet here: the CSP is
   style-src 'self' (core/tests/test_csp.py).

   Contrast, WCAG 2 relative luminance (text needs 4.5:1, focus rings and marks 3:1):
     wine #3B1829         on bone 13.8:1, on white 15.6:1
     muted #6B5360        on bone 6.1:1, on white 6.9:1, on bone-2 5.6:1
     faint #866E75        on white 4.7:1 (placeholders; white fields only)
     bone on wine 13.8:1; bone-muted #C2B4B3 on wine 7.8:1, on the active row 6.3:1
     coral #F56E62        on wine 5.4:1 (marks and rings on dark surfaces); on bone 2.5:1, so
                          never text, and not a focus ring on light surfaces
     coral-ink #D9483C    focus ring on light surfaces: on bone 3.8:1, on white 4.3:1
     field line           wine at 50% over white = #9D8C94, 3.2:1 (input borders)
     ok #2E6B4E           on bone 5.6:1, on its tint #E3EFE6 5.3:1
     warn #8A5300         on bone 5.6:1, on its tint #FBEFD3 5.5:1
     error #A4133C        on bone 6.8:1, on its tint #FBE7EC 6.5:1
   Error is a cool crimson and warn an ochre, so neither reads as the coral accent. */

:root {
    --mc-wine: #3B1829;
    --mc-coral: #F56E62;
    --mc-bone: #F6F0E8;
    --mc-white: #FFFFFF;

    --mc-ink: var(--mc-wine);
    --mc-ink-muted: #6B5360;
    --mc-ink-faint: #866E75;
    --mc-bone-2: #EFE6DA;
    --mc-bone-3: #FBF8F4;
    --mc-bone-muted: #C2B4B3;
    --mc-line: rgba(59, 24, 41, 0.14);
    --mc-line-strong: rgba(59, 24, 41, 0.28);
    --mc-field-line: rgba(59, 24, 41, 0.5);
    --mc-tint: rgba(59, 24, 41, 0.05);
    --mc-tint-strong: rgba(59, 24, 41, 0.09);
    --mc-wine-hover: #52263C;
    --mc-coral-ink: #D9483C;
    --mc-coral-soft: rgba(245, 110, 98, 0.16);
    --mc-viewer: #21101A;

    --mc-ok: #2E6B4E;
    --mc-ok-bg: #E3EFE6;
    --mc-warn: #8A5300;
    --mc-warn-bg: #FBEFD3;
    --mc-error: #A4133C;
    --mc-error-bg: #FBE7EC;

    --mc-radius: 12px;
    --mc-shadow: 0 1px 2px rgba(59, 24, 41, 0.05), 0 6px 20px rgba(59, 24, 41, 0.06);
    --mc-shadow-lift: 0 1px 2px rgba(59, 24, 41, 0.06), 0 10px 28px rgba(59, 24, 41, 0.1);
    --mc-font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    color-scheme: light;
}

body {
    font-family: var(--mc-font);
    font-weight: 400;
    color: var(--mc-ink);
    background: var(--mc-bone);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.015em;
}

::selection {
    background: rgba(245, 110, 98, 0.3);
    color: var(--mc-wine);
}

/* One focus ring everywhere: the deep coral on light surfaces; the brand coral where the
   surface is wine (sidebar, viewer), set by those stylesheets. */
:focus-visible {
    outline: 2px solid var(--mc-coral-ink);
    outline-offset: 2px;
}

/* The logo, as the kit draws it: never recoloured, rotated or stretched (width set, height
   auto). Its export padding is about 11% of the symbol's width; the margins around each use
   add the rest of the guide's 14% clear space. */
.brand-logo {
    display: block;
    height: auto;
}

/* Line icons: one SVG each in ../icons/, drawn as a mask in the current text colour. */
.ico {
    display: inline-block;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: -0.28em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ico-folder { -webkit-mask-image: url("../icons/folder.32f134dfedb9.svg"); mask-image: url("../icons/folder.32f134dfedb9.svg"); }
.ico-file { -webkit-mask-image: url("../icons/file.9fb29e9e7a35.svg"); mask-image: url("../icons/file.9fb29e9e7a35.svg"); }
.ico-search { -webkit-mask-image: url("../icons/search.bed9b7aea880.svg"); mask-image: url("../icons/search.bed9b7aea880.svg"); }
.ico-chat { -webkit-mask-image: url("../icons/chat.bd1cccd21340.svg"); mask-image: url("../icons/chat.bd1cccd21340.svg"); }
.ico-lock { -webkit-mask-image: url("../icons/lock.ba7984615340.svg"); mask-image: url("../icons/lock.ba7984615340.svg"); }
.ico-sliders { -webkit-mask-image: url("../icons/sliders.0b0b9db3a5bc.svg"); mask-image: url("../icons/sliders.0b0b9db3a5bc.svg"); }
.ico-chart { -webkit-mask-image: url("../icons/chart.e7c4077f55af.svg"); mask-image: url("../icons/chart.e7c4077f55af.svg"); }
.ico-mail { -webkit-mask-image: url("../icons/mail.c32fd00040df.svg"); mask-image: url("../icons/mail.c32fd00040df.svg"); }
.ico-refresh { -webkit-mask-image: url("../icons/refresh.0025b2e311d1.svg"); mask-image: url("../icons/refresh.0025b2e311d1.svg"); }
.ico-check { -webkit-mask-image: url("../icons/check.bcc91fba93e4.svg"); mask-image: url("../icons/check.bcc91fba93e4.svg"); }
.ico-question { -webkit-mask-image: url("../icons/question.8577cff9a286.svg"); mask-image: url("../icons/question.8577cff9a286.svg"); }
.ico-share { -webkit-mask-image: url("../icons/share.e4efaf7d42d4.svg"); mask-image: url("../icons/share.e4efaf7d42d4.svg"); }
.ico-paperclip { -webkit-mask-image: url("../icons/paperclip.bde3b730724c.svg"); mask-image: url("../icons/paperclip.bde3b730724c.svg"); }
.ico-clock { -webkit-mask-image: url("../icons/clock.29d9bdda51ab.svg"); mask-image: url("../icons/clock.29d9bdda51ab.svg"); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
