/* fonts.css */
/* Fonturile site-ului (aceleași ca streamzone.ro), served from our server (no Google request for visitors).
   Anton, Archivo, Cinzel, Cormorant Garamond, Sedgwick Ave Display și Rubik Spray Paint: SIL Open Font License 1.1.
   Fonturile paginilor cu design propriu (Cinzel, Cormorant: Sindicat; Sedgwick, Rubik Spray: Ballas)
   se descarcă doar pe paginile care le folosesc. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cinzel-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cinzel-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-700-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ballas: Sedgwick Ave Display (titlul graffiti) și Rubik Spray Paint (spray), SIL OFL */
@font-face {
  font-family: "Sedgwick Ave Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sedgwick-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sedgwick Ave Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sedgwick-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik Spray Paint";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rubik-spray-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik Spray Paint";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/rubik-spray-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Garda Veche: Playfair Display (titluri, citate), SIL OFL */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Gitanos Cartel: Abril Fatface (titlu, citate), SIL OFL */
@font-face {
  font-family: "Abril Fatface";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/abril-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Abril Fatface";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/abril-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ombra Nocta: Julius Sans One (titlu, etichete), SIL OFL */
@font-face {
  font-family: "Julius Sans One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/julius-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Julius Sans One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/julius-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The Wanted: Russo One (titlu, etichete), SIL OFL */
@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/russo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/russo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* tokens.css */
/* Paleta site-ului: singurul loc pentru culorile comune. Celelalte fișiere folosesc doar var(--p-...).
   Culorile fiecărei facțiuni stau în css/teme/<slug>.css și setează doar variabilele --t-... */
:root {
  /* Fundaluri, de la cel mai adânc la cel ridicat */
  --p-ink: #0b0d12;
  --p-ink-2: #12151d;
  --p-ink-3: #1a1e29;

  /* Linii */
  --p-line: #262b38;
  --p-line-strong: #363c4d;

  /* Text (tonurile deschise sunt doar pentru text, nu pentru fundal) */
  --p-paper: #f4f6fb;
  --p-text: #e4e7ef;
  --p-muted: #a4abbd;
  --p-faint: #7d8497;
  --p-black: #000000;

  /* Accentul site-ului (auriu GeminiRP) */
  --p-accent: #e8b84a;
  --p-on-accent: #17130a;

  /* Stări și mărci */
  --p-online: #40c057;
  --p-discord: #5865f2;

  /* Portocaliul de apus: stare indisponibilă, capătul barei de jucători */
  --p-apus: #c4572e;

  /* Tema implicită; o facțiune o schimbă prin [data-tema="<slug>"] în css/teme/<slug>.css */
  --t-accent: var(--p-accent);
  --t-accent-2: var(--p-ink-3);
  --t-on-accent: var(--p-on-accent);
  /* Pentru paginile cu design propriu (css/pagini/<slug>.css): textul și culoarea de evidențiere */
  --t-os: var(--p-text);
  --t-auriu: var(--p-accent);

  /* Litere */
  --p-font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --p-font-body: "Archivo", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  /* Pentru paginile cu design propriu: litere romane, săpate (titluri) și literă de carte veche (text) */
  --p-font-regal: "Cinzel", Georgia, serif;
  --p-font-carte: "Cormorant Garamond", Georgia, serif;
  --p-font-dosar: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Consolas, monospace;
  --p-font-graffiti: "Sedgwick Ave Display", "Comic Sans MS", cursive;
  --p-font-spray: "Rubik Spray Paint", "Arial Black", sans-serif;
  --p-font-clasic: "Playfair Display", Georgia, serif;
  --p-font-afis: "Abril Fatface", Georgia, serif;
  --p-font-noapte: "Julius Sans One", Arial, sans-serif;
  --p-font-viteza: "Russo One", "Arial Black", sans-serif;

  /* Forme */
  --p-radius: 0.875rem;
  --p-radius-sm: 0.5rem;
  --p-shadow: 0 1.125rem 2.5rem color-mix(in srgb, var(--p-black) 45%, transparent);
  /* Marginea paginii, stânga-dreapta (pe calculator e mai mare, vezi base.css) */
  --p-margin: 1.25rem;
}

/* base.css */
/* Baza: fundal, text, linkuri. Componentele sunt în components.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--p-ink);
  -webkit-text-size-adjust: 100%;
}
/* Pe calculator pagina ocupă tot ecranul și totul crește odată cu el: toate mărimile sunt în rem,
   iar 1rem = 16px la 1440×780 (spațiul din browser al unui ecran 1440×900). Contează și înălțimea, ca prima pagină să încapă fără scroll.
   Pe telefon și tabletă 1rem rămâne 16px. */
@media (min-width: 1200px) {
  html {
    --p-margin: 1.75rem;
    font-size: max(12px, min(100vw / 90, 100vh / 48.5));
  }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--p-ink);
  color: var(--p-text);
  font-family: var(--p-font-body);
  font-size: 1rem;
  line-height: 1.5;
}
a {
  color: var(--t-accent);
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--p-paper);
  font-family: var(--p-font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--t-accent);
  outline-offset: 2px;
}

/* components.css */
/* Componente comune tuturor paginilor: navbar, subsol, emblemă, etichetă, mesaje goale, link înapoi. */

/* Navbar (markup în lib/layout.js). Rămâne sus la scroll; public/js/nav.js adaugă .is-scrolled
   (fundal plin pe toată lățimea) și, pe ecrane mici, .is-hidden la scroll în jos. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: calc(100% - 2 * var(--p-margin));
  min-height: 4.5rem;
  margin: 0 auto;
  border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 35%, transparent);
  transition: transform 0.25s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: color-mix(in srgb, var(--p-ink) 70%, transparent);
  transition: background 0.2s;
}
.nav.is-scrolled::before {
  border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 45%, transparent);
  background: var(--p-ink);
  box-shadow: var(--p-shadow);
}
.nav.is-hidden {
  transform: translateY(calc(-100% - 1rem));
}
.nav-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.625rem;
  color: var(--p-paper);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo {
  width: 2.625rem;
  height: 2.625rem;
}
.nav-brand b {
  font-family: var(--p-font-display);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.nav-brand b span {
  color: var(--p-accent);
}
.nav-linkuri {
  display: flex;
  gap: 0.375rem;
  margin-right: auto;
}
.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--p-radius-sm);
  color: var(--p-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--p-accent);
}
.nav-link.activ {
  background: color-mix(in srgb, var(--p-accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p-accent) 40%, transparent);
  color: var(--p-paper);
}
.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.125rem;
  border-radius: var(--p-radius-sm);
  background: var(--p-accent);
  color: var(--p-on-accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.nav-login:hover {
  background: color-mix(in srgb, var(--p-accent) 85%, var(--p-paper));
}
.nav-meniu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.625rem;
  height: 2.625rem;
  margin-left: auto;
  padding: 0 0.625rem;
  border: 1px solid var(--p-line-strong);
  border-radius: var(--p-radius-sm);
  background: var(--p-ink-2);
  cursor: pointer;
}
.nav-meniu span {
  height: 2px;
  border-radius: 2px;
  background: var(--p-paper);
}
@media (max-width: 899px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.625rem;
    min-height: 3.875rem;
  }
  .nav-brand b {
    font-size: 1.3125rem;
  }
  .nav-logo {
    width: 2.25rem;
    height: 2.25rem;
  }
  .nav-meniu {
    display: flex;
  }
  .nav:not(.menu-open) > :is(.nav-linkuri, .nav-login) {
    display: none;
  }
  .nav.menu-open {
    padding-bottom: 0.75rem;
  }
  .nav.menu-open > .nav-linkuri {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 3;
    width: 100%;
  }
  .nav.menu-open .nav-link {
    background: var(--p-ink-3);
    text-align: center;
  }
  .nav.menu-open > .nav-login {
    justify-content: center;
    order: 4;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}

.site-main {
  flex: 1;
  width: 100%;
  padding: 2rem var(--p-margin) 3.5rem;
}
/* Subsol */
.site-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--p-line);
  color: var(--p-faint);
  font-size: 0.875rem;
  text-align: center;
}

