:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #152e27; background: #f6f8f6; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #236848; text-underline-offset: 3px; }
button, select, input { font: inherit; accent-color: #236848; }
button, select { border: 1px solid #aebdb3; border-radius: 6px; background: white; color: inherit; padding: 9px 12px; min-height: 44px; }
button { cursor: pointer; }
button:hover { background: #e9f2e9; }
button:disabled, select:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #2478b0; outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: -.03em; margin-bottom: 0; }
h2 { font-size: 1.15rem; margin-bottom: 16px; }
.site-header, .explorer-heading, .explorer, footer { width: min(1280px, 100% - 96px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; border-bottom: 1px solid #dfe6e1; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: #152e27; font-size: 1.3rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav a { position: relative; color: #596b64; font-size: .875rem; font-weight: 600; padding: 12px 0; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: #236848; }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: #236848; }
.header-download { display: inline-flex; align-items: center; gap: 18px; font-size: .875rem; font-weight: 600; padding: 10px 18px; border: 1px solid #dfe6e1; border-radius: 6px; color: #152e27; text-decoration: none; background: #fff; }
.header-download:hover { border-color: #236848; }
.explorer-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 36px 28px; }
.eyebrow { color: #236848; font-size: .75rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 10px; }
.explorer-heading h1 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 650; letter-spacing: -.05em; line-height: 1.15; }
.explorer-heading h1 span { color: #236848; }
.explorer-heading > p { color: #596b64; font-size: .875rem; margin-bottom: 4px; }
.map-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; color: #e5eee8; background: #0c211d; border-radius: 10px 10px 0 0; font-size: .875rem; font-weight: 600; }
.map-heading a { color: #c1eb89; font-size: .8125rem; font-weight: 400; text-decoration: none; }
.explorer { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "controls globe" "events events"; gap: 24px; align-items: start; }
.globe-panel { grid-area: globe; min-width: 0; }
#canvasOne { display: block; width: 100%; height: min(60vh, 620px); min-height: 320px; background: #02080c; border-radius: 0 0 10px 10px; touch-action: none; }
#globeHelp { margin: 10px 0; font-size: .875rem; }
.muted { color: #596b64; font-size: .875rem; }
.controls { grid-area: controls; background: white; border: 1px solid #dfe6e1; border-radius: 10px; padding: 20px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; flex-shrink: 0; }
.filters { display: grid; gap: 6px; margin: 15px 0; }
.filters label, details > label:not(.check) { font-size: .875rem; font-weight: 600; }
select { width: 100%; margin-bottom: 8px; }
#numQuakes { font-size: .9rem; margin-bottom: 8px; }
#feedTime { font-size: .75rem; }
#refreshQuakes { width: 100%; font-size: .875rem; }
details { border-top: 1px solid #dfe6e1; margin-top: 22px; padding-top: 15px; }
summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
details[open] summary { margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 0; margin: 12px 0 18px; list-style: none; font-size: .875rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.quake-symbol { font-size: 1.5rem; line-height: 1; color: #187a3a; }
.quake-symbol.large { color: #b52820; font-size: 1.8rem; }
.volcano-symbol { color: #a15b09; font-size: 1.6rem; }
.event-details, .events-panel { background: white; border: 1px solid #dfe6e1; border-radius: 10px; padding: 22px; }
.event-details h2 { margin-bottom: 8px; }
.event-details p { margin-bottom: 0; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
dt { font-size: .75rem; color: #596b64; }
dd { margin: 2px 0 0; font-size: .9rem; }
.events-panel { grid-area: events; }
.list-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.earthquake-list { margin: 0; padding: 3px; list-style: none; max-height: 480px; overflow: auto; }
.earthquake-list li + li { margin-top: 6px; }
.event-button { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: left; border-color: #dfe6e1; }
.event-button[aria-pressed="true"] { border-color: #236848; background: #e9f2e9; box-shadow: inset 3px 0 #236848; }
.event-button strong { font-size: 1rem; color: #236848; background: #edf4ee; border-radius: 4px; padding: 8px; text-align: center; }
.event-button time { color: #596b64; font-size: .875rem; }
.notice { background: #fff3e4; border-left: 3px solid #a15b09; padding: 14px; }
footer { border-top: 1px solid #dfe6e1; margin-top: 36px; padding-block: 26px; color: #596b64; font-size: .875rem; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { display: block; padding: 12px 24px; }
@media (max-width: 760px) {
    .site-header, .explorer-heading, .explorer, footer { width: calc(100% - 40px); }
    .site-header { flex-wrap: wrap; gap: 0 12px; padding-top: 16px; }
    .site-brand { font-size: 1.2rem; }
    .site-brand img { width: 30px; height: 30px; }
    .header-download { margin-left: auto; font-size: .8125rem; padding: 8px 12px; min-height: 44px; gap: 10px; }
    .site-nav { order: 3; width: 100%; justify-content: space-between; margin-top: 10px; gap: 16px; }
    .site-nav a { padding-block: 12px 14px; }
    .site-nav a[aria-current]::after { bottom: 0; }
    .explorer-heading { display: block; padding-block: 28px 24px; }
    .explorer-heading > p { margin-top: 12px; }
    .map-heading { padding-inline: 16px; }
    .explorer { display: flex; flex-direction: column; gap: 18px; }
    .globe-panel, .controls, .events-panel { width: 100%; }
    #canvasOne { height: auto; min-height: 0; aspect-ratio: 1; }
    .controls, .event-details, .events-panel { padding: 18px; }
    .event-button { grid-template-columns: 56px 1fr; gap: 4px 10px; }
    .event-button time { grid-column: 2; }
    dl { grid-template-columns: 1fr; gap: 10px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
    .site-header, .explorer-heading, .explorer, footer { width: calc(100% - 56px); }
    .site-header { gap: 20px; }
    .site-nav { gap: 22px; }
    .header-download { padding-inline: 12px; gap: 10px; }
    .explorer-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .explorer { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 380px) {
    .site-brand { font-size: 1.0625rem; gap: 7px; }
    .header-download { padding-inline: 9px; gap: 8px; }
    .header-download > span { display: none; }
}

.embedded .site-header, .embedded .explorer-heading, .embedded footer { display: none; }
.embedded .explorer { margin-top: 0; }
