/* Șoim site. Institutional layout in the manner of a federal-agency site: white content,
   a blue navigation bar, grey and blue modules, a dark footer; serif headings over a sans
   body. The dark navy and the ring blue are the app icon's. */
:root {
  --blue: #0055A5;
  --blue-dark: #133C75;
  --navy: #04102D;
  --navy-2: #061A45;
  --ring: #1B4B9D;
  --sky: #9DB8F0;
  --orange: #EB5802;
  --orange-dark: #C84A00;
  --module: #EEEFF0;
  --module-blue: #E4ECF7;
  --rule: #D5D8DE;
  --text: #2B2E36;
  --muted: #666A73;
  --white: #FFFFFF;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* one language at a time once the script has chosen; both, Romanian first, without it */
html[data-lang="ro"] .l10n[lang="en"],
html[data-lang="en"] .l10n[lang="ro"] { display: none !important; }

/* ---------- masthead: white, the emblem and the wordmark left, the language right ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead .container { display: flex; align-items: center; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.emblem { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--navy); }
.emblem img { width: 58px; height: 58px; border-radius: 12px; display: block; }
.wordmark { font-family: var(--serif); font-size: 1.95rem; line-height: 1; letter-spacing: 0.01em; }
.wordmark small { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
.masthead .meta { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.masthead .meta .weblink { font-size: 0.9rem; color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.masthead .meta .weblink:hover { text-decoration: underline; }

.lang-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.lang-switch button { appearance: none; border: 0; background: var(--white); color: var(--blue-dark); font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.35rem 0.7rem; cursor: pointer; }
.lang-switch button:hover { background: var(--module); }
html[data-lang="ro"] .lang-switch [data-set-lang="ro"],
html[data-lang="en"] .lang-switch [data-set-lang="en"] { background: var(--blue); color: var(--white); }

/* ---------- the blue navigation bar ---------- */
.navbar { background: var(--blue); }
.navbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.navbar a { display: block; padding: 0.8rem 1.15rem; color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.navbar a:hover { background: var(--blue-dark); }
.navbar a[aria-current="page"] { background: var(--blue-dark); box-shadow: inset 0 -4px 0 var(--orange); }

/* ---------- the stage on the landing page ---------- */
.stage { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 50%, var(--blue-dark) 100%); }
.stage .container { position: relative; display: flex; align-items: center; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.stage .rings { position: absolute; right: -9rem; top: 50%; width: 42rem; height: 42rem; transform: translateY(-50%); opacity: 0.45; pointer-events: none; }
.stage .teaser { position: relative; max-width: 38rem; }
.stage .kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); margin: 0 0 0.6rem; }
.stage h1 { font-family: var(--serif); font-size: 2.9rem; line-height: 1.1; margin: 0 0 0.8rem; }
.stage .lede { font-size: 1.2rem; color: #DCE5F7; margin: 0 0 1.6rem; max-width: 34rem; }
.stage .emblem-big { position: relative; margin-left: auto; flex: 0 0 auto; width: 168px; height: 168px; border-radius: 36px; box-shadow: 0 0 0 1px rgba(157, 184, 240, 0.5), 0 0 0 18px rgba(27, 75, 157, 0.25), 0 0 0 40px rgba(27, 75, 157, 0.1); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.98rem; border: 2px solid transparent; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: var(--white); color: var(--blue-dark); border-color: var(--blue); }
.btn-outline:hover { background: var(--module-blue); }

/* ---------- content modules ---------- */
.module { padding: 3rem 0; }
.module.grey { background: var(--module); }
.module.blue { background: var(--module-blue); }
.module.navy { background: var(--navy-2); color: var(--white); }
.module h2 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.4rem; color: var(--navy); }
.module.navy h2 { color: var(--white); }
.module .intro { color: var(--muted); max-width: 42rem; margin: 0 0 1.75rem; }
.module.navy .intro { color: #C9D3EA; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.tile { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--blue); padding: 1.3rem 1.35rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.tile:hover { border-top-color: var(--orange); }
.tile svg { width: 2.1rem; height: 2.1rem; color: var(--blue); }
.tile h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0.3rem 0 0; color: var(--navy); }
.tile p { margin: 0; font-size: 0.95rem; flex: 1; }
.tile .more { color: var(--blue); font-weight: 700; text-decoration: none; margin-top: 0.4rem; }
.tile .more::after { content: " ›"; }
.tile .more:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0; }
.badge { display: inline-flex; flex-direction: column; background: var(--navy); color: var(--white); padding: 0.55rem 1.1rem; border-radius: 6px; text-decoration: none; min-width: 11rem; border: 1px solid rgba(157, 184, 240, 0.35); }
.badge:hover { background: var(--blue-dark); }
.badge small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.badge strong { font-size: 1.05rem; }
.badge.light { background: var(--white); color: var(--blue-dark); border-color: var(--blue); }
.badge.light:hover { background: var(--module-blue); }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-size: 0.97rem; }
.facts li strong { color: var(--navy); }

