/* Vitezometrul Finanțelor Publice - stil (culorile și fonturile ies-europe.ro) */
:root {
  --ink: #17232a; --ink-2: #3a4a52; --muted: #5d6c74; --rule: #dbe1e4; --mist: #f1f4f5;
  --paper: #ffffff; --petrol: #123540; --petrol-2: #0b262e; --accent: #f4922c; --accent-ink: #a14f08;
  --on-dark: #e8eef0; --on-dark-muted: #a9bcc2;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", "Source Serif Pro", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.num { font-variant-numeric: tabular-nums; }

.top { background: var(--petrol-2); color: var(--on-dark); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; line-height: 1.15; }
.brand:hover { color: var(--accent); }
.top__back { color: var(--on-dark-muted); font-size: .875rem; text-decoration: none; }
.top__back:hover { color: #fff; text-decoration: underline; }

.hero { background: var(--petrol); color: var(--on-dark); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 4px solid var(--accent); }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.clock { font-family: var(--sans); font-weight: 700; font-size: clamp(1.9rem, 7.4vw, 5.25rem); line-height: 1.05; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
.clock small { font-size: .42em; font-weight: 600; color: var(--on-dark-muted); margin-left: .25em; letter-spacing: 0; }
.hero__rate { font-size: clamp(1.0625rem, 2.2vw, 1.3125rem); margin: 1.1rem 0 .4rem; color: var(--on-dark); }
.hero__rate strong { color: var(--accent); font-weight: 700; }
.hero__note { font-size: .9375rem; color: var(--on-dark-muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; margin: 2.5rem 0; }
.stat { background: var(--mist); border-top: 3px solid var(--petrol); padding: 1.25rem 1.25rem 1.1rem; }
.stat h2 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--ink-2); margin: 0 0 .5rem; }
.stat__val { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; color: var(--ink); margin-bottom: .5rem; }
.stat__val--lung { font-size: clamp(1.2rem, 1.6vw, 1.45rem); white-space: nowrap; line-height: 1.6; }
@media (min-width: 1000px) { .stat h2 { min-height: 2.9em; } }
.stat__val small { font-size: .55em; font-weight: 600; color: var(--muted); }
.stat p { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

.section { padding: 1rem 0 2.5rem; }
.section h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
.lead { color: var(--ink-2); }

.chart { position: relative; margin: 1.5rem 0 .5rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .grid text, .chart .xax text { fill: var(--muted); font: 500 12px var(--sans); }
.chart .base { stroke: var(--ink-2); stroke-width: 1; }
.chart .bar { fill: var(--petrol); pointer-events: none; }
.chart .lbl { pointer-events: none; }
.chart .bar--p { fill: #5a8794; }
.chart .bar--last { fill: var(--accent); }
.chart .chart__ingust { display: none; }
.chart .chart__ingust text { font-size: 12px; }
@media (max-width: 640px) {
  .chart .chart__lat { display: none; }
  .chart .chart__ingust { display: block; }
}
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .bar.is-on { opacity: .75; }
.chart .lbl { fill: var(--ink); font: 700 13px var(--sans); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .8125rem; line-height: 1.35; padding: .45rem .6rem; border-radius: 3px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s; }
.tip strong { display: block; font-size: .9375rem; }
.tip.is-on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .875rem; color: var(--ink-2); margin: .25rem 0 1rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
details { margin-top: .5rem; font-size: .9375rem; }
summary { cursor: pointer; color: var(--accent-ink); }
.tbl { border-collapse: collapse; margin-top: .75rem; font-size: .875rem; }
.tbl th, .tbl td { padding: .3rem .9rem .3rem 0; border-bottom: 1px solid var(--rule); text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl-wrap { max-height: 22rem; overflow: auto; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1.5rem; font-size: 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.prose { font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; max-width: 70ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem 3rem; }
.share { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; font: 600 .9375rem var(--sans); padding: .55rem 1rem; border-radius: 3px; border: 1px solid var(--petrol); background: #fff; color: var(--petrol); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--petrol); color: #fff; }
.cite { border-top: 1px solid var(--rule); padding-top: 2.25rem; }
.cite__ref { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6; background: var(--mist); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; padding-left: 2.75rem; text-indent: -1.5rem; overflow-wrap: anywhere; }

.nb { white-space: nowrap; }

.foot { background: var(--petrol-2); color: var(--on-dark-muted); font-size: .875rem; margin-top: 1.5rem; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--accent); }
.foot p { margin: 0 0 .35rem; }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding-top: 2rem; padding-bottom: 1.5rem; }
.foot__brand { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: #fff !important; text-decoration: none; margin-bottom: .5rem; }
.foot__brand:hover { color: var(--accent) !important; }
.foot__legal { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot__legal a, .foot__legal button { color: var(--on-dark); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.foot__legal a:hover, .foot__legal button:hover { color: var(--accent); text-decoration: underline; }
.foot__base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; padding-bottom: 1.25rem; font-size: .8125rem; }

/* ---------- pagini legale */
.page-head { background: var(--petrol); color: var(--on-dark); padding: clamp(2rem, 5vw, 3.25rem) 0; border-bottom: 4px solid var(--accent); }
.page-head h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 .35rem; }
.page-head p { color: var(--on-dark-muted); margin: 0; font-size: .9375rem; }
.page-head a { color: var(--on-dark); }
.legal { padding: 2.25rem 0 3rem; }
.legal .prose h2 { font-size: 1.375rem; margin-top: 2rem; }
.legal .prose p, .legal .prose li { max-width: 70ch; }
.legal .prose table { border-collapse: collapse; font-family: var(--sans); font-size: .9375rem; margin: 0 0 1.25rem; width: 100%; max-width: 70ch; }
.legal .prose th, .legal .prose td { text-align: left; vertical-align: top; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--rule); }

/* ---------- banner cookie */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: var(--on-dark); box-shadow: 0 -4px 18px rgba(0,0,0,.18); border-top: 3px solid var(--accent); }
.cookie[hidden] { display: none; }
.cookie .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.cookie p { margin: 0; font-size: .9375rem; line-height: 1.5; max-width: 78ch; }
.cookie a { color: #fff; }
.cookie__ok { font: 600 .9375rem var(--sans); padding: .55rem 1.25rem; border-radius: 3px; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; flex: none; }
.cookie__ok:hover { background: #fff; }

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }
