/* Cutremur.org — un singur fișier de stiluri. Hârtie de seismograf ziua, cerneală noaptea. */

:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --surface-3: #efede7;
  --ink: #111316;
  --ink-2: #393e46;
  --muted: #6b717b;
  --line: #e7e4dc;
  --line-2: #d8d4ca;
  --accent: #d6361f;
  --accent-ink: #b42a15;
  --accent-soft: #fcebe7;
  --link: #111316;
  --band: #121417;
  --band-2: #1b1e22;
  --band-ink: #f1efe9;
  --band-muted: #9aa0a8;
  --band-line: #262a2f;
  --m1: #c8ced5; --m1-ink: #262b31;
  --m2: #efd36c; --m2-ink: #3a2e00;
  --m3: #f4a645; --m3-ink: #3b1f00;
  --m4: #ea6b2d; --m4-ink: #ffffff;
  --m5: #d02f27; --m5-ink: #ffffff;
  --m6: #97142f; --m6-ink: #ffffff;
  --m7: #4b0a2c; --m7-ink: #ffffff;
  --ok: #24855a;
  --radius: 16px;
  --radius-sm: 11px;
  --sh-1: 0 1px 2px rgba(17, 19, 22, .04), 0 2px 10px rgba(17, 19, 22, .045);
  --sh-2: 0 2px 4px rgba(17, 19, 22, .05), 0 12px 32px rgba(17, 19, 22, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Outfit", "Inter", system-ui, sans-serif;
  --mono: "Inter", system-ui, sans-serif; /* cifre tabulare, nu monospace: aceeași aliniere, mai prietenos */
  --wrap: 1260px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e10; --surface: #15181b; --surface-2: #1a1d21; --surface-3: #22262b; --ink: #eeede8; --ink-2: #c8c7c1; --muted: #8d939b;
    --line: #24282d; --line-2: #31363c; --accent: #f2653f; --accent-ink: #ff8d6c; --accent-soft: #3a1d16; --link: #eeede8;
    --band: #08090a; --band-2: #121417; --band-line: #1f2327; --m1: #565f69; --m1-ink: #f2f2f2;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .3); --sh-2: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e10; --surface: #15181b; --surface-2: #1a1d21; --surface-3: #22262b; --ink: #eeede8; --ink-2: #c8c7c1; --muted: #8d939b;
  --line: #24282d; --line-2: #31363c; --accent: #f2653f; --accent-ink: #ff8d6c; --accent-soft: #3a1d16; --link: #eeede8;
  --band: #08090a; --band-2: #121417; --band-line: #1f2327; --m1: #565f69; --m1-ink: #f2f2f2;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3); --sh-2: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 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 30%, 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.15; margin: 0; font-weight: 600; letter-spacing: -.022em; }
p { margin: 0 0 1em; }
.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: 6px; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.2em; }

/* apariție la derulare (clasa se pune din JS, deci fără JS totul e vizibil) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- bandă de sus ---------- */
.top { background: var(--band); color: var(--band-ink); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--band-line); }
.top .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--band-ink); text-decoration: none; font: 700 19px/1 var(--sans); letter-spacing: -.035em; white-space: nowrap; }
.brand:hover { color: var(--band-ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--band-2); border: 1px solid var(--band-line); display: grid; place-items: center; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand svg.wave { width: 22px; height: 16px; }
.brand small { color: var(--band-muted); font-weight: 500; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--band-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a .ic { width: 17px; height: 17px; opacity: .85; }
.nav a:hover { color: var(--band-ink); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--band); background: var(--band-ink); }
.nav a[aria-current="page"] .ic { opacity: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--mono); color: var(--band-muted); white-space: nowrap; padding: 7px 11px; border: 1px solid var(--band-line); border-radius: 999px; }
.live-pill .ic { width: 15px; height: 15px; color: #e8553a; }
.theme-btn { background: var(--band-2); border: 1px solid var(--band-line); color: var(--band-muted); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; flex: none; transition: color .2s, transform .3s var(--ease); }
.theme-btn:hover { color: var(--band-ink); transform: rotate(20deg); }
.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; }
}

