/* ------------------------------
   BASIC PAGE SETUP
------------------------------ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f7f9;
    color: #24313d;
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}


/* ------------------------------
   HEADER
------------------------------ */

.site-header {
    background-color: #201952;
    color: white;
    padding: 28px 0;
    border-bottom: 4px solid #005CE3;
}

.brand h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
}

.brand p {
    margin: 4px 0 0;
    font-size: 16px;
    opacity: 0.85;
}


/* ------------------------------
   MAIN CONTENT
------------------------------ */

main {
    padding-top: 40px;
    padding-bottom: 60px;
}


/* ------------------------------
   OVERALL STATUS BANNER
------------------------------ */

.overall-status {
    background-color: #e7f5ec;
    border: 1px solid #b7dfc5;
    border-left: 6px solid #2e9d59;
    border-radius: 8px;
    padding: 24px 28px;
}

.overall-status h2 {
    margin: 0 0 6px;
    color: #237746;
    font-size: 23px;
}

.overall-status p {
    margin: 0;
    color: #43534a;
}


/* ------------------------------
   LAST UPDATED
------------------------------ */

.last-updated {
    margin: 12px 4px 30px;
    color: #6c7881;
    font-size: 14px;
}


/* ------------------------------
   PAGE SECTIONS
------------------------------ */

.status-section {
    margin-bottom: 38px;
}

.status-section > h2 {
    font-size: 20px;
    margin-bottom: 14px;
    color: #24313d;
}


/* ------------------------------
   SERVICE LIST
------------------------------ */

.service-list {
    background-color: white;
    border: 1px solid #dce2e6;
    border-radius: 8px;
    overflow: hidden;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 22px;

    border-bottom: 1px solid #e6eaed;
}

.service-row:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
}

.service-status {
    font-size: 14px;
    font-weight: 600;
}


/* ------------------------------
   STATUS COLORS
------------------------------ */

.service-status.operational {
    color: #2e9d59;
}

.service-status.degraded {
    color: #c98a00;
}

.service-status.partial-outage {
    color: #d36b26;
}

.service-status.major-outage {
    color: #c23c3c;
}

.service-status.maintenance {
    color: #4378a8;
}


/* ------------------------------
   INCIDENT CARDS
------------------------------ */

.incident-card,
.history-day {
    background-color: white;
    border: 1px solid #dce2e6;
    border-radius: 8px;
    padding: 20px 22px;
}

.no-incidents {
    margin: 0;
    color: #63717a;
}

.history-day {
    margin-bottom: 12px;
}

.history-day h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.history-day p {
    margin: 0;
    color: #63717a;
}


/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
    border-top: 1px solid #dce2e6;
    background-color: #201952;
    padding: 22px 0;
    color: white;
    font-size: 13px;
}


/* ------------------------------
   MOBILE DEVICES
------------------------------ */

@media (max-width: 600px) {

    .service-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .overall-status {
        padding: 20px;
    }

    .brand h1 {
        font-size: 20px;
    }

}
/* ------------------------------
   OVERALL STATUS STATES
------------------------------ */

.overall-status.operational {
    background: #eef8f1;
}

.overall-status.operational h2 {
    color: #207345;
}


.overall-status.degraded {
    background: #fff8e8;
}

.overall-status.degraded h2 {
    color: #a66f00;
}


.overall-status.partial-outage {
    background: #fff1e8;
}

.overall-status.partial-outage h2 {
    color: #b65d25;
}


.overall-status.major-outage {
    background: #fdecec;
}

.overall-status.major-outage h2 {
    color: #b43b3b;
}


.overall-status.maintenance {
    background: #edf4fa;
}

.overall-status.maintenance h2 {
    color: #466f92;
}

/* ------------------------------
   ACTIVE INCIDENT
------------------------------ */

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.incident-header h3 {
    margin: 6px 0 12px;

    color: #24313b;

    font-size: 18px;
}

.incident-status {
    display: inline-block;

    padding: 4px 9px;

    background: #fdecec;

    border-radius: 5px;

    color: #b43b3b;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.incident-message {
    margin: 0 0 12px;

    color: #53616b;
}

.incident-updated {
    margin: 0;

    color: #85909a;

    font-size: 13px;
}

/* ------------------------------
   INCIDENT TIMELINE
------------------------------ */

.incident-title h3 {
    margin: 0 0 22px;

    color: #24313b;

    font-size: 19px;
}


.incident-timeline {
    position: relative;
}


.incident-update {
    padding: 0 0 24px 20px;

    margin-left: 4px;

    border-left: 2px solid #e1e6ea;
}


.incident-update:last-child {
    padding-bottom: 0;
}


.incident-update::before {
    content: "";

    position: absolute;

    margin-left: -25px;

    margin-top: 7px;

    width: 8px;

    height: 8px;

    background: #65727d;

    border-radius: 50%;
}


.incident-update-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 6px;
}


.incident-update-status {
    color: #24313b;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}


.incident-update-time {
    color: #85909a;

    font-size: 12px;
}


.incident-update p {
    margin: 0;

    color: #53616b;

    font-size: 14px;
}


/* Mobile incident timeline */

@media (max-width: 650px) {

    .incident-update-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 2px;
    }

}

/* ------------------------------
   INCIDENT HISTORY
------------------------------ */

.history-title {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 18px;
}


.history-title h3 {
    margin: 0;

    font-size: 16px;
}


.history-title span {
    color: #85909a;

    font-size: 12px;
}


.history-update {
    padding: 14px 0;

    border-top: 1px solid #edf0f2;
}


.history-update:first-child {
    border-top: none;

    padding-top: 0;
}


.history-update-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 5px;
}


.history-update-status {
    color: #24313b;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}


.history-update-time {
    color: #85909a;

    font-size: 12px;
}


.history-update p {
    margin: 0;

    color: #65727d;

    font-size: 14px;
}


@media (max-width: 650px) {

    .history-title {
        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }

}