

.lgl { position: relative; z-index: 1; } 
.lg-hero { padding: calc(var(--nav-h, 74px) + clamp(48px, 7vw, 96px)) 16px clamp(40px, 6vw, 72px); text-align: center; }
.lg-hero--solo { min-height: calc(100svh - 40px); display: grid; align-content: center; padding-bottom: clamp(64px, 10vw, 120px); }
.lg-in { width: 100%; max-width: 1120px; margin: 0 auto; }

.lg-k { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-body); font-size: .78rem; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ice); }
.lg-k::before, .lg-k::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, rgba(172, 213, 245, .7)); }
.lg-k::after { transform: scaleX(-1); }

.lg-h1 { margin: 22px auto 0; max-width: 20ch; font-family: var(--f-title, "Syne", "Manrope", sans-serif); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em; color: #fff; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.lg-h1 .lg-iri { background: var(--iri); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.lg-rule { display: block; width: min(280px, 60%); height: 1px; margin: clamp(28px, 4vw, 44px) auto; border: 0;
  background: linear-gradient(90deg, transparent, var(--ice) 25%, var(--lilac) 60%, var(--blush) 80%, transparent); opacity: .6; }

.lg-dl__t { margin: 0 auto; max-width: 52ch; font-family: var(--f-body); font-size: clamp(1.02rem, 1.6vw, 1.25rem); font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; line-height: 1.35; color: #fff; text-wrap: balance; }
.lg-dl__s { margin: 12px auto 0; max-width: 46ch; font-family: var(--f-body); font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.lg-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.lg-acts .btn { min-height: 50px; }

.lg-pdf.is-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; cursor: default;
  font-family: var(--f-body); font-size: .98rem; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, .035);
  border: 1px dashed rgba(187, 165, 231, .55); opacity: 1; pointer-events: none; -webkit-user-select: none; user-select: none; }
.lg-pdf.is-soon i { font-size: 1.15rem; color: var(--lilac); }
.lg-pdf__hint { flex-basis: 100%; margin: 4px 0 0; font-family: var(--f-body); font-size: .85rem; color: var(--ink-3); }
.lg-pdf__hint[hidden] { display: none; }

.lg-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; font-family: var(--f-body); font-size: .98rem; font-weight: 700;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(187, 165, 231, .45); transition: border-color .2s, color .2s; }
.lg-more:hover { border-color: var(--blush); color: #fff; }
.lg-more i { font-size: 1rem; color: var(--lilac); }
.lg-hero .lg-more { margin-top: 26px; }

.lg-org { margin: 18px 0 0; font-family: var(--f-body); font-size: .9rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.lg-org b { color: var(--ink-2); font-weight: 800; }
.lg-hero--doc .lg-acts { margin-top: 30px; }
.lg-btn2 { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--f-body); font-size: .98rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16);
  text-decoration: none; transition: background-color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.lg-btn2:hover { background: rgba(255, 255, 255, .09); border-color: rgba(187, 165, 231, .55); }
.lg-btn2:active { transform: scale(.98); }
.lg-btn2 i { font-size: 1.15rem; color: var(--ice); }

.rg-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px clamp(80px, 10vw, 140px); }
@media (min-width: 1024px) { .rg-wrap { grid-template-columns: 268px minmax(0, 70ch); justify-content: center; gap: clamp(48px, 5vw, 80px); padding-inline: 32px; } }

