/* SICHERHEITS-FIX: Verhindert, dass Hero-Ebenen Klicks auf der restlichen Seite blockieren */
.lab-grid-overlay, 
.scanning-beam, 
.chamber-bg-fx,
.lab-grid-overlay::after {
    pointer-events: none !important;
}

#s4-hero-lab {
    pointer-events: none; /* Hero selbst fängt nichts ab... */
}

.hero-wrapper, .scroll-prompt, .nav-item, .probe-btn, .diag-btn, input[type="range"] {
    pointer-events: auto !important; /* ...außer die echten interaktiven Elemente */
}

/* Debugger-Container Priorität */
.debugger-terminal {
    position: relative;
    z-index: 100;
}

/* --- SECTION 1: AUDIT GRID --- */
.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.audit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--s3-primary);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.audit-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    font-weight: bold;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border: 1px solid #cbd5e1;
}

.audit-card h3 {
    font-size: 1.1rem;
    margin: 0;
    border: none;
    color: var(--s3-primary);
}

.audit-body {
    padding: 20px;
}

.status-box {
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.status-box.success {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.status-box.warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.status-box.danger {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.mission-instruction {
    font-size: 0.85rem;
    color: #475569;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.mission-instruction strong {
    color: var(--s3-accent);
}

/* --- S4 HERO: LABORATORY OF PRECISION --- */
#s4-hero-lab {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: radial-gradient(circle at center, #003560 0%, #001a30 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

/* Dynamic Grid Background */
.lab-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 115, 160, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 115, 160, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, black, transparent 80%);
}

/* Scanning Beam Animation */
.scanning-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 115, 160, 0.2), transparent);
    transform: skewX(-20deg);
    animation: scan 6s infinite linear;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.hero-wrapper {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 0 2rem;
}

/* Mission Indicators */
.mission-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-indicator {
    background: var(--s3-accent);
    padding: 4px 12px;
    font-family: monospace;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 2px;
}

.status-badge {
    border: 1px solid rgba(0, 115, 160, 0.5);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

/* Typography */
#s4-hero-lab h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    border: none;
    /* Reset master style */
    color: white;
    text-shadow: 0 0 20px rgba(0, 115, 160, 0.5);
}

.hero-lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Focusing Effect for the "Sugar" */
.highlight-blur {
    color: var(--s3-secondary);
    font-weight: bold;
    filter: blur(4px);
    transition: filter 1s ease;
    cursor: default;
}

#s4-hero-lab:hover .highlight-blur {
    filter: blur(0);
}

/* Progress Path Visual */
.lab-progress-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.path-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
}

.path-node.completed,
.path-node.current {
    opacity: 1;
}

.path-node span {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.path-node.current span {
    background: var(--s3-secondary);
    box-shadow: 0 0 20px var(--s3-secondary);
    border: none;
}

.path-node label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.path-connector {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.path-connector.active {
    background: linear-gradient(90deg, var(--s3-secondary), transparent);
}

/* Scroll Mouse Icon */
.scroll-prompt {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid white;
    border-radius: 10px;
    position: relative;
}

.mouse::after {
    content: "";
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* --- SECTION 3: VERTICAL SPECIFICATION --- */
.spec-workstation {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    background: #001a30;
    border: 1px solid #0073a0;
    border-radius: 8px;
    min-height: 700px;
}

.spec-nav {
    background: rgba(0, 53, 96, 0.3);
    border-right: 1px solid #0073a0;
    display: flex;
    flex-direction: column;
}

/* Master Display Area */
.spec-display {
    padding: 40px;
    background-image: linear-gradient(rgba(0, 115, 160, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 115, 160, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Vertical Block Logic */
.spec-block {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 115, 160, 0.3);
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 4px;
}

/* Visual Connector Line */
.spec-block:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 40px;
    width: 2px;
    height: 40px;
    background: repeating-linear-gradient(to bottom, #00d2ff, #00d2ff 5px, transparent 5px, transparent 10px);
}

.spec-block h4 {
    color: #00d2ff;
    font-family: monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-block h4::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: rgba(0, 210, 255, 0.2);
}

/* Variable Items */
.spec-var-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.spec-var-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
}

.spec-var-card .var-title {
    font-weight: bold;
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
}

.spec-var-card .dim-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dim-badge {
    font-size: 0.7rem;
    background: rgba(0, 115, 160, 0.2);
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 115, 160, 0.4);
}

/* System Alert Styling */
.system-alert-block {
    border: 1px solid var(--s3-accent);
    background: rgba(232, 95, 62, 0.05);
    padding: 15px;
    color: var(--s3-accent);
    font-size: 0.85rem;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}


.nav-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 115, 160, 0.3);
    color: #cbd5e1;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.nav-item.active {
    background: rgba(0, 115, 160, 0.2);
    color: #00d2ff;
    border-left: 4px solid #00d2ff;
}

/* --- SECTION 4: DEFINITION FORGE --- */
.forge-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 40px;
}