/* ---------- seismograma ---------- */
.trace { background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-line); }
.trace .wrap { position: relative; padding-top: 12px; padding-bottom: 8px; }
.trace-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--band-muted); }
.trace-head b { color: var(--band-ink); font-weight: 600; }
.trace-head .ic { color: #e8553a; margin-right: 4px; }
.trace-svg { display: block; width: 100%; height: 96px; overflow: visible; cursor: crosshair; }
.trace-svg .base { stroke: #343a40; stroke-width: 1; }
.trace-svg .tick { stroke: #22262b; stroke-width: 1; }
.trace-svg .tlabel { fill: #6f767e; font: 500 10.5px var(--mono); }
.trace-svg .sig { fill: none; stroke: #d6d3cb; stroke-width: 1.15; stroke-linejoin: round; stroke-dasharray: 6000; stroke-dashoffset: 6000; animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.trace-svg .spike-lbl { fill: var(--band-ink); font: 600 11px var(--mono); }
.trace-svg .spike-lbl-sub { fill: #8e949c; font: 500 10.5px var(--sans); }
.trace-svg .now { stroke: #e8553a; stroke-width: 1.5; }
.trace-tip { position: absolute; pointer-events: none; background: #f4f3ef; color: #111316; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, -100%); display: none; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.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: 48px; height: 42px; padding: 0 7px; border-radius: 11px; background: var(--c); color: var(--ci); font: 600 17px/1 var(--mono); font-variant-numeric: tabular-nums; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.mb.sm { min-width: 40px; height: 32px; font-size: 14px; border-radius: 9px; }
.mb.lg { min-width: 92px; height: 80px; font-size: 38px; border-radius: 18px; letter-spacing: -.04em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.1), 0 8px 24px color-mix(in srgb, var(--c) 40%, transparent); }
.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); box-shadow: var(--sh-1); overflow: hidden; }
.card-pad { padding: 22px 24px; }
.card-h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.card-h .ic { color: var(--accent); width: 20px; height: 20px; }
.card-h small { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--muted); }
.lift { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.sec { margin: 52px 0; }
.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-h h2 { font-size: 23px; }
.sec-h .chip-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.sec-h .chip-ic .ic { width: 20px; height: 20px; }
.sec-h .more { margin-left: auto; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s, gap .2s; }
.sec-h .more:hover { border-color: var(--ink-2); gap: 8px; color: var(--ink); }
.sec-h p { margin: 0; color: var(--muted); font-size: 14px; }
.lead { font-size: 18.5px; color: var(--ink-2); max-width: 780px; line-height: 1.55; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; background: var(--surface); white-space: nowrap; cursor: pointer; font-family: var(--sans); font-weight: 500; transition: all .2s var(--ease); }
.chip .ic { width: 15px; height: 15px; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 14.5px; border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, gap .2s; }
.btn:hover { color: var(--bg); transform: translateY(-2px); box-shadow: var(--sh-2); gap: 11px; }
.btn.accent { background: var(--accent); color: #fff; }
.tag-ts { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/1 var(--sans); padding: 4px 8px; border-radius: 999px; background: #1d4e89; color: #fff; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 24px 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: 12px; height: 12px; 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 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; text-decoration: none; color: inherit; position: relative; transition: background .2s; }
.qrow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); transform: scaleY(0); transition: transform .25s var(--ease); }
.qrow:hover { background: var(--surface-2); color: inherit; }
.qrow:hover::before { transform: scaleY(1); }
.qrow .mb { transition: transform .25s var(--ease); }
.qrow:hover .mb { transform: scale(1.06); }
.qrow .pl { font-weight: 600; font-size: 15.5px; 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 13px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.qrow .rt b { display: block; color: var(--ink); font-weight: 500; }
.ql li.fresh .qrow { animation: fresh 3s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--accent) 18%, 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: 28px; height: 28px; opacity: .5; }

/* tabel de date */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr { transition: background .15s; }
.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: 500; }
.tbl-wrap { overflow-x: auto; }

/* ---------- prima pagină ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; margin-top: 24px; box-shadow: var(--sh-2); }
.hero-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.hero-map { position: relative; min-height: 580px; }
.hero-map .map { position: absolute; inset: 0; }
.hero-tabs { display: flex; gap: 6px; padding: 12px 16px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hero-list { flex: 1; }
.hero-list .qrow { padding: 10px 16px; }
.hero-list .qrow .pl, .hero-list .qrow .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-list .qrow .mb { min-width: 44px; height: 38px; font-size: 16px; }
.guide-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.home-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; margin: 26px 0 0; flex-wrap: wrap; }
.home-h h1 { font-size: 34px; letter-spacing: -.035em; }
.answer { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 8px; box-shadow: var(--sh-1); max-width: 100%; }
.answer .mb { min-width: 40px; height: 32px; font-size: 14px; border-radius: 999px; }
.answer a { text-decoration: none; }
.answer a strong { font-family: var(--mono); }
.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: 500; text-decoration: none; color: var(--ink-2); transition: background .2s, gap .2s; }
.hero-all:hover { background: var(--surface-2); gap: 10px; color: var(--ink); }
.leaflet-tooltip.ro-tip { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 5px 10px; font: 600 12px/1.2 var(--sans); box-shadow: var(--sh-2); white-space: nowrap; }
.leaflet-tooltip.ro-tip b { font-family: var(--mono); }
.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(--ink); color: var(--bg); font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; pointer-events: none; opacity: .92; transition: opacity .3s; display: flex; gap: 6px; align-items: center; }
.map-hint.off { opacity: 0; }
.hero .hero-t { font-size: 17px; font-weight: 600; padding: 18px 16px 2px; display: flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.hero .hero-t .ic { color: var(--accent); }
.hero .hero-t .cnt { margin-left: auto; font: 500 12.5px var(--mono); color: var(--muted); background: var(--surface-3); padding: 4px 9px; border-radius: 999px; }

.feature { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.feature h3 { font-size: 22px; line-height: 1.22; margin-bottom: 6px; }
.feature h3 a { text-decoration: none; }
.feature .facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }
.feature .facts span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.feature .facts span .ic { color: var(--muted); width: 15px; height: 15px; }
.feature .facts span b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.label-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.label-row .ic { color: var(--accent); }

.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 aside > * + * { margin-top: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.stat .ic { position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; color: var(--accent); opacity: .9; }
.stat .v { font: 600 32px/1.05 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: block; }
.stat .k { font-size: 13.5px; color: var(--muted); display: block; margin-top: 8px; padding-right: 20px; }
.stat-row.flat { gap: 0; }
.stat-row.flat .stat { box-shadow: none; border: 0; border-radius: 0; background: none; padding: 14px 0; }

/* „azi în istorie” */
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 64px auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hist li:first-child { border-top: 0; }
.hist .yr { font: 600 20px/1 var(--mono); color: var(--ink-2); }
.hist a { font-weight: 500; text-decoration: none; }
.hist .ic { color: var(--muted); }

/* grafice server-side */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 8px; }
.bars span { flex: 1; background: var(--ink); opacity: .82; min-height: 1px; border-radius: 4px 4px 1px 1px; transform-origin: bottom; transition: opacity .2s, background .2s; }
.bars.grow span { animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.bars span.hi { background: var(--accent); opacity: 1; }
.bars span:hover { opacity: 1; background: var(--accent); }
.bars-axis { display: flex; justify-content: space-between; font: 500 11.5px var(--mono); color: var(--muted); margin-top: 8px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.hbar .tr { grid-column: 1 / -1; height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.hbar .tr i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }

/* știri */
.news { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-item:first-child { border-top: 0; padding-top: 4px; }
.news-item h3 { font-size: 17px; line-height: 1.35; font-weight: 600; transition: color .2s; }
.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-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.news-meta .ic { width: 14px; height: 14px; }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; color: inherit; }
.news-card .mb { align-self: flex-start; }
.news-card h3 { font-size: 18px; line-height: 1.32; }
.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 h3 { color: var(--accent-ink); }
.article { max-width: 740px; }
.article h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 6px 0 16px; }
.article .dek { font-size: 20px; color: var(--ink-2); line-height: 1.5; }
.article .body { font-size: 18px; line-height: 1.75; }
.article .body h2 { font-size: 24px; 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 1fr; gap: 24px; align-items: center; margin: 10px 0 24px; }
.qhead h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.03em; }
.qhead .when { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qhead .when > span { display: inline-flex; align-items: center; gap: 6px; }
.qhead .when .mono { color: var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts-grid > div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-1); }
.facts-grid .k { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.facts-grid .k .ic { color: var(--accent); width: 16px; height: 16px; }
.facts-grid .v { font: 500 19px/1.3 var(--mono); display: block; margin-top: 6px; font-variant-numeric: tabular-nums; }
.facts-grid .v small { font: 400 13px var(--sans); color: var(--muted); }
.qmap { height: 450px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 780px; }
.prose strong { color: var(--ink); font-weight: 600; }
.alert-box { display: flex; gap: 12px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--accent-soft); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; margin: 18px 0; }
.alert-box .ic { color: var(--accent); width: 22px; height: 22px; margin-top: 1px; }
.scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 10px; }
.scale span { height: 9px; background: var(--c); border-radius: 99px; }
.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: 9px 18px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 14px; }
.side-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 8px; margin: 0 -8px; border-top: 1px solid var(--line); text-decoration: none; font-size: 14.5px; border-radius: 8px; transition: background .15s; }
.side-list a:first-child { border-top: 0; }
.side-list a:hover { background: var(--surface-2); }
.side-list a span:last-child { color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* listă de țări/orașe */
.idx { columns: 4 210px; column-gap: 28px; }
.idx a, .idx > span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 6px; break-inside: avoid; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 14.5px; border-radius: 6px; transition: background .15s, padding .2s; }
.idx a:hover { background: var(--surface); padding-left: 10px; }
.idx a span { color: var(--muted); font-family: var(--mono); font-size: 13px; }