/* Emblema facțiunii: cerc în culorile temei, cu inițialele */
.emblema {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2));
  color: var(--t-on-accent);
  font-family: var(--p-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

/* Eticheta categoriei */
.eticheta {
  display: inline-block;
  padding: 2px 0.625rem;
  border: 1px solid color-mix(in srgb, var(--t-accent) 55%, transparent);
  border-radius: var(--p-radius-sm);
  color: var(--p-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Eticheta-simbol: doar coroana Sindicatului, fără chenar */
.eticheta-simbol {
  display: block;
  color: var(--p-accent);
  font-size: 1.875rem;
  line-height: 1;
  text-shadow: 0 0 1.125rem color-mix(in srgb, var(--p-accent) 45%, transparent);
}

/* Mesaj când o secțiune nu are încă conținut */
.gol {
  margin: 0;
  color: var(--p-faint);
  font-style: italic;
}

/* Link înapoi la prima pagină */
.inapoi {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--p-muted);
  font-weight: 600;
  text-decoration: none;
}
.inapoi:hover {
  color: var(--t-accent);
}

/* Text doar pentru cititoarele de ecran și motoarele de căutare (de ex. titlul primei pagini) */
.ascuns {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* pagini/ballas.css */
/* Pagina Ballas (design propriu): stradă, noaptea. Fundalul e imaginea cu membrii și mașina, titlul e pictat cu pensula,
   iar descrierea, membrii și semnătura stau în casete închise, transparente, cu contur mov. Markup în lib/pagini/ballas.js.
   Culorile vin din tema facțiunii: --t-accent (mov), --t-auriu (mov deschis), --t-accent-2 (mov închis), --t-os (text).
   Imaginea de fundal apare și pe afișul de pe prima pagină: la schimbarea ei se actualizează și lib/fundaluri.js. */

/* Fundalul: pe telefon imaginea stă sus și se pierde în negru; pe calculator acoperă tot ecranul (vezi media de jos) */
body:has(.ballas) {
  --ballas-noapte: color-mix(in srgb, var(--t-accent-2) 22%, var(--p-black));
  background:
    linear-gradient(to bottom, transparent 40%, var(--ballas-noapte) 100%) 0 0 / 100% 34rem no-repeat,
    url("/assets/img/fundal/ballas-1600.webp") 58% 0 / auto 34rem no-repeat,
    var(--ballas-noapte);
}
.ballas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  grid-template-rows: 1fr auto;
  gap: 1.4rem 1.6rem;
  color: var(--t-os);
}

/* Titlul pictat și motto-ul cu bara mov în stânga */
.ballas-cap {
  align-self: start;
  padding: 3.6rem 0 0 0.6rem;
}
.ballas-titlu {
  position: relative;
  display: inline-block;
  margin-bottom: 1.6rem;
  font-family: var(--p-font-graffiti);
  font-size: min(9rem, 24vw);
  letter-spacing: 0;
  line-height: 0.85;
  transform: rotate(-5deg);
  transform-origin: left bottom;
}
.ballas-titlu span {
  position: relative;
  background: linear-gradient(170deg, var(--p-paper) 35%, var(--t-auriu) 95%);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1.2rem color-mix(in srgb, var(--t-accent) 55%, transparent));
}
/* Trăsătura de pensulă de sub titlu */
.ballas-titlu::after {
  position: absolute;
  right: -0.4em;
  bottom: -0.12em;
  left: -0.25em;
  height: 0.09em;
  border-radius: 50% 40% 60% 30%;
  background: linear-gradient(90deg, transparent, var(--t-auriu) 20%, var(--t-accent) 70%, transparent);
  box-shadow: 0 0 1rem var(--t-accent);
  content: "";
  transform: rotate(-3deg);
}
.ballas-motto {
  max-width: 30rem;
  margin: 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--t-accent);
  color: var(--p-paper);
  font-family: var(--p-font-body);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0.15rem 0.8rem var(--p-black);
}
.ballas-motto b {
  display: block;
  color: var(--t-auriu);
}

