/* =========================================================================
   SITE CHROME — shared by every visitor-facing page
   =========================================================================
   The home page set the look: the landscape behind everything, a tinted
   sheet of glass holding the words, and one footer carrying the contact
   details. This file is that look, written once, so About, the gateway and
   the thank-you pages are the same page in a different coat rather than
   three separate designs.

   The live operating screens (the counsel feed and the control room) keep
   their own tighter layout on purpose -- they have to hold a single screen
   with no scrolling while a deposition is running.
   ========================================================================= */

/* -------------------------------------------------------- the background */
/* Her mountains, held perfectly still. Same frame the home page video opens
   on, so moving between pages feels like the camera simply stopped. */
.page-still {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('hero-field.jpg') center center / cover no-repeat;
    /* v1.9.0: a brighter, warmer sunset (approved Nov 15). */
    filter: brightness(1.10) saturate(1.10);
    pointer-events: none;
}

/* The same veil as the hero, so text stays readable over the sky. */
.page-still::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1300px 820px at 50% 40%, rgba(11, 15, 25, 0), rgba(9, 12, 20, 0.30) 82%),
        linear-gradient(180deg, rgba(9, 12, 20, 0.30) 0%, rgba(9, 12, 20, 0.06) 30%,
            rgba(9, 12, 20, 0.16) 70%, rgba(9, 12, 20, 0.48) 100%);
}

/* Everything that is not the background sits above it. */
.page-shell {
    position: relative;
    z-index: 2;
    /* Some older pages still declare `display: flex; align-items: center` on
       the body itself. Left alone, that makes this shell size to its content
       instead of the screen, which pushed the About page sideways on a phone.
       Claiming the full width here keeps every page honest. */
    width: 100%;
    align-self: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------- the nav */
/* Identical to the home page header: logo and wordmark on the left, three
   links on the right, nothing boxed in. */
.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    padding: var(--sp-4) var(--sp-6);
    background: none;
    border: none;
}

.page-links {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.page-link {
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.18s var(--ease), background 0.18s var(--ease),
        border-color 0.18s var(--ease);
}

.page-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

/* One call to action, outlined rather than filled, so it invites without
   shouting over the landscape. */
.page-link--cta {
    border-color: rgba(255, 255, 255, 0.34);
}

.page-link--cta:hover {
    background: rgba(244, 203, 197, 0.16);
    border-color: var(--accent-rose-bright);
    color: #fff;
}

/* ------------------------------------------------------- the page column */
.page-body {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
}

.page-title {
    margin: 0 0 var(--sp-3);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: 0.005em;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.page-sub {
    margin: 0 auto var(--sp-7);
    max-width: 60ch;
    font-family: var(--font-display);
    font-size: clamp(16px, 2.1vw, 21px);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------- the glass */
/* The panel from the home page, reused for reading. Tinted, blurred, and
   soft-edged, so the landscape behind it is felt rather than read. */
.glass-card {
    margin: 0 0 var(--sp-5);
    padding: clamp(28px, 3.6vw, 46px);
    /* v1.9.0: the same glass as the home page, approved Nov 15. */
    background: linear-gradient(155deg, rgba(18, 20, 30, 0.52), rgba(10, 12, 20, 0.42));
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(227, 170, 164, 0.62);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(244, 203, 197, 0.24);
}

.glass-card > *:first-child {
    margin-top: 0;
}

.glass-card > *:last-child {
    margin-bottom: 0;
}

.glass-card h2 {
    margin: 0 0 var(--sp-4);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 33px);
    line-height: 1.2;
    color: #fff;
}

.glass-card h3 {
    margin: var(--sp-5) 0 var(--sp-2);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-rose);
}

.glass-card h4 {
    margin: var(--sp-4) 0 var(--sp-2);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.glass-card p {
    margin: 0 0 var(--sp-3);
    font-size: 16px;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.8);
}

.glass-card strong {
    color: #fff;
    font-weight: 600;
}

.glass-card a {
    color: var(--accent-rose-bright);
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 203, 197, 0.32);
}

.glass-card a:hover {
    border-bottom-color: var(--accent-rose-bright);
}

/* A step inside a glass panel: numbered stages, security points, and so on.
   A hairline on the left instead of a box, so the panel stays quiet. */
.glass-step {
    margin: 0 0 var(--sp-4);
    padding-left: var(--sp-4);
    border-left: 1px solid rgba(227, 170, 164, 0.34);
}

.glass-step:last-child {
    margin-bottom: 0;
}

.glass-step h3 {
    margin-top: 0;
}

/* ============================================================== FOOTER */
/* One footer for the whole site. Her details, the quick links, the note on
   compliance, and the verse from Matai. */
body.msla-app footer.site-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: var(--sp-6) var(--sp-6) var(--sp-5);
    background: rgba(8, 11, 18, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-6);
    max-width: 1180px;
    margin: 0 auto;
    margin-bottom: 0;
}

.site-footer .footer-column h4 {
    margin: 0 0 var(--sp-3);
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-rose);
}

.site-footer .footer-column p {
    margin: 0 0 6px;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-column strong {
    color: #fff;
    font-weight: 600;
}

/* Every link in a footer column reads the same, whether it stands alone or
   sits inside a line of contact details. */
.site-footer .footer-column a {
    /* Older per-page stylesheets set every footer link to display:block, which
       split "Email:" from the address onto two lines. Contact links belong on
       the same line as their label. */
    display: inline;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    line-height: 1.9;
    text-decoration: none;
    transition: color 0.16s var(--ease);
}

/* A quick link standing on its own gets its own line. */
.site-footer .footer-column > a {
    display: block;
}

.site-footer .footer-column a:hover {
    color: var(--accent-rose-bright);
}

.site-footer .hidden-admin-link {
    font-size: 12.5px;
    color: var(--text-faint);
}

/* ---------------------------------------------------------- the scripture */
/* The verse is a signature, not a passage. It used to take four tall lines
   and set the whole height of every footer. It is now allowed to run much
   wider and much smaller -- longer across, far shorter down -- so the same
   words are still there and the footer is roughly a third of its old depth.
   The reference sits on the same line as the closing quotation mark rather
   than claiming a line of its own. */
.site-footer .verse-container {
    /* Not a panel down here -- just a hairline and room to breathe, so pages
       that style their own verse boxes do not carry one into the footer. */
    background: none;
    border: 0;
    border-radius: 0;
    max-width: 1180px;
    margin: var(--sp-3) auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    padding: var(--sp-2) 0 0;
}

.site-footer .verse-line {
    display: inline;
    font-family: var(--font-display);
    font-size: clamp(11px, 1vw, 12.5px);
    font-style: italic;
    line-height: 1.55;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.62);
}

/* The wrapper the pages put around the reference used to force a line break
   of its own. Down here it stays on the line the verse ends on. */
.site-footer .verse-container > div:last-child {
    display: inline;
    margin: 0 !important;
}

.site-footer .verse-ref-link {
    display: inline;
    margin: 0 0 0 0.5em;
    font-family: var(--font-ui);
    font-size: 10.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(227, 170, 164, 0.78);
    text-decoration: none;
}

.site-footer .verse-ref-link:hover {
    color: var(--accent-rose-bright);
}

/* ------------------------------------------------------------ bottom line */
.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: var(--sp-4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-faint);
    margin-top: var(--sp-5);
}

.site-footer .footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
}

/* The legal layer mounts itself into whatever footer is on the page, so it
   only needs its top edge softened to match this one. */
body.msla-app footer.site-footer .msla-legal-foot {
    max-width: 1180px;
    margin: var(--sp-4) auto 0;
    padding: var(--sp-3) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
    .page-nav {
        padding: var(--sp-3) var(--sp-4);
        flex-direction: column;
        gap: var(--sp-3);
    }

    .page-body {
        padding: var(--sp-5) var(--sp-4) var(--sp-6);
    }

    .glass-card {
        padding: 26px 22px;
    }

    body.msla-app footer.site-footer {
        padding: var(--sp-5) var(--sp-4) var(--sp-4);
        text-align: center;
    }

    /* v1.9.0: on a phone the footer reads down the middle, like the verse. */
    .site-footer .footer-content,
    .site-footer .footer-column {
        text-align: center;
        justify-items: center;
    }
}

/* ------------------------------------------------- accordions inside glass */
/* The About page explains itself in stages. Collapsed by default so the page
   stays calm, opened by whoever wants the detail. */
/* No boxes inside the glass -- a panel within a panel muddies the surface.
   Each stage is separated by a hairline instead. */
.glass-card details {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card details[open] {
    background: none;
    border-color: rgba(255, 255, 255, 0.07);
}

.glass-card details:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 17px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-ui);
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    transition: color 0.16s var(--ease);
}

.glass-card summary::-webkit-details-marker {
    display: none;
}

.glass-card summary:hover {
    color: var(--accent-rose-bright);
}

/* A plus that becomes a minus, so the control explains itself. */
.glass-card summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1em;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    color: var(--accent-rose);
    transform: none;
    transition: color 0.16s var(--ease);
}

.glass-card details[open] summary::after {
    content: '\2013';
    transform: none;
}

.glass-card details p {
    margin: 0;
    padding: 0 0 18px;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.78);
}

/* ===================================================== MOUNTAINS EVERYWHERE */
/* Pages that are not built on .page-shell (the two thank-you pages, the
   attorney feed and the Control Room) put the landscape BEHIND their own
   layout instead of re-nesting it. z-index -1 paints it above the body
   colour but beneath every panel, so no existing layout had to move. */
.page-still--behind {
    z-index: -1;
}

/* The live screens hold text people read for hours. Same mountains, a deeper
   veil, so the feed stays as easy to read as it was on a plain background. */
.page-still--live::after {
    background:
        radial-gradient(1300px 820px at 50% 35%, rgba(9, 12, 20, 0.08), rgba(7, 10, 17, 0.48) 82%),
        linear-gradient(180deg, rgba(7, 10, 17, 0.20) 0%, rgba(7, 10, 17, 0.28) 100%);
}

/* The thank-you card, turned into the same glass as the rest of the site. */
.thanks-shell .card {
    background: rgba(10, 14, 23, 0.42);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}
