@import url("../fonts/fonts.css");

/* Brașov 2034 · consultare publică
   Concept: documentul strategic devenit hartă navigabilă. Culorile BrandBerry pe niveluri
   (violet = obiective, indigo = politici, lavandă = casete „Pe scurt”), auriu doar pentru acțiuni,
   fotografii ale Brașovului și un motiv de cusătură în cruce ca separator. Temă luminoasă, unică. */
:root {
  color-scheme: light;
  --violet: #5C2D82;
  --violet-d: #4A2369;
  --indigo: #2D1441;
  --indigo-d: #1F0D2E;
  --lav: #ECE6F5;
  --lav-2: #DED3EE;
  --lav-3: #F7F4FB;
  --gold: #C9A23F;
  --gold-d: #B08A2C;
  --ink: #22152E;
  --ink-2: #4B3F57;
  --muted: #6E6479;
  --line: #E4DDEE;
  --bg: #FFFFFF;
  --ok-fg: #1E6B47; --ok-bg: #E4F3EA;
  --part-fg: #7A5300; --part-bg: #FFF2D2;
  --draft-fg: #5E546A; --draft-bg: #EFEBF3;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(45, 20, 65, .06), 0 8px 24px rgba(45, 20, 65, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--indigo); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 1.6rem 0 .5rem; color: var(--indigo); }
p { margin: 0 0 1rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); margin: 0 0 .5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--indigo); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Motivul de cusătură */
.motif { height: 26px; background: url("../img/motiv.svg") repeat-x left center; background-size: 32px 26px; opacity: .9; }
.motif.small { height: 13px; background-size: 16px 13px; }
.motif.light { background-image: url("../img/motiv-deschis.svg"); }

/* Butoane */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 700 1rem/1.2 var(--sans); padding: .8rem 1.25rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--indigo-d); }
.btn-gold:hover { background: var(--gold-d); color: var(--indigo-d); }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-line { border-color: var(--violet); color: var(--violet); background: #fff; }
.btn-line:hover { background: var(--lav); color: var(--violet-d); }
.btn[aria-disabled="true"] { background: var(--draft-bg); color: var(--muted); border-color: var(--line); cursor: not-allowed; }

/* Stare */
.status { display: inline-flex; align-items: center; gap: .4rem; font: 600 .8rem/1 var(--sans); padding: .38rem .7rem; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok-fg); background: var(--ok-bg); }
.status-partial { color: var(--part-fg); background: var(--part-bg); }
.status-draft { color: var(--draft-fg); background: var(--draft-bg); }

/* Antet */
.topbar { background: var(--indigo); color: #E9E1F4; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .flag { display: inline-flex; align-items: center; gap: .5rem; }
.topbar .flag::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--indigo); min-width: 0; }
.brand img { width: 86px; height: auto; }
.brand-sep { width: 1px; align-self: stretch; background: var(--line); }
.brand-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-t strong { font: 700 1.35rem/1.1 var(--serif); }
.brand-t span { font-size: .78rem; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav > a, .nav summary { font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover { background: var(--lav-3); color: var(--violet); }
.nav > a[aria-current="page"] { color: var(--violet); box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }
.nav details { position: relative; }
.nav summary::after { content: " ▾"; font-size: .8em; color: var(--muted); }
.nav .menu { position: absolute; right: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; min-width: 18rem; display: grid; gap: .1rem; }
.nav .menu a { display: block; padding: .45rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav .menu a:hover { background: var(--lav-3); color: var(--violet); }
.nav .menu .sep { height: 1px; background: var(--line); margin: .3rem .2rem; }
.nav .btn { margin-left: .4rem; padding: .6rem 1rem; font-size: .95rem; }
.navtoggle { display: none; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .navtoggle { display: block; margin-left: auto; }
  .navtoggle summary { list-style: none; cursor: pointer; font-weight: 700; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--indigo); }
  .navtoggle summary::-webkit-details-marker { display: none; }
  .navtoggle[open] .mobilemenu { display: grid; }
  .mobilemenu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .8rem var(--gutter) 1.2rem; display: none; gap: .1rem; max-height: 75vh; overflow: auto; }
  .mobilemenu a { padding: .5rem .2rem; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--lav-3); }
  .mobilemenu .btn { margin-top: .8rem; justify-content: center; border-bottom: 0; }
  .brand-sep, .brand-t span { display: none; }
}
@media (max-width: 420px) { .brand img { width: 70px; } .brand-t strong { font-size: 1.15rem; } }

