/**
 * PIO Standalone — Varianta A (șablon familie)
 * Antet: [siglă Piogrup cu wordmark] [nume modul] ……………… [limbă]
 * (fără text „Piogrup” lângă medalion — e deja în PNG)
 *
 * Folosire într-un HTML nou:
 *   1. Copiază assets/pio-logo.png lângă app (sau păstrează folderul assets/)
 *   2. <link rel="stylesheet" href="standalone-brand.css">
 *   3. Marchează root: <body class="pio-standalone">
 *   4. Li pește blocul .pio-app-chrome din debitare-coli.html și schimbă doar
 *      data-module-title / textul h1 + lead-ul modulului.
 */
:root {
  --pio-brand: #2c4f7c;
  --pio-brand-strong: #1e3a5f;
  --pio-champagne: #b8956a;
  --pio-ink: #17202a;
  --pio-muted: #64748b;
  --pio-line: #d8e1ec;
  --pio-mark-size: 112px;
  --pio-mark-inner: 100px;
}

.pio-app-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 18px;
  margin: 0 0 10px;
}

.pio-app-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  flex: 1 1 320px;
  min-width: 0;
}

/* Medailon: sigla completă (grilă + Piogrup + bulina albastră sub wordmark). */
.pio-app-mark {
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--pio-mark-size);
  height: calc(var(--pio-mark-size) * 1.12);
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.pio-app-mark > img,
.pio-app-mark > svg {
  grid-area: 1 / 1;
  display: block;
  width: var(--pio-mark-inner);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 657 / 720;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* Fallback SVG doar dacă lipsește PNG — niciodată alături de img (evită „jumătăți”). */
.pio-app-mark-fallback {
  display: none !important;
}

.pio-app-mark.is-fallback .pio-app-mark-fallback {
  display: block !important;
}

.pio-app-mark.is-fallback > img {
  display: none !important;
}

.pio-app-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pio-app-family {
  /* Textul „Piogrup” stă deja în PNG-ul siglei — nu-l mai afișăm lângă medalion. */
  display: none;
}

.pio-app-module {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--pio-brand-strong);
  line-height: 1.2;
}

.pio-app-lead {
  margin: 0 0 14px;
  color: var(--pio-muted);
  font-size: 14px;
  max-width: 62ch;
  line-height: 1.45;
}

.pio-app-lang {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.pio-app-lang label {
  font-size: 12px;
  font-weight: 800;
  color: var(--pio-ink);
}

.pio-app-lang select {
  min-height: 42px;
  padding: 8px 12px;
  border: 1.5px solid #c5d0db;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  color: var(--pio-brand-strong);
  background: #fff;
  cursor: pointer;
}

@media (max-width: 720px) {
  .pio-app-lang {
    width: 100%;
  }
}
