:root {
  --bg: #f7f8fa; --card: #ffffff; --text: #1c2733; --muted: #5b6b7b;
  --accent: #b6452c; --accent2: #1c5d99; --border: #e2e7ee;
  --minor: #7aa25c; --light: #c9a227; --moderate: #d97b29; --strong: #c94f2c; --severe: #a01818;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.6; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent2); }

.site-header { background: #14212e; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 33px; width: auto; }
.site-header nav a { color: #cfd9e3; text-decoration: none; margin-left: 18px; font-weight: 500; }
.site-header nav a:hover { color: #fff; }

h1 { font-size: 1.7rem; margin: 22px 0 8px; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.sub { color: var(--muted); margin-top: 0; }

.answer-box { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
              border-radius: 8px; padding: 14px 18px; margin: 16px 0; }
.answer-box p { margin: 6px 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .85rem; }

#map { height: 440px; border-radius: 8px; border: 1px solid var(--border); margin: 14px 0; }

table.quakes { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border);
               border-radius: 8px; overflow: hidden; font-size: .95rem; }
table.quakes th, table.quakes td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.quakes th { background: #eef1f5; font-weight: 600; }
table.quakes tr:last-child td { border-bottom: none; }
table.quakes a { text-decoration: none; }
.table-scroll { overflow-x: auto; }

.mag-badge { display: inline-block; min-width: 44px; text-align: center; padding: 2px 8px; border-radius: 14px;
             color: #fff; font-weight: 700; font-size: .9rem; }
.mag-minor    { background: var(--minor); }
.mag-light    { background: var(--light); }
.mag-moderate { background: var(--moderate); }
.mag-strong   { background: var(--strong); }
.mag-severe   { background: var(--severe); }
.mag-na       { background: #8a97a5; }

.facts { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 18px; margin: 16px 0; }
.facts dl { display: grid; grid-template-columns: 180px 1fr; gap: 4px 12px; margin: 12px 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }

.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 4px 18px 10px; margin: 12px 0; }
.faq-item h2, .faq-item h3 { margin: 12px 0 6px; font-size: 1.1rem; }

.news-list { background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin: 14px 0; }
.news-item { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-item a { text-decoration: none; font-weight: 500; }
.news-item a:hover { text-decoration: underline; }
.news-meta { display: block; color: var(--muted); font-size: .82rem; }

.site-footer { background: #14212e; color: #cfd9e3; margin-top: 40px; padding: 24px 0; font-size: .9rem; }
.site-footer a { color: #e8a13c; }
.site-footer .small { color: #8fa1b3; font-size: .8rem; }

#eq-consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #14212e; color: #cfd9e3; border-top: 3px solid var(--accent); box-shadow: 0 -4px 18px rgba(0,0,0,.35); }
#eq-consent-banner .eqc-inner { max-width: 1060px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#eq-consent-banner p { margin: 0; flex: 1 1 320px; font-size: .9rem; }
#eq-consent-banner a { color: #e8a13c; }
.eqc-actions { display: flex; gap: 10px; }
.eqc-btn, .btn-consent { border: 0; border-radius: 6px; padding: 9px 16px; font-size: .9rem;
  font-weight: 600; cursor: pointer; }
.eqc-accept { background: var(--accent); color: #fff; }
.eqc-reject, .btn-consent { background: #2a3b4d; color: #cfd9e3; }
.btn-consent { background: var(--accent2); color: #fff; }

@media (max-width: 640px) {
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { margin-top: 8px; }
  h1 { font-size: 1.4rem; }
}