.optics-station {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 53, 96, 0.05);
}

.lens-view {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 200px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #cbd5e1;
}

#forge-text-display {
    padding: 30px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--s3-primary);
    transition: filter 0.3s ease, color 0.3s ease;
    line-height: 1.5;
}

.forge-blur {
    filter: blur(6px);
    color: #94a3b8;
}

.lens-glint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

/* Slider Styling */
.optics-controls {
    width: 100%;
    max-width: 400px;
}

.optics-controls label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 15px;
    text-align: center;
}

#focus-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--s3-secondary);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 8px;
}

/* Rule Cards */
.forge-rules {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-card {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.rule-card:hover {
    transform: translateX(5px);
}

.rule-icon {
    font-size: 1.5rem;
}

.rule-card h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--s3-primary);
    border: none;
}

.rule-card p {
    font-size: 0.8rem;
    margin: 0;
    color: #64748b;
    line-height: 1.4;
}

/* --- SECTION 5: PITFALL SCANNER --- */
.scanner-workstation {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    background: #001a30;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--s3-secondary);
}

.scanner-display {
    position: relative;
    background: #000b14;
    height: 250px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--s3-secondary);
    box-shadow: 0 0 15px var(--s3-secondary);
    opacity: 0.5;
    animation: scanVertical 4s infinite ease-in-out;
}

@keyframes scanVertical {

    0%,
    100% {
        top: 0;
    }

    50% {
        top: 100%;
    }
}

#active-error-text {
    font-family: 'Courier New', Courier, monospace;
    color: #00d2ff;
    font-size: 1.1rem;
    text-align: center;
    z-index: 2;
}

#diagnostic-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(232, 95, 62, 0.9);
    color: white;
    padding: 15px;
    border-radius: 4px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

#diagnostic-overlay.visible {
    transform: translateY(0);
    opacity: 1;
}

.error-tag {
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    background: white;
    color: var(--s3-accent);
    display: inline-block;
    padding: 2px 6px;
}

.test-objects {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.test-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #cbd5e1;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-btn:hover {
    background: rgba(0, 210, 255, 0.1);
}

.test-btn.active {
    border-color: var(--s3-accent);
    background: rgba(232, 95, 62, 0.1);
    color: white;
}

/* --- SECTION 6: MISSION BRIEFING --- */
.mission-briefing-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-top: 5px solid var(--s3-primary);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.briefing-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.briefing-id {
    background: var(--s3-primary);
    color: white;
    font-family: monospace;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
}

.dossier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.dossier-task h4 {
    color: var(--s3-secondary);
    border: none;
    margin-bottom: 10px;
}

