/* ==========================================================================
   ePenzioner.rs — Feuille de style (identité tirée du logo)
   Noir profond du fond du logo + dégradé de bleus des tuiles + Poppins du mot-symbole.
   Public senior : texte courant en Atkinson Hyperlegible Next, contrastes AA minimum,
   cibles tactiles ≥ 44 px, tailles en rem pilotées par les boutons A− / A+.
   ========================================================================== */

/* ---------- 1. Polices auto-hébergées ---------- */
@font-face {
  font-family: Poppins;
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
/* Zéro sans barre : le « 0 » barré d'Atkinson est remplacé par un 0 ovale ordinaire (atkinson-next-2.woff2) */
@font-face {
  font-family: 'Atkinson Next';
  src: url('../fonts/atkinson-next-2.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
/* Poppins et Atkinson n'ont pas de cyrillique : Montserrat prend le relais lettre par lettre */
@font-face {
  font-family: 'Cyrillic Fallback';
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- 2. Jetons ---------- */
:root {
  /* Fond du logo */
  --black: #000;
  --night: #0b1520;
  --night-line: #233140;
  --on-dark: #fff;
  --on-dark-soft: #b9c7d5;

  /* Tuiles du logo, du plus clair au plus profond */
  --sky: #2eb5ee;
  --azure: #1a7fc4;
  --cobalt: #0b5ba8;
  --deep: #08427d;
  --brand-gradient: linear-gradient(90deg, #2eb5ee 0%, #1a7fc4 55%, #0b5ba8 100%);

  /* Pages claires */
  --ink: #0b1220;
  --ink-soft: #485667;
  --paper: #fff;
  --mist: #f0f5f9;
  --ice: #e3f3fc;
  --line: #d3dde7;

  --alarm: #c62828;
  --alarm-dark: #9e1c1c;
  --alarm-soft: #fdeded;
  --alarm-on-dark: #ff8a80;
  --ok: #1e7a3a;

  --font-brand: 'Poppins', 'Cyrillic Fallback', system-ui, -apple-system, 'Segoe UI', roboto, arial, sans-serif;
  --font-body: 'Atkinson Next', 'Cyrillic Fallback', system-ui, -apple-system, 'Segoe UI', roboto, arial, sans-serif;

  --wrap: 74rem;
  --narrow: 44rem;
  --story: 58rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --r-sm: 6px;
  --r: 10px;
}

/* Taille de texte : 16 / 18 / 20 / 22 px (relative au réglage du navigateur) */
html {
  font-size: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
html[data-fs='1'] {
  font-size: 112.5%;
}
html[data-fs='2'] {
  font-size: 125%;
}
html[data-fs='3'] {
  font-size: 137.5%;
}
html.is-locked {
  overflow: hidden;
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--deep);
  text-decoration-thickness: 2px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

mark {
  background: var(--ice);
  color: inherit;
  box-shadow: 0 2px 0 var(--sky);
}

.ico {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}
.ico path {
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico .fill {
  fill: currentcolor;
  stroke: none;
}

/* Focus clavier : double anneau, lisible sur fond noir comme sur fond blanc */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--sky);
  border-radius: 3px;
}
main:focus {
  outline: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--sky);
  color: var(--black);
  font-family: var(--font-brand);
  font-weight: 600;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.narrow {
  width: min(100% - 2 * var(--gutter), var(--narrow));
}
.noscript {
  padding: 2rem 0;
}

/* Tuile d'icône : carré arrondi au dégradé du logo */
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--brand-gradient);
  color: #fff;
}
.icon-tile .ico {
  width: 1.4rem;
  height: 1.4rem;
}
.icon-tile--lg {
  width: 3.25rem;
  height: 3.25rem;
}
.icon-tile--lg .ico {
  width: 1.8rem;
  height: 1.8rem;
}

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}
.btn .ico {
  width: 1.25rem;
  height: 1.25rem;
}
.btn--primary {
  background: var(--cobalt);
  color: #fff;
}
.btn--primary:hover {
  background: var(--deep);
  color: #fff;
}
.btn--sky {
  background: var(--sky);
  color: var(--black);
}
.btn--sky:hover {
  background: #6ccdf4;
  color: var(--black);
}
.btn--alarm {
  background: var(--alarm);
  color: #fff;
}
.btn--alarm:hover {
  background: var(--alarm-dark);
  color: #fff;
}
.btn--outline {
  background: var(--paper);
  color: var(--cobalt);
  border-color: var(--cobalt);
}
.btn--outline:hover {
  background: var(--ice);
}
.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark-soft);
}
.btn--ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
}
.btn--big {
  min-height: 3.5rem;
  padding-inline: 2rem;
  font-size: 1.125rem;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- 5. Publicité ---------- */
/* Le cadre de la bannière seul : aucun fond ni marge intérieure autour */
.ad {
  margin-block: 2rem;
  line-height: 0;
}
.ad img {
  width: 970px;
  max-width: 100%;
  height: auto; /* proportions données par width/height : 970 × 500 ou 970 × 250 */
  margin-inline: auto;
}
.ad a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
/* Code HTML d'une régie publicitaire : centré, sans dépasser la largeur */
.ad__code {
  max-width: 970px;
  margin-inline: auto;
  overflow: hidden;
  line-height: normal;
  text-align: center;
}

/* Instagram kartica : même format 970 × 500 que les autres bannières */
.ad a.ad__ig-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 970px;
  max-width: 100%;
  margin-inline: auto;
  padding: 1.5rem;
  aspect-ratio: 970 / 500;
  border-radius: var(--r);
  background: radial-gradient(circle at 25% 110%, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 78%, #4f5bd5 100%);
  color: #fff;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.ad__ig-logo .ico {
  width: clamp(2.5rem, 6vw, 4.5rem);
  height: auto;
}
.ad__ig-title {
  font-family: var(--font-brand);
  font-size: clamp(1.375rem, 0.9rem + 2.4vw, 3rem);
  font-weight: 800;
}
.ad__ig-handle {
  font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  opacity: 0.92;
}
.ad__ig-cta {
  margin-top: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-family: var(--font-brand);
  font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
  font-weight: 700;
}
.ad a.ad__ig-card:hover .ad__ig-cta,
.ad a.ad__ig-card:focus-visible .ad__ig-cta {
  background: var(--black);
  color: #fff;
}

/* Carte Instagram au format bas (970 × 250) : contenu sur une ligne sur grand écran */
@media (width >= 40em) {
  .ad a.ad__ig-card--wide {
    flex-direction: row;
    gap: 1.25rem 2rem;
  }
  .ad__ig-card--wide .ad__ig-cta {
    margin-top: 0;
  }
}

/* Instagram objava : la publication, centrée sur fond clair */
.ad__ig-post {
  display: flex;
  justify-content: center;
  max-width: 970px;
  margin-inline: auto;
  padding: 1rem 0;
  border-radius: var(--r);
  background: var(--mist);
  line-height: normal;
}
.ad__ig-post iframe {
  width: min(100%, 26rem);
  height: 36rem;
  border: 0;
  border-radius: var(--r-sm);
  background: #fff;
}

/* Bannières dans le texte de l'article : même largeur que le texte, un peu d'air autour */
.story__text .ad {
  margin-block: 2rem;
}

/* Champ piège anti-robots du formulaire (invisible pour les personnes) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rubrique ou bloc sans article */
.empty-note {
  margin-block: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--line);
  border-radius: var(--r);
  font-size: 1.125rem;
}
.hero .empty-note {
  border-color: rgb(255 255 255 / 35%);
  color: #fff;
}
/* Bannière du haut : espace blanc au-dessus et en dessous pour qu'elle ne colle pas à l'en-tête,
   et mêmes marges latérales que le contenu sur téléphone. L'espace s'adapte à la largeur d'écran. */
#ad-top .ad {
  width: min(100% - 2 * var(--gutter), 970px);
  margin: 0 auto;
  padding-block: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
}

/* ---------- 6. En-tête noir ---------- */
.masthead {
  background: var(--black);
  color: var(--on-dark);
}

.masthead__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--night-line);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}
.quick__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--on-dark);
  text-decoration: none;
}
.quick__link:hover {
  color: var(--sky);
}
.quick__link:hover span {
  text-decoration: underline;
}
.quick__link--alarm {
  color: var(--alarm-on-dark);
}
.quick__link--alarm:hover {
  color: #ffb3ad;
}

.fontsize {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fontsize__label {
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}
.fontsize__btn {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border: 2px solid var(--on-dark-soft);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1;
}
.fontsize__btn--down {
  font-size: 0.875rem;
}
.fontsize__btn--up {
  font-size: 1.1875rem;
}
.fontsize__btn:hover {
  border-color: var(--sky);
  color: var(--sky);
}
.fontsize__btn[aria-disabled='true'] {
  border-color: var(--night-line);
  color: #5d6b7a;
  cursor: not-allowed;
}
.fontsize__steps {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.25rem;
}
.fontsize__steps i {
  width: 5px;
  border-radius: 1px;
  background: var(--night-line);
}
.fontsize__steps i:nth-child(1) {
  height: 40%;
}
.fontsize__steps i:nth-child(2) {
  height: 60%;
}
.fontsize__steps i:nth-child(3) {
  height: 80%;
}
.fontsize__steps i:nth-child(4) {
  height: 100%;
}
.fontsize__steps i.on {
  background: var(--sky);
}

.masthead__main {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 0.75rem;
}
.logo {
  display: block;
  flex: none;
}
.logo img {
  width: auto;
  height: clamp(3rem, 2.4rem + 2vw, 4.25rem);
}
.masthead__tagline {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--night-line);
  font-family: var(--font-brand);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--sky);
  max-width: 13.5em;
}
.masthead__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Sélecteur de langue à drapeaux (barre du haut, comme rkp.rs) */
.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.flag-btn {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
}
.flag-btn .flag {
  width: 1.75rem;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 15%);
  opacity: 0.85;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.flag-btn:hover {
  border-color: var(--night-line);
}
.flag-btn:hover .flag {
  opacity: 1;
  transform: scale(1.08);
}
.flag-btn[aria-pressed='true'] {
  border-color: var(--sky);
  background: var(--night);
}
.flag-btn[aria-pressed='true'] .flag {
  opacity: 1;
}

