* { margin: 0; padding: 0; }

/* The Tailwind CDN script (loaded on this page) also defines a .container
   class (width:100%, max-width up to 1536px) and injects its stylesheet at
   runtime, so it wins the cascade. Force the site-wide 1000px shell so the
   BOM table matches the width of every other page (e.g. /audit). */
.container {
    width: 90% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.brand-header { margin-bottom: 40px; }
.brand-header h1 {
    font-size: clamp(1.2rem, 5.5vw, 3.2rem);
    text-transform: uppercase;
}

.route-title {
    font-family: var(--font-code);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.route-context { font-size: 1.1rem; color: var(--text-main); margin-bottom: 35px; }

.node-meta { font-size: 0.85rem; color: var(--text-dim); display: block; line-height: 1.4; }

/* --- Evidence-tier classification (SYSTEM BOUNDARY warning + badges) ---- */

.system-boundary-warning {
    border-left: 4px solid #ffaa00;
    background: #fff5e6;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    color: #333;
    text-align: left;
}

.system-boundary-warning h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #cc4400;
    font-family: var(--font-code);
    font-size: 1rem;
}

.system-boundary-warning p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.system-boundary-warning ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tier-badge {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.tier-1 { background: rgba(16, 128, 70, 0.12); color: #0e7a41; }
.tier-2 { background: rgba(var(--brand-blue-rgb), 0.12); color: var(--brand-blue); }
.tier-3 { background: rgba(255, 170, 0, 0.15); color: #a85c00; }

/* --- SYSTEM_LOG / TARGET_URI meta block ---------------------------------- */

.sys-meta-block {
    background: #f4f6f8;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #4b5563;
}

.meta-row { margin-bottom: 0.5rem; }
.meta-row:last-child { margin-bottom: 0; }

.meta-label--log { color: #059669; }
.meta-label--uri { color: #2563eb; }
.meta-value { color: #374151; }

.meta-link {
    color: #2563eb;
    text-decoration: underline;
    word-break: break-all;
}

/* --- Return links: high-contrast, hard to miss --------------------------- */

.return-link {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem 0;
    display: inline-block;
    letter-spacing: 0.5px;
}

#handshake-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#handshake-overlay .log-container {
    width: 90%;
    max-width: 500px;
    height: 300px;
}

#handshake-overlay p {
    margin-top: 20px;
    font-family: var(--font-code);
    color: var(--brand-orange);
}

footer {
    width: 100%;
    background-color: var(--dark-teal);
    padding: 40px 0 60px 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    font-family: var(--font-code);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
