/* Gempabumi.org — indigo malam, kertas seismograf, sinyal kuning amber. */

:root {
  --bg: #f3f1ec;
  --surface: #fffefb;
  --surface-2: #f7f4ed;
  --surface-3: #ebe7dc;
  --ink: #17182b;
  --ink-2: #3c3e55;
  --muted: #6b6d82;
  --line: #e2ddd1;
  --line-2: #cec8b9;
  --accent: #2c3f9e;
  --accent-ink: #1f2d78;
  --accent-soft: #e4e8f7;
  --link: #17182b;
  --band: #161a36;
  --band-2: #20264d;
  --band-ink: #eef0fa;
  --band-muted: #a3a8c8;
  --band-line: #2c3262;
  --signal: #f0b429;
  --paper: #fbf8ef;
  --paper-grid: #ece5d2;
  --paper-grid-2: #f3eee0;
  --trace-ink: #23264a;
  --m1: #cfd2d9; --m1-ink: #23262e;
  --m2: #f2d46b; --m2-ink: #362b00;
  --m3: #f4a640; --m3-ink: #3a1e00;
  --m4: #e8692b; --m4-ink: #ffffff;
  --m5: #cf2e2e; --m5-ink: #ffffff;
  --m6: #93163a; --m6-ink: #ffffff;
  --m7: #4a0c35; --m7-ink: #ffffff;
  --ok: #24855a;
  --radius: 10px;
  --radius-sm: 7px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1280px;
  --top-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1020; --surface: #151830; --surface-2: #1b1f3a; --surface-3: #252a49; --ink: #eceef8; --ink-2: #c4c7dc; --muted: #8d91ac;
    --line: #262b4a; --line-2: #353b60; --accent: #f0b429; --accent-ink: #ffd36b; --accent-soft: #2e2a19; --link: #eceef8;
    --band: #0a0c19; --band-2: #151a35; --band-ink: #eceef8; --band-muted: #8d91ac; --band-line: #222849;
    --paper: #121528; --paper-grid: #1e2242; --paper-grid-2: #181b34; --trace-ink: #d6d9ee; --m1: #4a4f6a; --m1-ink: #f2f2f2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1020; --surface: #151830; --surface-2: #1b1f3a; --surface-3: #252a49; --ink: #eceef8; --ink-2: #c4c7dc; --muted: #8d91ac;
  --line: #262b4a; --line-2: #353b60; --accent: #f0b429; --accent-ink: #ffd36b; --accent-soft: #2e2a19; --link: #eceef8;
  --band: #0a0c19; --band-2: #151a35; --band-ink: #eceef8; --band-muted: #8d91ac; --band-line: #222849;
  --paper: #121528; --paper-grid: #1e2242; --paper-grid-2: #181b34; --trace-ink: #d6d9ee; --m1: #4a4f6a; --m1-ink: #f2f2f2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.62 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, currentColor 32%, transparent); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.16; margin: 0; font-weight: 700; letter-spacing: -.02em; font-family: var(--head); }
h1 { font-weight: 800; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.2em; }

/* ---------- header gaya portal: bar utilitas, masthead, menu, running text ---------- */
.util { background: var(--surface-2); border-top: 4px solid #d7192a; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.util .wrap { display: flex; align-items: center; gap: 16px; height: 32px; }
.u-date { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.u-tz { font-family: var(--mono); white-space: nowrap; }
.u-tz b { color: var(--ink); font-weight: 600; }
.u-links { margin-left: auto; display: flex; gap: 16px; }
.u-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.u-links a:hover { color: var(--ink); }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; background: var(--band); display: grid; place-items: center; color: var(--signal); flex: none; }
.brand svg.wave { width: 27px; height: 18px; }
.brand-txt { display: flex; flex-direction: column; gap: 3px; }
.brand-w { font: 800 25px/1 var(--head); letter-spacing: -.04em; }
.brand-w em { font-style: normal; font-weight: 600; color: #d7192a; }
.brand-tag { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.sos-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d7192a; color: #d7192a; border-radius: 6px; padding: 7px 11px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sos-pill b { font-family: var(--mono); font-size: 15px; }
.sos-pill:hover { background: #d7192a; color: #fff; }
.theme-btn { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 7px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; transition: color .15s, border-color .15s; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.theme-btn .ic { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
.navbar { background: var(--band); position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--signal); }
.navbar > .wrap { display: flex; align-items: stretch; height: 48px; overflow-x: auto; scrollbar-width: none; }
.navbar > .wrap::-webkit-scrollbar { display: none; }
.navbar a { display: inline-flex; align-items: center; gap: 4px; color: var(--band-ink); text-decoration: none; font-size: 14.5px; font-weight: 700; padding: 0 14px; white-space: nowrap; border-right: 1px solid var(--band-line); transition: background .15s; }
.navbar > .wrap > a:first-child { border-left: 1px solid var(--band-line); }
.navbar a:hover { background: var(--band-2); color: #fff; }
.navbar a[aria-current="page"] { background: var(--signal); color: #17182b; }
.navbar .dd-ic { width: 13px; height: 13px; opacity: .8; }
.nav-dd { display: flex; }
.nav-dd > a { height: 100%; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line-2); box-shadow: 0 14px 30px rgba(10, 12, 25, .16); z-index: 1001; }
.mega .wrap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; padding-top: 18px; padding-bottom: 20px; }
.mega b { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 2px solid #d7192a; }
.mega a { display: block; color: var(--ink); background: none; border: 0; padding: 4px 0; font-size: 13.5px; font-weight: 600; white-space: normal; }
.mega a:hover { color: var(--accent-ink); background: none; }
@media (hover: hover) and (min-width: 900px) { .nav-dd:hover .mega, .nav-dd:focus-within .mega { display: block; } }
.navbar > .wrap { position: static; }
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ticker .wrap { display: flex; align-items: stretch; height: 38px; gap: 0; }
.tk-l { display: inline-flex; align-items: center; gap: 7px; background: #d7192a; color: #fff; font-weight: 800; padding: 0 12px; white-space: nowrap; flex: none; }
.tk-l .live-dot { background: #fff; animation: none; box-shadow: none; }
.tk-v { flex: 1; min-width: 0; overflow: hidden; position: relative; border-right: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.tk-run { display: flex; width: max-content; height: 100%; animation: tk 70s linear infinite; }
.tk-v:hover .tk-run { animation-play-state: paused; }
@keyframes tk { to { transform: translateX(-50%); } }
.tk-set { display: flex; align-items: center; }
.tk-set a { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px 0 14px; text-decoration: none; color: var(--ink); white-space: nowrap; border-right: 1px solid var(--line); height: 100%; }
.tk-set a:hover { color: var(--accent-ink); }
.tk-set b { font: 600 12.5px/1 var(--mono); padding: 4px 5px; border-radius: 3px; background: var(--c); color: var(--ci); }
.tk-set i { font-style: normal; font: 500 12px var(--mono); color: var(--muted); }
body.is-map .util, body.is-map .ticker { display: none; }

/* ---------- seismograf pe hârtie (semnătura site-ului) ---------- */
.trace { background: var(--paper); border-bottom: 1px solid var(--line-2); }
.trace .wrap { position: relative; padding-top: 10px; padding-bottom: 6px; }
.trace .wrap::before { content: ""; position: absolute; inset: 0 24px; pointer-events: none;
  background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid-2) 1px, transparent 1px);
  background-size: 100% 16px, 16px 100%; opacity: .9; }
.trace-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); }
.trace-head b { color: var(--ink); font-weight: 700; }
#trace-count { font-family: var(--mono); color: var(--ink-2); }
.trace-svg { position: relative; display: block; width: 100%; height: 96px; overflow: visible; cursor: crosshair; }
.trace-svg .base { stroke: var(--line-2); stroke-width: 1; }
.trace-svg .tick { stroke: var(--paper-grid); stroke-width: 1; }
.trace-svg .tlabel { fill: var(--muted); font: 500 10.5px var(--mono); }
.trace-svg .sig { fill: none; stroke: var(--trace-ink); stroke-width: 1.2; stroke-linejoin: round; }
.trace-svg .spike-lbl { fill: var(--ink); font: 600 11px var(--mono); }
.trace-svg .spike-lbl-sub { fill: var(--muted); font: 500 10.5px var(--sans); }
.trace-svg .now { stroke: var(--m5); stroke-width: 1.5; }
.trace-tip { position: absolute; pointer-events: none; background: var(--band); color: var(--band-ink); font-size: 12.5px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -100%); display: none; z-index: 5; }
.trace-tip b { font-family: var(--mono); }

/* ---------- elemente comune ---------- */
.mb { --c: var(--m1); --ci: var(--m1-ink); display: inline-grid; place-items: center; min-width: 46px; height: 40px; padding: 0 6px; border-radius: 6px; background: var(--c); color: var(--ci); font: 600 17px/1 var(--mono); font-variant-numeric: tabular-nums; flex: none; letter-spacing: -.03em; }
.mb.sm { min-width: 38px; height: 30px; font-size: 14px; border-radius: 5px; }
.mb.lg { min-width: 96px; height: 84px; font-size: 40px; border-radius: 10px; letter-spacing: -.05em; }
.m2 { --c: var(--m2); --ci: var(--m2-ink); } .m3 { --c: var(--m3); --ci: var(--m3-ink); } .m4 { --c: var(--m4); --ci: var(--m4-ink); }
.m5 { --c: var(--m5); --ci: var(--m5-ink); } .m6 { --c: var(--m6); --ci: var(--m6-ink); } .m7 { --c: var(--m7); --ci: var(--m7-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-pad { padding: 20px 22px; }
.card-h { display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; font-weight: 700; margin: 0 0 14px; }
.card-h .ic { display: none; }
.card-h small { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.sec { margin: 48px 0; }
.sec-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sec-h h2 { font-size: 22px; }
.sec-h .more { margin-left: auto; font-size: 13.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 600; color: var(--accent-ink); }
.sec-h .more .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.sec-h .more:hover .ic { transform: translateX(3px); }
.sec-h p { margin: 0; color: var(--muted); font-size: 13.5px; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); text-decoration: none; background: var(--surface); white-space: nowrap; cursor: pointer; font-family: var(--sans); font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.chip .ic { display: none; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 7px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; border: 0; cursor: pointer; font-family: var(--sans); transition: background .15s; }
.btn .ic { width: 17px; height: 17px; }
.btn:hover { color: #fff; background: var(--accent-ink); }
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn:hover { color: #17182b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn, :root:not([data-theme="light"]) .btn:hover { color: #17182b; } }
.tag-ts { display: inline-flex; align-items: center; font: 700 11px/1 var(--sans); padding: 4px 7px; border-radius: 4px; background: #1d4e89; color: #fff; vertical-align: 2px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { width: 11px; height: 11px; opacity: .6; }

/* ---------- liste de cutremure ---------- */
.ql { list-style: none; margin: 0; padding: 0; }
.ql li { border-top: 1px solid var(--line); }
.ql li:first-child { border-top: 0; }
.qrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 16px; text-decoration: none; color: inherit; position: relative; transition: background .15s; }
.qrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0; transition: opacity .15s; }
.qrow:hover { background: var(--surface-2); color: inherit; }
.qrow:hover::before { opacity: 1; }
.qrow .pl { font-weight: 700; font-size: 15px; line-height: 1.3; display: block; overflow: hidden; text-overflow: ellipsis; }
.qrow .sub { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.qrow .rt { text-align: right; font: 500 12.5px/1.45 var(--mono); color: var(--muted); white-space: nowrap; }
.qrow .rt b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.ql li.fresh .qrow { animation: fresh 3s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--signal) 26%, transparent); } to { background: transparent; } }
.empty { padding: 30px 18px; color: var(--muted); text-align: center; font-size: 15px; }
.empty .ic { display: block; margin: 0 auto 8px; width: 26px; height: 26px; opacity: .45; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl a { font-weight: 600; }
.tbl-wrap { overflow-x: auto; max-width: 100%; }

/* ---------- prima pagină ---------- */
.home-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: end; gap: 18px 34px; margin: 26px 0 0; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m5); box-shadow: 0 0 0 0 color-mix(in srgb, var(--m5) 60%, transparent); animation: live 2s ease-out infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--m5) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.home-h h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; }
.answer { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: var(--radius); padding: 12px 16px 12px 12px; text-decoration: none; max-width: 100%; }
.answer:hover { color: var(--ink-2); border-color: var(--line-2); border-left-color: var(--signal); }
.answer > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.answer b { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.answer .ans-l { font-size: 16px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer .ans-m { font: 500 12.5px var(--mono); color: var(--muted); }
.answer .mb { min-width: 52px; height: 46px; font-size: 19px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 410px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin-top: 20px; }
.hero > * { min-width: 0; }
.hero-map { position: relative; min-height: 620px; border-right: 1px solid var(--line); order: -1; }
.hero-map .map { position: absolute; inset: 0; }
.hero-side { display: flex; flex-direction: column; min-height: 0; }
.hero .hero-t { font-size: 16px; font-weight: 700; padding: 16px 16px 4px; display: flex; align-items: baseline; gap: 8px; letter-spacing: -.01em; }
.hero .hero-t .cnt { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); }
.hero-tabs { display: flex; gap: 6px; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hero-list { flex: 1; }
.hero-list .qrow { padding: 9px 16px; }
.hero-list .qrow .pl, .hero-list .qrow .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-list .qrow .mb { min-width: 42px; height: 36px; font-size: 15.5px; }
.hero-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent-ink); background: var(--surface-2); }
.hero-all .ic { width: 16px; height: 16px; }
.hero-all:hover { background: var(--surface-3); }
.guide-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--surface-2); border-left: 4px solid var(--accent); }

.leaflet-tooltip.ro-tip { background: var(--band); color: var(--band-ink); border: 0; border-radius: 5px; padding: 4px 8px; font: 600 12px/1.2 var(--sans); white-space: nowrap; box-shadow: none; }
.leaflet-tooltip.ro-tip b { font-family: var(--mono); color: var(--signal); }
.leaflet-tooltip.ro-tip::before { display: none; }
.map-hint { position: absolute; inset: auto 0 14px 0; margin: 0 auto; width: max-content; z-index: 550; background: var(--band); color: var(--band-ink); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 6px; pointer-events: none; opacity: .94; transition: opacity .3s; }
.map-hint.off { opacity: 0; }

.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.feature .mb.lg { justify-self: start; }
.feature h3 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.feature h3 a { text-decoration: none; }
.feature .facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.feature .facts span { display: inline-flex; align-items: center; gap: 6px; }
.feature .facts .ic { display: none; }
.feature .facts span b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.label-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.label-row .ic { display: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; align-items: start; }
.grid-main > *, .grid-2 > *, .grid-3 > *, .edu2 > *, .manual > * { min-width: 0; }
.grid-main aside > * + * { margin-top: 18px; }

/* fâșie de date, nu carduri */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 16px 20px; position: relative; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .ic { display: none; }
.stat .v { font: 600 30px/1.05 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: block; color: var(--ink); }
.stat .k { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; }
.stat .k a { color: var(--ink-2); font-weight: 600; }
.stat-row.flat { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.stat-row.flat .stat { padding: 12px 12px 4px 0; }
.stat-row.flat .stat + .stat { padding-left: 12px; }
.stat-row.flat .stat .v { font-size: 22px; }

.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 56px auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.hist li:first-child { border-top: 0; padding-top: 2px; }
.hist .yr { font: 600 17px/1 var(--mono); color: var(--ink-2); }
.hist a { font-weight: 600; text-decoration: none; }
.hist .ic { color: var(--muted); width: 15px; height: 15px; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 8px; border-bottom: 1px solid var(--line-2); }
.bars span { flex: 1; background: var(--ink-2); min-height: 1px; border-radius: 2px 2px 0 0; transition: background .15s; }
.bars span.hi { background: var(--signal); }
.bars span:hover { background: var(--accent); }
.bars-axis { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.hbar .tr { grid-column: 1 / -1; height: 6px; background: var(--surface-3); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.hbar .tr i { display: block; height: 100%; background: var(--ink-2); }

.news { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-item:first-child { border-top: 0; padding-top: 2px; }
.news-item h3 { font-size: 16.5px; line-height: 1.35; font-weight: 700; }
.news-item:hover h3 { color: var(--accent-ink); }
.news-item p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.news-meta { font: 500 12px var(--mono); color: var(--muted); margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.news-meta .ic { display: none; }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 18px; text-decoration: none; color: inherit; border-top: 3px solid var(--ink); }
.news-card .mb { align-self: flex-start; }
.news-card h3 { font-size: 18px; line-height: 1.3; }
.news-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .news-meta { margin-top: auto; padding-top: 6px; }
.news-card:hover { color: inherit; border-color: var(--line-2); border-top-color: var(--accent); }
.news-card:hover h3 { color: var(--accent-ink); }
.article { min-width: 0; }
.article h1 { font-size: 40px; line-height: 1.1; margin: 6px 0 16px; }
.article .dek { font-size: 19.5px; color: var(--ink-2); line-height: 1.5; }
.article .body { font-size: 17.5px; line-height: 1.75; }
.article .body h2 { font-size: 23px; margin: 1.6em 0 .6em; }
.article .body p { margin-bottom: 1.05em; }
.article .body ul { padding-left: 1.2em; }

/* ---------- pagina unui cutremur ---------- */
.qhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin: 8px 0 20px; }
.qhead h1 { font-size: 34px; line-height: 1.12; }
.qhead .when { margin-top: 8px; color: var(--ink-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bulletin { font: 500 13.5px/1.6 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 14px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.bulletin > span { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line-2); }
.bulletin > span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.bulletin b { color: var(--ink); font-weight: 600; }
.revs { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.revs b { color: var(--ink-2); font-weight: 600; }
.qmap { height: 450px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 10px; }
.scale span { height: 8px; background: var(--c); border-radius: 1px; }
.scale span.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.scale-l { display: grid; grid-template-columns: repeat(7, 1fr); font: 500 11px var(--mono); color: var(--muted); margin-top: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 13.5px; }
.side-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14.5px; }
.side-list a:first-child { border-top: 0; padding-top: 2px; }
.side-list a:hover { color: var(--accent-ink); }
.side-list a span:last-child { color: var(--muted); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }

.idx { columns: 4 210px; column-gap: 28px; }
.idx a, .idx > span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; break-inside: avoid; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.idx a:hover { color: var(--accent-ink); }
.idx a span { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

.page-h { margin: 6px 0 24px; }
.page-h h1 { font-size: 40px; line-height: 1.07; }
.page-h p { margin: 12px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal a, .cal span { aspect-ratio: 1; display: grid; place-items: center; font: 500 11.5px var(--mono); border-radius: 3px; text-decoration: none; color: var(--ink-2); background: var(--surface-2); }
.cal a:hover { outline: 2px solid var(--ink); outline-offset: -1px; }
.cal a.l1 { background: color-mix(in srgb, var(--m3) 35%, var(--surface)); }
.cal a.l2 { background: color-mix(in srgb, var(--m4) 55%, var(--surface)); color: var(--ink); }
.cal a.l3 { background: var(--m5); color: #fff; }
.cal .dow { background: none; color: var(--muted); font-size: 10.5px; aspect-ratio: auto; }

/* ---------- hărți ---------- */
.map { background: var(--surface-2); }
.map:not(.leaflet-container) { background: repeating-linear-gradient(90deg, var(--surface-2) 0 16px, var(--surface-3) 16px 17px); }
.leaflet-container { font-family: var(--sans) !important; background: var(--surface-2) !important; }
.leaflet-control-attribution.leaflet-control { visibility: hidden; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface) !important; color: var(--ink) !important; border-radius: 8px !important; box-shadow: 0 6px 20px rgba(10, 12, 25, .22) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a { font-weight: 700; }
.pop { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; min-width: 220px; }
.pop .t { font: 500 12px var(--mono); color: var(--muted); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 7px !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; width: 32px !important; height: 32px !important; line-height: 32px !important; }
.pulse { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c, #cf2e2e); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; font: 500 12px var(--mono); display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.map-btns { position: absolute; right: 12px; top: 12px; z-index: 500; display: flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; background: var(--surface); }
.map-btn { display: inline-flex; align-items: center; background: var(--surface); border: 0; border-left: 1px solid var(--line); padding: 7px 11px; font: 600 12.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.map-btn:first-child { border-left: 0; }
.map-btn:hover { color: var(--ink); background: var(--surface-2); }
.map-btn.on { background: var(--ink); color: var(--bg); }
.map-full { height: calc(100vh - 51px); height: calc(100dvh - 51px); position: relative; }
.map-panel { position: absolute; top: 12px; left: 12px; z-index: 600; width: 350px; max-height: calc(100% - 24px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.map-panel .hd { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.map-panel .hd h1 { font-size: 17px; }

/* ---------- tanya jawab, edukasi ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.qa h3 { font-size: 16px; margin: 0 0 6px; }
.qa p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.62; }
.edu2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.edu-text { columns: 2 280px; column-gap: 36px; }
.edu-text h3 { font-size: 16px; margin: 0 0 6px; break-after: avoid; }
.edu-text p { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin: 0 0 18px; break-inside: avoid; }
.vsec { margin: 0; position: sticky; top: 70px; }
.vsec svg { width: 100%; height: auto; display: block; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.vsec circle { opacity: .75; stroke: rgba(0,0,0,.35); stroke-width: .4; }
.vsec circle.vb { opacity: 1; stroke: var(--ink); stroke-width: 1.2; }
.vsec .vg { stroke: var(--paper-grid); stroke-width: 1; }
.vsec .vs { stroke: var(--ink-2); stroke-width: 1.5; }
.vsec .vt { fill: var(--muted); font: 500 11px var(--sans); }
.vsec figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ---------- panduan ---------- */
.manual { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 10px; }
.toc { position: sticky; top: 70px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; border-left: 2px solid var(--line-2); padding-left: 14px; }
.toc b { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--ink-2); padding: 4px 0; }
.toc a:hover { color: var(--accent-ink); }
.manual-body { min-width: 0; }
.manual-body .body h2 { scroll-margin-top: 80px; }
.manual-body .body h3 { font-size: 17.5px; margin: 1.3em 0 .35em; }
.manual-body ol li, .manual-body ul li { margin: 6px 0; }
.rule-box { background: var(--band); color: var(--band-ink); border-radius: var(--radius); padding: 18px 22px 20px; margin: 22px 0 10px; scroll-margin-top: 80px; }
.rule-t { font-size: 13px; color: var(--band-muted); margin: 0 0 10px; font-weight: 600; }
.rule { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule > div { border-top: 3px solid var(--signal); padding-top: 10px; }
.rule dt { font: 800 21px var(--head); letter-spacing: -.02em; }
.rule dd { margin: 4px 0 0; font-size: 14.5px; color: var(--band-muted); line-height: 1.55; }
.kitlist { border-top: 1px solid var(--line-2); }
.kitlist label { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; cursor: pointer; }
.kitlist input { accent-color: var(--ok); width: 17px; height: 17px; flex: none; transform: translateY(2px); }
.kitlist label span { color: var(--ink-2); }
.kitlist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
.kit-progress { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 10px 0; }
.kit-progress span:first-child { font-family: var(--mono); color: var(--ink); }
.kit-track { flex: 1; height: 6px; background: var(--surface-3); border-radius: 2px; overflow: hidden; max-width: 260px; }
.kit-track i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s; }
.manual-faq { border-top: 1px solid var(--line-2); margin-top: 34px; padding-top: 6px; }
.manual-faq h3 { font-size: 17px; margin: 1.2em 0 .3em; }
.manual-faq p { color: var(--ink-2); line-height: 1.65; }

/* ---------- instrumente ---------- */
.int { display: inline-grid; place-items: center; min-width: 32px; height: 22px; padding: 0 6px; border-radius: 4px; font: 600 12px var(--mono); color: #16181b; border: 1px solid rgba(0,0,0,.12); }
.int-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 12px var(--mono); color: var(--ink-2); margin-top: 10px; }
.int-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.15); }
.wave-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.mycity { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; }
.felt fieldset { border: 0; margin: 0; padding: 0; }
.felt legend { font-weight: 700; margin-bottom: 10px; font-size: 15.5px; }
.felt-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.felt-opts label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 10px 14px; border: 1px solid var(--line-2); border-radius: 7px; cursor: pointer; background: var(--surface); font-size: 13.5px; line-height: 1.3; }
.felt-opts label > span { display: flex; flex-direction: column; gap: 3px; }
.felt-opts label::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 7px 0 0 7px; background: var(--c); }
.felt-opts input { position: absolute; opacity: 0; }
.felt-opts small { color: var(--muted); font-size: 12px; }
.felt-opts label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.felt-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.felt-loc select { flex: 1 1 160px; width: 100%; min-width: 0; max-width: 100%; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; }
.felt-out { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.felt.sent .felt-opts, .felt.sent .felt-loc { opacity: .5; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.sim-form { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.sim-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 170px; }
.sim-form label b { color: var(--ink); font-weight: 700; font-family: var(--mono); }
.sim-form select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.sim-form input[type=range] { accent-color: var(--accent); width: 190px; }
.sim-sum { font-size: 16px; color: var(--ink-2); margin: 0 0 14px; min-height: 1.5em; }
.sim-epi { width: 22px; height: 22px; border-radius: 50%; background: var(--signal); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--band), 0 2px 8px rgba(0,0,0,.4); cursor: grab; }
[data-sim-list] { max-height: 640px; overflow-y: auto; }

/* ---------- footer ---------- */
.foot { margin-top: 80px; background: var(--band); color: var(--band-muted); font-size: 14px; padding: 0 0 28px; border-top: 4px solid #d7192a; }
.foot a { color: var(--band-ink); text-decoration: none; }
.foot a:hover { color: var(--signal); }
.foot-prov { background: var(--band-2); padding: 30px 0 28px; margin-bottom: 36px; border-bottom: 1px solid var(--band-line); }
.foot-prov h4 { color: var(--band-ink); font-size: 15px; margin: 0 0 14px; font-weight: 800; }
.fp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; }
.fp-grid b { display: block; color: var(--signal); font-size: 12.5px; margin-bottom: 6px; }
.fp-grid a { display: block; padding: 3px 0; font-size: 13.5px; }
.fp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-tags a { border: 1px solid var(--band-line); border-radius: 5px; padding: 4px 9px; font-size: 13px; }
.fp-tags a:hover { border-color: var(--signal); }
.foot .brand { color: var(--band-ink); }
.foot .brand-w { font-size: 21px; }
.foot .brand-w em { color: var(--signal); }
.foot .brand-mark { background: var(--band-2); border: 1px solid var(--band-line); }
.foot-note { font-size: 12.5px; line-height: 1.55; }
.foot-note a { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.foot h4 { color: var(--band-ink); font-size: 13.5px; margin: 0 0 12px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot .fine { border-top: 1px solid var(--band-line); margin-top: 32px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot .fine b { color: var(--signal); font-family: var(--mono); font-weight: 600; }

/* ---------- sidebar portal ---------- */
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-t { font-size: 15px; font-weight: 800; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #d7192a; display: flex; align-items: baseline; gap: 8px; }
.side-t small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank a { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; text-decoration: none; font-size: 14px; font-weight: 600; }
.rank a::before { content: counter(r); font: 700 15px var(--mono); color: var(--muted); }
.rank li:nth-child(-n+3) a::before { color: #d7192a; }
.rank a b { font: 600 13px var(--mono); color: var(--ink-2); }
.rank a:hover span { color: var(--accent-ink); }
.side-more { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: 13px; padding: 5px 9px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.tags a:hover { border-color: var(--ink-2); color: var(--ink); }
.prov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; }
.prov-grid a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; }
.prov-grid a span { font: 500 12.5px var(--mono); color: var(--muted); }
.prov-grid a span.hot { color: #d7192a; font-weight: 600; }
.prov-grid a:hover { color: var(--accent-ink); }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #d7192a; border-radius: var(--radius); padding: 18px 22px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.summary h2 { font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.summary p:last-child { margin-bottom: 0; }

.read-bar { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--signal); z-index: 2000; }
.drawer { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 9, 20, .5); display: flex; align-items: flex-end; opacity: 0; transition: opacity .25s; }
.drawer[hidden] { display: none; }
.drawer.open { opacity: 1; }
.drawer-in { width: 100%; max-height: 86vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 14px 14px 0 0; padding: 14px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .3s var(--ease); }
.drawer.open .drawer-in { transform: none; }
.drawer-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-h b { font: 800 19px var(--head); }
.drawer-h .theme-btn { color: var(--ink); border-color: var(--line-2); }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.drawer-grid a { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.drawer-grid a .ic { color: var(--accent); width: 19px; height: 19px; }
.drawer-t { margin: 18px 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tabbar { display: none; }

.btn:active, .chip:active, .map-btn:active, .qrow:active, .tabbar a:active { transform: scale(.98); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .u-x { display: none; }
  .fp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .news-cards, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu2 { grid-template-columns: 1fr; }
  .vsec { position: static; }
  .home-h { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .manual { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .rule { grid-template-columns: 1fr; gap: 14px; }
  .felt-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-map { min-height: 0; height: min(54vh, 430px); border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-2, .grid-3, .news-cards { grid-template-columns: 1fr; }
  .map-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 46%; }
  .qa { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  :root { --top-h: 56px; }
  body { font-size: 15.5px; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 8px; height: 60px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-w { font-size: 20px; }
  .brand-tag { font-size: 11.5px; }
  .sos-pill { display: none; }
  .u-links { display: none; }
  .menu-btn { display: grid; }
  .navbar > .wrap { padding: 0; height: 44px; }
  .navbar a { font-size: 13.5px; padding: 0 12px; }
  .navbar .nav-home, .navbar .dd-ic { display: none; }
  .tk-l { padding: 0 9px; font-size: 12.5px; }
  .fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prov-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .trace .wrap::before { inset: 0 16px; }
  .trace-svg { height: 82px; }
  .trace-expl { display: none; }
  .home-h { margin-top: 18px; gap: 12px; }
  .home-h h1 { font-size: 29px; }
  .kicker { font-size: 12.5px; }
  .answer { padding: 10px 12px 10px 10px; gap: 12px; }
  .answer .ans-l { white-space: normal; font-size: 15px; }
  .hero { margin-top: 14px; }
  .hero-tabs, .filters.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hero-tabs::-webkit-scrollbar, .filters.chips::-webkit-scrollbar { display: none; }
  .qrow { gap: 11px; padding: 10px 12px; }
  .qrow .pl { font-size: 14.5px; }
  .mb.lg { min-width: 78px; height: 68px; font-size: 32px; }
  .qhead { gap: 14px; align-items: start; }
  .qhead h1 { font-size: 24px; }
  .page-h h1, .article h1 { font-size: 29px; }
  .lead { font-size: 16.5px; }
  .qmap { height: 340px; }
  .stat { padding: 13px 14px; }
  .stat .v { font-size: 24px; }
  .sec { margin: 36px 0; }
  .sec-h h2 { font-size: 19px; }
  .sec-h { flex-wrap: wrap; }
  .sec-h .more { margin-left: 0; flex-basis: 100%; order: 3; }
  .feature { grid-template-columns: 1fr; gap: 12px; }
  .feature h3 { font-size: 19px; }
  .guide-cta { grid-template-columns: 1fr; }
  .hist li { grid-template-columns: 48px auto minmax(0, 1fr); }
  .hist li > .ic { display: none; }
  .bulletin { font-size: 12.5px; }
  .bulletin > span { border-right: 0; margin-right: 0; padding-right: 12px; }
  .map-full { height: calc(100dvh - 44px - 70px); }
  .foot { margin-top: 50px; padding-top: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .drawer-grid { grid-template-columns: 1fr; }
  .sim-form label { min-width: 46%; }
  .sim-form input[type=range] { width: 100%; }
  [data-sim-list] { max-height: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: var(--band); border-top: 1px solid var(--band-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; color: var(--band-muted); text-decoration: none; font: 600 11px var(--sans); }
  .tabbar a .ti .ic { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--band-ink); }
  .tabbar a.on .ti { color: var(--signal); }
  .tabbar a.fab .ti { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #17182b; border: 4px solid var(--band); }
  .tabbar a.fab .ti .ic { width: 24px; height: 24px; }
  .tabbar a.fab.on .ti { color: #17182b; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.h1-sub { margin: 8px 0 0; font-size: 17px; color: var(--ink-2); }