.tool {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.9375rem;
}
.tool:hover {
  border-color: var(--sky);
  color: var(--sky);
}

@media (width < 62em) {
  .masthead__tagline {
    display: none;
  }
}
@media (width < 48em) {
  .masthead .flags {
    display: none; /* sur téléphone, la langue se choisit dans le menu ☰ */
  }
  /* Taille du texte : une ligne entière, libellé à gauche, boutons à droite */
  .masthead__top {
    padding-block: 0.25rem 0.5rem;
  }
  .fontsize {
    width: 100%;
  }
  .fontsize__label {
    margin-right: auto;
  }
  .masthead__main {
    gap: 0.75rem;
    padding-block: 0.6rem;
  }
  .masthead .tool {
    width: 2.75rem;
    padding: 0;
    justify-content: center;
  }
  .masthead .tool span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .quick {
    gap: 0 0.9rem;
  }
  .quick__link {
    font-size: 0.875rem;
  }
  /* Le logo ne grossit pas avec A+ : la place reste pour les boutons */
  .logo {
    flex: 0 1 auto;
    min-width: 0;
  }
  .logo img {
    height: 44px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .masthead__tools {
    flex: none;
  }
}

/* ---------- 7. Rubriques : barre blanche, pictogrammes, toujours visible ---------- */
.catnav {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(11 18 32 / 4%);
}
.catnav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.catnav__list a {
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.7rem 0.6rem;
  color: var(--ink);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
}
.catnav__list .ico {
  color: var(--azure);
}
.catnav__list a:hover {
  color: var(--cobalt);
}
.catnav__list a::after {
  content: '';
  position: absolute;
  inset: auto 0.6rem 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.2s ease-out;
}
.catnav__list a:hover::after {
  transform: scaleX(0.5);
}
.catnav__list a[aria-current='page'] {
  color: var(--cobalt);
}
.catnav__list a[aria-current='page']::after {
  transform: scaleX(1);
}
.catnav__list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
/* Petit écran avec grand texte, ou très petit écran : une rubrique par ligne,
   les noms en majuscules ne sont jamais coupés */
@media (width < 36em) {
  html[data-fs='2'] .catnav__list,
  html[data-fs='3'] .catnav__list {
    grid-template-columns: 1fr;
  }
  html[data-fs='2'] .catnav__list li:nth-child(even),
  html[data-fs='3'] .catnav__list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}
@media (width < 22em) {
  .catnav__list {
    grid-template-columns: 1fr;
  }
  .catnav__list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (width < 48em) {
  .catnav__list li {
    border-bottom: 1px solid var(--line);
  }
  .catnav__list li:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 0.5rem;
  }
  .catnav__list li:last-child {
    border-bottom: 0;
  }
}
@media (width >= 48em) {
  .catnav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
  }
  .catnav__list a {
    padding: 0.95rem 0.85rem;
    font-size: 1.0625rem;
  }
  .catnav__list li:first-child a {
    padding-left: 0;
  }
  .catnav__list li:first-child a::after {
    left: 0;
  }
}
@media (width >= 62em) {
  .catnav {
    position: sticky;
    top: 0;
  }
}

/* ---------- 8. Recherche plein écran (noire, comme le logo) ---------- */
.search-dlg {
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 1.5rem 0 2.5rem;
  border: 0;
  background: var(--black);
  color: var(--on-dark);
  overflow-y: auto;
}
.search-dlg::backdrop {
  background: rgb(0 0 0 / 65%);
}
.search-dlg__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
/* Petit écran : bouton Fermer réduit à la croix (le libellé reste lu par les lecteurs d'écran) */
@media (width < 36em) {
  .search-dlg__top .tool,
  .drawer__head .tool {
    width: 3rem;
    padding: 0;
    justify-content: center;
  }
  .search-dlg__top .tool span,
  .drawer__head .tool span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
.search-dlg__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}
.search-form__input {
  flex: 1;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
}
.search-form__input::placeholder {
  color: #66717d;
}
.search-form__btn {
  min-height: 3.5rem;
}
/* Petit écran : champ sur toute la largeur, bouton « Traži » en dessous */
@media (width < 36em) {
  .search-form {
    flex-wrap: wrap;
  }
  .search-form__input,
  .search-form__btn {
    flex: 1 1 100%;
  }
  .search-form__input {
    font-size: 1.125rem;
  }
}

