/* =============================================================================
   Portail de recherche inter-tenants — page publique servie à la racine.
   Fichier : public_html/assets/xhelpers/css/portal.css

   Chargé APRÈS tokens.css et arc/index.css. Le portail relie les tokens du
   Helper à sa propre portée (--admin-*), sans modifier les vues /_arc/.
   Les nouveaux paramètres visuels sont définis dans tokens.css ; le contrôle
   bin/css-tokens-check.php vérifie les références sans repli.

   Page volontairement sobre : c'est une porte d'entrée, pas un tableau de bord.
   ========================================================================== */

/* LE BLEU DE L'UNIVERSITE POUR LES ACTIONS ET LA NAVIGATION.
   #004D95 n'est pas choisi a l'oeil : c'est la valeur declaree dans les SVG
   officiels du depot (Logo-ULB.svg, logo-ulb-generique.svg). Le PNG echantillonne
   a #0A5296 — un ecart de compression ; le vectoriel fait foi.

   La surcharge est portee par `.portal-page`, donc elle ne vaut QUE pour le
   portail : la pile /_arc/ garde son propre --admin-primary (#0f4c81), qui n'a
   pas a suivre la charte institutionnelle.

   Les couleurs des rubriques ne servent qu'aux pictogrammes, comme repères visuels.
   --admin-primary-dark est une derivation pour les etats de survol. */
