/* ============================================================
   Brownstone Portal — shared shell + portal styles
   Colors come ONLY from /showings/brand-vars.css variables.
   Shell rules mirror the site's canonical page styles verbatim.
   Spec: websitereorg_v2.md (2026-07-17)
   ============================================================ */

body {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    color: #444;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    font-size: 15px;
}
.container { max-width: 1000px; margin: 0 auto; padding: 20px 40px; }
.logo { text-align: center; margin: 20px 0; }
.logo img { max-width: 300px; height: auto; }
h1, h2, h3 { color: var(--brand-red); margin-bottom: 15px; }
a.active { background-color: var(--brand-red); }
.button {
    display: inline-block; background-color: var(--brand-navy); color: white;
    padding: 10px 25px; font-weight: bold; text-decoration: none;
    border: 2px solid #b31919; border-radius: 6px; font-size: 16px; margin-top: 15px;
}
.footer {
    text-align: center; font-size: 13px; color: #777;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid #ddd;
}

/* Mobile Navigation (canonical shell copy) */
.nav-container-mobile { display: none; align-items: center; justify-content: space-between; padding: 12px 20px; background-color: var(--brand-navy); }
.nav-logo-mobile { color: white; font-weight: bold; font-size: 16px; }
.hamburger { width: 30px; height: 25px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburger span { width: 100%; height: 3px; background-color: white; border-radius: 2px; }
.mobile-menu { display: none; position: fixed; top: 0; right: -100%; width: 250px; height: 100vh; background-color: #fff; box-shadow: -2px 0 10px rgba(0,0,0,0.3); z-index: 999; transition: right 0.3s; overflow-y: auto; }
.mobile-menu.active { right: 0; }
.mobile-menu-header { background-color: var(--brand-navy); color: white; padding: 20px; font-weight: bold; font-size: 18px; }
.mobile-menu a { display: block; padding: 15px 20px; color: #333; text-decoration: none; border-bottom: 1px solid #eee; font-weight: 500; }
.mobile-menu a.active { background-color: var(--brand-red); color: white; }
.menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 998; }
.menu-overlay.active { display: block; }

/* Portal child tabs + breadcrumbs are GENERATED by stamp_nav.py (styles emitted inline
   in the NAV region so pages without this stylesheet render them too) — no rules here. */
.portal-cards a:focus-visible, .portal-banner a:focus-visible {
    outline: 3px solid var(--brand-cta); outline-offset: 2px;
}

/* Lifecycle banner */
.portal-banner {
    background-color: var(--banner-peach-bg); border: 1px solid var(--banner-peach-border);
    color: var(--banner-peach-text); border-radius: 8px; padding: 14px 18px;
    margin: 22px 0 8px 0; text-align: center; font-size: 15px;
}
.portal-banner a { color: var(--banner-peach-text); font-weight: bold; }

/* Service cards — each card is ONE link */
.portal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.portal-cards.roles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
.portal-card {
    display: block; border: 1px solid var(--brand-stone); border-radius: 8px;
    padding: 18px 20px; background-color: #fff; text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.portal-card:hover { border-color: var(--brand-cta); box-shadow: 0 2px 8px rgba(38,74,130,0.12); }
.portal-card .card-title { color: var(--brand-navy); font-size: 16px; font-weight: bold; margin-bottom: 6px; }
.portal-card .card-sub { color: #666; font-size: 13px; }
.portal-card .card-domain { color: var(--brand-grey); font-size: 13px; margin-top: 8px; }
.portal-cards.roles .portal-card { padding: 26px 24px; text-align: center; }
.portal-cards.roles .card-title { font-size: 19px; color: var(--brand-red); }

/* Interim-channel note on tool pages */
.interim-note {
    background-color: var(--brand-paper); border: 1px solid var(--brand-stone);
    border-radius: 8px; padding: 14px 18px; margin: 18px 0; font-size: 14px;
}
.back-link { display: inline-block; margin: 10px 0 0 0; font-size: 14px; color: var(--brand-navy); text-decoration: underline; }

@media (max-width: 768px) {
    #desktop-nav { display: none !important; }
    .nav-container-mobile { display: flex !important; }
    .mobile-menu { display: block; }
    body { overflow-x: hidden; }
    .container { padding: 15px 20px; }
}
