/* Site-wide base styles (templates/base.html): the sign-in pages, the notices (access ended,
   not invited, no access), allauth's pages and the long-form public pages (privacy, security).
   Brand tokens come from brand.css, loaded before this file. Every stylesheet of the DataRoom
   is a static file: the CSP is `style-src 'self'` with no 'unsafe-inline' (proposal §5.5), so
   no template may carry a <style> block or a style="" attribute; core/tests/test_csp.py scans
   the tree. */

/* The names the pages' own stylesheets read (viewer.css, search.css), now the brand's. */
:root {
    --color-bg: var(--mc-bone);
    --color-bg-secondary: var(--mc-white);
    --color-text: var(--mc-ink);
    --color-text-muted: var(--mc-ink-muted);
    --color-accent: var(--mc-wine);
    --color-accent-hover: var(--mc-wine-hover);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
}

/* Links: wine like the text, told apart by a coral underline. */
a {
    color: var(--mc-wine);
    text-decoration: underline;
    text-decoration-color: var(--mc-coral);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
    color: var(--mc-wine-hover);
    text-decoration-color: var(--mc-wine);
}

/* ---- buttons: wine primary, quiet outline secondary --------------------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: var(--mc-wine);
    color: var(--mc-bone);
    box-shadow: 0 1px 2px rgba(59, 24, 41, 0.18);
}

.btn-primary:hover {
    background: var(--mc-wine-hover);
    color: var(--mc-bone);
}

.btn-secondary {
    background: transparent;
    color: var(--mc-wine);
    border-color: var(--mc-line-strong);
}

.btn-secondary:hover {
    color: var(--mc-wine);
    border-color: var(--mc-wine);
    background: var(--mc-tint);
}

/* ---- stand-alone pages (sign-in, access ended, not invited, no access, allauth) ---- */
.standalone {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.25rem;
}

.standalone > .brand-logo {
    width: 200px;
    margin: 0 auto 1.75rem;
}

.standalone .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

/* The line icon above a notice's heading, in a soft wine disc. */
.standalone .notice-mark {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--mc-tint-strong);
    color: var(--mc-wine);
}

.standalone .notice-mark .ico {
    width: 1.6rem;
    height: 1.6rem;
}

.standalone h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.standalone p {
    color: var(--mc-ink-muted);
    max-width: 520px;
    margin-bottom: 1rem;
}

.standalone .actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.75rem;
}

.standalone .contact-info {
    margin-top: 2rem;
    padding: 1.1rem 1.5rem;
    background: var(--mc-white);
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius);
    max-width: 420px;
}

.standalone .contact-info p {
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.standalone .contact-info p:last-child {
    margin-bottom: 0;
}

.standalone .contact-info strong {
    color: var(--mc-wine);
}

.standalone .messages {
    margin-bottom: 1.25rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: var(--mc-bone-3);
    border: 1px solid var(--mc-line);
    text-align: left;
}

.standalone .messages p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--mc-ink);
}

.standalone .messages p + p {
    margin-top: 0.35rem;
}

.standalone .footer-links {
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--mc-ink-muted);
    display: flex;
    gap: 0.5rem 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.standalone .footer-links a {
    color: var(--mc-ink-muted);
    text-decoration-color: var(--mc-line-strong);
}

.standalone .footer-links a:hover {
    color: var(--mc-wine);
    text-decoration-color: var(--mc-coral);
}

/* The sign-in card: white on bone, the first thing an investor sees. */
.signin-card {
    background: var(--mc-white);
    border: 1px solid var(--mc-line);
    border-radius: 16px;
    box-shadow: var(--mc-shadow);
    padding: 2.25rem 2.5rem 1.75rem;
    max-width: 440px;
    width: 100%;
}

.signin-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.signin-card > p {
    font-size: 0.9375rem;
}

.signin-card .footer-links {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--mc-line);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-google .g {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.25rem;
    font-family: Arial, sans-serif;
}