.portal-page {
  --admin-primary: var(--xh-portal-primary);
  --admin-primary-dark: var(--xh-portal-primary-hover);
  --admin-text: var(--text-primary, #0f172a);
  --admin-muted: var(--text-secondary, #64748b);
  --admin-bg: var(--bg-secondary, #f8f9fa);
  --admin-surface: var(--bg-primary, #fff);
  --admin-border: var(--border-color, #dee2e6);
  --portal-book-bg: #edf5ef;
  --portal-book-text: #286041;
  --portal-video-bg: #f2edf8;
  --portal-video-text: #69418b;
  --portal-link-text: #805014;

  background: var(--admin-bg, #f5f6f8);
  color: var(--admin-text, #1f2933);
  min-height: 100vh;
  /* Colonne : le pied de page reste en bas meme quand le contenu est court. */
  display: flex;
  flex-direction: column;
}

/* The public page shares the tenant typography and surface tokens. Arc remains
   its own system; this bridge is scoped to the portal body. */
body.arc-admin.portal-page {
  font-family: var(--xh-type-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: var(--xh-type-body);
  background: var(--admin-surface);
}

.portal-shell {
  flex: 1 0 auto;
}

/* `width: 100%` N'EST PAS REDONDANT ICI, et c'est un piege mesure le 2026-09-05 :
   `.portal-page` est un flex column, et une marge automatique sur l'axe transversal
   y NEUTRALISE l'etirement — l'element se dimensionne alors sur son contenu, borne
   par max-width. Sans cette ligne, la coque mesurait 633 px au lieu de 780 sur un
   ecran de 1440, et la barre de recherche s'en trouvait retrecie d'autant.
   Le defaut ne se voit pas en relisant la feuille : seule la valeur calculee sur
   l'element reel le montre. */
.portal-shell {
  width: 100%;
  max-width: var(--xh-portal-reading-content-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* The directory uses the available desktop width; search results keep the
   narrower reading measure above. Neither layout becomes edge-to-edge. */
.portal-shell--home {
  max-width: var(--xh-portal-wide-content-width);
  padding-top: 0;
}

.portal-shell--home .portal-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--xh-portal-intro-gap);
  width: 100%;
  padding: var(--xh-portal-intro-padding-block) 0;
}

.portal-shell--home .portal-search {
  margin: 0;
}

/* ---------------------------------------------------------------- en-tête */

.portal-head {
  position: relative;
  isolation: isolate;
  text-align: center;
  margin-bottom: 2.25rem;
}

.portal-shell--home .portal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--spacing-md);
  text-align: left;
  margin: 0;
}

.portal-shell--home .portal-head .portal-home {
  grid-row: span 2;
}

.portal-logo {
  height: 58px;
  width: auto;
  margin-bottom: 1.2rem;
}

.portal-shell--home .portal-logo {
  height: var(--xh-portal-intro-logo-height);
  margin: 0;
}

.portal-title {
  font-size: var(--xh-type-portal-hero);
  font-weight: var(--xh-type-content-weight);
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0 0 .75rem;
  color: var(--admin-text, #1f2933);
}

.portal-tagline {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--admin-muted, #6b7280);
  font-size: var(--xh-type-body);
  line-height: 1.5;
}

.portal-shell--home .portal-tagline {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1050px) {
  .portal-shell--home .portal-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-lg);
  }
}

/* -------------------------------------------------------------- recherche */

.portal-search {
  position: relative;
  margin-bottom: 3.75rem;
}

/* Le label reste dans le flux pour les lecteurs d'écran sans encombrer la page. */
.portal-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.portal-shell--home .portal-search__label {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-bottom: var(--spacing-sm);
  overflow: visible;
  clip-path: none;
  color: var(--admin-text);
  font-size: var(--xh-type-ui);
  font-weight: var(--xh-type-label-weight);
}

.portal-search__row {
  display: grid;
  grid-template-columns: var(--xh-portal-search-icon-size) minmax(0, 1fr) var(--xh-portal-touch-size);
  align-items: center;
  gap: var(--spacing-sm);
  min-height: var(--xh-portal-search-height);
  padding: 0 var(--spacing-xs) 0 var(--spacing-md);
  border: var(--border-width) solid var(--admin-border);
  border-radius: var(--xh-shape-surface, 4px);
  background: var(--admin-surface);
  transition: border-color var(--xh-portal-motion-fast) ease,
    box-shadow var(--xh-portal-motion-fast) ease;
}

.portal-search__row:hover {
  border-color: var(--admin-primary);
}

.portal-search__row:focus-within {
  border-color: var(--admin-primary);
  box-shadow: var(--xh-portal-focus-shadow);
}

.portal-search__icon {
  width: var(--xh-portal-search-icon-size);
  height: var(--xh-portal-search-icon-size);
  color: var(--admin-muted);
  pointer-events: none;
  transition: color var(--xh-portal-motion-fast) ease;
}

.portal-search__row:focus-within .portal-search__icon {
  color: var(--admin-primary);
}

body.arc-admin.portal-page .portal-search__input {
  width: 100%;
  min-width: 0;
  min-height: calc(var(--xh-portal-search-height) - 2 * var(--border-width));
  padding: 0 var(--spacing-xs);
  font-size: var(--xh-portal-search-text-size);
  color: var(--admin-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.arc-admin.portal-page .portal-search__input:is(:hover, :focus, :focus-visible) {
  border: 0;
  outline: none;
  box-shadow: none;
}

.portal-search__submit {
  display: grid;
  place-items: center;
  width: var(--xh-portal-touch-size);
  height: var(--xh-portal-touch-size);
  padding: 0;
  color: var(--admin-primary);
  background: transparent;
  border: 0;
  border-radius: var(--xh-shape-surface, 4px);
  cursor: pointer;
  transition: background-color var(--xh-portal-motion-fast) ease;
}

.portal-search__submit svg {
  width: var(--xh-portal-search-icon-size);
  height: var(--xh-portal-search-icon-size);
}

.portal-search__submit:hover {
  background: var(--xh-portal-hover-surface);
}

body.arc-admin.portal-page .portal-search__submit:focus-visible {
  background: var(--xh-portal-hover-surface);
  outline: var(--xh-portal-focus-width) solid var(--admin-primary);
  outline-offset: calc(-1 * var(--xh-portal-focus-width));
}

/* ------------------------------------------------------------- messages */

.portal-notice {
  padding: 0.875rem 1rem;
  border-radius: var(--xh-shape-surface, 4px);
  background: var(--admin-surface-soft, #eef1f5);
  color: var(--admin-muted, #6b7280);
  margin: 0 0 1.5rem;
}

.portal-notice--warn {
  background: var(--admin-warning-soft, #fdf3e2);
  color: var(--admin-text, #1f2933);
}

/* TYPOGRAPHIE DES GUILLEMETS. `<q>` laisse le navigateur choisir ceux de la langue
   du document — mais il les colle au mot : « comment » s'affichait «comment». La
   regle francaise demande une espace insecable a l'interieur ; l'anglais, aucune.
   D'ou cette redefinition pour le seul francais, l'anglais gardant le defaut. */
:lang(fr) q {
  quotes: '\00AB\00A0' '\00A0\00BB';
}

.portal-count {
  color: var(--admin-muted, #6b7280);
  margin: 0 0 1.25rem;
}

/* ELARGIR LE CONTENEUR N'EST PAS ELARGIR LE TEXTE, et confondre les deux est le
   piege de cette page. Mesure du 2026-09-05 sur un ecran de 1440 : a 780 px de
   coque, les extraits faisaient deja 91 CARACTERES par ligne, quand le confort de
   lecture se situe entre 45 et 75. Elargir la coque sans borner la ligne aurait
   donc degrade la lisibilite en croyant l'ameliorer.
   ATTENTION A L'UNITE : `ch` vaut la largeur du caractere « 0 », plus large que la
   moyenne des minuscules. Mesure faite : 68ch rendaient 83 caracteres reels, pas 68.
   La valeur ci-dessous est donc calibree sur le RENDU, pas sur l'intuition — 58ch
   donnent une ligne d'environ 71 caracteres. Reverifier si la police change. */
.portal-blank__hint,
.portal-services__hint {
  font-size: .9rem;
  max-width: 58ch;
}

/* LE CENTRAGE D'UN TEXTE BORNE SE POSE DANS LA REGLE QUI DECLARE SA MARGE, jamais
   dans une regle groupee a part : `margin: 0` ecrit plus bas dans le fichier
   annulerait `margin-left/right: auto` sans le moindre signal. C'est arrive ici —
   le sous-titre du bloc « aucun contenu » se collait a gauche pendant que son titre
   restait centre. Voir aussi le piege de la media query : meme cause, l'ordre. */

/* ------------------------------------------------------- retour en haut */

/* Le defilement doux vaut pour l'ancre du bouton comme pour tout lien interne —
   mais jamais pour qui a demande a son systeme de reduire les animations. */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Masque tant qu'on n'a pas defile : sur une page courte, il n'aurait rien a faire.
   `visibility` en plus de l'opacite, sinon il resterait cliquable en etant invisible. */
.portal-totop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44 px : la cible tactile recommandee, et la meme que les controles de /_arc/. */
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--admin-primary, #004D95);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.portal-totop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Sans JavaScript, la classe n'est jamais posee : le bouton doit alors rester
   utilisable des qu'on le cible au clavier, sinon il devient un piege de tabulation. */
.portal-totop:focus-visible {
  opacity: 1;
  visibility: visible;
  outline: 2px solid var(--admin-primary-dark, #003A70);
  outline-offset: 2px;
}

.portal-totop:hover {
  background: var(--admin-primary-dark, #003A70);
}

@media (max-width: 560px) {
  .portal-totop {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ------------------------------------------------------------- barre haute */

/* Le blanc preserve la lisibilite du logo officiel bleu. Le filet de marque
   relie la barre au pied de page sans ajouter un second grand bloc colore. */
.portal-topbar {
  width: 100%;
  background: var(--admin-surface, #fff);
  border-bottom: 3px solid var(--admin-primary, #004D95);
}

/* Les actions restent alignees sur la coque, meme si le filet occupe toute
   la largeur de la fenetre. */
.portal-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--xh-portal-reading-content-width);
  margin: 0 auto;
  padding: var(--xh-portal-topbar-padding-block) 1.5rem;
}

.portal-page--home .portal-topbar__inner {
  max-width: var(--xh-portal-wide-content-width);
}

/* Le bloc de droite de la barre haute : langue puis session, dans cet ordre — on
   choisit sa langue avant de decider de se connecter. */
.portal-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.portal-langs--top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--xh-type-ui);
}

.portal-langs__icon,
.portal-session__icon {
  flex: 0 0 auto;
  width: var(--xh-portal-utility-icon-size);
  height: var(--xh-portal-utility-icon-size);
  color: var(--admin-muted, #6b7280);
}

.portal-topbar__utility-sep {
  width: 1px;
  height: var(--xh-portal-utility-divider-height);
  background: var(--admin-border, #d8dde3);
}

.portal-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  color: var(--admin-muted, #6b7280);
  text-decoration: none;
  font-weight: var(--xh-type-content-weight);
  letter-spacing: 0.02em;
}

.portal-lang:hover,
.portal-lang:focus-visible {
  color: var(--admin-primary, #004D95);
  text-decoration: underline;
}

/* La langue courante se marque par la couleur de marque ET la graisse : jamais par
   la couleur seule, qui ne dit rien a qui ne la distingue pas. */
.portal-lang.is-active {
  color: var(--admin-primary, #004D95);
}

.portal-langs__sep {
  width: 1px;
  height: 12px;
  background: var(--admin-border, #d8dde3);
}

/* LE LOGO DE L'UNIVERSITE EN TETE, comme sur ses propres sites : c'est un portail
   ULB avant d'etre un portail Helpers. Hauteur pilotee par token et largeur automatique, le
   fichier faisant 1621x505 — imposer les deux le deformerait. */
.portal-topbar__ulb {
  display: block;
  height: var(--xh-portal-ulb-logo-height);
  width: auto;
}

/* -------------------------------------------------- accueil sans contenu public */

/* Cet etat n'est pas une erreur : il dit qu'aucun contenu n'a encore ete publie.
   Il porte donc la couleur de la page, jamais celle d'un avertissement — et
   surtout une SUITE, pour que la page cesse d'etre un cul-de-sac. */
.portal-blank {
  max-width: var(--xh-portal-blank-width);
  margin: 0 auto;
  padding: var(--spacing-lg) 0 var(--spacing-xl);
  text-align: center;
}

.portal-blank__title {
  margin: 0 0 0.5rem;
  font-weight: var(--xh-type-content-weight);
  color: var(--admin-text, #1f2933);
}

.portal-blank__hint {
  margin: 0 auto;
  color: var(--admin-muted, #6b7280);
}

/* Le bouton central (.portal-blank__action / __cta) a ete retire le 2026-09-07 :
   l'invitation a se connecter est un lien dans la phrase, comme dans les branches
   « aucun resultat » et « resultats ». Motif complet dans la vue. */

/* -------------------------------------------------------------- résultats */

.portal-group {
  margin-bottom: 2rem;
}

.portal-group__title {
  font-size: var(--xh-type-ui);
  font-weight: var(--xh-type-content-weight);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-muted, #6b7280);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--admin-border, #d8dde3);
}

.portal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--admin-border);
}

.portal-item {
  padding: 1.25rem 1.5rem;
  margin: 0;
}

.portal-item + .portal-item { border-top: 1px solid var(--admin-border, #d8dde3); }
.portal-item:last-child { border-bottom: 1px solid var(--admin-border); }

.portal-item__link {
  font-size: var(--xh-type-card-title);
  font-weight: var(--xh-type-content-weight);
  color: var(--admin-primary, #004D95);
  text-decoration: none;
}

.portal-item__link:hover {
  text-decoration: underline;
}

.portal-item__path {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--xh-type-meta);
  line-height: 1.5;
  color: var(--admin-muted);
  overflow-wrap: anywhere;
}

.portal-icon { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; }
.portal-item__service { color: var(--admin-primary); font-weight: var(--xh-type-label-weight); }
.portal-item__separator { margin-inline: var(--spacing-xs); }
.portal-item__module { display: inline-flex; align-items: center; gap: var(--spacing-xs); font-weight: var(--xh-type-label-weight); }
.portal-item__module .portal-icon { width: var(--xh-type-meta); height: var(--xh-type-meta); }
.portal-item__module--book { color: var(--portal-book-text); }
.portal-item__module--video { color: var(--portal-video-text); }
.portal-item__module--link { color: var(--portal-link-text); }
.portal-item__link { display: inline-block; line-height: 1.45; }
.portal-item__link:focus-visible { outline: 2px solid var(--admin-primary, #004D95); outline-offset: 4px; }

/* .portal-item__excerpt retire le 2026-09-07 : la liste ne rend plus d'extrait, le
   portail aiguille vers la fiche. Le champ `excerpt` reste dans l'index, ou la
   recherche continue de le lire. */

/* --------------------------------------------------------- réponse vide */

.portal-empty {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #d8dde3);
  border-radius: var(--xh-shape-surface, 4px);
}

.portal-empty__title {
  margin: 0 0 0.5rem;
  font-weight: var(--xh-type-content-weight);
  color: var(--admin-text, #1f2933);
}

.portal-empty__hint {
  margin: 0;
  color: var(--admin-muted, #6b7280);
}

/* ---------------------------------------------------------- services */

.portal-services__title {
  font-size: var(--xh-type-card-title);
  font-weight: var(--xh-type-content-weight);
  margin: 0 0 0.5rem;
  color: var(--admin-text, #1f2933);
}

.portal-services__hint {
  font-size: .9rem;
  margin: 0 0 1rem;
  color: var(--admin-muted, #6b7280);
}

.portal-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-service {
  min-height: 44px;
  font-size: .9rem;
  padding: 0.5rem 0.875rem;
  background: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #d8dde3);
  border-radius: var(--xh-shape-surface, 4px);
}

.portal-service__name {
  font-weight: var(--xh-type-content-weight);
  color: var(--admin-text, #1f2933);
}

/* ------------------------------------------------------------- mobile */

@media (max-width: 560px) {
  /* UN SEUL RETRAIT POUR TOUTE LA PAGE. Mesure du 2026-09-05 a 375 px : la coque
     passait a 1 rem tandis que la barre haute et le pied de page restaient a
     1,5 rem — trois blocs, deux verticales, 8 px d'ecart. C'est peu, et c'est
     exactement ce qui se voit : le regard suit un bord, pas une valeur. */
  .portal-shell {
    padding: 2rem 1rem 3rem;
  }

  .portal-shell--home {
    padding-top: 0;
  }

  .portal-shell--home .portal-intro {
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
  }

  .portal-shell--home .portal-head .portal-home {
    grid-row: auto;
  }

  .portal-shell--home .portal-title {
    margin: 0;
  }

  .portal-shell--home .portal-tagline {
    grid-column: 1 / -1;
    margin-top: var(--spacing-md);
  }

  .portal-topbar__inner {
    padding: var(--xh-portal-topbar-padding-block) 1rem;
  }

}

/* ------------------------------------------------------------ session */

/* DEUX « Se connecter » COEXISTENT, et c'est voulu : celui de la barre haute est un
   acces PERMANENT, celui de la carte est l'action du MOMENT quand il n'y a rien a
   chercher. Ce qui genait, c'est qu'ils avaient le meme poids visuel et se
   concurrencaient. L'acces permanent s'efface donc — meme discretion que le
   selecteur de langue, a cote duquel il vit. */
.portal-session__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 44px;
  /* Le gris attenue tombait a 4,36:1 sur le fond de page, sous le minimum de 4,5.
     La discretion vient donc du POIDS et de l'ABSENCE de couleur de marque, pas
     d'un gris trop clair : le bleu signale l'action, le neutre la navigation. */
  color: var(--admin-text, #1f2933);
  font-size: var(--xh-type-ui);
  font-weight: var(--xh-type-label-weight);
  text-decoration: none;
}

.portal-session__link:hover,
.portal-session__link:focus-visible {
  color: var(--admin-primary, #004D95);
  text-decoration: underline;
}

.portal-session__link:hover .portal-session__icon,
.portal-session__link:focus-visible .portal-session__icon {
  color: inherit;
}

/* Dans une notice, en revanche, le lien EST l'action proposee : il garde la couleur
   de marque.

   `nowrap` N'EST PAS COSMETIQUE ICI. Ces liens closent une phrase bornee a 58ch, et
   « Se connecter » tombait pile sur la fin de ligne : le rendu coupait le lien en
   deux, « Se » d'un cote et « connecter » centre sur la ligne suivante. Mesure du
   2026-09-07 a 1440 px, invisible en relisant la feuille. Le lien passe donc a la
   ligne d'un seul bloc plutot que d'etre scinde. Sans risque pour les deux libelles
   qui portent cette classe — « Se connecter » et « Tous les services » sont courts ;
   a reexaminer si un libelle long la recevait un jour. */
.portal-notice__link {
  color: var(--admin-primary, #004D95);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.portal-notice__link:hover {
  text-decoration: underline;
}

/* -------------------------------------------------- recherches fréquentes */

.portal-frequent {
  margin-bottom: 2rem;
}

.portal-frequent__title {
  font-size: var(--xh-type-section-title);
  font-weight: var(--xh-type-content-weight);
  margin: 0 0 0.75rem;
  color: var(--admin-text, #1f2933);
}

.portal-frequent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-frequent__link {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--admin-primary-dark, #003A70);
  background: var(--admin-primary-soft, #e8f2fb);
  border-radius: var(--xh-shape-surface, 4px);
  text-decoration: none;
}

.portal-frequent__link:hover {
  background: var(--admin-primary, #004D95);
  color: #ffffff;
}

/* ------------------------------------------------------- services cliquables */

.portal-service {
  min-height: 44px;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #d8dde3);
  border-radius: var(--xh-shape-surface, 4px);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-service:hover {
  border-color: var(--admin-primary, #004D95);
  box-shadow: var(--admin-shadow-soft, 0 1px 3px rgba(15, 23, 42, 0.08));
}

.portal-service .portal-icon {
  color: var(--admin-primary, #004D95);
}

.portal-service__count {
  font-size: var(--xh-type-meta);
  font-weight: var(--xh-type-label-weight);
  padding: 0.0625rem 0.4375rem;
  color: var(--admin-muted, #6b7280);
  background: var(--admin-surface-soft, #eef1f5);
  border-radius: var(--xh-shape-surface, 4px);
}

.portal-service:hover .portal-service__count {
  color: var(--admin-primary-dark, #003A70);
  background: var(--admin-primary-soft, #e8f2fb);
}

/* ---------------------------------------------------- annuaire par domaines */

.portal-directory__symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.portal-directory__notice {
  margin: 0 0 1.5rem;
  color: var(--admin-muted, #6b7280);
  font-size: .9rem;
}

.portal-directory__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: var(--border-width) solid var(--admin-border);
}

.portal-directory__heading h2 {
  margin: 0 0 .4rem;
  color: var(--admin-text, #1f2933);
  font-size: var(--xh-type-portal-section);
  font-weight: var(--xh-type-content-weight);
  letter-spacing: -.02em;
}

#portal-directory-title {
  scroll-margin-block-start: var(--spacing-xl);
}

.portal-directory__heading p {
  margin: 0;
  color: var(--admin-muted, #6b7280);
  line-height: 1.5;
}

.portal-directory__reset {
  flex: 0 0 auto;
  color: var(--admin-primary);
  font-size: var(--xh-type-ui);
  text-underline-offset: var(--spacing-xs);
}

.portal-directory__reset:focus-visible {
  outline: var(--xh-portal-focus-width) solid var(--admin-primary);
  outline-offset: var(--spacing-xs);
}

.portal-directory__access {
  margin: var(--spacing-xl) 0 0;
  font-size: var(--xh-type-ui);
  color: var(--admin-muted, #64748b);
}

.portal-domain-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--xh-portal-domain-index-gap) var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: var(--border-width) solid var(--admin-border);
}

.portal-domain-tone--rose { --portal-domain-color: var(--xh-portal-domain-rose); }
.portal-domain-tone--slate { --portal-domain-color: var(--xh-portal-domain-slate); }
.portal-domain-tone--teal { --portal-domain-color: var(--xh-portal-domain-teal); }
.portal-domain-tone--indigo { --portal-domain-color: var(--xh-portal-domain-indigo); }
.portal-domain-tone--amber { --portal-domain-color: var(--xh-portal-domain-amber); }
.portal-domain-tone--cyan { --portal-domain-color: var(--xh-portal-domain-cyan); }
.portal-domain-tone--blue { --portal-domain-color: var(--xh-portal-domain-blue); }
.portal-domain-tone--green { --portal-domain-color: var(--xh-portal-domain-green); }
.portal-domain-tone--orange { --portal-domain-color: var(--xh-portal-domain-orange); }

.portal-domain-tone--custom .portal-domain__icon { background: transparent; }
.portal-domain__icon .portal-domain-glyph { width: 100%; height: 100%; }

.portal-domain-nav__item {
  display: inline-flex;
  align-items: center;
  min-height: var(--xh-portal-touch-size);
  color: var(--admin-muted);
  font-size: var(--xh-type-ui);
  text-decoration: none;
  border-bottom: var(--xh-portal-focus-width) solid transparent;
  transition: color var(--xh-portal-motion-fast) var(--xh-portal-motion-ease), border-color var(--xh-portal-motion-fast) var(--xh-portal-motion-ease);
}

.portal-domain-nav__item:hover {
  color: var(--admin-primary);
}

.portal-domain-nav__item.is-active {
  color: var(--admin-primary);
  font-weight: var(--xh-type-label-weight);
  border-bottom-color: var(--admin-primary);
}

.portal-domain-nav__item:focus-visible,
.portal-helper__search:focus-visible {
  outline: 2px solid var(--admin-primary, #004D95);
  outline-offset: 3px;
}

.portal-domain__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--xh-portal-domain-icon-size);
  height: var(--xh-portal-domain-icon-size);
  color: var(--portal-domain-color, #004D95);
  background: color-mix(in srgb, var(--portal-domain-color, #004D95) 12%, var(--admin-surface, #fff));
  border-radius: var(--xh-shape-surface, 4px);
}

.portal-domain__icon svg {
  width: var(--xh-portal-utility-icon-size);
  height: var(--xh-portal-utility-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-directory__groups {
  display: grid;
  gap: var(--xh-portal-directory-gap) var(--spacing-2xl);
  scroll-margin-top: var(--spacing-lg);
}

@media (min-width: 960px) {
  .portal-directory__groups:not(.portal-directory__groups--single) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.portal-directory__groups--single {
  max-width: var(--xh-portal-reading-content-width);
}

.portal-domain {
  scroll-margin-top: var(--spacing-lg);
}

.portal-domain__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.portal-domain__header h3 {
  margin: 0;
  color: var(--admin-text, #1f2933);
  font-size: var(--xh-type-section-title);
  font-weight: var(--xh-type-content-weight);
  letter-spacing: -.01em;
}

.portal-domain__count {
  margin-left: auto;
  color: var(--admin-muted);
  font-size: var(--xh-type-meta);
}

.portal-domain__link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: var(--spacing-xs);
}

.portal-domain__link:is(:hover, :focus-visible) {
  color: var(--admin-primary);
  text-decoration: underline;
}

.portal-domain__link:focus-visible {
  outline: var(--xh-portal-focus-width) solid var(--admin-primary);
  outline-offset: var(--spacing-xs);
}

.portal-domain__services {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--border-width) solid var(--admin-border);
}

.portal-helper {
  position: relative;
  display: grid;
  grid-template-columns: var(--xh-portal-helper-logo-width) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-md);
  min-height: var(--xh-portal-domain-row-height);
  padding: var(--spacing-md) var(--spacing-sm);
  border-bottom: var(--border-width) solid var(--admin-border);
  transition: background-color var(--xh-portal-motion-fast) var(--xh-portal-motion-ease);
}

.portal-helper:hover,
.portal-helper:focus-within {
  background: var(--xh-portal-hover-surface);
}

.portal-helper:focus-within {
  outline: var(--xh-portal-focus-width) solid var(--admin-primary);
  outline-offset: calc(-1 * var(--xh-portal-focus-width));
}

.portal-helper__info h4 {
  margin: 0;
  font-size: var(--xh-type-card-title);
  font-weight: var(--xh-type-content-weight);
}

.portal-helper__visual {
  display: grid;
  place-items: center;
  width: var(--xh-portal-helper-logo-width);
  height: var(--xh-portal-helper-logo-size);
  color: var(--admin-muted);
}

.portal-helper__logo {
  grid-area: 1 / 1;
  width: var(--xh-portal-helper-logo-width);
  height: var(--xh-portal-helper-logo-size);
  object-fit: contain;
  visibility: hidden;
}

.portal-helper__fallback {
  grid-area: 1 / 1;
  width: var(--xh-portal-helper-fallback-size);
  height: var(--xh-portal-helper-fallback-size);
}

.portal-helper__visual--ready .portal-helper__logo {
  visibility: visible;
}

.portal-helper__visual--ready .portal-helper__fallback {
  visibility: hidden;
}

.portal-helper__info {
  min-width: 0;
}

.portal-helper__title {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--admin-primary-dark, #003A70);
  text-decoration: none;
}

.portal-helper__title span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Le nom ouvre le Helper depuis toute la ligne ; le lien de recherche garde sa
   propre cible au-dessus de cette surface. Deux destinations, sans lien imbrique. */
.portal-helper__title::after {
  position: absolute;
  inset: 0;
  content: '';
}

.portal-helper:hover .portal-helper__title {
  color: var(--admin-primary);
}

.portal-helper__title:focus-visible {
  outline: none;
}

.portal-helper__info p {
  margin: var(--spacing-xs) 0 0;
  color: var(--admin-muted, #6b7280);
  font-size: var(--xh-type-meta);
}

.portal-helper__arrow {
  flex: 0 0 auto;
  width: var(--xh-portal-utility-icon-size);
  height: var(--xh-portal-utility-icon-size);
  color: var(--admin-primary, #004D95);
  transition: transform var(--xh-portal-motion-fast) var(--xh-portal-motion-ease);
}

.portal-helper:hover .portal-helper__arrow {
  transform: translateX(var(--xh-portal-motion-arrow-shift));
}

.portal-helper__search {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: var(--xh-portal-touch-size);
  color: var(--admin-muted);
  font-size: var(--xh-portal-action-text-size);
  font-weight: var(--xh-type-body-weight);
  text-decoration: none;
  white-space: nowrap;
}

.portal-helper__search svg {
  width: var(--xh-portal-utility-icon-size);
  height: var(--xh-portal-utility-icon-size);
  flex: 0 0 auto;
}

.portal-helper__search:is(:hover, :focus-visible) {
  color: var(--admin-primary);
}

@media (max-width: 560px) {
  .portal-helper {
    grid-template-columns: var(--xh-portal-helper-logo-width) minmax(0, 1fr);
    row-gap: 0;
  }

  .portal-helper__search {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-domain-nav__item,
  .portal-helper,
  .portal-helper__arrow {
    transition: none;
  }

  .portal-helper:hover .portal-helper__arrow {
    transform: none;
  }

  .portal-search__icon,
  .portal-search__row,
  .portal-search__input,
  .portal-search__submit {
    transition: none;
  }
}

/* ----------------------------------------------------------- pied de page */

/* Signature ULB, limitée au portail. La navigation métier reste dans le contenu. */
.portal-footer {
  flex: 0 0 auto;
  color: var(--xh-portal-footer-text);
  background: var(--xh-portal-footer-bg);
}
.portal-footer::before {
  content: "";
  display: block;
  height: 7px;
  background-image: var(--xh-portal-footer-band);
}
.portal-footer__inner {
  width: 100%;
  max-width: var(--xh-portal-wide-content-width);
  margin: 0 auto;
  padding-inline: var(--spacing-lg);
}
.portal-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .9fr);
  align-items: start;
  gap: var(--spacing-xl) var(--spacing-2xl);
  padding-block: var(--spacing-xl);
}
.portal-footer__main--request {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1fr);
}
.portal-footer__logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
}
.portal-footer :is(h2, h3) {
  color: var(--xh-portal-footer-text);
  font-weight: var(--xh-type-title-weight);
  line-height: 1.4;
}
.portal-footer .portal-footer__about h2 {
  margin: var(--spacing-md) 0 var(--spacing-xs);
  font-size: var(--xh-type-content-heading);
  letter-spacing: -.025em;
}
.portal-footer h3 {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--xh-type-card-title);
}
.portal-footer :is(.portal-footer__about, .portal-footer__service) p {
  max-width: 30ch;
  margin: 0;
  color: var(--xh-portal-footer-muted);
  font-size: var(--xh-type-ui);
  line-height: 1.65;
}
.portal-footer .portal-footer__about p { max-width: none; }
.portal-footer__links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-footer a {
  color: var(--xh-portal-footer-text);
  text-decoration: none;
  text-underline-offset: .25em;
}
.portal-footer a:hover {
  text-decoration: underline;
}
.portal-footer__links a,
.portal-footer__request {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  min-height: var(--xh-portal-touch-size);
  font-size: var(--xh-type-ui);
  line-height: 1.5;
}
.portal-footer__request {
  margin-top: var(--spacing-sm);
  font-weight: var(--xh-type-label-weight);
}
.portal-footer__stores {
  display: grid;
  gap: var(--spacing-sm);
  max-width: 24ch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-footer .portal-footer__store {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-height: var(--xh-portal-touch-size);
  padding: var(--spacing-sm) var(--spacing-md);
  border: var(--border-width) solid color-mix(in srgb, var(--xh-portal-footer-text) 28%, transparent);
  border-radius: var(--xh-shape-control);
  font-size: var(--xh-type-ui);
  line-height: 1.4;
  text-decoration: none;
}
.portal-footer__store svg {
  flex: none;
  width: var(--icon-size);
  height: var(--icon-size);
}
.portal-footer__store > span { min-width: 0; }
.portal-footer__store-hint {
  display: block;
  color: var(--xh-portal-footer-muted);
  font-size: var(--xh-type-meta);
}
.portal-footer__store strong { font-weight: var(--xh-type-label-weight); }
.portal-footer .portal-footer__store:is(:hover, :focus-visible) {
  border-color: var(--xh-portal-footer-text);
  background: color-mix(in srgb, var(--xh-portal-footer-text) 8%, transparent);
}
.portal-footer :is(a, button, input):focus-visible,
.portal-page--hub .portal-footer a:focus-visible {
  outline: var(--xh-portal-focus-width) solid var(--xh-portal-footer-text);
  outline-offset: 4px;
}
.portal-footer__base {
  background: var(--xh-portal-footer-base-bg);
}
.portal-footer__bottom {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm) var(--spacing-lg);
  min-height: 72px;
  /* Laisser libre la cible du lien fixe de retour en haut, même sur mobile. */
  padding-right: calc(var(--spacing-lg) + var(--xh-portal-touch-size) + var(--spacing-sm));
  padding-block: var(--spacing-sm);
  font-size: var(--xh-type-meta);
}
.portal-footer__legal {
  margin: 0;
  color: var(--xh-portal-footer-muted);
  line-height: 1.6;
}
.portal-footer__legal-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--xh-portal-touch-size);
}
.portal-footer__social {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: auto;
}
.portal-footer__follow {
  color: var(--xh-portal-footer-muted);
}
.portal-footer__networks {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-footer__network {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--xh-portal-touch-size);
  height: var(--xh-portal-touch-size);
  border-radius: var(--xh-shape-control);
}
.portal-footer__network:hover,
.portal-footer__network:focus-visible {
  background: color-mix(in srgb, var(--xh-portal-footer-text) 12%, transparent);
}
@media (max-width: 950px) {
  .portal-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--spacing-lg); }
  .portal-footer__bottom { flex-wrap: wrap; }
  .portal-footer__social { margin-left: 0; }
}
@media (max-width: 600px) {
  .portal-footer__inner { padding-inline: var(--spacing-md); }
  .portal-footer__main { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-lg); padding-block: var(--spacing-lg); }
  .portal-footer__logo { height: 40px; }
  .portal-footer :is(.portal-footer__about, .portal-footer__service) p { max-width: 40ch; }
  .portal-footer__bottom { align-items: flex-start; flex-direction: column; gap: var(--spacing-xs); padding-block: var(--spacing-md); padding-right: calc(var(--spacing-md) + var(--xh-portal-touch-size) + var(--spacing-sm)); }
  .portal-footer__social { flex-wrap: wrap; gap: var(--spacing-sm); }
}

.portal-empty__members {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border, #d8dde3);
  color: var(--admin-muted, #6b7280);
}

/* Pagination et filtre : controles de navigation, sans dependance JavaScript. */
.portal-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--admin-primary, #004D95);
  background: var(--admin-primary-soft, #e8f2fb);
  margin: -1rem 0 1.5rem;
  color: var(--admin-text, #1f2933);
  overflow-wrap: anywhere;
}

/* La pagination arrive apres six ecrans de resultats : elle doit se DETACHER de la
   liste, sinon elle se lit comme une carte de plus. Un filet et de l'air au-dessus
   suffisent — c'est ce qui manquait pour qu'on la voie. */
.portal-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--admin-border, #d8dde3);
}

/* Le rang courant est l'information la plus utile de ce bloc : il se lit avant les
   deux fleches, donc il porte la graisse. */
.portal-pagination [aria-current="page"] {
  font-weight: 600;
  color: var(--admin-text, #1f2933);
}

.portal-pagination__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  color: var(--admin-primary, #004D95);
  background: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #d8dde3);
  border-radius: var(--xh-shape-control, 4px);
  text-decoration: none;
}

.portal-pagination__link:hover {
  text-decoration: underline;
}

.portal-pagination__link:focus-visible {
  outline: 2px solid var(--admin-primary, #004D95);
  outline-offset: 2px;
}

/* Les recherches mettent immédiatement les réponses au premier plan. */
.portal-shell:not(.portal-shell--home) {
  padding-top: var(--spacing-xl);
}

.portal-shell:not(.portal-shell--home) .portal-head {
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

.portal-shell:not(.portal-shell--home) .portal-head .portal-home {
  display: none;
}

.portal-shell:not(.portal-shell--home) .portal-title {
  font-size: var(--xh-type-page-title);
  margin-bottom: var(--spacing-xs);
}

.portal-shell:not(.portal-shell--home) .portal-tagline {
  margin-left: 0;
}

.portal-shell:not(.portal-shell--home) .portal-search {
  margin-bottom: var(--spacing-xl);
}

/* La liste seule défile : l'accès à tous les résultats ne recouvre aucune réponse. */
.portal-suggestions {
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: var(--xh-portal-suggestion-layer);
  top: calc(100% + var(--spacing-sm));
  left: 0;
  right: 0;
  max-height: var(--xh-portal-suggestion-max-height);
  border: var(--border-width) solid var(--admin-border);
  border-radius: var(--xh-shape-surface, 4px);
  background: var(--admin-surface);
  overflow: hidden;
}

.portal-suggestions[hidden] { display: none; }

.portal-suggestions__results {
  min-height: 0;
  overflow-y: auto;
  padding: var(--spacing-xs);
  scroll-padding-block: var(--spacing-xs);
}

.portal-suggestions__item,
.portal-suggestions__all {
  display: flex;
  align-items: center;
  min-height: var(--xh-portal-touch-size);
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--admin-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: var(--xh-shape-surface, 4px);
}

.portal-suggestions__item {
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-xs);
}

.portal-suggestions__item + .portal-suggestions__item { margin-top: var(--spacing-xs); }

.portal-suggestions__context {
  color: var(--admin-muted);
  font-size: var(--xh-type-meta);
  line-height: var(--xh-portal-suggestion-line-height);
}

.portal-suggestions__service { color: var(--admin-primary); font-weight: var(--xh-type-label-weight); }
.portal-suggestions__separator { white-space: pre; }

.portal-suggestions__item strong {
  font-size: var(--xh-portal-suggestion-text-size);
  font-weight: var(--xh-type-body-weight);
  line-height: var(--xh-portal-suggestion-line-height);
  color: var(--admin-text);
}

.portal-suggestions a:hover { background: var(--xh-portal-hover-surface); }

.portal-suggestions a:focus-visible {
  background: var(--xh-portal-hover-surface);
  outline: var(--xh-portal-focus-width) solid var(--admin-primary);
  outline-offset: calc(-1 * var(--xh-portal-focus-width));
}

.portal-suggestions__all {
  flex-shrink: 0;
  padding-inline: var(--spacing-md);
  font-size: var(--xh-portal-suggestion-text-size);
  font-weight: var(--xh-type-label-weight);
  border-top: var(--border-width) solid var(--admin-border);
  border-radius: 0;
}

.portal-suggest-status {
  color: var(--admin-muted);
  font-size: var(--xh-portal-suggestion-text-size);
}

.portal-suggest-status:empty { display: none; }

.portal-home { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.portal-home:focus-visible { outline: 2px solid var(--admin-primary, #004D95); outline-offset: 4px; border-radius: var(--xh-shape-surface, 4px); }

@media (max-width: 560px) {
  .portal-langs__icon,
  .portal-session__icon,
  .portal-topbar__utility-sep { display: none; }
  .portal-topbar__actions { gap: .4rem; }
  .portal-langs--top { gap: .1rem; }
  .portal-item { padding: 1rem; }
  .portal-title { letter-spacing: -.02em; }
  .portal-directory__heading {
    align-items: start;
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
  }
  .portal-directory__groups { gap: var(--spacing-xl); }
  .portal-shell:not(.portal-shell--home) { padding-top: var(--spacing-lg); }
}

@media (max-width: 360px) {
  .portal-topbar__inner { gap: .5rem; }
  .portal-session__link { font-size: .8rem; white-space: nowrap; }
  .portal-lang { min-width: 28px; }
}

/* Un seul mouvement d'accueil ; les autres repondent a une action. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes portal-logo-reveal {
    from { opacity: var(--xh-portal-motion-entry-opacity); transform: translateY(var(--xh-portal-motion-entry-shift)); }
    to { opacity: 1; transform: translateY(0); }
  }

  .portal-shell--home .portal-logo {
    animation: portal-logo-reveal var(--xh-portal-motion-intro) var(--xh-portal-motion-ease) both;
  }

  .portal-topbar__ulb,
  .portal-domain__icon,
  .portal-footer__network svg {
    transition: transform var(--xh-portal-motion-fast) var(--xh-portal-motion-ease);
  }

  .portal-home--ulb:is(:hover, :focus-visible) .portal-topbar__ulb,
  .portal-domain:is(:hover, :focus-within) .portal-domain__icon,
  .portal-footer__network:is(:hover, :focus-visible) svg {
    transform: translateY(calc(-1 * var(--xh-portal-motion-shift)));
  }

}