.submission-specs {
    display: flex;
    justify-content: space-around;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.spec-item {
    font-weight: bold;
    color: var(--s3-primary);
    font-size: 0.9rem;
}

.pro-tip-box {
    margin-top: 30px;
    padding: 20px;
    background: #fffdf0;
    border-left: 4px solid #f1c40f;
    border-radius: 0 4px 4px 0;
}

/* --- SECTION 5: LOGIC DEBUGGER TERMINAL --- */
.debugger-terminal {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    background: #000b14;
    border: 1px solid #00d2ff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.1);
}

.terminal-sidebar {
    background: rgba(0, 53, 96, 0.4);
    border-right: 1px solid #00d2ff;
    padding: 20px;
}

.sidebar-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.probe-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: #cbd5e1;
    padding: 12px;
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.probe-btn.active {
    background: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
    color: #00d2ff;
}

/* Terminal Window */
.terminal-main {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.terminal-window {
    background: #011627;
    border-radius: 6px;
    border: 1px solid #1e293b;
    overflow: hidden;
}

.window-header {
    background: #1e293b;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-header .dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.window-title { font-size: 0.65rem; color: #94a3b8; font-family: monospace; }

.window-content {
    padding: 30px;
    min-height: 120px;
    font-family: 'Courier New', Courier, monospace;
    color: #00d2ff;
    line-height: 1.6;
    position: relative;
}

.hidden-highlight {
    position: absolute;
    background: rgba(232, 95, 62, 0.2);
    border-bottom: 2px solid var(--s3-accent);
    pointer-events: none;
    display: none;
}

/* Diagnostic Buttons */
.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.diag-btn {
    background: #001a30;
    border: 1px solid #003560;
    color: #94a3b8;
    padding: 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.diag-btn:hover { border-color: #00d2ff; color: white; }
.diag-btn.correct { background: rgba(34, 197, 94, 0.1); border-color: #22c55e; color: #22c55e; }
.diag-btn.wrong { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; color: #ef4444; }

/* Feedback Box */
#debugger-feedback {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 20px;
    border-radius: 4px;
    display: none;
    color: rgb(230, 230, 230);
}

#debugger-feedback.visible { display: block; animation: fadeInUp 0.3s forwards; }

.correction-box {
    margin-top: 15px;
    padding: 10px;
    background: rgba(34, 197, 94, 0.05);
    border-left: 3px solid #22c55e;
    font-size: 0.85rem;
}

/* --- DEBUGGER FIXES --- */
#s4-logic-debugger {
    position: relative;
    z-index: 50; /* Ensure it stays above Hero parallax layers */
}

.debugger-terminal {
    pointer-events: all; /* Force interactivity */
    user-select: none;
}

.terminal-sidebar, .terminal-main {
    z-index: 60;
}

.probe-btn, .diag-btn {
    pointer-events: auto; /* Ensure buttons are clickable */
    position: relative;
    z-index: 70;
}

/* Add a hover effect to buttons to prove they are alive */
.probe-btn:hover {
    background: rgba(0, 210, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.1);
}

.diag-btn:active {
    transform: scale(0.98);
}

/* --- SECTION 4.5: COMPLEXITY SIZER --- */
.sizer-workstation {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 4px 20px rgba(0, 53, 96, 0.05);
}

.sizer-display {
    text-align: center;
    margin-bottom: 30px;
}

#probe-card {
    background: white;
    border: 2px solid #003560;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    min-width: 300px;
    margin-bottom: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.probe-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

#probe-card h3 {
    margin: 10px 0 0 0;
    color: #003560;
    font-size: 1.8rem;
    border: none;
}

.sizer-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.size-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.size-btn .icon { font-size: 2rem; margin-bottom: 10px; }
.size-btn .label { color: #003560; margin-bottom: 5px; }
.size-btn .desc { font-size: 0.75rem; color: #64748b; }

.size-btn.atom:hover { border-color: #34d399; background: #ecfdf5; }
.size-btn.molecule:hover { border-color: #60a5fa; background: #eff6ff; }

/* Feedback Styles */
#sizer-feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

#sizer-feedback.visible { opacity: 1; transform: translateY(0); }

#sizer-feedback.correct { background: #dcfce7; border: 1px solid #22c55e; color: #166534; }
#sizer-feedback.wrong { background: #fee2e2; border: 1px solid #ef4444; color: #991b1b; }

.feedback-icon { font-size: 2rem; }

.btn-expedition{
    background-color: #001a30;
}

/* --- SECTION 6: MISSION DIRECTIVE --- */
.mission-directive {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 53, 96, 0.08);
    position: relative;
    overflow: hidden;
}

.mission-directive::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--s3-primary), var(--s3-secondary));
}

.directive-header {
    margin-bottom: 40px;
    text-align: center;
}

.mission-stamp {
    display: inline-block;
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 4px 12px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.7rem;
    transform: rotate(-2deg);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.directive-id {
    background: var(--s3-primary);
    color: white;
    font-family: monospace;
    padding: 8px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
}

.mission-directive h1 {
    margin: 0;
    border-bottom: none;
    font-size: 2.2rem;
    color: var(--s3-primary);
}

.cyan-text { color: var(--s3-secondary); }

.directive-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #64748b;
    font-size: 1.1rem;
}

/* Tasks Grid */
.directive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.directive-phase {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.directive-phase:hover {
    transform: translateY(-5px);
    border-color: var(--s3-secondary);
}

.phase-number {
    font-family: monospace;
    color: var(--s3-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.directive-phase h4 {
    margin: 0 0 15px 0;
    color: var(--s3-primary);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--s3-secondary);
    display: inline-block;
}

.directive-phase ul {
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #475569;
}

.directive-phase li {
    margin-bottom: 10px;
    line-height: 1.4;
    position: relative;
    padding-left: 20px;
}

.directive-phase li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--s3-secondary);
}

/* Exclusion Zone */
.exclusion-zone {
    background: #fff1f2;
    border: 2px dashed #fb7185;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.exclusion-icon { font-size: 2.5rem; }

.exclusion-content strong {
    color: #9f1239;
    display: block;
    margin-bottom: 5px;
}

.exclusion-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #be123c;
}

/* Deliverables Footer */
.directive-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.deliverable-card {
    text-align: center;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 6px;
}

.deliverable-card.accent {
    background: var(--s3-primary);
    color: white;
}

.deliverable-card.accent .label { color: var(--s3-secondary); }

.deliverable-card .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.deliverable-card .value {
    font-weight: bold;
    font-size: 1rem;
}

.excellence-check {
    margin-top: 30px;
    font-size: 0.85rem;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}