.rg-toc { position: sticky; z-index: 3; top: var(--nav-h, 68px); margin: 0 -16px 28px; }
.rg-toc details { position: relative; background: #0a0910;  border-block: 1px solid rgba(255, 255, 255, .08); } 
.rg-toc summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
  font-family: var(--f-body); font-size: .95rem; font-weight: 700; color: #fff; }
.rg-toc summary::-webkit-details-marker { display: none; }
.rg-toc__k { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.rg-toc__cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 600; }
.rg-toc summary > i { flex: none; font-size: .9rem; opacity: .7; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.rg-toc details[open] summary > i { transform: rotate(180deg); }
.rg-toc ol { list-style: none; margin: 0; padding: 4px 8px 12px; display: grid; gap: 1px; max-height: min(62vh, 520px); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 1023px) {
  .rg-toc ol { position: absolute; left: 0; right: 0; top: 100%; background: #0b0a12; border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .85); }
}
.rg-toc a { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 9px 10px; border-radius: 10px; text-decoration: none;
  font-family: var(--f-body); font-size: .92rem; line-height: 1.3; color: var(--ink-2); transition: background-color .2s, color .2s; }
.rg-toc a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.rg-toc__n { flex: none; min-width: 3.4em; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rg-toc a.is-on { color: #fff; background: rgba(159, 179, 238, .1); box-shadow: inset 2px 0 0 var(--peri); }
.rg-toc a.is-on .rg-toc__n { color: var(--ice); }
@media (min-width: 1024px) {
  .rg-toc { top: calc(var(--nav-h, 74px) + 28px); align-self: start; margin: 0; }
  .rg-toc details { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rg-toc summary { min-height: 0; padding: 0 10px 14px; cursor: default; pointer-events: none; }
  .rg-toc summary > i, .rg-toc__cur { display: none; }
  .rg-toc ol { padding: 0; max-height: calc(100vh - var(--nav-h, 74px) - 110px); }
  .rg-toc nav, .rg-toc ol { scrollbar-width: thin; }
}

.rg-doc { min-width: 0; max-width: 70ch; font-family: var(--f-body); font-size: clamp(1rem, 1.15vw, 1.0625rem); line-height: 1.7; color: #dcd7e8; }
.rg-en { display: none; align-items: center; gap: 10px; margin: 0 0 28px; padding: 12px 16px; border-radius: 14px; font-size: .95rem; font-weight: 600; color: #fff;
  background: rgba(172, 213, 245, .07); border: 1px solid rgba(172, 213, 245, .25); }
.rg-en i { color: var(--ice); font-size: 1.1rem; }
html[lang="en"] .rg-en { display: flex; }
html[lang="en"] main .rg-doc[lang="ro"] { display: block !important; }
html[lang="en"] main .rg-toc ol[lang="ro"] { display: grid !important; }
.rg-art { padding-top: 8px; }
.rg-art + .rg-art { margin-top: clamp(36px, 4vw, 52px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(255, 255, 255, .07); }
.rg-art__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 18px; font-family: var(--f-body); font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800; line-height: 1.25; letter-spacing: -.015em; color: #fff; }
.rg-art__n { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #14122a; background: var(--iri); font-variant-numeric: tabular-nums; }
.rg-sub { margin: 26px 0 12px; font-family: var(--f-body); font-size: 1.08rem; font-weight: 800; line-height: 1.35; color: #fff; }
.rg-cl + .rg-cl, .rg-sub + .rg-cl { margin-top: 12px; }
.rg-cl p { margin: 0; text-wrap: pretty; }
.rg-n { display: inline-block; margin-right: .45em; font-weight: 800; color: var(--peri); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.rg-sub .rg-n { color: var(--lilac); }
@media (min-width: 640px) {
  .rg-cl { --hang: 3.3rem; padding-left: var(--hang); }
  .rg-cl--d { --hang: 4.4rem; }
  .rg-cl p > .rg-n:first-child { min-width: var(--hang); margin-left: calc(-1 * var(--hang)); margin-right: -.28em; } 
}
.rg-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rg-list li { position: relative; padding-left: 1.4em; }
.rg-dash { position: absolute; left: 0; top: 0; color: var(--lilac); font-weight: 800; }
.rg-defs { margin-top: 0; gap: 12px; }
.rg-defs b { color: #fff; font-weight: 800; }
.rg-doc a { color: var(--ice); }
.rg-doc p a:not([class]), .rg-doc li a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; } 
.rg-end { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.rg-end .lg-more { margin-top: 0; }

@media (max-width: 1023px) { .rg-doc .rg-art, .rg-doc .rg-cl, .rg-doc .rg-sub { scroll-margin-top: calc(var(--nav-h, 68px) + 68px); } }
@media (prefers-reduced-motion: reduce) { .rg-toc summary > i { transition: none; } }

@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body > :not(main) { display: none !important; }
  .rg-toc, .lg-acts, .lg-more, .rg-en, .rg-end, .lg-k::before, .lg-k::after { display: none !important; }
  .lg-in { max-width: none; }
  .lg-hero { padding: 0 0 14pt; text-align: left; }
  .lg-k, .lg-org, .lg-org b { color: #000 !important; letter-spacing: .1em; }
  .lg-h1 { margin: 6pt 0 0; max-width: none; font-size: 18pt; line-height: 1.15; color: #000 !important; letter-spacing: 0; }
  .rg-wrap { display: block; max-width: none; padding: 0; }
  .rg-doc { max-width: none; font-size: 10.5pt; line-height: 1.5; color: #000 !important; }
  .rg-art + .rg-art { margin-top: 12pt; padding-top: 0; border: 0; }
  .rg-art__t { margin: 0 0 6pt; font-size: 12pt; color: #000 !important; break-after: avoid; }
  .rg-art__n { height: auto; padding: 0; border-radius: 0; background: none !important; color: #000 !important; font-size: 12pt; letter-spacing: 0; text-transform: none; }
  .rg-sub, .rg-defs b { color: #000 !important; }
  .rg-n, .rg-sub .rg-n, .rg-dash { color: #000 !important; }
  .rg-cl { break-inside: avoid-page; }
  .rg-cl + .rg-cl, .rg-sub + .rg-cl { margin-top: 5pt; }
}

.rg-toc a { position: relative; padding-left: 30px; border-radius: 0; background: none !important; box-shadow: none !important; transition: color .3s ease; }
.rg-toc a::before { content: ""; position: absolute; left: 4px; top: calc(9px + .62em); width: 18px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, #acd5f5, #bba5e7, #e8c3df);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; opacity: .5; }
.rg-toc a .rg-toc__n { transition: color .3s ease; }
.rg-toc a:hover { color: #fff; }
.rg-toc a:hover::before { transform: scaleX(.55); }
.rg-toc a.is-on { color: #fff; }
.rg-toc a.is-on::before { transform: scaleX(1); opacity: 1; }
.rg-toc a.is-on .rg-toc__n { background: linear-gradient(90deg, #acd5f5, #bba5e7 55%, #e8c3df); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rg-toc a:focus-visible { outline: 2px solid #bba5e7; outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .rg-toc a::before { transition: none; } }