/* Casetele: închise, transparente, cu contur mov care strălucește ușor */
.ballas-caseta {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--t-auriu) 45%, transparent);
  border-radius: 0.9rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t-accent-2) 60%, transparent), color-mix(in srgb, var(--p-black) 72%, transparent) 70%);
  box-shadow:
    0 0 1.6rem color-mix(in srgb, var(--t-accent) 22%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--p-paper) 8%, transparent);
  backdrop-filter: blur(6px);
}

/* Descrierea: două coloane, cu o linie subțire între ele */
.ballas-panou {
  align-self: end;
  padding: 1.8rem 2.2rem 1.7rem;
}
.ballas-text {
  column-count: 2;
  column-gap: 3.2rem;
  column-rule: 1px solid color-mix(in srgb, var(--t-auriu) 25%, transparent);
  color: color-mix(in srgb, var(--t-os) 90%, var(--p-black));
  font-size: 1.02rem;
  line-height: 1.55;
}
.ballas-text p {
  margin: 0 0 0.85rem;
  break-inside: avoid;
}
.ballas-text > :last-child {
  margin-bottom: 0;
}
/* Cuvintele îngroșate: în mov deschis */
.ballas-text strong {
  color: var(--t-auriu);
}
.ballas-subtitlu {
  margin-bottom: 0.5rem;
  color: var(--p-paper);
  font-family: var(--p-font-body);
  font-size: 1.35rem;
  font-weight: 800;
  break-after: avoid;
}
.ballas-text .declaratie {
  padding-left: 0.9rem;
  border-left: 3px solid var(--t-accent);
  font-weight: 700;
}
.ballas-text .declaratie span {
  display: block;
}
/* Ultima frază: citat încadrat, cu ghilimele mari */
.ballas-text .ballas-final {
  position: relative;
  margin: 1.1rem 0 0;
  padding: 0.85rem 2.8rem;
  border: 1px solid color-mix(in srgb, var(--t-auriu) 60%, transparent);
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--t-accent-2) 45%, transparent);
  box-shadow: 0 0 1.2rem color-mix(in srgb, var(--t-accent) 30%, transparent);
  color: var(--p-paper);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}