.search-dlg__status {
  min-height: 1.6em;
  margin: 1rem 0 0.75rem;
  color: var(--on-dark-soft);
}
.search-dlg__hint {
  margin-bottom: 0.5rem;
  color: var(--on-dark-soft);
}
.search-dlg .btn--sky {
  margin-top: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--font-brand);
  font-weight: 600;
}
.chip:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.live-results {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--night);
}
.live-results li + li {
  border-top: 1px solid var(--night-line);
}
.live-results a {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1.25rem;
  color: var(--on-dark);
  text-decoration: none;
}
.live-results a:hover {
  background: #12202e;
}
.live-results__cat {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sky);
}
.live-results__title {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.live-results mark {
  background: rgb(46 181 238 / 25%);
  color: #fff;
}

/* ---------- 9. Menu latéral ---------- */
.drawer {
  width: min(28rem, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0 0 2rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}
.drawer::backdrop {
  background: rgb(0 0 0 / 65%);
}
.drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: var(--black);
  color: var(--on-dark);
}
.drawer__title {
  font-size: 1.375rem;
}
.drawer__cats li {
  border-bottom: 1px solid var(--line);
}
.drawer__cats a {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.drawer__cats a:hover,
.drawer__cats a[aria-current='page'] {
  background: var(--ice);
}
.drawer__cat-text {
  display: grid;
  gap: 0.15rem;
}
.drawer__cats strong {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.1875rem;
}
.drawer__cats span span,
.drawer__cat-text > span {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.drawer__block {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.25rem 0;
}
.drawer__sub {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.drawer .quick__link {
  color: var(--cobalt);
  font-size: 1rem;
}
.drawer .quick__link--alarm {
  color: var(--alarm);
}
.langs--full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.4rem;
}
.langs--full .lang-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
}
.langs--full .flag {
  width: 1.75rem;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(11 18 32 / 15%);
}
.langs--full .lang-btn:hover:not([aria-pressed='true']) {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.langs--full .lang-btn[aria-pressed='true'] {
  border-color: var(--cobalt);
  background: var(--ice);
  color: var(--cobalt);
}
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] {
    animation: drawer-in 0.25s ease-out;
  }
  .search-dlg[open] {
    animation: search-in 0.2s ease-out;
  }
}
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}
@keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-1.5rem);
  }
}

/* ---------- 10. Titres de section, étiquettes, méta ---------- */
.block {
  padding-block: 2.5rem 1rem;
}
.block--tight {
  padding-block: 0.5rem 0;
}
.block--mist {
  margin-top: 2rem;
  padding-block: 2.5rem 3rem;
  background: var(--mist);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 1.25rem;
}
.sec-head__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.sec-head__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  flex: none;
  font-family: var(--font-brand);
  font-weight: 600;
}
.sec-head__more .ico {
  width: 1.1rem;
  height: 1.1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  margin-bottom: 0.15rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cobalt);
  text-decoration: none;
}
.tag .ico {
  width: 1.1rem;
  height: 1.1rem;
}
.tag:hover span {
  text-decoration: underline;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- 11. Bande « Novo » : noir du logo + spirale en filigrane ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 2.25rem 2.5rem;
  background: var(--black);
  color: var(--on-dark);
}
.hero__mark {
  position: absolute;
  top: -12%;
  right: -9rem;
  width: 34rem;
  opacity: 0.22;
  pointer-events: none;
}
.hero__inner {
  position: relative;
}
.hero .sec-head__title {
  color: var(--on-dark);
}
.hero .sec-head__more {
  color: var(--sky);
}
.hero .sec-head__more:hover {
  color: #8fdaf8;
}

/* ---------- 12. Carrousel ---------- */
.slider__viewport {
  overflow: hidden;
  border-radius: var(--r);
  touch-action: pan-y;
}
.slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}
.slider__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.slider__dots {
  display: flex;
  gap: 0.4rem;
}
.btn-round,
.slider__dot {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: var(--font-brand);
  font-weight: 600;
}
.btn-round .ico {
  width: 1.5rem;
  height: 1.5rem;
}
.btn-round .ico path {
  stroke-width: 2.5;
}
.slider__pause {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.9375rem;
}
@media (width < 36em) {
  .feature .btn {
    width: 100%;
  }
  .slider__controls {
    gap: 0.5rem;
  }
  .slider__pause {
    margin-left: 0;
  }
}
.slider__pause .ico {
  width: 1.1rem;
  height: 1.1rem;
}

/* Variante sombre (bande Novo) */
.hero .btn-round,
.hero .slider__dot,
.hero .slider__pause {
  border: 1px solid var(--night-line);
  background: var(--night);
  color: var(--on-dark);
}
.hero .btn-round:hover,
.hero .slider__dot:hover,
.hero .slider__pause:hover {
  border-color: var(--sky);
  color: var(--sky);
}
.hero .slider__dot[aria-current='true'] {
  border-color: var(--sky);
  background: var(--sky);
  color: var(--black);
}

/* Variante claire */
.slider-light .btn-round,
.slider-light .slider__dot,
.slider-light .slider__pause {
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.slider-light .btn-round:hover,
.slider-light .slider__dot:hover,
.slider-light .slider__pause:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.slider-light .slider__dot[aria-current='true'] {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: #fff;
}

/* Grand article */
.feature {
  display: grid;
  height: 100%;
  background: var(--night);
  color: var(--on-dark);
}
.feature__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.feature__body {
  align-self: center;
  padding: 1.5rem 1.5rem 1.75rem;
}
.feature .tag {
  color: var(--sky);
}
.feature__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
}
.feature__title a {
  color: inherit;
  text-decoration: none;
}
.feature__title a:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.feature__excerpt {
  max-width: 34em;
  font-size: 1.125rem;
}
.feature .meta {
  color: var(--on-dark-soft);
}
.feature .btn--primary {
  background: var(--sky);
  color: var(--black);
}
.feature .btn--primary:hover {
  background: #6ccdf4;
}

