:root {
    --ink: #15231e;
    --muted: #65756e;
    --line: #dce7e1;
    --paper: #f4f8f6;
    --white: #ffffff;
    --green-950: #082b21;
    --green-800: #15543f;
    --green-600: #2d8c64;
    --green-100: #e3f4ec;
    --amber: #b7791f;
    --amber-bg: #fff5dc;
    --red: #c64a50;
    --red-bg: #fdebec;
    --blue: #3e77a8;
    --blue-bg: #eaf3fb;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #edf5f1 0, var(--paper) 320px); }
a { color: inherit; }
.shell { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: rgba(8, 43, 33, .98); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand small { color: #9fc6b6; font-size: 11px; margin-top: 2px; text-transform: uppercase; letter-spacing: .12em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 9px; transform: rotate(-3deg); }
.brand-mark span { width: 17px; height: 9px; border-left: 3px solid #7ed7af; border-bottom: 3px solid #7ed7af; transform: rotate(-45deg) translate(1px, -1px); }
nav { display: flex; gap: 6px; }
nav a { color: #bad2c8; text-decoration: none; padding: 10px 13px; border-radius: 8px; font-size: 14px; }
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,.1); }

.main-content { padding-block: 48px 72px; }
.hero { color: #fff; border-radius: 18px; padding: 38px 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; box-shadow: 0 18px 42px rgba(16, 57, 43, .12); }
.status-operacional { background: linear-gradient(125deg, #176045, #338d66); }
.status-manutencao { background: linear-gradient(125deg, #305f85, #548cb7); }
.status-degradado { background: linear-gradient(125deg, #865812, #c2862a); }
.status-indisponivel { background: linear-gradient(125deg, #8d3138, #c65359); }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; font-size: 11px; color: var(--green-600); margin-bottom: 10px; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero h1 { margin: 0; max-width: 660px; font-size: clamp(26px, 4vw, 38px); line-height: 1.12; font-weight: 650; }
.hero p { margin: 14px 0 0; max-width: 650px; color: rgba(255,255,255,.77); line-height: 1.6; }
.overall-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.11); border-radius: 999px; font-size: 13px; font-weight: 700; }
.overall-pill i { width: 8px; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.13); }

.section-heading { margin: 42px 0 16px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2, .page-intro h1 { margin: 0; font-size: 25px; }
.section-heading p, .page-intro p { color: var(--muted); margin: 0; font-size: 13px; }
.component-list { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(26, 70, 53, .05); }
.component-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.component-row:last-child { border-bottom: 0; }
.component-copy { display: flex; align-items: center; gap: 14px; }
.component-copy h3, .incident-title h3, .incident-title h2 { margin: 0; font-size: 15px; }
.component-copy p, .incident-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.state-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 5px var(--green-100); }
.state-label { font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 999px; color: var(--green-800); background: var(--green-100); }
.state-indisponivel { color: var(--red); background: var(--red-bg); }
.state-dot.state-indisponivel { background: var(--red); box-shadow: 0 0 0 5px var(--red-bg); }
.state-degradado { color: var(--amber); background: var(--amber-bg); }
.state-dot.state-degradado { background: var(--amber); box-shadow: 0 0 0 5px var(--amber-bg); }
.state-manutencao { color: var(--blue); background: var(--blue-bg); }
.state-dot.state-manutencao { background: var(--blue); box-shadow: 0 0 0 5px var(--blue-bg); }

.incidents-heading { margin-top: 48px; }
.text-link { color: var(--green-800); font-weight: 700; font-size: 13px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.timeline { display: grid; gap: 12px; }
.incident-card { display: grid; grid-template-columns: 15px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.incident-icon { width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.incident-icon.resolved { background: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.incident-title { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.incident-title span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.incident-card small { color: #84918c; display: block; margin-top: 10px; }
.empty-state { padding: 36px 22px; text-align: center; background: #fff; border: 1px dashed #c8d8d0; border-radius: 12px; }
.component-list .empty-state { border: 0; border-radius: 0; }
.empty-state.compact { padding: 28px; }
.empty-state h2, .empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.page-intro { margin-bottom: 28px; }
.page-intro p { margin-top: 12px; max-width: 660px; line-height: 1.6; }
.history-list { margin-top: 24px; }
.pagination { margin-top: 24px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.pagination a, .pagination span { border: 1px solid var(--line); background: #fff; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.pagination span { color: #a2ada8; }
.pagination strong { font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner a { color: var(--green-800); text-decoration: none; font-weight: 700; }

@media (max-width: 700px) {
    .shell { width: min(100% - 28px, 1040px); }
    .header-inner { min-height: 68px; }
    .brand small { display: none; }
    nav a { padding: 9px 8px; font-size: 12px; }
    .main-content { padding-block: 28px 52px; }
    .hero { padding: 27px 24px; display: block; }
    .overall-pill { margin-top: 24px; }
    .section-heading { align-items: start; display: block; }
    .section-heading p, .section-heading .text-link { display: inline-block; margin-top: 10px; }
    .component-row { align-items: start; padding: 17px; }
    .component-copy { align-items: start; }
    .state-label { font-size: 0; width: 10px; height: 10px; padding: 0; margin-top: 4px; }
    .incident-title { display: block; }
    .incident-title span { display: inline-block; margin-top: 6px; }
    .footer-inner { display: block; padding-block: 20px; }
    .footer-inner a { display: block; margin-top: 7px; }
}
