/* === INTERNATIONAL BUREAU OF STAIR LICENSING === */
/* Soviet propaganda meets DMV brutalism */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a0a0a;
    color: #e8d8c8;
    font-family: "Times New Roman", "Palatino", serif;
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: #ff6b35;
    text-decoration: none;
}
a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Alert Banner --- */
.alert-banner {
    background: #cc0000;
    color: #ffd700;
    text-align: center;
    padding: 10px 16px;
    font-family: "Arial Black", "Impact", sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 4px solid #ffd700;
}

/* --- Header --- */
.site-header {
    text-align: center;
    padding: 48px 16px 32px;
    border-bottom: 6px double #cc0000;
    background: linear-gradient(180deg, #2a0a0a 0%, #1a0a0a 100%);
}
.seal {
    font-size: 14px;
    color: #cc0000;
    letter-spacing: 6px;
    margin-bottom: 16px;
    font-family: "Courier New", monospace;
}
.site-header h1 {
    font-family: "Arial Black", "Impact", sans-serif;
    font-size: clamp(28px, 5vw, 52px);
    color: #cc0000;
    letter-spacing: 4px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #500000;
    margin-bottom: 12px;
}
.motto {
    font-style: italic;
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 8px;
}
.est {
    font-size: 12px;
    color: #888070;
    letter-spacing: 2px;
}

/* --- Nav --- */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 3px solid #3a1a1a;
    background: #0e0606;
}
.site-nav a {
    color: #cc0000;
    font-family: "Courier New", monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 6px 12px;
    border: 1px solid #3a1a1a;
    transition: all 0.2s;
}
.site-nav a:hover {
    background: #cc0000;
    color: #ffd700;
    text-decoration: none;
    border-color: #cc0000;
}

/* --- Panels --- */
.panel {
    margin: 32px 0;
    border: 2px solid #5a2a2a;
    background: #120808;
}
.section-head {
    background: #cc0000;
    color: #ffd700;
    font-family: "Arial Black", "Impact", sans-serif;
    font-size: 16px;
    padding: 12px 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 3px solid #ffd700;
}
.panel-body {
    padding: 24px;
}
.panel-body p {
    margin-bottom: 14px;
}
.intro {
    font-style: italic;
    color: #a09080;
    border-left: 3px solid #cc0000;
    padding-left: 16px;
    margin-bottom: 20px !important;
}

/* --- Memo Header --- */
.memo-header {
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #a09080;
    border: 1px dashed #3a2a2a;
    padding: 12px 16px;
    margin-bottom: 20px;
    line-height: 2;
}
.sig {
    margin-top: 20px;
    font-style: italic;
    color: #a09080;
    border-top: 1px solid #3a2a2a;
    padding-top: 16px;
}

/* --- Form Grid --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.form-card {
    border: 2px solid #5a2a2a;
    padding: 16px;
    background: #1a0c0c;
}
.form-num {
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #cc0000;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.form-name {
    font-weight: bold;
    font-size: 16px;
    color: #ffd700;
    margin-bottom: 8px;
}
.form-card p {
    font-size: 14px;
    color: #b0a090;
    margin-bottom: 12px;
}
.form-status {
    font-family: "Courier New", monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 4px 10px;
    display: inline-block;
}
.status-required { background: #cc0000; color: #ffd700; }
.status-pending { background: #806000; color: #ffd700; }
.status-critical { background: #ffd700; color: #1a0a0a; }

/* --- Violations Table --- */
.violations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 12px;
}
.violations-table th {
    background: #3a1a1a;
    color: #ffd700;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #cc0000;
}
.violations-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #2a1a1a;
    vertical-align: top;
}
.violations-table tr:hover {
    background: #1e0e0e;
}
.sev-med { color: #ffa500; font-weight: bold; }
.sev-high { color: #ff4444; font-weight: bold; }
.sev-crit { color: #ffd700; font-weight: bold; background: #cc0000; padding: 2px 6px; }

/* --- Inspection Reports --- */
.report {
    border: 1px solid #3a2a2a;
    padding: 16px;
    margin-bottom: 16px;
    background: #0e0808;
}
.report-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.report-id {
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #cc0000;
    letter-spacing: 1px;
}
.report-grade {
    font-family: "Courier New", monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 4px 10px;
}
.grade-fail { background: #cc0000; color: #fff; }
.grade-conditional { background: #ffa500; color: #1a0a0a; }
.grade-pass { background: #2e7d32; color: #fff; }
.report-loc {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    font-family: "Courier New", monospace;
}
.report p {
    font-size: 15px;
    color: #c0b0a0;
}
.report-assessor {
    margin-top: 12px;
    font-style: italic;
    font-size: 13px;
    color: #807060;
}

/* --- FAQ --- */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #3a2a2a;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 6px;
    font-size: 16px;
}
.faq-a {
    color: #b0a090;
    padding-left: 20px;
}

/* --- Testimonials --- */
.testimonial {
    border-left: 4px solid #cc0000;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #0e0808;
}
.t-text {
    font-style: italic;
    color: #c0b0a0;
    font-size: 15px;
    margin-bottom: 8px !important;
}
.t-author {
    font-size: 13px;
    color: #807060;
    text-align: right;
}

/* --- Alert Cards --- */
.alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.alert-card {
    padding: 16px;
    border: 2px solid;
}
.alert-level {
    font-family: "Arial Black", "Impact", sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 4px;
}
.alert-name {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 8px;
}
.alert-card p {
    font-size: 14px;
    margin-bottom: 0 !important;
}
.alert-red {
    border-color: #cc0000;
    background: #2a0808;
}
.alert-red .alert-level { color: #ff4444; }
.alert-red .alert-name { color: #ff6666; }
.alert-red p { color: #c08080; }

.alert-orange {
    border-color: #ff6b35;
    background: #2a1608;
}
.alert-orange .alert-level { color: #ff6b35; }
.alert-orange .alert-name { color: #ffa060; }
.alert-orange p { color: #c0a080; }

.alert-yellow {
    border-color: #ffd700;
    background: #2a2408;
}
.alert-yellow .alert-level { color: #ffd700; }
.alert-yellow .alert-name { color: #ffe44d; }
.alert-yellow p { color: #c0b080; }

.alert-green {
    border-color: #2e7d32;
    background: #082a0a;
}
.alert-green .alert-level { color: #4caf50; }
.alert-green .alert-name { color: #66bb6a; }
.alert-green p { color: #80c080; }

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 32px 16px;
    border-top: 6px double #cc0000;
    margin-top: 40px;
    color: #807060;
    font-size: 14px;
}
.site-footer .seal {
    margin-bottom: 12px;
}
.site-footer p {
    margin-bottom: 6px;
}
.footer-links {
    margin-top: 8px;
}
.footer-links a {
    color: #cc0000;
}
.footer-small {
    font-size: 11px;
    color: #605040;
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .site-header h1 { letter-spacing: 1px; }
    .site-nav { gap: 2px; }
    .site-nav a { font-size: 11px; padding: 4px 8px; }
    .panel-body { padding: 16px; }
    .form-grid, .alert-grid { grid-template-columns: 1fr; }
    .violations-table { font-size: 12px; }
    .violations-table th, .violations-table td { padding: 6px 8px; }
    .report-head { flex-direction: column; }
}