.slider-light .feature {
  background: var(--mist);
  color: var(--ink);
}
.slider-light .feature .tag {
  color: var(--cobalt);
}
.slider-light .feature .meta {
  color: var(--ink-soft);
}
.slider-light .feature .btn--primary {
  background: var(--cobalt);
  color: #fff;
}
.slider-light .feature .btn--primary:hover {
  background: var(--deep);
}

@media (width >= 56em) {
  .feature {
    grid-template-columns: 1.3fr 1fr;
  }
  .feature__body {
    padding: 2.25rem 2.5rem;
  }
}

/* Grandes images : l'image entière est toujours visible (rien n'est rogné ni ne déborde) ;
   si son format diffère du cadre, une copie floutée de la même image remplit les côtés. */
.fit {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.fit::before {
  content: '';
  position: absolute;
  inset: -2rem;
  z-index: -1;
  background: var(--bg, none) center / cover no-repeat;
  filter: blur(20px) brightness(0.8);
}
.fit > img {
  display: block;
  max-width: 100%;
}

/* ---------- 13. Titres en liste (texte uniquement) ---------- */
.headlines {
  margin-top: 1.5rem;
}
.headlines li {
  border-top: 1px solid var(--line);
}
.headlines a {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start; /* texte aligné sur le haut de l'image */
  padding: 1rem 0;
  color: var(--ink);
  text-decoration: none;
}
.headlines__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--mist);
}
.headlines__text {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.headlines__title {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
}
.headlines a:hover {
  color: var(--ink);
}
.headlines a:hover .headlines__title {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.headlines__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cobalt);
}
.headlines__cat .ico {
  width: 1.05rem;
  height: 1.05rem;
}
.headlines time {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
@media (width >= 48em) {
  .headlines--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

/* ---------- 14. Autres rubriques (accueil) ---------- */
.trio {
  display: grid;
  gap: 3rem;
}
/* Ordinateur : les trois colonnes partagent les mêmes lignes (titre, image, titre d'article,
   liste, lien) grâce à subgrid — tout reste aligné même si un titre passe sur deux lignes. */
@media (width >= 62em) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.25rem;
  }
  .trio__col {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .trio__lead {
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
  .trio__title {
    padding-top: 0.85rem;
  }
}
.trio__more {
  margin-top: 0.75rem;
}
.trio .sec-head__title {
  font-size: 1.375rem;
}
.trio .icon-tile {
  width: 2.25rem;
  height: 2.25rem;
}
.trio__lead {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  color: var(--ink);
  text-decoration: none;
}
.trio__lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.trio__img,
.lead-story__media {
  border-radius: var(--r);
}
.trio__title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.3;
}
.trio__lead:hover {
  color: var(--ink);
}
.trio__lead:hover .trio__title {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.trio .headlines {
  margin-top: 1rem;
}
@media (width >= 62em) {
  .trio__lead {
    gap: 0;
  }
}
.trio .headlines li {
  border-color: #c6d3df;
}
.trio .headlines__title {
  font-size: 1.0625rem;
}
.trio .headlines a {
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.875rem;
}

/* ---------- 14 bis. Bande « Iz prve ruke » (citation sur l'accueil) ----------
   Dégradé des tuiles du logo, spirale en filigrane, grande citation en Poppins. */
.quote-band {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);
  background: linear-gradient(115deg, var(--deep) 0%, var(--cobalt) 45%, var(--azure) 100%);
  color: var(--on-dark);
}
.quote-band__mark {
  position: absolute;
  top: 50%;
  right: -7rem;
  width: 30rem;
  max-width: none;
  opacity: 0.16;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.quote-band + .block--mist {
  margin-top: 0;
}
.quote-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.quote-band__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quote-band__eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 3px;
  border-radius: 2px;
  background: var(--sky);
}
.quote-band__text {
  margin: 0;
}
.quote-band__text p {
  max-width: 20ch;
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote-band__side {
  min-width: 15rem;
}
.quote-band__who {
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--sky);
}
.quote-band__who strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.1875rem;
}
.quote-band__who span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ice);
}
.quote-band__btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--black);
  font-family: var(--font-brand);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.quote-band__btn:hover {
  background: var(--sky);
  color: var(--black);
}
.quote-band__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (width <= 760px) {
  .quote-band__inner {
    grid-template-columns: 1fr;
  }
  .quote-band__side {
    min-width: 0;
  }
  .quote-band__mark {
    top: auto;
    right: -9rem;
    bottom: -8rem;
    transform: none;
  }
}