.ballas-final b {
  color: var(--t-auriu);
}
.ballas-final::before {
  position: absolute;
  color: var(--t-auriu);
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
  top: 0.15rem;
  left: 0.6rem;
  content: "\201C";
}
.ballas-final::after {
  position: absolute;
  color: var(--t-auriu);
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
  right: 0.6rem;
  bottom: -1.3rem;
  content: "\201D";
}
/* Categoria facțiunii, ca o ștampilă mică în colțul casetei */
.ballas-stampila {
  position: absolute;
  top: -0.85rem;
  right: 1.6rem;
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--t-auriu);
  border-radius: 0.3rem;
  background: var(--ballas-noapte);
  color: var(--t-auriu);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Coloana din dreapta: casetele stau jos, aliniate cu descrierea; caseta membrilor crește în sus când sunt mulți */
.ballas-lateral {
  display: flex;
  grid-row: 1 / 3;
  grid-column: 2;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.2rem;
  min-height: 0;
}
.ballas-icon {
  flex: none;
  width: 2.6rem;
  fill: var(--t-auriu);
  filter: drop-shadow(0 0 0.5rem color-mix(in srgb, var(--t-accent) 70%, transparent));
}

/* Membri: liderul și coliderul sus, cu gradul; restul ca etichete. Dacă nu mai încap, etichetele derulează. */
.ballas-membri {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  padding: 1.2rem 1.4rem;
}
.ballas-membri-cap {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1rem;
  color: var(--p-paper);
  font-family: var(--p-font-body);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0;
}
.ballas-membri-cap small {
  margin-left: auto;
  padding: 0.1rem 0.6rem;
  border-radius: 1rem;
  background: var(--t-accent);
  color: var(--t-on-accent);
  font-size: 0.85rem;
}
.ballas-membri > :is(ul, p) {
  margin: 0;
  list-style: none;
}
.ballas-sefi {
  display: grid;
  flex: none;
  gap: 0.45rem;
  padding: 0;
}
.ballas-sefi li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--t-accent), color-mix(in srgb, var(--t-accent) 45%, transparent));
  color: var(--t-on-accent);
  font-size: 1.05rem;
  font-weight: 800;
}
.ballas-sefi small {
  flex: none;
  min-width: 4.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ballas-etichete {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.1rem 0.2rem 0.2rem 0;
  overflow-y: auto;
  scrollbar-color: var(--t-accent) transparent;
  scrollbar-width: thin;
}
.ballas-etichete li {
  padding: 0.25rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--t-auriu) 35%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--t-accent) 22%, transparent);
  font-size: 0.92rem;
  font-weight: 600;
}
.ballas-gol {
  color: color-mix(in srgb, var(--t-os) 75%, transparent);
  font-size: 0.95rem;
  font-style: italic;
}
/* Semnătura: scutul în stânga, câte o propoziție pe rând */
.ballas-semnatura {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.3rem;
  padding: 1.5rem 1.6rem;
}
.ballas-icon-scut {
  width: 2.8rem;
}
.ballas-semnatura p {
  margin: 0;
  color: var(--p-paper);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.75;
}
.ballas-semnatura span {
  display: block;
}

