/* public_interface_tree.css */

:root {
    --pi-forest: #165b38;
    --pi-dark: #0f3e26;
    --pi-emerald: #10b981;
    --pi-gold: #fbbf24;
    --pi-red: #ef4444;
    --pi-blue: #3b82f6;
    --pi-text: #334155;
    --pi-light: #f8fafc;
    --pi-border: #e2e8f0;
}

.pi-page {
    background: #f1f5f9;
    min-height: 100vh;
    padding-bottom: 100px;
}

.pi-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 50px;
}

/* ── COMMON TITLES ── */
.pi-section-title { font-size: 1.8rem; font-weight: 900; color: var(--pi-dark); margin-bottom: 15px; }
.pi-title-bar { height: 4px; width: 60px; background: var(--pi-gold); border-radius: 2px; margin-bottom: 25px; }
.pi-section-title.center { text-align: center; }
.pi-title-bar.center { margin: 0 auto 25px auto; }

/* ── INTRO BOX ── */
.pi-intro-box {
    background: #fff; border-radius: 16px; padding: 35px 40px;
    display: flex; gap: 25px; align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--pi-border);
    margin-bottom: 60px;
}
.pi-intro-icon {
    font-size: 2.5rem; color: var(--pi-forest); background: #ecfdf5;
    width: 70px; height: 70px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; flex-shrink: 0;
}
.pi-intro-content h3 { font-size: 1.5rem; font-weight: 800; color: var(--pi-dark); margin-bottom: 15px; }
.pi-intro-content p { font-size: 1.05rem; line-height: 1.8; color: var(--pi-text); margin: 0; }
.pi-intro-content strong { color: var(--pi-forest); font-weight: 700; }

@media (max-width: 700px) {
    .pi-intro-box { flex-direction: column; text-align: center; align-items: center; }
}

/* ── GUIDELINES GRID ── */
.pi-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px;
    margin-bottom: 60px;
}
.pi-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02); border: 1px solid var(--pi-border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.pi-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.pi-card-header {
    padding: 20px 25px; display: flex; align-items: center; gap: 15px;
    color: #fff; font-weight: 700; font-size: 1.15rem;
}
.pi-card-header i { font-size: 1.5rem; }

/* Custom Colors for Cards */
.pi-card.scope .pi-card-header { background: var(--pi-forest); }
.pi-card.process .pi-card-header { background: var(--pi-blue); }
.pi-card.allow .pi-card-header { background: var(--pi-emerald); }
.pi-card.condition .pi-card-header { background: var(--pi-gold); color: var(--pi-dark); }

.pi-card-body { padding: 25px; }
.pi-card-body p { font-size: 0.95rem; line-height: 1.7; color: var(--pi-text); margin-bottom: 15px; }
.pi-card-body p:last-child { margin-bottom: 0; }
.pi-card-body strong { color: var(--pi-dark); }

.pi-list { margin: 0; padding-left: 20px; list-style-type: disc; color: var(--pi-text); }
.pi-list li { margin-bottom: 8px; font-size: 0.95rem; line-height: 1.5; }

.pi-highlight {
    background: #fefce8; border-left: 4px solid var(--pi-gold);
    padding: 15px; border-radius: 0 8px 8px 0; font-size: 0.95rem;
    font-weight: 600; color: #854d0e; line-height: 1.5; margin-top: 15px;
}

@media (max-width: 800px) { .pi-grid { grid-template-columns: 1fr; } }

/* ── ENFORCEMENT PANELS ── */
.pi-enforcement-wrap {
    display: flex; flex-direction: column; gap: 25px;
}
.pi-enf-box {
    background: #fff; border-radius: 16px; padding: 30px;
    border-left: 5px solid transparent; box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.pi-enf-box h5 { font-size: 1.25rem; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.pi-enf-box p { font-size: 1rem; line-height: 1.7; color: var(--pi-text); margin-bottom: 20px; }

/* Danger Box */
.pi-enf-box.danger { border-left-color: var(--pi-red); background: #fef2f2; border-right: 1px solid #fecaca; border-top: 1px solid #fecaca; border-bottom: 1px solid #fecaca; }
.pi-enf-box.danger h5 { color: #991b1b; }
.pi-penalty-list { display: flex; flex-direction: column; gap: 10px; }
.pi-penalty-list span { display: flex; align-items: center; gap: 10px; color: #b91c1c; font-weight: 600; font-size: 0.95rem; }

/* Police/Enforcement Box */
.pi-enf-box.police { border-left-color: var(--pi-dark); }
.pi-enf-box.police h5 { color: var(--pi-dark); }
.pi-officer-tags { display: flex; gap: 15px; flex-wrap: wrap; }
.pi-tag {
    display: inline-flex; flex-direction: column; background: #f1f5f9;
    padding: 12px 20px; border-radius: 12px; border: 1px solid var(--pi-border);
    font-weight: 800; font-size: 1.05rem;
}
.pi-tag span { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.pi-tag.forest { color: var(--pi-forest); border-color: var(--pi-forest); background: #ecfdf5; }
.pi-tag.police { color: var(--pi-blue); border-color: var(--pi-blue); background: #eff6ff; }