/* Hero (acasă) */
.hero { position: relative; color: #fff; background: var(--indigo-d); overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,13,46,.92) 0%, rgba(31,13,46,.78) 38%, rgba(31,13,46,.25) 75%, rgba(31,13,46,.1) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-text { max-width: 40rem; }
.hero .eyebrow { color: #E7D9A8; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 1.6rem + 5vw, 5rem); line-height: 1; margin: .2rem 0 1.2rem; }
.hero .ambition { font: 400 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.5 var(--serif); margin: 0 0 1.4rem; color: #F5F0FA; }
.hero .ambition b { display: block; font: 700 .78rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #E7D9A8; margin-bottom: .6rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .pill { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35rem .8rem; border-radius: 999px; font-size: .88rem; margin-bottom: 1.4rem; }
.hero .pill::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }
.hero .credit { position: absolute; right: var(--gutter); bottom: .6rem; z-index: 1; font-size: .72rem; color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(31,13,46,.65) 0%, rgba(31,13,46,.92) 70%); } }

/* Secțiuni acasă */
.band { padding-block: clamp(3rem, 6vw, 5rem); }
.band.tint { background: var(--lav-3); }
.band.dark { background: var(--indigo); color: #F2ECF8; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark a { color: #fff; }
.band-head { max-width: 46rem; margin-bottom: 2rem; }
.band-head h2 { margin-top: 0; }
.band-head p { color: var(--ink-2); font-size: 1.08rem; }
.band.dark .band-head p { color: #DCD0EA; }

.onepage { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.onepage > * { min-width: 0; }
.big-quote { font: 400 clamp(1.25rem, 1.05rem + .8vw, 1.6rem)/1.45 var(--serif); color: var(--indigo); margin: 0 0 1.2rem; padding-left: 1.2rem; border-left: 4px solid var(--violet); }
.scope { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.scope p { margin: 0 0 .6rem; }
.scope p:last-child { margin: 0; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.sign { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.sign .k { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.sign .v { font: 600 1.7rem/1.1 var(--serif); color: var(--indigo); font-variant-numeric: tabular-nums; }
.sign .d { font-size: .92rem; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .9rem; }
.kpi { background: var(--violet); color: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; }
.kpi .k { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #E7D9A8; }
.kpi .v { font: 600 1.15rem/1.35 var(--serif); margin-top: .25rem; }
.kpi a { color: #fff; }
@media (max-width: 860px) { .onepage { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .signs, .kpis { grid-template-columns: 1fr; } }

.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.part-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.part-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.part-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--lav); }
.part-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.part-card .tx { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.part-card .q { font: 600 1.35rem/1.2 var(--serif); color: var(--indigo); }
.part-card .t { font-weight: 600; color: var(--violet); }
.part-card .n { margin-top: auto; padding-top: .5rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 980px) { .parts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .parts { grid-template-columns: 1fr; } }

/* File (tab-uri) pentru scheme */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 2px solid var(--line); margin-bottom: 1.4rem; }
@media (max-width: 760px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } .tabs [role="tab"], .tabs a { white-space: nowrap; flex: none; } }
.tabs [role="tab"], .tabs a { font: 600 .98rem/1.2 var(--sans); padding: .75rem 1rem; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; text-decoration: none; border-radius: 8px 8px 0 0; }
.tabs [role="tab"]:hover, .tabs a:hover { color: var(--violet); background: var(--lav-3); }
.tabs [role="tab"][aria-selected="true"], .tabs a[aria-current="page"] { color: var(--violet); border-bottom-color: var(--violet); }
.tabs .fig-n { color: var(--muted); font-weight: 500; margin-right: .3rem; }
.tabpanel[hidden] { display: none; }
.fig-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; align-items: baseline; margin: 0 0 1rem; }
.fig-caption h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.fig-hint { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); background: var(--lav-3); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; }
.fig-hint svg { flex: none; }
.fig-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* Diagrame: elemente comune */
.fig { position: relative; font-size: .95rem; }
.fig a { text-decoration: none; }
.fig a:hover, .fig a:focus-visible { text-decoration: underline; }
.node { border-radius: 16px; padding: .8rem 1rem; text-align: center; border: 2px solid var(--indigo); background: #fff; color: var(--indigo); position: relative; z-index: 1; min-width: 0; }
.node a { color: inherit; }
.node .ttl { display: block; font-weight: 700; letter-spacing: .02em; }
.node .sub { display: block; font-size: .9rem; margin-top: .2rem; }
.n-dark { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.n-violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.n-lav { background: var(--lav); border-color: var(--violet); color: var(--indigo); }
.n-outline { background: #fff; border-color: var(--indigo); }
.n-outline-v { background: #fff; border-color: var(--violet); color: var(--violet); }
.n-soft { background: var(--lav); border: 1.5px solid var(--lav-2); color: var(--indigo); }
.node:target, .node.is-hl { box-shadow: 0 0 0 4px var(--gold); }
.nodelink { display: block; color: inherit; }
.nodelink::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.node .sub a, .node .chips a { position: relative; z-index: 2; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.lines path { fill: none; stroke: var(--violet); stroke-width: 2; }
.lines path.dashed { stroke: #B9A6D6; stroke-dasharray: 6 6; }
.lines path.hl { stroke: var(--gold-d); stroke-width: 3; }

/* Figura 1. Schema logică */
.f1 { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3rem; column-gap: 1.2rem; }
.f1-part { grid-column: 1; border: 2px solid var(--lav-2); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 1rem/1.25 var(--sans); color: var(--violet); padding: .8rem; text-decoration: none; }
.f1-part:hover { background: var(--lav-3); }
.f1-row { grid-column: 2; display: flex; gap: 1.6rem; align-items: stretch; }
.f1-row > .node { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.f1-row > .node.w60 { flex: 1.45 1 0; }
.f1-arrow { grid-column: 2; height: 2.1rem; position: relative; }
.f1-arrow::before { content: ""; position: absolute; left: var(--x, 50%); top: .25rem; bottom: .55rem; width: 2px; background: var(--violet); transform: translateX(-1px); }
.f1-arrow::after { content: ""; position: absolute; left: var(--x, 50%); bottom: .2rem; border: 7px solid transparent; border-top: 9px solid var(--violet); border-bottom: 0; transform: translateX(-7px); }
.harr { flex: 0 0 auto; align-self: center; width: 0; position: relative; }
.harr::before { content: ""; position: absolute; left: -1.25rem; width: 1.1rem; top: -1px; height: 2px; background: var(--violet); }
.harr::after { content: ""; position: absolute; left: -.35rem; top: -7px; border: 7px solid transparent; border-left: 9px solid var(--violet); border-right: 0; }
.harr.both::before { left: -1.1rem; width: .9rem; }
.harr.both > i { position: absolute; left: -1.45rem; top: -7px; border: 7px solid transparent; border-right: 9px solid var(--violet); border-left: 0; }
.f1-loop { grid-column: 3; border: 2px dashed #8E80A0; border-left: 0; border-radius: 0 12px 12px 0; margin: 1.7rem 0 1.9rem -1.1rem; position: relative; display: flex; align-items: center; justify-content: center; }
.f1-loop::before { content: ""; position: absolute; left: -.2rem; top: -8px; border: 7px solid transparent; border-right: 9px solid #8E80A0; border-left: 0; }
.f1-loop a { position: absolute; right: -.72rem; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: .85rem; font-style: italic; color: var(--ink-2); padding: .5rem 0; background: #fff; white-space: nowrap; line-height: 1.3; }
.f1 .big .ttl { font-size: 1.12rem; }
.f1-m { display: none; }
@media (max-width: 760px) {
  .f1 > * { grid-row: auto !important; }
  .f1 { grid-template-columns: minmax(0, 1fr); }
  .f1-part, .f1-loop { display: none; }
  .f1-row, .f1-arrow { grid-column: 1; }
  .f1-row { flex-direction: column; gap: .6rem; }
  .harr.both::before { left: 0; width: 2px; }
  .harr { width: 2px; height: 2rem; align-self: center; }
  .harr::before { left: 0; top: .2rem; width: 2px; height: 1.3rem; }
  .harr::after { left: -6px; top: auto; bottom: -.15rem; border: 7px solid transparent; border-top: 9px solid var(--violet); border-bottom: 0; }
  .harr.both > i { display: none; }
  .f1-arrow { --x: 50% !important; }
  .f1-m { display: block; grid-column: 1; font: 700 .85rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin: 1.2rem 0 .5rem; }
  .f1-m:first-child { margin-top: 0; }
  .f1-m.loop { text-transform: none; letter-spacing: 0; font-weight: 600; font-style: italic; color: var(--ink-2); margin: .6rem 0 0; }
}

/* Figura 2. Harta raportului */
.f2-top { background: var(--violet); color: #fff; border-radius: 16px; padding: 1rem 1.2rem; text-align: center; font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; }
.f2-top a { color: #fff; }
.f2-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.1rem; }
.f2-col { display: flex; flex-direction: column; min-width: 0; }
.f2-head { background: var(--indigo); color: #fff; border-radius: 16px; padding: .9rem; text-align: center; font-weight: 700; line-height: 1.25; position: relative; display: block; }
.f2-head:hover { color: #fff; }
.f2-col:not(:last-child) .f2-head::after { content: ""; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-left: 10px solid var(--violet); }
.f2-q { text-align: center; font-style: italic; color: var(--violet); margin: .5rem 0; font-size: 1rem; }
.f2-list { list-style: none; margin: 0; padding: .6rem; background: var(--lav); border: 1.5px solid var(--lav-2); border-radius: 14px; flex: 1; display: grid; align-content: start; gap: .1rem; }
.f2-list a { display: block; padding: .45rem .5rem; border-radius: 8px; color: var(--indigo); line-height: 1.3; }
.f2-list a:hover { background: #fff; text-decoration: none; }
.f2-list .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--violet); margin-right: .25rem; }
.f2-annex { margin-top: 1.1rem; border: 2px solid var(--violet); border-radius: 16px; padding: .9rem 1.1rem; text-align: center; }
.f2-annex a { white-space: nowrap; }
.f2-annex strong { color: var(--violet); }
.f2-vols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.1rem; }
.f2-vol { border: 2px solid var(--indigo); background: var(--lav); border-radius: 16px; padding: .9rem 1rem; text-align: center; }
.f2-vol .ttl { font-weight: 700; }
@media (max-width: 960px) { .f2-cols { grid-template-columns: 1fr 1fr; } .f2-col .f2-head::after { display: none; } }
@media (max-width: 560px) { .f2-cols, .f2-vols { grid-template-columns: 1fr; } }

/* Figura 3. Harta politicilor */
.f3-wrap { position: relative; }
.f3 { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; gap: 1.6rem 1.4rem; align-items: center; }
.f3 .node { padding: .9rem; }
.f3-center { grid-column: 2 / span 2; grid-row: 2 / span 2; background: var(--violet); color: #fff; border: 0; border-radius: 50%; aspect-ratio: 1.75 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 1rem 2rem; max-width: 30rem; justify-self: center; width: 100%; position: relative; z-index: 1; }
.f3-center a { color: #fff; }
.f3-center .ttl, .f3-center .sub { display: block; }
.f3-center .ttl { font-weight: 800; letter-spacing: .05em; font-size: 1.15rem; }
.f3-center .sub { font: 600 1.15rem/1.3 var(--serif); }
.f3-n1 { grid-column: 2 / span 2; grid-row: 1; justify-self: center; width: min(100%, 24rem); }
.f3-n2 { grid-column: 4; grid-row: 2; }
.f3-n3 { grid-column: 4; grid-row: 3; }
.f3-n4 { grid-column: 3 / span 2; grid-row: 4; justify-self: center; width: min(100%, 22rem); }
.f3-n5 { grid-column: 1 / span 2; grid-row: 4; justify-self: center; width: min(100%, 22rem); }
.f3-group { grid-column: 1; grid-row: 1 / span 3; border: 2px dashed var(--lav-2); border-radius: 16px; padding: .9rem; display: flex; flex-direction: column; gap: 1.2rem; align-self: stretch; justify-content: center; position: relative; z-index: 1; background: transparent; }
.f3-group .glabel { font-weight: 800; font-size: .85rem; letter-spacing: .06em; color: var(--violet); text-align: center; }
.f3-group .glabel a { color: var(--violet); }
.f3 .node .chips { display: block; font-size: .85rem; margin-top: .25rem; opacity: .95; }
.f3 .n-soft .chips a, .f3 .n-outline .chips a { color: var(--violet); }
.f3-h { margin-top: 1.8rem; border: 2px solid var(--violet); border-radius: 16px; padding: 1rem; }
.f3-h .glabel { text-align: center; font-weight: 800; color: var(--violet); margin-bottom: .8rem; }
.f3-h .glabel a { color: var(--violet); }
.f3-h ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.f3-h li a { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; background: var(--lav); border: 1.5px solid var(--lav-2); border-radius: 12px; padding: .7rem .5rem; color: var(--indigo); line-height: 1.25; font-size: .92rem; }
.f3-h li a:hover { background: #fff; }
.f3-mk { margin: 1.1rem auto 0; max-width: 40rem; background: var(--violet); color: #fff; border-radius: 16px; padding: .9rem 1rem; text-align: center; }
.f3-mk a { color: #fff; }
.f3-mk .ttl { font-weight: 700; letter-spacing: .03em; }
@media (max-width: 860px) {
  .f3 { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .f3-center { grid-column: 1 / -1; grid-row: auto; order: -1; aspect-ratio: auto; border-radius: 16px; max-width: none; padding: 1.2rem; }
  .f3 > .node, .f3-group { grid-column: auto; grid-row: auto; width: auto; justify-self: stretch; }
  .f3-group { grid-column: 1 / -1; }
  .f3-h ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .f3 { grid-template-columns: 1fr; } .f3-h ul { grid-template-columns: 1fr 1fr; } }

/* Figura 5. Corespondența cu caietul */
.f5-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(4rem, .8fr) minmax(0, 1fr); gap: 0 1rem; margin-bottom: .6rem; align-items: end; }
.f5-head .l { font-weight: 800; color: var(--violet); }
.f5-head .r { font-weight: 800; color: var(--violet); text-align: center; }
.f5-head .leg { grid-column: 3; font-size: .82rem; color: var(--muted); font-style: italic; text-align: center; }
.f5 { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(4rem, .8fr) minmax(0, 1fr); grid-template-rows: repeat(15, auto); gap: .45rem 1rem; }
.f5-item { grid-column: 1; background: var(--lav); border: 1.5px solid var(--lav-2); border-radius: 10px; padding: .45rem .75rem; position: relative; z-index: 1; min-width: 0; }
.f5-item .main { font-weight: 600; color: var(--indigo); }
.f5-item .main .n { color: var(--violet); font-variant-numeric: tabular-nums; margin-right: .3rem; }
.f5-item .where { display: block; font-size: .82rem; color: var(--ink-2); }
.f5-item .where a { color: var(--violet); }
.f5-item.is-hl { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.f5-t { grid-column: 3; align-self: center; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--indigo); color: #fff; border-radius: 16px; padding: 1rem; font-weight: 700; min-height: 4rem; position: relative; z-index: 1; }
.f5-t:hover { color: #fff; }
.f5-t.is-hl { box-shadow: 0 0 0 4px var(--gold); }
.f5-parts-m { display: none; }
@media (max-width: 760px) {
  .f5, .f5-head { grid-template-columns: minmax(0, 1fr); }
  .f5-head .r, .f5-head .leg { display: none; }
  .f5-t { display: none; }
  .f5 .lines { display: none; }
  .f5-item { grid-row: auto !important; }
  .f5-parts-m { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
  .f5-parts-m a { background: var(--indigo); color: #fff; padding: .35rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; }
}

/* Antetul paginilor interioare */
.page-head { background: var(--lav-3); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 1.6rem 2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .9rem; color: var(--muted); margin: 0 0 1rem; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--lav-2); font-weight: 700; }
.crumbs a { color: var(--ink-2); }
.page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.12; margin: 0 0 .8rem; max-width: 22ch; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.page-head .q { font: italic 600 1.05rem/1.3 var(--serif); color: var(--violet); }
.page-head .summary { max-width: 46rem; color: var(--ink-2); font-size: 1.08rem; margin: .9rem 0 0; }
.page-head.with-img .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.page-head.with-img .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--lav); position: relative; }
.page-head.with-img .ph img { width: 100%; height: 100%; object-fit: cover; }
.page-head.with-img .credit { display: block; font-size: .75rem; color: var(--muted); margin-top: .4rem; }
.page-head.dark { background: var(--indigo); border-bottom: 0; color: #EDE5F6; }
.page-head.dark h1 { color: #fff; }
.page-head.dark .crumbs, .page-head.dark .crumbs a { color: #D9CDE8; }
.page-head.dark .q { color: #E7D9A8; }
.page-head.dark .summary { color: #DCD0EA; }
.page-head.dark .credit { color: #CBBEDC; }
@media (max-width: 820px) { .page-head.with-img .wrap { grid-template-columns: 1fr; } }

/* Corpul paginilor */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 2.2rem 3.5rem; align-items: start; }
.content { min-width: 0; max-width: 46rem; }
.content > :first-child { margin-top: 0; }
.content .lead { font-size: 1.15rem; color: var(--ink-2); }
.content ul, .content ol { padding-left: 1.3rem; }
.content li { margin-bottom: .45rem; }
.statement { margin: 0 0 1.5rem; padding: 1.1rem 1.3rem; border-left: 4px solid var(--violet); background: var(--lav-3); border-radius: 0 12px 12px 0; }
.statement p { font: 500 1.2rem/1.5 var(--serif); color: var(--indigo); margin: 0; }
.vision p { font: 400 1.12rem/1.6 var(--serif); padding-left: 1rem; border-left: 2px solid var(--lav-2); }
.note { font-size: .92rem; color: var(--muted); font-style: italic; }
.source { font-size: .88rem; color: var(--muted); margin-top: -.4rem; }
.callout { background: var(--violet); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.callout-t { font-weight: 800; letter-spacing: .02em; margin-bottom: .3rem; }
.callout p:last-child { margin: 0; }
.callout abbr { color: #fff; }
.planned { border: 1.5px dashed #B9A6D6; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; background: #fff; }
.planned-t { font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--part-fg); margin-bottom: .3rem; }
.planned p:last-child { margin-bottom: 0; }
.anchor { display: block; position: relative; top: -6rem; visibility: hidden; }
abbr.mk { text-decoration: none; font-size: .82em; font-weight: 700; color: var(--violet); cursor: help; white-space: nowrap; }
sup.fn a { font-weight: 700; text-decoration: none; padding: 0 .1rem; }
.notes { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; font-size: .88rem; color: var(--ink-2); }
.notes ol { padding-left: 1.2rem; }
.notes a { word-break: break-all; }
.refs a { word-break: break-all; }

/* Tabele */
.tablewrap { overflow-x: auto; margin: 1rem 0 .8rem; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption { text-align: left; font-weight: 700; color: var(--indigo); padding: .8rem 1rem .6rem; caption-side: top; }
thead th { background: var(--lav); color: var(--indigo); text-align: left; font-weight: 700; padding: .6rem .8rem; border-bottom: 1px solid var(--lav-2); white-space: nowrap; }
tbody th, tbody td { padding: .6rem .8rem; border-top: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
tbody th { font-weight: 600; }
tbody tr:target { background: #FFF7E0; }
.c-code { white-space: nowrap; width: 1%; }
.c-narrow { width: 14%; }
.code { font-weight: 700; color: var(--violet); white-space: nowrap; font-variant-numeric: tabular-nums; }
a.code { text-decoration: underline; text-decoration-color: var(--lav-2); }
.tbd { color: var(--muted); font-style: italic; }

/* Fișa politicii */
.rubrics { list-style: none; margin: 0; padding: 0; counter-reset: rub; display: grid; gap: .9rem; }
.rubric { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 3.4rem; position: relative; counter-increment: rub; background: #fff; }
.rubric::before { content: counter(rub); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--indigo); color: #fff; font: 700 .85rem/1.7rem var(--sans); text-align: center; }
.rubric h2 { font-family: var(--sans); font-size: 1.08rem; margin: 0 0 .4rem; color: var(--indigo); }
.rubric p:last-child, .rubric ul:last-child { margin-bottom: 0; }
.rubric.draft { background: var(--lav-3); border-style: dashed; }
.rubric.draft::before { background: #B9A6D6; }
.rubric.draft .why { color: var(--muted); font-size: .92rem; }
.rubric.lav { background: var(--lav); border-color: var(--lav-2); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1rem; margin: 0; }
.facts dt { font-weight: 700; color: var(--ink-2); }
.facts dd { margin: 0; }
.osgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0; }
.oscell { border: 1px solid var(--line); border-radius: 10px; padding: .5rem; text-align: center; font-size: .85rem; line-height: 1.25; text-decoration: none; color: var(--ink); background: #fff; }
.oscell .c { display: block; font-weight: 800; color: var(--violet); }
.oscell .dot { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid var(--violet); margin: .3rem 0 .1rem; }
.oscell.p2 .dot { background: var(--violet); }
.oscell.p0 { opacity: .5; }
.oscell.p0 .dot { border-color: var(--line); }
@media (max-width: 560px) { .osgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rubric { padding-left: 1.1rem; padding-top: 3rem; } }

/* Matricea (Figura 4) */
.matrix td, .matrix th { text-align: center; vertical-align: middle; }
.matrix tbody th { text-align: left; }
.matrix thead th { white-space: normal; text-align: center; background: var(--violet); color: #fff; }
.matrix thead th:first-child { background: var(--lav); color: var(--indigo); text-align: left; }
.matrix thead a { color: #fff; }
.mdot { display: inline-block; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2.5px solid var(--violet); vertical-align: middle; }
.mdot.p2 { background: var(--violet); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: var(--ink-2); margin: .5rem 0; }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }

/* Coloana laterală */
.aside { position: sticky; top: 6.5rem; display: grid; gap: 1rem; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; }
.box h2 { font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); margin: 0 0 .6rem; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.box.lav { background: var(--lav); border-color: var(--lav-2); }
.box .kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .8rem; font-size: .93rem; margin: 0; }
.box .kv dt { color: var(--muted); }
.box .kv dd { margin: 0; font-weight: 600; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } .content { max-width: none; } }

/* Navigare între secțiuni */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.2rem; }
.pager a { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .2rem; }
.pager a:hover { border-color: var(--violet); background: var(--lav-3); }
.pager .k { font-size: .8rem; color: var(--muted); font-weight: 600; }
.pager .t { font-weight: 700; color: var(--indigo); }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* Carduri de secțiuni (pagini de parte) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); background: #fff; display: flex; flex-direction: column; gap: .4rem; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--violet); box-shadow: var(--shadow); color: var(--ink); }
.card .num { font: 700 .85rem/1 var(--sans); color: var(--violet); letter-spacing: .04em; }
.card .t { font: 600 1.15rem/1.25 var(--serif); color: var(--indigo); }
.card .d { font-size: .93rem; color: var(--ink-2); }
.card .status { align-self: flex-start; margin-top: auto; }
.card.img { padding: 0; overflow: hidden; }
.card.img .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.card.img .ph img { width: 100%; height: 100%; object-fit: cover; }
.card.img .tx { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }

/* Politicile pe pagina principală */
.policies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .policies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .policies { grid-template-columns: minmax(0, 1fr); } }
.pol h3 a { text-decoration: none; color: var(--indigo); }
.pol h3 a:hover { text-decoration: underline; }
.pol.hp { background: var(--lav); border-color: var(--lav-2); }
.pol.hp .ph { background: var(--indigo) url("../img/motiv-deschis.svg") repeat center / 32px 26px; display: flex; align-items: flex-end; }
.pol.hp .ph span { background: var(--indigo); color: #fff; font: 600 1.2rem/1.2 var(--serif); padding: .7rem 1rem; margin: 0 0 1rem 1rem; border-radius: 10px; }
.pol.hp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pol.hp li a { text-decoration: none; color: var(--indigo); }
.pol.hp li a:hover { text-decoration: underline; }
.pol.hp .c { font-weight: 800; color: var(--violet); margin-right: .35rem; }
.pol { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.pol .ph { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--lav); }
.pol .ph img { width: 100%; height: 100%; object-fit: cover; }
.pol .badge { position: absolute; left: .8rem; top: .8rem; background: var(--indigo); color: #fff; font: 700 .8rem/1 var(--sans); padding: .4rem .65rem; border-radius: 999px; letter-spacing: .03em; }
.pol .tx { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pol h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.pol .k { font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); }
.pol .v { font-size: .95rem; color: var(--ink-2); margin: 0; }
.pol .go { margin-top: auto; font-weight: 700; }
.hpol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; margin-top: 1.2rem; }
.hpol a { background: #fff; border: 1.5px solid var(--lav-2); border-radius: 12px; padding: .8rem; text-decoration: none; color: var(--indigo); display: flex; flex-direction: column; gap: .2rem; }
.hpol a:hover { border-color: var(--violet); }
.hpol .c { font-weight: 800; color: var(--violet); }
.hpol .t { font-size: .93rem; line-height: 1.25; }
@media (max-width: 980px) { .hpol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hpol { grid-template-columns: 1fr 1fr; } }

/* Consultarea */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: st; }
.steps li { counter-increment: st; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.1rem; }
.steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold); color: var(--indigo-d); font-weight: 800; margin-bottom: .6rem; }
.steps strong { display: block; color: #fff; margin-bottom: .2rem; }
.band.dark .steps p { color: #DCD0EA; margin: 0; font-size: .95rem; }
.steps.light li { background: #fff; border-color: var(--line); }
.steps.light strong { color: var(--indigo); }
.steps.light p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.period { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; }

/* Subsol */
.site-footer { background: var(--lav-3); color: var(--ink-2); margin-top: 0; position: relative; }
.skyline { aspect-ratio: 1200 / 170; width: 100%; background: url("../img/linia-orasului.svg") no-repeat center bottom / 100% 100%; }
.site-footer .wrap { padding-block: 2rem 1.6rem; }
.fcols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.5rem 2rem; }
.fcols h2 { font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); margin: 0 0 .6rem; }
.fcols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .95rem; }
.fcols a { color: var(--ink-2); }
.fcols a:hover { color: var(--violet); }
.fbrand img { width: 110px; margin-bottom: .7rem; }
.fbrand p { font-size: .92rem; margin: 0 0 .4rem; }
.fbottom { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .fcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fcols { grid-template-columns: 1fr; } }

/* Pagini de serviciu */
.prose { max-width: 46rem; }
.credits td, .credits th { font-size: .88rem; }
.credits img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.warn { background: var(--part-bg); color: var(--part-fg); border-radius: 12px; padding: .9rem 1.1rem; font-weight: 600; margin-bottom: 1.4rem; }
.index-codes { columns: 2 18rem; column-gap: 2rem; }
.index-codes section { break-inside: avoid; margin-bottom: 1.2rem; }
.index-codes h3 { margin-top: 0; }
.index-codes ul { list-style: none; padding: 0; margin: 0; }
.index-codes li { margin-bottom: .3rem; font-size: .95rem; }
.markers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: .8rem 0 1.2rem; }
.markers div { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.markers b { color: var(--violet); margin-right: .4rem; }
@media (max-width: 560px) { .markers { grid-template-columns: 1fr; } }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.figure-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: #fff; }
.figure-tile .v { font: 600 1.45rem/1.15 var(--serif); color: var(--indigo); font-variant-numeric: tabular-nums; }
.figure-tile .l { font-size: .93rem; color: var(--ink-2); margin-top: .2rem; }
.figure-tile .s { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
@media (max-width: 560px) { .figures { grid-template-columns: 1fr; } }
.chapters { display: grid; gap: 1rem; }
.osd { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.osd h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.15rem; }
.osd .c { color: var(--violet); margin-right: .4rem; }
.osd ul { margin: .2rem 0 .6rem; }
.osd .k { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .6rem 0 .2rem; }

/* ===================================================================
   Paginile generate din documente (Raportul final, volumele II și III)
   =================================================================== */
.h-num { color: var(--violet); font-variant-numeric: tabular-nums; margin-right: .15em; }
.page-head.dark .h-num { color: #E7D9A8; }
.page-head.dark .eyebrow { color: #E7D9A8; }
.doc [id] { scroll-margin-top: 6.8rem; }
.doc h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.7rem); }
.doc h3 { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; margin-top: 1.9rem; }
.doc h4 { font-size: 1.02rem; color: var(--indigo); margin: 1.5rem 0 .4rem; }
.doc h5, .doc h6 { font-size: .98rem; color: var(--ink-2); margin: 1.2rem 0 .3rem; }
.doc .rub { font-family: var(--sans); font-size: 1.06rem; font-weight: 800; letter-spacing: .01em; color: var(--violet); border-top: 1px solid var(--line); padding-top: 1rem; margin: 2rem 0 .6rem; }
.doc > .rub:first-child, .doc .toc-m + .rub { border-top: 0; padding-top: 0; }
.caseta { background: var(--lav); border: 1px solid var(--lav-2); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0 1.4rem; }
.caseta.pescurt { border-left: 5px solid var(--violet); font-size: 1.05rem; }
.caseta p:last-child, .caseta ul:last-child { margin-bottom: 0; }
.tcap { font-weight: 700; color: var(--indigo); font-size: .95rem; margin: 1.8rem 0 .2rem; line-height: 1.35; }
.tcap + .tablewrap { margin-top: .5rem; }
blockquote.q { margin: .3rem 0 1rem 1rem; padding: .05rem 0 .05rem 1rem; border-left: 3px solid var(--lav-2); color: #333; }
blockquote.q p { margin: 0; font-style: italic; }
blockquote.q abbr, blockquote.q a { font-style: normal; }
blockquote.q + blockquote.q { margin-top: -.5rem; }
ol.measures { list-style: none; padding-left: 0; margin: .4rem 0 1.2rem; }
ol.measures > li { padding: .6rem 0; border-top: 1px dashed var(--lav-2); margin: 0; }
ol.measures > li:last-child { border-bottom: 1px dashed var(--lav-2); }
ol.measures > li.cont { padding-left: 1.2rem; color: var(--ink-2); }
.mcode { display: inline-block; font: 700 .76rem/1.5 var(--sans); background: var(--indigo); color: #fff; padding: 0 .55rem; border-radius: 999px; text-decoration: none; margin-right: .3rem; vertical-align: .1em; white-space: nowrap; }
.mcode:hover, .mcode:focus-visible { background: var(--violet); color: #fff; }
.doc li:target, .doc tr:target, .doc h2:target, .doc h3:target, .doc h4:target, .caseta:target { background: #FFF5D6; box-shadow: 0 0 0 6px #FFF5D6; border-radius: 4px; }
.doc table { font-size: .9rem; }
.doc thead th { white-space: normal; vertical-align: bottom; }
.doc td ul, .doc td ol { margin: .2rem 0; padding-left: 1.1rem; }
.doc td li { margin-bottom: .2rem; }
.doc td p { margin: 0 0 .4rem; }
.doc td p:last-child { margin-bottom: 0; }
.doc .t-wide { min-width: 44rem; }
.tablewrap:focus-visible { outline: 3px solid var(--gold); }
.docfig { margin: .6rem 0 1.2rem; }
.docfig img { border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; height: auto; }
.docfigure { margin: .6rem 0 1.4rem; }
.docfigure .fig-hint { margin-bottom: .8rem; display: inline-flex; }
.fig-alt { font-size: .9rem; margin: .7rem 0 0; }
.notes h2 { font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); margin: 0 0 .5rem; }
.notes li { margin-bottom: .35rem; }
.notes .back { text-decoration: none; margin-left: .2rem; }
.notes li:target { background: #FFF5D6; }

/* Cuprinsurile laterale */
.aside { max-height: calc(100vh - 7.5rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: .5rem; }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; font-size: .9rem; }
.toc-list a { display: block; padding: .25rem .45rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); line-height: 1.3; }
.toc-list a:hover { background: var(--lav-3); color: var(--violet); }
.toc-list a.active { background: var(--lav); color: var(--indigo); font-weight: 600; }
.toc-list .l3 a { padding-left: 1.2rem; font-size: .86rem; }
.sibs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; font-size: .9rem; }
.sibs a { display: block; padding: .3rem .45rem; border-radius: 6px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.sibs a:hover { background: #fff; color: var(--violet); }
.sibs li[aria-current] a { background: #fff; font-weight: 700; color: var(--violet); box-shadow: inset 3px 0 0 var(--violet); }
.box.sibs:not(.lav) li[aria-current] a { background: var(--lav-3); }
.box .fig-n { color: var(--muted); font-size: .85em; }
.aside-p { font-size: .93rem; margin: 0; }
.toc-m { display: none; }
@media (max-width: 980px) {
  .aside { max-height: none; overflow: visible; }
  .aside .toc { display: none; }
  .toc-m { display: block; border: 1px solid var(--line); border-radius: 12px; padding: .2rem .9rem; margin: 0 0 1.4rem; background: var(--lav-3); }
  .toc-m summary { cursor: pointer; font-weight: 700; color: var(--indigo); padding: .6rem 0; }
  .toc-m .toc-list { padding-bottom: .7rem; }
}

/* Paginile de grup (părți, capitole, volume) */
.hubwrap { padding-block: 2.2rem 3.5rem; }
.hub-intro { max-width: 46rem; margin-bottom: 1.2rem; }
.hub-intro > :first-child { margin-top: 0; }
.chapter-toc { background: var(--lav); border: 1px solid var(--lav-2); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.chapter-toc h2 { font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); margin: 0 0 .6rem; border: 0; padding: 0; }
.chapter-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; }
.chapter-toc li { margin: 0; }
.chapter-toc a { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: .6rem; padding: .35rem .45rem; border-radius: 8px; text-decoration: none; color: var(--indigo); line-height: 1.3; }
.chapter-toc a:hover { background: #fff; }
.chapter-toc .n { font-weight: 700; color: var(--violet); font-variant-numeric: tabular-nums; }
.planned-inline { color: var(--part-fg); background: var(--part-bg); border-radius: 10px; padding: .7rem .9rem; margin: 0; }
.cards.vols { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .cards.two { grid-template-columns: minmax(0, 1fr); } }
.card .n { font-size: .85rem; color: var(--muted); margin-top: auto; padding-top: .3rem; }

/* Pagina principală: obiectivele, măsurile și jaloanele, căutarea */
.os-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .55rem; }
.os-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: .1rem .7rem; }
.os-list .c { grid-row: span 2; font-weight: 800; }
.os-list .t { font-weight: 700; color: var(--indigo); line-height: 1.3; }
.os-list .d { font-size: .9rem; color: var(--ink-2); }
.strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; margin-top: 1.6rem; }
.strip > div { background: var(--lav-3); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.strip .k { font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); }
.strip .v { font-size: .95rem; color: var(--ink-2); }
.strip a { font-weight: 700; margin-top: auto; }
@media (max-width: 860px) { .strip { grid-template-columns: minmax(0, 1fr); } }
.find { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem 2rem; align-items: end; margin-top: 1.8rem; }
.find p { margin: 0 0 .7rem; }
@media (max-width: 760px) { .find { grid-template-columns: minmax(0, 1fr); } }
.searchform label { display: block; font-weight: 700; color: var(--indigo); margin-bottom: .4rem; }
.searchform .row { display: flex; gap: .5rem; }
.searchform input[type="search"] { flex: 1; min-width: 0; font: inherit; padding: .7rem 1rem; border: 1.5px solid var(--lav-2); border-radius: 999px; background: #fff; color: var(--ink); }
.searchform input[type="search"]:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--violet); }
.searchform .sscope { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .8rem; font-size: .95rem; }
.searchform .sscope label { font-weight: 400; color: var(--ink-2); display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.searchform.big input[type="search"] { font-size: 1.1rem; }
.results { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.results li { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.results .rt { font-weight: 700; font-size: 1.02rem; }
.results .rp { display: block; font-size: .84rem; color: var(--muted); margin-top: .1rem; }
.results .rs { font-size: .93rem; color: var(--ink-2); margin: .35rem 0 0; }
.results mark { background: #FFE9A8; color: inherit; padding: 0 .1rem; border-radius: 2px; }

/* Documentele consultării */
.doclist { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .8rem; }
.doclist li { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; align-items: center; }
.doclist .dt { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 22rem; min-width: 0; }
.doclist .t { font: 600 1.12rem/1.3 var(--serif); color: var(--indigo); }
.doclist .d { font-size: .92rem; color: var(--ink-2); }
.doclist .da { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.doclist .btn { padding: .55rem 1rem; font-size: .92rem; }
.doclist .later { font-size: .88rem; color: var(--muted); }

/* Antetul: meniuri, căutare */
.brand img { width: 96px; }
.fbrand img { width: 190px; }
.nav summary.cur { color: var(--violet); }
.nav .menu-wide { min-width: 25rem; max-height: 72vh; overflow: auto; }
.nav .menu .mh { font-weight: 700; color: var(--indigo); }
.nav .menu .mi { padding-left: 1.2rem; font-size: .92rem; }
.nav .nav-search { display: inline-flex; align-items: center; padding: .55rem; color: var(--ink); }
.nav-search.m { display: none; }
@media (max-width: 1020px) {
  .nav-search.m { display: inline-flex; margin-left: auto; padding: .5rem; color: var(--indigo); }
  .navtoggle { margin-left: .2rem; }
  .mobilemenu .mg { margin: .9rem 0 .2rem; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); border: 0; }
  .mobilemenu .mg:first-child { margin-top: 0; }
}
@media (max-width: 1180px) and (min-width: 1021px) { .nav > a, .nav summary { padding: .5rem .5rem; font-size: .94rem; } .brand-t span { display: none; } }

/* Tipar */
@media print {
  .topbar, .site-header, .aside, .pager, .site-footer, .toc-m, .motif, .fig-hint { display: none !important; }
  .layout { display: block; padding: 0; }
  .content { max-width: none; }
  .page-head { background: none; border: 0; }
  .page-head.dark { color: #000; }
  .page-head.dark h1, .page-head.dark .eyebrow { color: #000; }
  a { color: #000; text-decoration: none; }
  .tablewrap { overflow: visible; border: 0; }
}
.nav > a, .nav summary, .nav .btn { white-space: nowrap; }
@media (max-width: 1360px) { .brand-t span { display: none; } }
/* Umbre la marginile tabelelor care se derulează pe orizontală */
.doc .tablewrap {
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) 0 0 / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0 / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(45,20,65,.20), rgba(45,20,65,0)) 0 0 / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(45,20,65,.20), rgba(45,20,65,0)) 100% 0 / 14px 100% no-repeat scroll;
}
.f2-vol .ttl, .f2-vol .sub { display: block; }

/* Consultarea: butonul din antetul paginii „Consultarea publică” */
.page-head .head-cta { margin: 1.3rem 0 0; }
/* Antetul între 1021 și 1180 px: titlul pe un rând, butonul consultării vizibil integral */
@media (min-width: 1021px) and (max-width: 1180px) {
  .brand-t strong { white-space: nowrap; }
  .nav { gap: .1rem; }
  .nav > a, .nav summary { padding: .5rem .45rem; font-size: .95rem; }
  .nav .btn { margin-left: .25rem; padding: .55rem .8rem; font-size: .92rem; }
}
/* Butonul auriu păstrează textul închis și pe benzile închise la culoare */
.band.dark a.btn-gold, .band.dark a.btn-gold:hover { color: var(--indigo-d); }

/* Descărcările în format PDF */
.btn .ic, .hero-dl .ic, .box.dl .ic { flex: none; }
.btn .sz { font-weight: 500; opacity: .85; }
.page-head .head-dl { margin: 1.2rem 0 0; }
.page-head .head-dl .btn { padding: .6rem 1.05rem; font-size: .95rem; }
.page-head:not(.dark) .head-dl .btn-ghost { color: var(--violet); }
.page-head:not(.dark) .head-dl .btn-ghost:hover { background: var(--lav); color: var(--violet-d); }
.box.dl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.box.dl a { display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: start; text-decoration: none; color: var(--indigo); font-weight: 600; font-size: .95rem; line-height: 1.3; padding: .35rem .2rem; border-radius: 8px; }
.box.dl a:hover { background: var(--lav-3); color: var(--violet); }
.box.dl .ic { margin-top: .12rem; color: var(--violet); }
.box.dl .sz { grid-column: 2; font-weight: 400; font-size: .85rem; color: var(--muted); }
.doclist li.sub { margin-left: clamp(1rem, 3vw, 2.2rem); padding: .7rem 1rem; border-style: dashed; }
.doclist li.sub .t { font-size: 1rem; }
.hero .hero-dl { display: flex; gap: .5rem; align-items: center; margin: 1.1rem 0 0; font-size: .95rem; color: #E9E1F3; }
.hero .hero-dl a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.hero .hero-dl .sz { font-weight: 400; color: #D9CDE8; }

/* Pagina „Participați” */
.page-head .head-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.page-head .head-cta .note { margin: 0; font-size: 1rem; }
.page-head .period-line { margin: .8rem 0 0; font-weight: 600; color: var(--indigo); }
.steps .step-cta { margin-top: .8rem !important; }
.steps .step-cta .btn { padding: .55rem .95rem; font-size: .92rem; }

/* Subsolul: coordonatorul strategiei */
.fbrand .coord { font-size: .9rem; color: var(--muted); }
.nav > a.btn[aria-current="page"] { color: var(--indigo-d); box-shadow: none; border-radius: 999px; background: var(--gold-d); }
.prose .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .prose .steps { grid-template-columns: 1fr; } }
