* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --ink: #17231d;
    --muted: #718078;
    --soft: #f4f7f5;
    --line: #e2e9e5;
    --green: #356b51;
    --red: #d64545;
    --red-light: #fdf0f0;
    --white: #ffffff;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.5;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}
/* HEADER */
.site-header {
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.7px;
}
.logo-mark {
    position: relative;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
}
.logo-mark i {
    position: absolute;
    display: block;
    border: 1.5px solid var(--red);
    border-radius: 50%;
}
.logo-mark i:nth-child(1) {
    width: 7px;
    height: 7px;
    background: var(--red);
}
.logo-mark i:nth-child(2) {
    width: 17px;
    height: 17px;
    opacity: 0.55;
}
.logo-mark i:nth-child(3) {
    width: 27px;
    height: 27px;
    opacity: 0.25;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #69756f;
    font-size: 13px;
    font-weight: 700;
}
.main-nav a:hover {
    color: var(--ink);
}
/* HERO */
.event-hero {
    background:
        radial-gradient(
            circle at 88% 45%,
            rgba(214,69,69,0.08),
            transparent 28%
        ),
        var(--white);
    border-bottom: 1px solid var(--line);
}

.district-breadcrumb{background:var(--white);border-bottom:1px solid var(--line)}
.district-breadcrumb .breadcrumb{min-height:48px;display:flex;align-items:center;gap:7px;font-size:13px;color:#66736c}
.district-breadcrumb .breadcrumb a:hover{color:var(--red)}


.event-grid {
    min-height: 430px;
    display: grid;
    grid-template-columns: 1fr 330px;
    align-items: center;
    gap: 80px;
}
.eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.9px;
}
.event-copy h1 {
    max-width: 760px;
    font-size: clamp(42px, 5.5vw, 68px);
    line-height: 1;
    letter-spacing: -3.5px;
}
.event-copy h1 em {
    display: block;
    margin-top: 8px;
    color: var(--red);
    font-style: normal;
}
.event-date {
    margin-top: 25px;
    color: #596760;
    font-size: 14px;
    font-weight: 700;
}
.event-description {
    max-width: 600px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 14px;
}
/* MAGNITUDE */
.magnitude-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dce5df;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(30,50,40,0.07);
}
.magnitude-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -80px;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(214,69,69,0.18),
        rgba(214,69,69,0) 70%
    );
}
.magnitude-card span {
    color: #929d97;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.magnitude-card strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 25px;
    color: var(--red);
    font-size: 78px;
    line-height: 0.9;
    letter-spacing: -6px;
}
.magnitude-card small {
    display: block;
    margin-top: 15px;
    color: var(--muted);
    font-size: 11px;
}
/* INFO */
.event-info-section {
    background: var(--white);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.info-card {
    min-height: 125px;
    padding: 24px;
    border-right: 1px solid var(--line);
}
.info-card:last-child {
    border-right: 0;
}
.info-card span {
    display: block;
    margin-bottom: 10px;
    color: #9aa59f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
}
.info-card strong {
    font-size: 20px;
    line-height: 1.2;
}
/* SECTIONS */
.map-section,
.location-section,
.nearby-section,
.related-section,
.faq-section {
    padding: 82px 0;
}
.section-header {
    margin-bottom: 27px;
}
.section-header h2 {
    font-size: 31px;
    line-height: 1.05;
    letter-spacing: -1.3px;
}
.section-header p {
    max-width: 650px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}
/* MAP */
.map-section {
    background: var(--soft);
}
.map-container {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(30,50,40,0.07);
}
#earthquake-map {
    width: 100%;
    height: 500px;
}
.map-badge {
    position: absolute;
    z-index: 500;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(220,229,223,0.8);
    border-radius: 7px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    font-size: 9px;
    font-weight: 800;
}
.map-badge i {
    width: 6px;
    height: 6px;
    display: block;
    border-radius: 50%;
    background: var(--red);
}
.map-empty {
    height: 500px;
    display: grid;
    place-items: center;
    color: var(--muted);
}
/* LOCATION */
.location-section {
    background: var(--white);
}
.location-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.location-card {
    min-height: 150px;
    padding: 23px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}
.location-card:hover {
    transform: translateY(-3px);
    border-color: #b9cabe;
}
.location-card span {
    display: block;
    margin-bottom: 12px;
    color: #98a29d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
}
.location-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
}
.location-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}
/* NEARBY */
.nearby-section {
    background: var(--soft);
}
.nearby-section .location-links {
    grid-template-columns: repeat(3, 1fr);
}
.nearby-section .location-card {
    background: var(--white);
}
.nearby-section .location-card span {
    color: var(--red);
}
.nearby-section .location-card strong {
    font-size: 15px;
}
/* RELATED */
.related-section {
    background: var(--white);
}
.related-list {
    border-top: 1px solid var(--line);
}
.related-row {
    min-height: 70px;
    display: grid;
    grid-template-columns: 80px 1fr 150px 25px;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}
.related-row:hover {
    background: var(--soft);
}
.related-row strong {
    color: var(--red);
    font-size: 20px;
}
.related-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.related-row small {
    color: var(--muted);
    font-size: 10px;
}
.related-row b {
    color: #9ca7a2;
    font-size: 17px;
}
.related-row:hover b {
    color: var(--red);
}
/* AFTERSHOCKS */
.aftershock-section {
    padding: 82px 0;
    background: var(--white);
}
.aftershock-list {
    border-top: 1px solid var(--line);
}
.aftershock-row {
    min-height: 70px;
    display: grid;
    grid-template-columns: 80px 1fr 100px 150px 70px;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}
.aftershock-row:hover {
    background: var(--soft);
}
.aftershock-row strong {
    color: var(--red);
    font-size: 20px;
}
.aftershock-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.aftershock-row small {
    color: var(--muted);
    font-size: 10px;
}
.aftershock-row b {
    color: #9ca7a2;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}
.aftershock-note {
    max-width: 760px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}
/* FAQ */
.faq-section {
    background: var(--soft);
}
.faq-container {
    max-width: 820px;
}
.faq-list {
    border-top: 1px solid var(--line);
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-question {
    position: relative;
    padding: 22px 45px 22px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}
.faq-question span {
    position: absolute;
    top: 17px;
    right: 4px;
    color: var(--green);
    font-size: 21px;
    font-weight: 400;
    transition: transform 0.2s ease;
}
.faq-item.open .faq-question span {
    transform: rotate(45deg);
}
.faq-answer {
    display: none;
    padding: 0 45px 22px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}
.faq-item.open .faq-answer {
    display: block;
}
.faq-answer p + p {
    margin-top: 12px;
}
.faq-answer strong {
    color: var(--ink);
}
/* FOOTER */
.site-footer {
    background: #101b16;
    color: #7f9087;
}
.footer-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
}
.footer-logo {
    color: #dce6e1;
    font-size: 13px;
    font-weight: 800;
}
/* TABLET */
@media (max-width: 850px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 60px 0;
    }
    .magnitude-card {
        max-width: 430px;
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-card:nth-child(2) {
        border-right: 0;
    }
    .info-card:nth-child(3),
    .info-card:nth-child(4) {
        border-top: 1px solid var(--line);
    }
    .location-links,
    .nearby-section .location-links {
        grid-template-columns: 1fr;
    }
    .aftershock-row {
        grid-template-columns: 70px 1fr 90px 120px 60px;
        gap: 12px;
    }
}
/* MOBILE */
@media (max-width: 600px) {
    .container {
        width: min(100% - 24px, 1140px);
    }
    .header-inner {
        height: 62px;
    }
    .main-nav {
        display: none;
    }
    .breadcrumb {
        padding-top: 18px;
        overflow: hidden;
        white-space: nowrap;
    }
    .event-grid {
        padding: 48px 0;
    }
    .event-copy h1 {
        font-size: 45px;
        letter-spacing: -2.5px;
    }
    .event-description {
        font-size: 13px;
    }
    .magnitude-card {
        padding: 22px;
    }
    .magnitude-card strong {
        font-size: 62px;
    }
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .info-card {
        min-height: 105px;
        padding: 17px;
    }
    .info-card strong {
        font-size: 16px;
    }
    .map-section,
    .location-section,
    .nearby-section,
    .related-section,
    .faq-section {
        padding: 58px 0;
    }
    .section-header h2 {
        font-size: 27px;
    }
    #earthquake-map {
        height: 420px;
    }
    .map-empty {
        height: 420px;
    }
    .location-card {
        min-height: 135px;
        padding: 19px;
    }
    .nearby-section .location-card {
        min-height: 140px;
    }
    .related-row {
        grid-template-columns: 60px 1fr 20px;
        gap: 10px;
    }
    .related-row small {
        display: none;
    }
    .faq-question {
        padding-right: 40px;
        font-size: 14px;
    }
    .footer-inner {
        min-height: 100px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }
    .aftershock-section {
        padding: 58px 0;
    }
    .aftershock-row {
        grid-template-columns: 55px 1fr 55px;
        gap: 10px;
        padding: 14px 0;
    }
    .aftershock-row small {
        display: none;
    }
    .aftershock-row b {
        font-size: 9px;
    }
}


.popup-content{min-width:190px}
.popup-content strong{display:block;color:var(--red);font-size:16px;line-height:1.2;margin-bottom:5px}
.popup-content span{display:block;color:var(--ink);font-size:13px;font-weight:700;line-height:1.35;margin-bottom:8px}
.popup-content small{display:block;color:var(--muted);font-size:11px;line-height:1.5}
.popup-content a{display:block;margin-top:10px;color:var(--green);font-size:11px;font-weight:800;text-decoration:none}
.popup-content a:hover{color:var(--red)}