/* 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/sindicat.css */
/* Pagina Sindicatului (design propriu), după macheta lui Silviu: biroul conducerii noaptea, roșu închis și auriu,
   peste imaginea de fundal. Titlul argintiu centrat cu un ornament roșu, motto-ul în cursiv, textul pe trei coloane;
   jos conducerea (stânga), ultima frază într-un cadru cu capete ascuțite (mijloc) și ordinea în oraș (dreapta).
   Markup în lib/pagini/sindicat.js. Culorile vin din tema facțiunii: --t-accent (roșu), --t-accent-2 (vișiniu închis),
   --t-auriu (auriu), --t-os (text). Treapta The Shadows își ia culorile din tema ei (data-tema).
   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 roșu închis; pe calculator acoperă tot ecranul (vezi media de jos) */
body:has(.sindicat) {
  --sindicat-noapte: color-mix(in srgb, var(--t-accent-2) 80%, var(--p-black));
  background:
    linear-gradient(to bottom, transparent 40%, var(--sindicat-noapte) 100%) 0 0 / 100% 26rem no-repeat,
    url("/assets/img/fundal/sindicat-1600.webp") 50% 0 / auto 26rem no-repeat,
    var(--sindicat-noapte);
}
.sindicat {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr) 20rem;
  grid-template-rows: 1fr auto auto;
  grid-template-areas:
    "cap cap cap"
    "text text text"
    "masa final ordine";
  gap: 1.1rem 2rem;
  color: var(--t-os);
}

/* Titlul: argintiu, rărit, cu o linie roșie și o coroană sub el; motto-ul în cursiv */
.sindicat-cap {
  grid-area: cap;
  align-self: end;
  text-align: center;
}
.sindicat-titlu {
  background: linear-gradient(180deg, var(--p-paper) 15%, color-mix(in srgb, var(--t-os) 70%, var(--t-auriu)) 55%, color-mix(in srgb, var(--t-auriu) 60%, var(--p-black)) 100%);
  background-clip: text;
  color: transparent;
  font-family: var(--p-font-regal);
  font-size: min(4.8rem, 11vw);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.05;
  filter: drop-shadow(0 0.3rem 0.8rem var(--p-black));
}
.sindicat-motto {
  margin: 0;
  color: var(--p-paper);
  font-family: var(--p-font-carte);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0.15rem 0.6rem var(--p-black);
}
.sindicat-motto::before {
  display: block;
  width: min(30rem, 80%);
  margin: 0.2rem auto 0.4rem;
  background: linear-gradient(90deg, transparent, var(--t-accent) 35% 46%, transparent 46% 54%, var(--t-accent) 54% 65%, transparent) center / 100% 2px no-repeat;
  color: var(--t-accent);
  content: "\265B";
  font-family: var(--p-font-body);
  font-size: 1.3rem;
  font-style: normal;
  line-height: 1;
  text-shadow: 0 0 0.8rem color-mix(in srgb, var(--t-accent) 70%, transparent);
}

/* Textul: trei coloane, cu linii roșii subțiri între ele */
.sindicat-text {
  grid-area: text;
  column-count: 3;
  column-gap: 3rem;
  column-rule: 1px solid color-mix(in srgb, var(--t-accent) 40%, transparent);
  padding: 0.3rem 2rem;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--p-black) 72%, transparent) 40%, transparent 72%);
  font-size: 0.98rem;
  line-height: 1.5;
  text-shadow: 0 0.1rem 0.4rem var(--p-black);
}
.sindicat-text p {
  margin: 0 0 0.7rem;
  break-inside: avoid;
}
.sindicat-text > :last-child {
  margin-bottom: 0;
}
.sindicat-text strong {
  color: var(--t-auriu);
}
.sindicat-subtitlu {
  margin-bottom: 0.4rem;
  color: var(--p-paper);
  font-family: var(--p-font-regal);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  break-after: avoid;
}
/* Declarația din mijlocul textului: majuscule mici, cu bara roșie; ultima propoziție albă */
.sindicat-text .declaratie {
  padding-left: 0.9rem;
  border-left: 2px solid var(--t-accent);
  color: color-mix(in srgb, var(--t-os) 85%, transparent);
  font-family: var(--p-font-regal);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}
.sindicat-text .declaratie span {
  display: block;
}
.sindicat-text .declaratie span:last-child {
  color: var(--p-paper);
  font-weight: 700;
}

/* Ultima frază: cadru cu capete ascuțite, ramă aurie și o lumină roșie sus și jos;
   prima propoziție mică, argintie, rărită; restul mare, auriu */