.page-h { margin: 8px 0 26px; }
.page-h h1 { font-size: 42px; letter-spacing: -.035em; line-height: 1.06; }
.page-h p { margin: 12px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 14px; }

/* calendar arhivă */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal a, .cal span { aspect-ratio: 1; display: grid; place-items: center; font: 500 12px var(--mono); border-radius: 7px; text-decoration: none; color: var(--ink-2); background: var(--surface-2); transition: transform .15s; }
.cal a:hover { transform: scale(1.15); }
.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: 11px; aspect-ratio: auto; }

/* hartă */
.map { background: var(--surface-2); }
.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: 14px !important; box-shadow: var(--sh-2) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a { font-weight: 600; }
.pop { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; min-width: 220px; }
.pop .t { font-size: 12.5px; color: var(--muted); }
.leaflet-bar { border: 0 !important; box-shadow: var(--sh-1) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; width: 34px !important; height: 34px !important; line-height: 34px !important; }
.pulse { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c, #cf2e26); 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: 14px; bottom: 14px; z-index: 500; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 12px; display: flex; gap: 10px; align-items: center; color: var(--ink-2); box-shadow: var(--sh-1); }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.map-btns { position: absolute; right: 14px; top: 14px; z-index: 500; display: flex; gap: 6px; }
.map-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: 500 13px var(--sans); color: var(--ink); cursor: pointer; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.map-btn:hover { transform: translateY(-1px); }
.map-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.map-btn .ic { width: 15px; height: 15px; }
.map-full { height: calc(100vh - 62px); height: calc(100dvh - 62px); position: relative; }
.map-panel { position: absolute; top: 14px; left: 14px; z-index: 600; width: 350px; max-height: calc(100% - 28px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-2); overflow: hidden; }
.map-panel .hd { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.map-panel .hd h1 { font-size: 17px; display: flex; gap: 8px; align-items: center; }
.map-panel .hd h1 .ic { color: var(--accent); }

/* ---------- ghid ---------- */
.g-hero { position: relative; background: var(--band); color: var(--band-ink); border-radius: 24px; padding: 54px 52px; overflow: hidden; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.g-hero h1 { font-size: 48px; letter-spacing: -.04em; line-height: 1.02; }
.g-hero p { color: #b8bcc2; font-size: 18px; margin: 18px 0 26px; max-width: 560px; }
.g-hero .btn { background: var(--band-ink); color: var(--band); }
.g-hero .btn.ghost { background: transparent; color: var(--band-ink); border: 1px solid #3a3f45; }
.g-hero-art { position: relative; aspect-ratio: 1.15; }
.g-hero-art svg { width: 100%; height: 100%; }
.g-tabs { position: sticky; top: 62px; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); padding: 14px 0; margin: 26px 0 0; border-bottom: 1px solid var(--line); }
.g-tabs .chips { justify-content: center; }
.dch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dch > div { padding: 28px 26px; text-align: left; }
.dch .ico { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--accent); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.dch .ico .ic { width: 30px; height: 30px; }
.dch h3 { font-size: 22px; margin-bottom: 8px; }
.dch p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.sit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sit .card { padding: 24px; }
.sit h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sit h3 .b { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink); }
.sit h3 .b .ic { width: 22px; height: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.ticks li .ic { color: var(--ok); width: 20px; height: 20px; margin-top: 1px; }
.ticks.no li .ic { color: var(--accent); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line-2); }
.timeline > div { position: relative; padding-right: 18px; }
.timeline .dot { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; color: var(--accent); position: relative; margin-bottom: 14px; transition: transform .3s var(--ease), border-color .3s; }
.timeline > div:hover .dot { transform: scale(1.08); border-color: var(--accent); }
.timeline .dot .ic { width: 22px; height: 22px; }
.timeline h3 { font-size: 16.5px; margin-bottom: 6px; }
.timeline p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kit label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 14.5px; font-weight: 500; transition: all .2s var(--ease); user-select: none; }
.kit label:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-1); }
.kit input { position: absolute; opacity: 0; pointer-events: none; }
.kit .b { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-3); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.kit .b .ic { width: 20px; height: 20px; }
.kit .chk { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.kit .chk .ic { width: 14px; height: 14px; }
.kit input:checked ~ .chk { background: var(--ok); border-color: var(--ok); color: #fff; }
.kit input:checked ~ .b { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.kit small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.kit-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.kit-bar .tr { flex: 1; height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.kit-bar .tr i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 99px; transition: width .4s var(--ease); }
.kit-bar span { font: 600 14px var(--mono); }
.sos { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0; background: var(--accent); color: #fff; border-radius: 22px; overflow: hidden; }
.sos > div { padding: 28px 30px; }
.sos .big { font: 700 64px/1 var(--mono); letter-spacing: -.05em; border-right: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; gap: 14px; }
.sos .big .ic { width: 40px; height: 40px; }
.sos h3 { font-size: 17px; margin-bottom: 6px; }
.sos p { margin: 0; opacity: .9; font-size: 14.5px; }
.sos a { color: #fff; font-weight: 600; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary .ic { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .a { padding: 0 22px 18px; color: var(--ink-2); font-size: 15.5px; }

.edu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.edu-card { padding: 22px; }
.edu-card h3 { font-size: 17px; margin: 14px 0 8px; }
.edu-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.edu-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.edu-ic .ic { width: 22px; height: 22px; }
@media (max-width: 1080px) { .edu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .edu { grid-template-columns: 1fr; } }

/* subsol */
.foot { margin-top: 80px; background: var(--band); color: var(--band-muted); font-size: 14px; padding: 48px 0 30px; }
.foot a { color: var(--band-ink); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot h4 { color: var(--band-ink); font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.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: 34px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot .fine .ic { color: #e8553a; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid-3, .news-cards, .sit { grid-template-columns: 1fr 1fr; }
  .kit { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .g-hero { grid-template-columns: 1fr; }
  .g-hero-art { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .timeline::before { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-right: 0; border-top: 1px solid var(--line); order: 2; }
  .hero-map { min-height: 0; height: min(44vh, 360px); order: 1; }
  .hero .map-legend { display: none; }
  .stat-row, .facts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid-2, .grid-3, .dch, .dodont, .news-cards, .sit { grid-template-columns: 1fr; }
  .sos { grid-template-columns: 1fr; }
  .sos .big { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .map-panel { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 12px; height: 56px; }
  .brand { font-size: 17px; }
  .brand small { display: none; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--band); border-top: 1px solid var(--band-line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 1001; }
  .nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 8px; border-radius: 12px; }
  .nav a .ic { width: 20px; height: 20px; }
  .nav a.nav-x, .trace-expl { display: none; }
  body { padding-bottom: 66px; }
  .live-pill { margin-left: auto; }
  .page-h h1, .article h1 { font-size: 30px; }
  .qhead { grid-template-columns: 1fr; gap: 14px; }
  .qhead h1 { font-size: 27px; }
  .mb.lg { min-width: 78px; height: 66px; font-size: 32px; }
  .qrow { padding: 11px 12px; gap: 11px; }
  .qmap { height: 340px; }
  .trace-svg { height: 76px; }
  .stat .v { font-size: 26px; }
  .sec { margin: 38px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .feature { grid-template-columns: 1fr; }
  .guide-cta { grid-template-columns: 1fr; gap: 14px; }
  .home-h { margin-top: 18px; gap: 10px; }
  .home-h h1 { font-size: 26px; }
  .answer { border-radius: 16px; font-size: 14px; align-items: flex-start; }
  .hist li { grid-template-columns: 52px auto 1fr; gap: 10px; }
  .hist li > .ic { display: none; }
  .map-full { height: calc(100dvh - 56px - 66px); }
  .g-hero { padding: 34px 24px; border-radius: 20px; }
  .g-hero h1 { font-size: 34px; }
  .kit { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .g-tabs { top: 56px; }
  .g-tabs .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sos .big { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}


/* ================= Facelift: tipografie, suprafețe, efecte ================= */
.num, .mono { font-feature-settings: "tnum" 1, "cv11" 1; }
body { font-feature-settings: "cv11" 1, "ss01" 1; transition: background-color .3s, color .3s; }
h1, h2, h3, .brand, .mb, .stat .v, .facts-grid .v, .hist .yr, .sos .big, .g-hero h1, .page-h h1, .home-h h1, .card-h, .sec-h h2 { font-family: var(--head); }
h1, .page-h h1, .home-h h1 { font-weight: 700; letter-spacing: -.03em; }
h2, h3 { font-weight: 600; letter-spacing: -.015em; }
.mb { font-weight: 700; letter-spacing: -.02em; }
.stat .v { font-weight: 700; letter-spacing: -.035em; }
.qrow .rt, .qrow .rt b { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.qrow .rt b { font-weight: 600; }
:root { --radius: 20px; --radius-sm: 14px; }
.card, .stat, .facts-grid > div { border-color: color-mix(in srgb, var(--line) 85%, transparent); }
.btn, .chip, .map-btn, .theme-btn, .nav a { -webkit-tap-highlight-color: transparent; }
.btn:active, .chip:active, .map-btn:active, .qrow:active, .tabbar a:active { transform: scale(.97); }
/* hartă: strălucire până se încarcă dalele */
.map:not(.leaflet-container) { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* bară de progres la lectură (știri, ghid) */
.read-bar { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); z-index: 2000; transition: width .1s linear; }

/* ---------- meniu (sertar) ---------- */
.menu-btn { display: none; }
.drawer { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 9, 10, .45); 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: 26px 26px 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: 12px; }
.drawer-h b { font: 700 20px var(--head); }
.drawer-h .theme-btn { background: var(--surface-3); color: var(--ink); border-color: var(--line); }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-grid a { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.drawer-grid a .ic { color: var(--accent); width: 20px; height: 20px; }
.drawer-t { margin: 18px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- bara de jos (mobil) ---------- */
.tabbar { display: none; }

@media (max-width: 640px) {
  :root { --radius: 22px; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); font-size: 15px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .top .wrap { height: 58px; gap: 8px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .live-pill { padding: 8px 11px; }
  .theme-btn { width: 40px; height: 40px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1500;
    background: var(--band); border: 1px solid var(--band-line); border-radius: 28px; padding: 7px 6px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 20px; color: var(--band-muted); text-decoration: none; font: 600 11.5px var(--sans); transition: background .2s, color .2s; }
  .tabbar a .ti .ic { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--band-ink); background: rgba(255, 255, 255, .09); }
  .tabbar a.on .ti { color: #ff7a5c; }
  .tabbar a.fab { position: relative; }
  .tabbar a.fab .ti { width: 58px; height: 58px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 5px solid var(--band); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 45%, transparent); }
  .tabbar a.fab .ti .ic { width: 26px; height: 26px; }
  .tabbar a.fab.on { background: none; }
  .tabbar a.fab.on .ti { color: #fff; }

  .trace .wrap { padding-top: 8px; padding-bottom: 4px; }
  .trace-svg { height: 62px; }
  .trace-head { font-size: 12.5px; }
  .home-h { margin-top: 16px; }
  .home-h h1 { font-size: 28px; line-height: 1.05; }
  .answer { padding: 12px 14px; gap: 12px; border-radius: 20px; font-size: 14px; line-height: 1.45; }
  .hero { margin-top: 14px; border-radius: 24px; }
  .hero-map { height: min(40vh, 330px); }
  .hero .hero-t { font-size: 17px; padding: 16px 16px 0; }
  .hero-tabs, .filters.chips, .chips.nowrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero-tabs::-webkit-scrollbar { display: none; }
  .hero-tabs .chip, .filters .chip { padding: 8px 14px; font-size: 14px; }
  .hero-list .qrow { padding: 11px 14px; }
  .qrow .mb { min-width: 44px; height: 40px; border-radius: 13px; }
  .qrow .pl { font-size: 15.5px; }
  .stat-row { gap: 10px; margin-top: 14px !important; }
  .stat { padding: 14px 15px; border-radius: 20px; }
  .stat .v { font-size: 27px; }
  .stat .k { font-size: 12.5px; margin-top: 5px; }
  .stat .ic { right: 12px; top: 12px; width: 19px; height: 19px; }
  .sec { margin: 30px 0; }
  .sec-h { margin-bottom: 12px; gap: 10px; }
  .sec-h h2 { font-size: 21px; }
  .sec-h .chip-ic { width: 32px; height: 32px; border-radius: 10px; }
  .sec-h .more { padding: 6px 10px; font-size: 13px; }
  .sec-h .more { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
  .card-pad { padding: 18px; }
  .feature { gap: 14px; }
  .feature h3 { font-size: 20px; }
  .mb.lg { min-width: 72px; height: 62px; font-size: 30px; border-radius: 18px; }
  .page-h { margin: 4px 0 18px; }
  .page-h h1, .article h1 { font-size: 28px; line-height: 1.08; }
  .lead { font-size: 16px; }
  .crumbs { margin: 14px 0 6px; font-size: 12.5px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; }
  .crumbs::-webkit-scrollbar { display: none; }
  .facts-grid > div { padding: 13px 14px; border-radius: 18px; }
  .facts-grid .v { font-size: 17px; }
  .qhead h1 { font-size: 25px; }
  .qmap { border-radius: 22px; }
  .news-cards { gap: 12px; }
  .faq summary { padding: 16px 18px; font-size: 15.5px; }
  .faq .a { padding: 0 18px 16px; font-size: 15px; }
  .edu-card { padding: 18px; }
  .foot { margin-top: 50px; padding-top: 34px; }
  .map-full { height: calc(100dvh - 58px - 92px); }
  .map-legend { bottom: 10px; left: 10px; }
  .leaflet-control-zoom { display: none; }
  .map-btns { top: auto; bottom: 12px; right: 12px; }
  .map-btn { padding: 7px 11px; font-size: 12.5px; }
  .map-hint { inset: 12px 0 auto 0; }
}

/* ================= Mai puțin „șablon”: suprafețe de date sobre, fără decor ================= */
:root { --radius: 10px; --radius-sm: 8px; }
.card, .stat, .facts-grid > div, .hero, .qmap, .answer { box-shadow: none; }
.hero { border-radius: 12px; }
.lift:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.mb, .mb.lg { box-shadow: none; }
.mb { border-radius: 8px; }
.mb.lg { border-radius: 12px; }
.sec-h { border-bottom: 1px solid var(--line-2); padding-bottom: 9px; margin-bottom: 14px; }
.sec-h::after { display: none; }
.sec-h h2 { font-size: 20px; }
.sec-h .more { margin-left: auto; border: 0; background: none; padding: 0; border-radius: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.sec-h .more .ic { display: none; }
.sec-h .more:hover { gap: 5px; }
/* cifrele: o bandă de date, nu patru carduri */
.stat-row { display: flex; flex-wrap: wrap; gap: 0 !important; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: none; }
.stat { flex: 1 1 0; min-width: 150px; background: none; border: 0; border-radius: 0; padding: 12px 20px 12px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 20px; }
.stat .v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.stat .k { font-size: 12.5px; margin-top: 3px; padding-right: 0; }
.stat .ic, .feature .facts .ic, .label-row .ic, .news-meta .ic, .facts-grid .k .ic, .card-h .ic, .chip .ic, .hero .hero-t .ic, .trace-head .ic { display: none; }
.feature .facts span { background: none; border: 0; padding: 0; border-radius: 0; }
.feature .facts { gap: 4px 16px; }
.card-h { font-size: 15px; }
.label-row { font-size: 13px; }
/* întrebări frecvente: text simplu, nu acordeon */
.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.6; }
/* rândul de buletin al unui cutremur */
.bulletin { font: 500 14.5px/1.6 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.bulletin > span { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line); }
.bulletin > span:last-child { border-right: 0; }
.bulletin b { color: var(--ink); font-weight: 600; }
.revs { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.revs b { color: var(--ink-2); font-weight: 500; }
/* răspunsul de pe prima pagină: o linie de buletin */
.answer { border-radius: 10px; padding: 9px 14px 9px 9px; }
.answer .mb { border-radius: 7px; }
@media (max-width: 640px) {
  .qa { grid-template-columns: 1fr; gap: 18px; }
  .stat { flex: 1 1 45%; min-width: 0; padding: 10px 12px 10px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat .v { font-size: 22px; }
  /* listele pe toată lățimea ecranului, cu separatoare: mai puține cutii */
  .card:has(> .ql), .card:has(> .tbl), .card:has(> .news), .hero, .card.faq { border-radius: 0; border-left: 0; border-right: 0; margin-left: -16px; margin-right: -16px; }
  .hero-map { border-radius: 0; }
  .drawer-grid { grid-template-columns: 1fr; gap: 0; }
  .drawer-grid a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 14px 2px; }
  .answer { border-radius: 10px; }
  .bulletin > span { border-right: 0; margin-right: 0; padding-right: 12px; }
}

/* despre cutremure: text + secțiunea Vrancea */
.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: 16.5px; 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: 80px; }
.vsec svg { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.vsec circle { opacity: .72; 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(--line); 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; }
@media (max-width: 1080px) { .edu2 { grid-template-columns: 1fr; } .vsec { position: static; } }
@media (max-width: 640px) { .edu-text { columns: 1; } }

/* ghidul: format de manual */
.manual { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 10px; }
.toc { position: sticky; top: 80px; 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: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--ink-2); padding: 4px 0; }
.toc a:hover { color: var(--accent-ink); }
.manual-body { max-width: 720px; }
.manual-body .body h2 { scroll-margin-top: 80px; }
.manual-body .body h3 { font-size: 18px; margin: 1.3em 0 .35em; }
.manual-body ol li, .manual-body ul li { margin: 6px 0; }
.rule-box { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line-2); padding: 14px 0 6px; margin: 22px 0 10px; scroll-margin-top: 80px; }
.rule-t { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.rule { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule dt { font: 700 20px var(--head); letter-spacing: -.02em; }
.rule dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); 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-track { flex: 1; height: 6px; background: var(--surface-3); border-radius: 3px; 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; }
@media (max-width: 900px) { .manual { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } .rule { grid-template-columns: 1fr; gap: 12px; } }

/* intensitate (EMS-98) */
.int { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 5px; font: 700 12.5px var(--head); color: #16181b; border: 1px solid rgba(0,0,0,.12); }
.int-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 12px var(--head); color: var(--ink-2); margin-top: 10px; }
.int-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.15); }
/* undele */
.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; }
/* l-ai simțit */
.felt fieldset { border: 0; margin: 0; padding: 0; }
.felt legend { font-weight: 600; margin-bottom: 10px; font-size: 15.5px; }
.felt-opts { display: grid; grid-template-columns: repeat(7, minmax(0, 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: 8px; cursor: pointer; background: var(--surface); font-size: 13.5px; line-height: 1.3; }
.felt-opts label::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; 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 240px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; 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; }
/* simulator */
.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: 600; }
.sim-form select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; 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(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 2px 8px rgba(0,0,0,.4); cursor: grab; }
[data-sim-list] { max-height: 640px; overflow-y: auto; }
@media (max-width: 900px) { .felt-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sim-form label { min-width: 46%; } .sim-form input[type=range] { width: 100%; } [data-sim-list] { max-height: none; } }

.felt-opts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.felt-opts label > span { display: flex; flex-direction: column; gap: 3px; }
.feature .mb.lg { justify-self: start; }
@media (max-width: 640px) {
  .sec-h { flex-wrap: wrap; }
  .sec-h .more { max-width: none; margin-left: 0; flex-basis: 100%; order: 3; font-size: 13.5px; }
}

/* Coloanele de grilă nu se lărgesc după conținut (tabele, rânduri lungi): altfel apare scroll orizontal pe mobil. */
.grid-main > *, .grid-2 > *, .grid-3 > *, .hero > *, .edu2 > *, .manual > * { min-width: 0; }
@media (max-width: 1080px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
.tbl-wrap { max-width: 100%; }