/* Calculator: totul pe un ecran, fără scroll (pagina crește cu ecranul, vezi base.css); fundalul acoperă tot ecranul */
@media (min-width: 1200px) {
  body:has(.ballas) {
    background:
      linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--p-black) 55%, transparent)),
      linear-gradient(to right, color-mix(in srgb, var(--p-black) 40%, transparent), transparent 35%),
      url("/assets/img/fundal/ballas-2560.webp") center top / cover no-repeat fixed,
      var(--p-black);
  }
  .site-main:has(> .ballas) {
    display: flex;
    flex-direction: column;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
  .ballas {
    flex: 1;
  }
  body:has(.ballas) .site-footer {
    padding: 0.75rem;
  }
  /* Coloana din dreapta nu lungește pagina: ia înălțimea grilei, iar etichetele derulează dacă sunt foarte mulți */
  .ballas-lateral {
    height: 0;
    min-height: 100%;
  }
}
/* Ecrane foarte mari (2K, 4K): imaginea la rezoluție întreagă */
@media (min-width: 2000px) {
  body:has(.ballas) {
    background:
      linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--p-black) 55%, transparent)),
      linear-gradient(to right, color-mix(in srgb, var(--p-black) 40%, transparent), transparent 35%),
      url("/assets/img/fundal/ballas-3840.webp") center top / cover no-repeat fixed,
      var(--p-black);
  }
}

/* Telefon și tabletă: o singură coloană, casetele sub descriere */
@media (max-width: 1199px) {
  .ballas {
    grid-template-columns: minmax(0, 46rem);
    grid-template-rows: none;
    justify-content: center;
  }
  .ballas-cap {
    min-height: 22rem;
  }
  .ballas-lateral {
    grid-row: auto;
    grid-column: 1;
  }
  .ballas-etichete {
    max-height: 22rem;
  }
}
@media (max-width: 760px) {
  .ballas-cap {
    min-height: 19rem;
    padding-top: 6rem;
  }
  .ballas-motto {
    font-size: 1.5rem;
  }
  .ballas-panou {
    padding: 1.6rem 1.2rem 1.4rem;
  }
  .ballas-text {
    column-count: 1;
    font-size: 1.02rem;
  }
}

/* teme/ballas.css */
/* Tema Ballas: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="ballas"] {
  --t-accent: #8e44d6;
  --t-accent-2: #2f1452;
  --t-on-accent: #ffffff;
  --t-os: #f2eef6;
  --t-auriu: #c77dff;
}