/* ---------- 15. En-tête de page (bande noire) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  padding-block: 1.25rem 2.25rem;
  background: var(--black);
  color: var(--on-dark);
}
.page-head__mark {
  position: absolute;
  top: 50%;
  right: -6rem;
  width: 24rem;
  opacity: 0.25;
  transform: translateY(-50%);
  pointer-events: none;
}
.page-head__inner {
  position: relative;
}
.page-head__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.875rem);
}
.page-head__lead {
  max-width: 38em;
  margin: 0;
  font-size: 1.1875rem;
  color: var(--on-dark-soft);
}
.page-head .search-form {
  max-width: 44rem;
  margin-top: 1.25rem;
}
.page-head--alarm .icon-tile {
  background: var(--alarm);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--sky);
}
.crumbs a:hover {
  color: #8fdaf8;
}
.crumbs a + a::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--on-dark-soft);
}
.crumbs--light a {
  color: var(--cobalt);
}
.crumbs--light a:hover {
  color: var(--deep);
}
.crumbs--light a + a::before {
  color: var(--ink-soft);
}

/* Article principal d'une rubrique */
.lead-story {
  display: grid;
  gap: 1.25rem;
}
.lead-story__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--r);
}
.lead-story__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}
.lead-story__title a {
  color: var(--ink);
  text-decoration: none;
}
.lead-story__title a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}
.lead-story__excerpt {
  font-size: 1.1875rem;
}
@media (width >= 56em) {
  .lead-story {
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.list-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
}

.rows {
  display: grid;
}
.row {
  display: grid;
  align-items: start; /* texte aligné sur le haut de l'image */
  grid-template-columns: minmax(7rem, 30%) 1fr;
  gap: 1rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.row__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.row__title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
}
.row__title a {
  color: var(--ink);
  text-decoration: none;
}
.row__title a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}
.row__excerpt {
  margin-bottom: 0.5rem;
}
@media (width < 36em) {
  .row {
    grid-template-columns: 1fr;
  }
}

.results-count {
  margin-bottom: 0.5rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.125rem;
}

.more {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-block: 1.5rem 0.5rem;
  border-top: 1px solid var(--line);
}
.more__count {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- 16. Article ---------- */
.story__head {
  padding-top: 1.25rem;
}
.story__title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.125rem);
}
.story__notice {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--ice);
  font-weight: 700;
}
.story__lead {
  font-size: 1.3125rem;
  line-height: 1.5;
}
.story__head .meta {
  position: relative;
  margin: 0;
  padding-bottom: 1.25rem;
}
.story__head .meta::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-gradient);
}
/* Titre, chapô, photo et texte : une seule largeur, celle de la photo (comme HEALTHLIFE.RS) */
.story .narrow,
.related.narrow {
  width: min(100% - 2 * var(--gutter), var(--story));
}
.story__figure {
  max-width: var(--story);
  margin-block: 1.75rem;
}
.story__figure img {
  width: 100%;
  border-radius: var(--r);
}
.story__body {
  font-size: 1.1875rem;
  line-height: 1.75;
}
.story__body p {
  margin-bottom: 1.25em;
}
.story__preview {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--warn, #b45309);
  border-radius: var(--r-sm);
  background: #fff7ed;
  font-weight: 700;
  color: #7c2d12;
}
.story__author {
  margin: 0.75rem 0 0;
  font-weight: 700;
}
.story__figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted, #4b5563);
}
.story__source {
  font-size: 1rem;
}
.story__lead--left {
  text-align: left;
}
.story__lead--center {
  text-align: center;
}
.story__lead--right {
  text-align: right;
}
.story__author a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
/* Posebne rubrike du article (liens vers kategorija.php?r=…) */
.story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.75rem;
  font-size: 1rem;
}
.story__tags span {
  font-weight: 700;
}
.story__tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.25rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-brand);
  font-weight: 600;
  text-decoration: none;
}
.story__tag:hover {
  border-color: var(--sky);
}
/* Napomena o autorskim pravima, na kraju članka */
.story__rights {
  margin-top: 2rem;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid var(--sky);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
}
.story__body .story__rights p {
  margin: 0 0 0.25rem;
}

/* Texte riche venant de l'éditeur (articles et pages) */
.rich h2,
.rich h3 {
  margin: 1.75em 0 0.6em;
  line-height: 1.25;
}
.rich h2 {
  font-size: 1.5rem;
}
.rich h3 {
  font-size: 1.25rem;
}
.rich ul,
.rich ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}
.rich li {
  margin-bottom: 0.4em;
}
.rich ul li {
  list-style: disc;
}
.rich ol li {
  list-style: decimal;
}
.rich blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--sky);
  font-style: italic;
}
.rich a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
.rich img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}
.rich figure {
  margin: 1.5em 0;
}
.rich figcaption {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
}
.rich p {
  margin-bottom: 0.9em;
}
.story__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.story__copied {
  font-weight: 700;
  color: var(--ok);
}
.related {
  margin-bottom: 2rem;
}
.empty {
  padding-block: 0 3rem;
}

/* ---------- 17. Hitni brojevi ---------- */
.em-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}
.em-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--r);
}
.em-card--urgent {
  border-color: var(--alarm);
  background: var(--alarm-soft);
}
.em-card__name {
  font-size: 1.1875rem;
}
.em-card__num {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--cobalt);
}
.em-card--urgent .em-card__num {
  color: var(--alarm);
}
.em-card__num--long {
  margin-block: 0.6rem 0.75rem;
  font-size: 1.875rem;
}
.em-card__desc {
  flex: 1;
}
.em-card .btn {
  align-self: flex-start;
}
.note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--mist);
}