.sindicat-final {
  display: grid;
  grid-area: final;
  align-self: end;
  justify-items: center;
  gap: 0.6rem;
}
.final-fraza {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0.9rem 2.8rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--t-auriu) 50%, transparent), var(--t-auriu) 50%, color-mix(in srgb, var(--t-auriu) 50%, transparent));
  color: var(--t-os);
  font-family: var(--p-font-regal);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  clip-path: polygon(1.8rem 0, calc(100% - 1.8rem) 0, 100% 50%, calc(100% - 1.8rem) 100%, 1.8rem 100%, 0 50%);
  isolation: isolate;
}
.final-fraza::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--t-accent) 25%, var(--t-accent-2)), color-mix(in srgb, var(--t-accent-2) 70%, var(--p-black)) 75%);
  clip-path: polygon(calc(1.8rem - 1px) 0, calc(100% - 1.8rem + 1px) 0, 100% 50%, calc(100% - 1.8rem + 1px) 100%, calc(1.8rem - 1px) 100%, 0 50%);
  content: "";
}
.final-fraza::after {
  position: absolute;
  top: 0;
  right: 25%;
  left: 25%;
  height: 2px;
  background: radial-gradient(closest-side, var(--t-accent), transparent);
  box-shadow: 0 0 0.8rem var(--t-accent);
  content: "";
}
.final-fraza em {
  display: block;
  margin-top: 0.25rem;
  color: var(--t-auriu);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* Semnătura: cursiv, între două săgeți subțiri */
.sindicat-semnatura {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  color: var(--t-auriu);
  font-family: var(--p-font-carte);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
}
.sindicat-semnatura::before {
  width: 4rem;
  height: 0.6rem;
  background:
    linear-gradient(var(--t-os), var(--t-os)) left center / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 45%, var(--t-os) 45% 55%, transparent 55%) right top / 0.6rem 50% no-repeat,
    linear-gradient(-45deg, transparent 45%, var(--t-os) 45% 55%, transparent 55%) right bottom / 0.6rem 50% no-repeat;
  content: "";
  opacity: 0.7;
}
.sindicat-semnatura::after {
  width: 4rem;
  height: 0.6rem;
  background:
    linear-gradient(var(--t-os), var(--t-os)) right center / 100% 1px no-repeat,
    linear-gradient(-45deg, transparent 45%, var(--t-os) 45% 55%, transparent 55%) left top / 0.6rem 50% no-repeat,
    linear-gradient(45deg, transparent 45%, var(--t-os) 45% 55%, transparent 55%) left bottom / 0.6rem 50% no-repeat;
  content: "";
  opacity: 0.7;
}