/* ---------- inner pages: a grey page header, white content ---------- */
.pagehead { background: var(--module); border-bottom: 1px solid var(--rule); padding: 1.6rem 0 1.9rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.7rem; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span::before { content: "›"; margin: 0 0.5rem; color: var(--muted); }
.pagehead h1 { font-family: var(--serif); font-size: 2.4rem; line-height: 1.15; margin: 0; color: var(--navy); }
.pagehead .lede { margin: 0.6rem 0 0; color: var(--muted); max-width: 44rem; font-size: 1.1rem; }

.content { max-width: 46rem; padding: 2.25rem 0 4rem; }
.content h2 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; margin: 2.4rem 0 0.6rem; color: var(--blue-dark); }
.content h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 0.4rem; color: var(--navy); }
.updated { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.5rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--module); border-radius: 3px; padding: 0.05em 0.35em; }
.ui { font-weight: 700; background: var(--module); border: 1px solid var(--rule); border-radius: 3px; padding: 0 0.4em; white-space: nowrap; }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; font-size: 0.92rem; color: var(--blue-dark); background: var(--white); }
.toc a:hover { background: var(--module-blue); }

ol.steps { list-style: none; counter-reset: step; margin: 0.75rem 0 0; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 2.7rem; margin: 0.8rem 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }

.tip { border-left: 5px solid var(--blue); background: var(--module); padding: 0.85rem 1rem; margin: 1.2rem 0; }
.tip.warn { border-left-color: var(--orange); }
.tip p { margin: 0; }
.tip p + p { margin-top: 0.5rem; }

section.l10n ul { padding-left: 1.2rem; }
section.l10n li { margin: 0.35rem 0; }
html:not([data-lang]) section.l10n + section.l10n { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }

/* ---------- the dark footer ---------- */
.footer { background: var(--navy); color: #C9D3EA; padding: 2.75rem 0 0; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.footer h4 { color: var(--white); font-family: var(--serif); font-weight: 600; margin: 0 0 0.6rem; font-size: 1.15rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: #C9D3EA; text-decoration: none; line-height: 1.9; font-size: 0.95rem; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .about { font-size: 0.93rem; max-width: 22rem; }
.subfooter { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.25rem; padding: 1rem 0 1.25rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; color: #A9B6D6; }

@media (max-width: 760px) {
  .masthead .container { flex-wrap: wrap; }
  .masthead .meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .navbar a { padding: 0.7rem 0.85rem; font-size: 0.9rem; }
  .stage .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .stage h1 { font-size: 2.2rem; }
  .stage .emblem-big { display: none; }
  .stage .rings { right: -16rem; opacity: 0.3; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .pagehead h1 { font-size: 1.9rem; }
  .btn { width: 100%; }
}