/* ---------- 18. Formulaire « Pitajte pravnika » ---------- */
.form {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field__label {
  padding: 0;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.125rem;
}
.field__sublabel {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.field__req {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.field__hint {
  margin: 0;
  color: var(--ink-soft);
}
.field__error {
  margin: 0;
  font-weight: 700;
  color: var(--alarm);
}
.field__error::before {
  content: '⚠ ';
}
.field__pair {
  display: grid;
  gap: 1rem;
}
@media (width >= 40em) {
  .field__pair {
    grid-template-columns: 1fr 1fr;
  }
}
.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid #8796a6;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}
.input:hover {
  border-color: var(--cobalt);
}
textarea.input {
  resize: vertical;
  line-height: 1.5;
}
.input[aria-invalid='true'] {
  border-width: 3px;
  border-color: var(--alarm);
}
.field--error {
  padding-left: 1rem;
  border-left: 4px solid var(--alarm);
}
.choices {
  display: grid;
  gap: 0.5rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.choice:hover {
  border-color: var(--cobalt);
}
.choice:has(input:checked) {
  border-color: var(--cobalt);
  background: var(--ice);
}
.choice input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--cobalt);
}
.choice--check {
  align-items: flex-start;
}
.choice--check input {
  margin-top: 0.15rem;
}
.errors {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 3px solid var(--alarm);
  border-radius: var(--r);
  background: var(--alarm-soft);
}
.errors__title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--alarm);
}
.errors li {
  margin-left: 1.25rem;
  list-style: disc;
}
.errors a {
  font-weight: 700;
  color: var(--alarm);
}
.form__send-error {
  padding: 1rem;
  border-radius: var(--r-sm);
  background: var(--alarm-soft);
  color: var(--alarm);
  font-weight: 700;
}
.success {
  margin-bottom: 3rem;
  padding: 1.5rem;
  border: 3px solid var(--ok);
  border-radius: var(--r);
  background: #e9f5ec;
}
.success__title {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  color: var(--ok);
}

/* ---------- 19. Pages d'information ---------- */
.prose {
  margin-bottom: 3rem;
  font-size: 1.125rem;
  line-height: 1.7;
}
.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}
.contact-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-card {
  padding: 1.25rem 1.5rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--r);
}
.prose .contact-card__h {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}
.contact-card .btn {
  overflow-wrap: anywhere;
}
.table-wrap {
  margin-bottom: 1rem;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}
.table caption {
  margin-bottom: 0.5rem;
  font-family: var(--font-brand);
  font-weight: 600;
  text-align: left;
}
.table th,
.table td {
  padding: 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: var(--black);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 600;
}
.table tbody th {
  background: var(--mist);
}
/* Sur téléphone, chaque ligne du tableau devient une carte lisible sans défilement */
@media (width < 36em) {
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table tr,
  .table th,
  .table td {
    display: block;
  }
  .table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
  }
  .table th,
  .table td {
    border: 0;
  }
  .table td + td {
    border-top: 1px solid var(--line);
  }
  .table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ink-soft);
  }
}

/* Impresum : liste libellé / valeur */
.facts {
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--line);
}
.facts__row {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
@media (width >= 40em) {
  .facts__row {
    grid-template-columns: 15rem 1fr;
  }
}
.facts dt {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-soft);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts__todo {
  padding: 0 0.35rem;
  border-radius: 3px;
  background: #fff4d1;
  color: #6b4a00;
}

/* ---------- 20. Pied de page noir ---------- */
.site-footer {
  margin-top: 3rem;
  background: var(--black);
  color: var(--on-dark);
}
.site-footer a {
  color: var(--on-dark);
}
.site-footer a:hover {
  color: var(--sky);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
@media (width >= 48em) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer__logo {
  display: inline-block;
}
.footer__logo img {
  width: 13rem;
}
.footer__brand p {
  max-width: 26em;
  margin-top: 1.25rem;
  color: var(--on-dark-soft);
}
.footer__h {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--sky);
}
.footer__grid li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
}

/* Réseaux sociaux (gérés dans l'administration) : pastilles rondes de 48 px, faciles à toucher */
.social {
  margin-top: 1.5rem;
}
.social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.footer__grid .social__link {
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--sky);
  border-radius: 50%;
  font-family: var(--font-head, inherit);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.footer__grid .social__link:hover,
.footer__grid .social__link:focus-visible {
  background: var(--sky);
  color: var(--black);
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}
.footer__base p {
  margin: 0;
}
.footer__base-left {
  display: grid;
  flex: 1 1 20rem;
  gap: 0.5rem;
  min-width: 0;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* « © 2026 ePenzioner. Sva prava zadržana. · BUSINESS MEDIA GROUP » */
.footer__publisher {
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--on-dark-soft);
}
/* Mobile : « BUSINESS MEDIA GROUP » sur sa propre ligne, jamais coupé */
@media (width < 48em) {
  .footer__sep {
    display: none;
  }
  .footer__publisher {
    display: table;
    margin-top: 0.25rem;
    white-space: nowrap;
  }
}
.site-footer a.footer__publisher {
  color: var(--on-dark-soft);
}
.site-footer a.footer__publisher:hover {
  color: var(--sky);
}

/* Crédit développeur, aligné à droite : « Developed by Software company SYSQBIT » */
.footer__dev {
  align-self: flex-start;
  margin-left: auto;
  text-align: right;
}
.footer__dev-name {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-dark);
}
.site-footer a.footer__dev-name {
  text-decoration: none;
}
.site-footer a.footer__dev-name:hover {
  color: var(--sky);
  text-decoration: underline;
}

