/* 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/medici.css */
/* Pagina Medici (design propriu): noaptea, în fața Spitalului GeminiRP. Imaginea (paramedica, intrarea „SPITAL GeminiRP /
   URGENȚE”, ambulanța) acoperă tot ecranul și se vede întreagă: conținutul stă doar în zonele goale ale ei.
   Pe calculator: în stânga titlul, motto-ul pe două rânduri și electrocardiograma, dedesubt descrierea pe o fișă
   bleumarin translucidă și ultima frază pe o bandă roșie; la mijloc paramedica rămâne liberă; în dreapta, sub ambulanță,
   membrii. Pe telefon imaginea stă întreagă sus, iar conținutul vine sub ea.
   Markup în lib/pagini/medici.js. Culorile vin din tema facțiunii: --t-accent (roșu), --t-accent-2 (roșu închis),
   --t-auriu (roșu deschis), --t-bleumarin.
   Imaginea de fundal apare și pe afișul de pe prima pagină: la schimbarea ei se actualizează și lib/fundaluri.js. */

/* Imaginea începe sub meniu (4,5rem), pe toată lățimea, ca să rămână întreagă și firma spitalului să nu stea sub meniu;
   jos se pierde în bleumarinul nopții */
body:has(.medici) {
  --medici-noapte: color-mix(in srgb, var(--t-bleumarin) 55%, var(--p-black));
  --medici-sticla: color-mix(in srgb, var(--medici-noapte) 72%, transparent);
  background:
    linear-gradient(to bottom, transparent calc(4.5rem + 46vw), var(--medici-noapte) calc(4.5rem + 56.25vw)),
    url("/assets/img/fundal/medici-ambulanta-1600.webp") 0 4.5rem / 100% auto no-repeat,
    var(--medici-noapte);
}
.medici {
  display: grid;
  grid-template-columns: minmax(0, 46rem);
  justify-content: center;
  gap: 0.9rem;
  color: var(--p-paper);
}