.allauth-body {
    max-width: 560px;
    width: 100%;
    text-align: left;
    background: var(--mc-white);
    border: 1px solid var(--mc-line);
    border-radius: 16px;
    box-shadow: var(--mc-shadow);
    padding: 2rem 2.25rem;
}

.allauth-body h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.allauth-body p {
    max-width: none;
}

.allauth-body form {
    margin-top: 1rem;
}

.allauth-body button[type="submit"] {
    display: inline-block;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--mc-wine);
    color: var(--mc-bone);
}

.allauth-body button[type="submit"]:hover {
    background: var(--mc-wine-hover);
}

.allauth-body .footer-links {
    justify-content: flex-start;
}

/* ---- long-form public pages: /security/, /dataroom/privacy/ ------------- */
.doc-page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.doc-page-wrap > .brand-logo {
    width: 176px;
    margin: 0 0 1.75rem -4px;
}

.doc-page-wrap h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.doc-page-wrap h2 {
    font-size: 1.2rem;
    margin: 2.25rem 0 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--mc-line);
}

.doc-page-wrap p {
    margin-bottom: 0.85rem;
}

.doc-page-wrap .lede {
    color: var(--mc-ink-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.doc-page-wrap .top-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.doc-page-wrap code {
    font-family: var(--mc-mono);
    font-size: 0.85em;
}

.claims {
    list-style: none;
}

.claim {
    background: var(--mc-white);
    border: 1px solid var(--mc-line);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.claim .claim-id {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
    margin-right: 0.5rem;
}

.claim .claim-text {
    display: inline;
}

.claim .claim-evidence {
    display: block;
    font-size: 0.8125rem;
    color: var(--mc-ink-muted);
    margin-top: 0.4rem;
}

.claim .claim-tests {
    display: block;
    font-size: 0.75rem;
    color: var(--mc-ink-muted);
    margin-top: 0.4rem;
    font-family: var(--mc-mono);
    word-break: break-all;
}

.claim .claim-tests code {
    display: block;
}

.claim.evidence-google-held,
.claim.evidence-both {
    border-left: 3px solid var(--mc-coral);
}

.retention {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--mc-white);
    border: 1px solid var(--mc-line);
    border-radius: 10px;
}

.retention th,
.retention td {
    text-align: left;
    vertical-align: top;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--mc-line);
}

.retention tr:last-child td {
    border-bottom: none;
}

.retention th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mc-ink-muted);
    background: var(--mc-bone-3);
}

.doc-page-wrap .footnote {
    font-size: 0.8125rem;
    color: var(--mc-ink-muted);
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .retention,
    .retention thead,
    .retention tbody,
    .retention tr,
    .retention th,
    .retention td {
        display: block;
    }

    .retention thead {
        display: none;
    }

    .retention td {
        border-bottom: none;
    }

    .retention tr {
        border-bottom: 1px solid var(--mc-line);
        padding: 0.5rem 0;
    }

    .retention td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--mc-ink-muted);
    }

    .signin-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }
}

/* Sign-in by a code sent by e-mail (decision 22): the second choice on the sign-in page,
   the address form and the code form. */
.signin-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.signin-or::before,
.signin-or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--mc-line);
}

.standalone .signin-or {
    max-width: none;
}

.btn-code {
    display: block;
    width: 100%;
    text-align: center;
}

.signin-note {
    margin-top: 0.9rem;
    font-size: 0.8125rem;
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    margin-top: 0.5rem;
}

.signin-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mc-ink);
}

.signin-form input[type="email"],
.signin-form input[type="text"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--mc-field-line);
    background: var(--mc-white);
    color: var(--mc-ink);
    font-size: 1rem;
    font-family: inherit;
}

.signin-form input::placeholder {
    color: var(--mc-ink-faint);
}

.signin-form input:focus-visible {
    border-color: var(--mc-wine);
    outline-offset: 1px;
}

.signin-form .btn {
    margin-top: 0.4rem;
}

.signin-form input.signin-code {
    font-family: var(--mc-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
}

.signin-form .signin-error {
    color: var(--mc-error);
    font-size: 0.875rem;
    margin-bottom: 0;
}