/* Casetele de jos (conducerea și ordinea): negru transparent, ramă aurie subțire, titlu roșu rărit */
.sindicat-caseta {
  align-self: end;
  padding: 0.9rem 1.1rem 1rem;
  border: 1px solid color-mix(in srgb, var(--t-auriu) 45%, transparent);
  background: color-mix(in srgb, var(--p-black) 60%, transparent);
  backdrop-filter: blur(3px);
  text-align: center;
}
.masa {
  grid-area: masa;
}
.ierarhie {
  grid-area: ordine;
}
.masa-titlu {
  color: var(--t-accent);
  font-family: var(--p-font-regal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.ierarhie-titlu {
  margin-bottom: 0.6rem;
  color: var(--t-accent);
  font-family: var(--p-font-regal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Conducerea: coroana, o acoladă și medalioanele cu numele */
.masa-coroana {
  display: block;
  margin-top: 0.2rem;
  color: var(--t-auriu);
  font-size: 1.1rem;
  line-height: 1;
}
.masa-acolada {
  position: relative;
  display: block;
  width: 8rem;
  height: 0.5rem;
  margin: 0.2rem auto 0;
  border: 1px solid var(--t-auriu);
  border-bottom: 0;
}
.masa-acolada::before {
  position: absolute;
  top: -0.3rem;
  left: 50%;
  width: 1px;
  height: 0.3rem;
  background: var(--t-auriu);
  content: "";
}
.masa-membri {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.masa-om {
  width: 7.5rem;
}
.medalion {
  position: relative;
  display: block;
  width: 3.8rem;
  height: 4.4rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50% / 45%;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--t-accent) 45%, var(--p-black)), color-mix(in srgb, var(--t-accent) 10%, var(--p-black)) 70%);
  box-shadow:
    0 0 0 0.15rem var(--t-accent-2),
    0 0 0 0.24rem var(--t-auriu),
    0 0 1.4rem color-mix(in srgb, var(--t-accent) 35%, transparent);
}
.medalion svg {
  position: absolute;
  bottom: -0.1rem;
  left: 50%;
  width: 110%;
  fill: color-mix(in srgb, var(--p-black) 92%, var(--t-accent));
  transform: translateX(-50%);
}
.masa-nume {
  display: block;
  margin-top: 0.45rem;
  color: var(--p-paper);
  font-family: var(--p-font-regal);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
/* Trei sau mai mulți în conducere: toți pe un rând, cu medalioane mai mici */
.masa-membri:has(> :nth-child(3)) {
  flex-wrap: nowrap;
  gap: 0.6rem;
}
.masa-membri:has(> :nth-child(3)) .masa-om {
  flex: 1;
  width: auto;
  min-width: 0;
}
.masa-membri:has(> :nth-child(3)) .medalion {
  width: 2.9rem;
  height: 3.4rem;
}
.masa-membri:has(> :nth-child(3)) .masa-nume {
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}
.masa-voce {
  margin: 0.6rem 0 0;
  color: color-mix(in srgb, var(--t-os) 80%, transparent);
  font-family: var(--p-font-carte);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}
.masa-voce strong {
  color: var(--t-auriu);
  font-style: normal;
}

/* Ordinea în oraș: trei trepte, una sub alta */
.ordinea {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.treapta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--t-accent) 25%, transparent);
  background: color-mix(in srgb, var(--p-black) 55%, transparent);
  color: var(--t-os);
  text-align: left;
  text-decoration: none;
}
.treapta-simbol {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  font-family: var(--p-font-display);
  font-size: 0.85rem;
}
.treapta-nume {
  font-family: var(--p-font-regal);
  font-size: 0.86rem;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.treapta-rol {
  margin-left: auto;
  color: color-mix(in srgb, var(--t-os) 60%, var(--p-black));
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.treapta-sus {
  border-color: var(--t-accent);
  box-shadow: 0 0 1.2rem color-mix(in srgb, var(--t-accent) 25%, transparent);
}
.treapta-sus .treapta-simbol {
  background: var(--t-accent);
  color: var(--t-on-accent);
  font-size: 1rem;
}
/* The Shadows păstrează pe treapta lui culorile proprii (data-tema), doar chenarul rămâne al Sindicatului */
.treapta-umbra {
  border-color: color-mix(in srgb, var(--t-accent) 30%, transparent);
  transition: border-color 0.2s;
}
.treapta-umbra:hover {
  border-color: var(--t-accent);
}
.treapta-umbra .treapta-simbol {
  border: 1px solid var(--t-accent);
  background: var(--t-accent-2);
  color: var(--t-accent);
}
.treapta-jos {
  opacity: 0.7;
}
.treapta-jos .treapta-simbol {
  border: 1px dashed color-mix(in srgb, var(--t-os) 35%, transparent);
}

/* 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(.sindicat) {
    background:
      linear-gradient(to bottom, transparent 50%, color-mix(in srgb, var(--p-black) 40%, transparent)),
      url("/assets/img/fundal/sindicat-2560.webp") center top / cover no-repeat fixed,
      var(--sindicat-noapte);
  }
  .site-main:has(> .sindicat) {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .sindicat {
    flex: 1;
  }
  body:has(.sindicat) .site-footer {
    padding: 0.75rem;
  }
}
/* Ecrane foarte mari (2K, 4K): imaginea la rezoluție întreagă */
@media (min-width: 2000px) {
  body:has(.sindicat) {
    background:
      linear-gradient(to bottom, transparent 50%, color-mix(in srgb, var(--p-black) 40%, transparent)),
      url("/assets/img/fundal/sindicat-3840.webp") center top / cover no-repeat fixed,
      var(--sindicat-noapte);
  }
}

/* Telefon și tabletă: o singură coloană, titlul sub cei doi din imagine */
@media (max-width: 1199px) {
  .sindicat {
    grid-template-columns: minmax(0, 46rem);
    grid-template-rows: none;
    grid-template-areas:
      "cap"
      "text"
      "final"
      "masa"
      "ordine";
    justify-content: center;
  }
  .sindicat-cap {
    padding-top: 11rem;
  }
  .sindicat-text {
    column-count: 2;
    padding: 0;
  }
}
@media (max-width: 760px) {
  .sindicat-titlu {
    letter-spacing: 0.06em;
  }
  .sindicat-motto {
    font-size: 1.3rem;
  }
  .sindicat-text {
    column-count: 1;
  }
  .final-fraza {
    padding: 1rem 2.2rem;
    letter-spacing: 0.14em;
  }
  .final-fraza em {
    font-size: 1.2rem;
  }
  .sindicat-semnatura {
    font-size: 1.1rem;
    text-align: center;
  }
  .sindicat-semnatura::before {
    display: none;
  }
  .sindicat-semnatura::after {
    display: none;
  }
}

/* teme/sindicat.css */
/* Tema Sindicat: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="sindicat"] {
  --t-accent: #c0392b;
  --t-accent-2: #1c0606;
  --t-on-accent: #ffffff;
  --t-os: #efe6d8;
  --t-auriu: #c9a96e;
}

/* teme/the-shadows.css */
/* Tema The Shadows: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="the-shadows"] {
  --t-accent: #8e96a8;
  --t-accent-2: #0c0d11;
  --t-on-accent: #0b0c10;
  --t-os: #c9ced8;
  --t-auriu: #e9ecf2;
  --t-rosu: #d6212c;
  --t-rosu-2: #6e0d12;
}