/* Titlul, motto-ul și electrocardiograma, în colțul întunecat al imaginii */
.medici-cap {
  text-shadow: 0 0.15rem 0.8rem var(--p-black);
}
/* Categoria, mică și rărită, cu o liniuță roșie în față */
.medici-categorie {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.medici-categorie::before {
  width: 1.6rem;
  height: 2px;
  background: var(--t-accent);
  content: "";
}
.medici-titlu {
  color: var(--p-paper);
  font-family: var(--p-font-body);
  font-size: min(4.6rem, 15vw);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
/* Motto-ul: prima propoziție albă, a doua roșie, pe rânduri separate */
.medici-motto {
  margin: 0.3rem 0 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}
.medici-motto span {
  display: block;
}
.medici-motto span:last-child {
  color: var(--t-auriu);
  font-weight: 800;
}
/* Linia electrocardiogramei, sub motto */
.medici-ekg {
  display: block;
  width: min(30rem, 100%);
  height: 1.5rem;
  margin-top: 0.3rem;
  fill: none;
  filter: drop-shadow(0 0 0.3rem var(--t-accent));
  stroke: var(--t-accent);
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

/* Fișa cu descrierea: bleumarin translucid peste imagine, bordură roșie în stânga, două coloane */
.medici-fisa {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--p-paper) 10%, transparent);
  border-left: 0.3rem solid var(--t-accent);
  border-radius: 0.6rem;
  background: var(--medici-sticla);
  box-shadow: 0 0.8rem 2rem color-mix(in srgb, var(--p-black) 40%, transparent);
  backdrop-filter: blur(6px);
}
.medici-text {
  column-count: 2;
  column-gap: 2.2rem;
  column-rule: 1px solid color-mix(in srgb, var(--p-paper) 12%, transparent);
  color: color-mix(in srgb, var(--p-paper) 90%, transparent);
  font-size: 0.93rem;
  line-height: 1.45;
}
.medici-text p {
  margin: 0 0 0.6rem;
  break-inside: avoid;
}
.medici-text > :last-child {
  margin-bottom: 0;
}
.medici-text strong {
  color: var(--t-auriu);
}
.medici-subtitlu {
  margin-bottom: 0.4rem;
  color: var(--p-paper);
  font-family: var(--p-font-body);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  break-after: avoid;
}
.medici-text .declaratie {
  padding-left: 0.9rem;
  border-left: 3px solid var(--t-accent);
  color: var(--p-paper);
  font-weight: 700;
}
.medici-text .declaratie span {
  display: block;
}
/* Ultima frază: bandă roșie cu ghilimele mari în stânga, a doua propoziție mai apăsată */
.medici-final {
  position: relative;
  margin: 0;
  padding: 0.75rem 1.6rem 0.75rem 4rem;
  border-radius: 0.6rem;
  background: linear-gradient(90deg, var(--t-accent-2), var(--t-accent));
  box-shadow: 0 0.6rem 1.6rem color-mix(in srgb, var(--t-accent) 30%, transparent);
  color: color-mix(in srgb, var(--t-on-accent) 88%, transparent);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
}
.medici-final::before {
  position: absolute;
  top: 0.35rem;
  left: 1.3rem;
  color: color-mix(in srgb, var(--t-on-accent) 70%, transparent);
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}
.medici-final span:last-child {
  color: var(--t-on-accent);
  font-weight: 800;
}
.medici-semnatura {
  margin: 0;
  color: var(--t-auriu);
  font-style: italic;
}

/* Membri: casetă bleumarin translucidă; antet cu linie dedesubt, liderul și coliderul sus, restul pe trei coloane */
.medici-membri {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--p-paper) 10%, transparent);
  border-top: 0.25rem solid var(--t-accent);
  border-radius: 0.6rem;
  background: var(--medici-sticla);
  box-shadow: 0 0.8rem 2rem color-mix(in srgb, var(--p-black) 40%, transparent);
  backdrop-filter: blur(6px);
}
.medici-membri-cap {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.3rem 0.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--p-paper) 15%, transparent);
  color: var(--p-paper);
  font-family: var(--p-font-body);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.medici-membri-cap small {
  padding: 0.05rem 0.6rem;
  border-radius: 2rem;
  background: var(--t-accent);
  color: var(--t-on-accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.medici-membri > :is(.medici-sefi, .medici-lista) {
  margin: 0;
  list-style: none;
}
.medici-sefi {
  display: grid;
  flex: none;
  gap: 0.3rem;
  padding: 0.6rem 1rem 0.4rem;
}
.medici-sefi li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-left: 3px solid var(--t-accent);
  border-radius: 0 0.4rem 0.4rem 0;
  background: color-mix(in srgb, var(--p-paper) 8%, transparent);
}
.medici-sefi small {
  flex: none;
  min-width: 4.6rem;
  color: var(--t-auriu);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.medici-sefi b {
  overflow: hidden;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.medici-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 0 0.9rem;
  min-height: 0;
  max-height: 30rem;
  padding: 0.3rem 1.3rem 0.8rem;
  overflow-y: auto;
  scrollbar-color: var(--t-accent) transparent;
  scrollbar-width: thin;
}
.medici-lista li {
  overflow: hidden;
  padding: 0.1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--p-paper) 10%, transparent);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.medici-gol {
  margin: 0;
  padding: 1.1rem 1.4rem 1.3rem;
  color: color-mix(in srgb, var(--p-paper) 85%, transparent);
  font-style: italic;
}

/* Telefon și tabletă: imaginea întreagă sus, sub meniu; titlul începe pe partea ei de jos (podeaua udă, întunecată) */
@media (max-width: 1199px) {
  .medici-cap {
    padding-top: calc(48vw - 2rem);
  }
}
@media (max-width: 899px) {
  body:has(.medici) {
    background:
      linear-gradient(to bottom, transparent calc(3.875rem + 40vw), var(--medici-noapte) calc(3.875rem + 56.25vw)),
      url("/assets/img/fundal/medici-ambulanta-1600.webp") 0 3.875rem / 100% auto no-repeat,
      var(--medici-noapte);
  }
}
@media (max-width: 760px) {
  .medici-titlu {
    font-size: min(3.4rem, 15vw);
  }
  .medici-motto {
    font-size: 1.15rem;
  }
  .medici-fisa {
    padding: 1.2rem 1.1rem;
  }
  .medici-text {
    column-count: 1;
  }
  .medici-final {
    padding-left: 3.2rem;
    font-size: 1.05rem;
  }
}

/* Calculator: totul pe un ecran, fără scroll (pagina crește cu ecranul, vezi base.css). Imaginea are lățimea ecranului,
   deci paramedica stă mereu cam între 50% și 71% din lățime, iar ambulanța se termină la ~20vw sub meniu:
   coloana din stânga se oprește la 48vw, cea din dreapta începe la 72vw, iar membrii coboară sub ambulanță. */
@media (min-width: 1200px) {
  body:has(.medici) {
    background:
      linear-gradient(to right, color-mix(in srgb, var(--p-black) 35%, transparent), transparent 30%),
      linear-gradient(to bottom, transparent calc(4.5rem + 45vw), var(--medici-noapte) calc(4.5rem + 56.25vw)),
      url("/assets/img/fundal/medici-ambulanta-2560.webp") 0 4.5rem / 100% auto no-repeat fixed,
      var(--medici-noapte);
  }
  .site-main:has(> .medici) {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .medici {
    --medici-sub-ambulanta: calc(20.3vw - 1rem);
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 24vw calc(28vw - var(--p-margin));
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "cap . membri"
      "fisa . membri"
      "final . membri";
    justify-content: stretch;
    column-gap: 0;
  }
  .medici-cap {
    grid-area: cap;
    padding: 0.4rem 0 0.4rem 0.6rem;
  }
  .medici-fisa {
    grid-area: fisa;
  }
  .medici-final {
    grid-area: final;
  }
  body:has(.medici) .site-footer {
    padding: 0.75rem;
  }
  /* Caseta membrilor începe sub ambulanță și nu lungește pagina; lista derulează doar dacă sunt foarte mulți */
  .medici-membri {
    grid-area: membri;
    align-self: start;
    height: 0;
    min-height: calc(100% - var(--medici-sub-ambulanta));
    margin-top: var(--medici-sub-ambulanta);
  }
  .medici-membri-cap {
    padding: 0.55rem 1.2rem 0.45rem;
    font-size: 1.25rem;
  }
  /* Liderul și coliderul unul lângă altul, cu gradul deasupra numelui */
  .medici-sefi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.5rem 0.9rem 0.3rem;
  }
  .medici-sefi li {
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0.2rem 0.7rem;
  }
  .medici-lista {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    padding: 0.2rem 1.2rem 0.2rem;
  }
  .medici-lista li {
    padding: 0.05rem 0;
    font-size: 0.82rem;
  }
}

/* Ecrane foarte mari (2K, 4K): imaginea la rezoluție întreagă */
@media (min-width: 2000px) {
  body:has(.medici) {
    background:
      linear-gradient(to right, color-mix(in srgb, var(--p-black) 35%, transparent), transparent 30%),
      linear-gradient(to bottom, transparent calc(4.5rem + 45vw), var(--medici-noapte) calc(4.5rem + 56.25vw)),
      url("/assets/img/fundal/medici-ambulanta-3840.webp") 0 4.5rem / 100% auto no-repeat fixed,
      var(--medici-noapte);
  }
}

/* teme/medici.css */
/* Tema Medici: doar culorile facțiunii. Regulile de aranjare stau în css/pagini și css/components.css. */
[data-tema="medici"] {
  --t-accent: #e03131;
  --t-accent-2: #7a1414;
  --t-on-accent: #ffffff;
  --t-os: #1f2633;
  --t-auriu: #ff6b6b;
  --t-salon: #eef2f6;
  --t-bleumarin: #102238;
}