/* ---------- Noms de rubrique en MAJUSCULES partout (menu, titres, étiquettes) ----------
   text-transform garde le texte d'origine pour les lecteurs d'écran et la recherche. */
.catnav__list a,
.drawer__cats strong,
.sec-head__title,
.page-head--caps .page-head__title,
.tag,
.headlines__cat,
.live-results__cat,
.footer__cats a {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- 21. Bandeau cookies ---------- */
.cookies {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  max-height: 85dvh;
  overflow-y: auto;
  padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--black);
  color: var(--on-dark);
  border-top: 4px solid transparent;
  border-image: var(--brand-gradient) 1;
  box-shadow: 0 -8px 24px rgb(0 0 0 / 25%);
}
.cookies[hidden] {
  display: none;
}
.cookies__inner {
  display: grid;
  gap: 1rem 2rem;
  align-items: center;
}
@media (width >= 62em) {
  .cookies__inner {
    grid-template-columns: 1fr auto;
  }
  .cookies__prefs {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
.cookies__title {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}
.cookies__title:focus {
  outline: none;
}
.cookies p {
  max-width: 48em;
  margin: 0;
  color: var(--on-dark-soft);
}
.cookies a {
  color: var(--sky);
}
.cookies__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
@media (width < 36em) {
  .cookies__actions .btn {
    flex: 1 1 100%;
  }
  .cookies__link {
    margin-inline: auto;
  }
}
.cookies__link {
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  font-family: var(--font-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookies__link:hover {
  color: var(--sky);
}
.cookies__prefs fieldset {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
@media (width >= 48em) {
  .cookies__prefs fieldset {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cookies__opt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--night-line);
  border-radius: var(--r-sm);
  background: var(--night);
  cursor: pointer;
}
.cookies__opt:has(input:disabled) {
  cursor: default;
}
.cookies__opt input {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  accent-color: var(--sky);
}
.cookies__opt > span {
  display: grid;
  gap: 0.15rem;
}
.cookies__opt strong {
  font-family: var(--font-brand);
  font-weight: 600;
}
.cookies__opt span span {
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}

/* ---------- Texte justifié et aligné (demande de la rédaction, comme HEALTHLIFE.RS) ----------
   Chapô, texte des articles et résumés des listes : bords gauche et droit alignés (sur tablette et ordinateur).
   Les TITRES restent alignés à gauche : en gros caractères, une ligne ne contient que 2 ou 3 mots
   et la justification y créerait de grands trous entre les mots. Leurs lignes sont équilibrées. */
/* Sur téléphone (lignes courtes), la justification laisserait de grands trous : texte aligné à gauche */
/* Titre de l'article : aligné des deux côtés comme le chapô (lignes posées par article.js) */
@media (width >= 40em) {
  .story__title.story__title--measure {
    text-align: left;
    text-wrap: wrap;
  }
  .story__title.story__title--fill {
    text-wrap: wrap;
  }
  .story__tl {
    display: block;
  }
  .story__tl--full {
    text-align: justify;
    text-align-last: justify;
  }
}
@media (width >= 40em) {
  .story__lead,
  .story__text p,
  .story__text li,
  .feature__excerpt,
  .lead-story__excerpt,
  .row__excerpt {
    text-align: justify;
    hyphens: auto;
  }
}
.story__title,
.feature__title,
.lead-story__title,
.row__title,
.headlines__title,
.trio__title,
.quote-band__text p {
  text-align: left;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Date et durée de lecture : chacune sur une seule ligne (« 7 min čitanja » ne se coupe plus) */
.meta > * {
  white-space: nowrap;
}

/* Bandeau « Traduit automatiquement par Google · Voir l'original » au-dessus de l'article */
.autotr-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--ice);
  font-size: 1rem;
  font-weight: 600;
}
.autotr-note__ico {
  font-size: 1.25rem;
  color: var(--cobalt);
}
.autotr-note__btn {
  margin-left: auto;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 2px solid var(--cobalt);
  border-radius: 999px;
  background: var(--paper);
  color: var(--cobalt);
  font-family: var(--font-brand);
  font-weight: 700;
  cursor: pointer;
}
.autotr-note__btn:hover {
  background: var(--cobalt);
  color: #fff;
}

/* Google Traduction (articles traduits dans le navigateur) : on masque la barre et les infobulles de Google */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.skiptranslate > iframe,
#ep-gt {
  display: none !important;
}
html.is-autotranslated body {
  top: 0 !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* ---------- 22. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 23. Impression ---------- */
@media print {
  #site-header,
  .site-footer,
  .ad,
  .cookies,
  .story__tools,
  .related,
  .crumbs,
  .page-head__mark,
  [data-print],
  .em-card .btn {
    display: none !important;
  }
  body {
    font-size: 12pt;
  }
  .page-head {
    background: none;
    color: #000;
  }
  .page-head__lead {
    color: #000;
  }
  .em-card {
    break-inside: avoid;
  }
  .story__figure {
    max-width: 60%;
  }
}
