@layer holo-icon {
:where(.hr-IconVisual) {
  position: relative;
  display: inline-grid;
  inline-size: 1em;
  block-size: 1em;
  place-items: center;
  flex-shrink: 0;
}

/* Todos los glifos, la misma presencia (Martín, 9-11, D324): el trazo es el del
   peso que declara el estilo (fino por defecto) y nunca se engorda con la
   negrita del texto que los rodea (font-synthesis); la opacidad sale de un solo
   valor, --holo-icon-opacity (Tokens.css). Los logos de red, que son un círculo
   de marca, no se atenúan. Una Part que necesite otra opacidad la declara en su
   hoja: fuera de la capa, su regla manda. */
:where([data-holo-icon].ph-light):not([data-holo-icon^="Brand/"]) {
  font-synthesis: none;
  opacity: var(--holo-icon-opacity, 0.85);
}
}

:where(.hr-IconSpinner) {
  position: absolute;
  z-index: var(--holo-layer-1);
  display: none;
  box-sizing: border-box;
  inline-size: max(42%, 0.7rem);
  aspect-ratio: 1;
  border: max(2px, 0.18rem) solid color-mix(in srgb, var(--holo-panel),
    transparent 18%);
  border-block-start-color: var(--holo-accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--holo-panel), transparent 38%);
  animation: holo-icon-spin var(--holo-duration-14) linear infinite;
  pointer-events: none;
}

:where(.hr-IconVisual[aria-busy="true"]) > .hr-IconSpinner {
  display: block;
}

:where(.hr-IconVisual[aria-busy="true"]) > .hr-Icon {
  visibility: hidden;
}

/* Un icono con Activity: Loading (el menú de la cabecera) se vuelve una rueda
   mientras la página carga: data-holo-loading en el documento, que pone
   Transition (Loading.Begin) pasado su Loading.Delay (Data de Transition). El glifo se oculta sin cambiar de caja y la rueda ocupa su sitio. */
:root[data-holo-loading] .hr-Icon[data-holo-activity="Loading"] {
  position: relative;
  visibility: hidden;
}

:root[data-holo-loading] .hr-Icon[data-holo-activity="Loading"]::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  inline-size: 0.82em;
  block-size: 0.82em;
  margin: auto;
  border: 0.11em solid color-mix(in srgb, currentColor, transparent 72%);
  border-block-start-color: var(--holo-accent, currentColor);
  border-radius: 50%;
  visibility: visible;
  animation: holo-icon-spin var(--holo-duration-14) linear infinite;
}

@keyframes holo-icon-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.hr-IconSpinner),
  :root[data-holo-loading] .hr-Icon[data-holo-activity="Loading"]::after {
    animation-duration: var(--holo-duration-18);
  }
}

/* Icon.Weight: Regular o Fill (lo declara el estilo). Phosphor trae tres fuentes
   con los mismos puntos de código: Light por defecto, Regular y Fill (relleno)
   cuando el estilo lo pide; el glifo cambia de trazo sin cambiar de caja. */
@container style(--holo-icon-weight: Regular) {
  [data-holo-icon].ph-light {
    font-family: "Phosphor-Regular";
  }
}

@container style(--holo-icon-weight: Fill) {
  [data-holo-icon].ph-light {
    font-family: "Phosphor-Fill";
  }
}

/* Runas (Flavour: Rune). Brillan suave del color de su texto; al pasar el
   ratón por su control (o por la propia runa) toman el acento, y su brillo
   con él. Sólo cambia el color: nada crece, sube, se mueve ni brilla más. */
:where([data-holo-icon-flavour="Rune"]) .hr-Icon[data-holo-icon] {
  filter: drop-shadow(0 0 0.1em color-mix(in srgb, currentColor, transparent 50%));
  transition: color var(--holo-duration-7) ease, filter var(--holo-duration-7) ease;
}

:where([data-holo-icon-flavour="Rune"]) :is(button, a, label, [role="tab"], [role="button"], [role="option"], [role="radio"], [role="menuitem"]):is(:hover, :focus-visible) .hr-Icon[data-holo-icon],
:where([data-holo-icon-flavour="Rune"]) .hr-Icon[data-holo-icon]:hover {
  color: var(--holo-accent);
}

@media (prefers-reduced-motion: reduce) {
  :where([data-holo-icon-flavour="Rune"]) .hr-Icon[data-holo-icon] {
    transition: none;
  }
}

/* Logos de red (Martín, 27-10): siempre el logo oficial, el glifo blanco en su círculo de color de marca. Sólo las redes; los demás Brand (Aura, Mind, Markdown) se dibujan sin círculo. Cada sitio sólo cambia su tamaño con --holo-brand-size (2,4 rem si nadie lo declara): la regla no lo declara, así que lo fija el sitio o un antepasado aunque su hoja vaya en una capa anterior a la de los iconos. En las listas de Holo el glifo va dentro de IconVisual y el círculo es su icono. */
:where(:is([data-holo-icon="Brand/X"]):not(.hr-IconVisual > *)), :where(:is([data-holo-icon="Brand/Telegram"]):not(.hr-IconVisual > *)), :where(:is([data-holo-icon="Brand/Discord"]):not(.hr-IconVisual > *)), :where(:is([data-holo-icon="Brand/Youtube"]):not(.hr-IconVisual > *)), :where(:is([data-holo-icon="Brand/Tiktok"]):not(.hr-IconVisual > *)), :where(:is([data-holo-icon="Brand/Instagram"]):not(.hr-IconVisual > *)), :where(:is([data-holo-icon="Brand/Reddit"]):not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > :is([data-holo-icon="Brand/X"], [data-holo-icon="Brand/Telegram"], [data-holo-icon="Brand/Discord"], [data-holo-icon="Brand/Youtube"], [data-holo-icon="Brand/Tiktok"], [data-holo-icon="Brand/Instagram"], [data-holo-icon="Brand/Reddit"]))) { --holo-part-width: var(--holo-brand-size, 2.4rem); --holo-part-height: var(--holo-brand-size, 2.4rem); display: inline-grid; place-items: center; flex: none; inline-size: var(--holo-brand-size, 2.4rem); block-size: var(--holo-brand-size, 2.4rem); border-radius: 50%; font-size: calc(var(--holo-brand-size, 2.4rem) * 0.52); color: #ffffff; }
:where([data-holo-icon="Brand/X"]:not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > [data-holo-icon="Brand/X"])) { background: #0f1419; }
:where([data-holo-icon="Brand/Telegram"]:not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > [data-holo-icon="Brand/Telegram"])) { background: #2aa3e0; }
:where([data-holo-icon="Brand/Discord"]:not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > [data-holo-icon="Brand/Discord"])) { background: #5865f2; }
:where([data-holo-icon="Brand/Youtube"]:not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > [data-holo-icon="Brand/Youtube"])) { background: #ff0000; }
:where([data-holo-icon="Brand/Tiktok"]:not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > [data-holo-icon="Brand/Tiktok"])) { background: #000000; }
:where([data-holo-icon="Brand/Instagram"]:not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > [data-holo-icon="Brand/Instagram"])) { background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
:where([data-holo-icon="Brand/Reddit"]:not(.hr-IconVisual > *)), :where(.hr-Icon:has(> .hr-IconVisual > [data-holo-icon="Brand/Reddit"])) { background: #ff4500; }

/* Con tamaño declarado (Layout.Width y Height), el círculo del logo mide lo que declara la vista: la cabecera de una cuenta lleva el suyo, mayor que el de una fila. */
:is([data-holo-icon="Brand/X"])[data-holo-width]:not(.hr-IconVisual > *), :is([data-holo-icon="Brand/Telegram"])[data-holo-width]:not(.hr-IconVisual > *), :is([data-holo-icon="Brand/Discord"])[data-holo-width]:not(.hr-IconVisual > *), :is([data-holo-icon="Brand/Youtube"])[data-holo-width]:not(.hr-IconVisual > *), :is([data-holo-icon="Brand/Tiktok"])[data-holo-width]:not(.hr-IconVisual > *), :is([data-holo-icon="Brand/Instagram"])[data-holo-width]:not(.hr-IconVisual > *), :is([data-holo-icon="Brand/Reddit"])[data-holo-width]:not(.hr-IconVisual > *) { inline-size: var(--holo-part-width); block-size: var(--holo-part-height, var(--holo-part-width)); font-size: calc(var(--holo-part-width) * 0.52); }

@font-face {
  font-family: "Phosphor-Light";
  src: url("./Icon.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Phosphor-Regular";
  src: url("./Icon.Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Phosphor-Fill";
  src: url("./Icon.Fill.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

.ph-light {
  font-family: "Phosphor-Light";
  speak: never;
  font-style: normal;
  font-weight: var(--holo-weight-regular);
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Enable Ligatures ================ */
  letter-spacing: 0;
  -webkit-font-feature-settings: "liga";
  -moz-font-feature-settings: "liga=1";
  -moz-font-feature-settings: "liga";
  -ms-font-feature-settings: "liga" 1;
  font-feature-settings: "liga";
  -webkit-font-variant-ligatures: discretionary-ligatures;
  font-variant-ligatures: discretionary-ligatures;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Todo ID semántico conserva una presencia visible aunque el catálogo físico
   no tenga todavía una traducción específica. Las reglas concretas de abajo,
   más específicas, sustituyen este glifo neutral. */
.ph-light::before {
  content: "\e18a";
}

.ph-light.ph-app-window:before {
  content: "\e5da";
}
.ph-light.ph-arrow-clockwise:before {
  content: "\e036";
}
.ph-light.ph-arrow-down:before {
  content: "\e03e";
}
.ph-light.ph-arrow-left:before {
  content: "\e058";
}
.ph-light.ph-arrow-right:before {
  content: "\e06c";
}
.ph-light.ph-arrow-up:before {
  content: "\e08e";
}
.ph-light.ph-arrows-clockwise:before {
  content: "\e094";
}
.ph-light.ph-arrows-down-up:before {
  content: "\e098";
}
.ph-light.ph-arrows-left-right:before {
  content: "\e0a0";
}
.ph-light.ph-arrows-out:before {
  content: "\e0a2";
}
.ph-light.ph-article:before {
  content: "\e0a8";
}
.ph-light.ph-bank:before {
  content: "\e0b4";
}
.ph-light.ph-book:before {
  content: "\e0e2";
}
.ph-light.ph-book-open:before {
  content: "\e0e6";
}
.ph-light.ph-books:before {
  content: "\e758";
}
.ph-light.ph-brain:before {
  content: "\e74e";
}
.ph-light.ph-calendar:before {
  content: "\e108";
}
.ph-light.ph-caret-circle-down:before {
  content: "\e11e";
}
.ph-light.ph-caret-double-left:before {
  content: "\e128";
}
.ph-light.ph-caret-double-right:before {
  content: "\e12a";
}
.ph-light.ph-caret-down:before {
  content: "\e136";
}
.ph-light.ph-caret-left:before {
  content: "\e138";
}
.ph-light.ph-caret-right:before {
  content: "\e13a";
}
.ph-light.ph-caret-up:before {
  content: "\e13c";
}
.ph-light.ph-chat:before {
  content: "\e15c";
}
.ph-light.ph-chat-circle-dots:before {
  content: "\e16c";
}
.ph-light.ph-chat-dots:before {
  content: "\e170";
}
.ph-light.ph-check:before {
  content: "\e182";
}
.ph-light.ph-check-circle:before {
  content: "\e184";
}
.ph-light.ph-check-square:before {
  content: "\e186";
}
.ph-light.ph-circle:before {
  content: "\e18a";
}
.ph-light.ph-circles-three-plus:before {
  content: "\e194";
}
.ph-light.ph-clipboard:before {
  content: "\e196";
}
.ph-light.ph-clock:before {
  content: "\e19a";
}
.ph-light.ph-clock-countdown:before {
  content: "\ed2c";
}
.ph-light.ph-clock-counter-clockwise:before {
  content: "\e1a0";
}
.ph-light.ph-code:before {
  content: "\e1bc";
}
.ph-light.ph-coin:before {
  content: "\e60e";
}
.ph-light.ph-compass:before {
  content: "\e1c8";
}
.ph-light.ph-copy:before {
  content: "\e1ca";
}
.ph-light.ph-corners-in:before {
  content: "\e1ce";
}
.ph-light.ph-corners-out:before {
  content: "\e1d0";
}
.ph-light.ph-crosshair:before {
  content: "\e1d6";
}
.ph-light.ph-cube:before {
  content: "\e1da";
}
.ph-light.ph-database:before {
  content: "\e1de";
}
.ph-light.ph-device-mobile:before {
  content: "\e1e0";
}
.ph-light.ph-diamond:before {
  content: "\e1ec";
}
.ph-light.ph-download:before {
  content: "\e20a";
}
.ph-light.ph-envelope:before {
  content: "\e214";
}
.ph-light.ph-envelope-simple:before {
  content: "\e218";
}
.ph-light.ph-eye:before {
  content: "\e220";
}
.ph-light.ph-file:before {
  content: "\e230";
}
.ph-light.ph-file-text:before {
  content: "\e23a";
}
.ph-light.ph-flask:before {
  content: "\e79e";
}
.ph-light.ph-floppy-disk:before {
  content: "\e248";
}
.ph-light.ph-folder:before {
  content: "\e24a";
}
.ph-light.ph-folder-open:before {
  content: "\e256";
}
.ph-light.ph-gear:before {
  content: "\e270";
}
.ph-light.ph-git-branch:before {
  content: "\e278";
}
.ph-light.ph-git-diff:before {
  content: "\e27c";
}
.ph-light.ph-globe:before {
  content: "\e288";
}
.ph-light.ph-hash:before {
  content: "\e2a2";
}
.ph-light.ph-heart:before {
  content: "\e2a8";
}
.ph-light.ph-house:before {
  content: "\e2c2";
}
.ph-light.ph-image:before {
  content: "\e2ca";
}
.ph-light.ph-info:before {
  content: "\e2ce";
}
.ph-light.ph-key:before {
  content: "\e2d6";
}
.ph-light.ph-lightbulb:before {
  content: "\e2dc";
}
.ph-light.ph-lightning:before {
  content: "\e2de";
}
.ph-light.ph-link:before {
  content: "\e2e2";
}
.ph-light.ph-list:before {
  content: "\e2f0";
}
.ph-light.ph-list-bullets:before {
  content: "\e2f2";
}
.ph-light.ph-list-checks:before {
  content: "\eadc";
}
.ph-light.ph-list-numbers:before {
  content: "\e2f6";
}
.ph-light.ph-lock:before {
  content: "\e2fa";
}
.ph-light.ph-magnifying-glass:before {
  content: "\e30c";
}
.ph-light.ph-minus:before {
  content: "\e32a";
}
.ph-light.ph-minus-circle:before {
  content: "\e32c";
}
.ph-light.ph-monitor:before {
  content: "\e32e";
}
.ph-light.ph-note:before {
  content: "\e348";
}
.ph-light.ph-notepad:before {
  content: "\e63e";
}
.ph-light.ph-package:before {
  content: "\e390";
}
.ph-light.ph-palette:before {
  content: "\e6c8";
}
.ph-light.ph-paper-plane-tilt:before {
  content: "\e398";
}
.ph-light.ph-pen-nib:before {
  content: "\e3ac";
}
.ph-light.ph-pencil:before {
  content: "\e3ae";
}
.ph-light.ph-pencil-simple:before {
  content: "\e3b4";
}
.ph-light.ph-phone:before {
  content: "\e3b8";
}
.ph-light.ph-play:before {
  content: "\e3d0";
}
.ph-light.ph-plug:before {
  content: "\e946";
}
.ph-light.ph-plus:before {
  content: "\e3d4";
}
.ph-light.ph-pulse:before {
  content: "\e000";
}
.ph-light.ph-puzzle-piece:before {
  content: "\e596";
}
.ph-light.ph-quotes:before {
  content: "\e660";
}
.ph-light.ph-robot:before {
  content: "\e762";
}
.ph-light.ph-rocket-launch:before {
  content: "\e3fe";
}
.ph-light.ph-scroll:before {
  content: "\eb7a";
}
.ph-light.ph-seal-check:before {
  content: "\e606";
}
.ph-light.ph-shapes:before {
  content: "\ec5e";
}
.ph-light.ph-shield:before {
  content: "\e40a";
}
.ph-light.ph-sidebar:before {
  content: "\eab6";
}
.ph-light.ph-sign-out:before {
  content: "\e42a";
}
.ph-light.ph-sliders:before {
  content: "\e432";
}
.ph-light.ph-sparkle:before {
  content: "\e6a2";
}
.ph-light.ph-speaker-high:before {
  content: "\e44a";
}
.ph-light.ph-squares-four:before {
  content: "\e464";
}
.ph-light.ph-star:before {
  content: "\e46a";
}
.ph-light.ph-table:before {
  content: "\e476";
}
.ph-light.ph-terminal:before {
  content: "\e47e";
}
.ph-light.ph-text-b:before {
  content: "\e5be";
}
.ph-light.ph-text-italic:before {
  content: "\e5c0";
}
.ph-light.ph-text-strikethrough:before {
  content: "\e5c2";
}
.ph-light.ph-toggle-left:before {
  content: "\e674";
}
.ph-light.ph-trash:before {
  content: "\e4a6";
}
.ph-light.ph-tree-structure:before {
  content: "\e67c";
}
.ph-light.ph-upload:before {
  content: "\e4be";
}
.ph-light.ph-user:before {
  content: "\e4c2";
}
.ph-light.ph-user-circle:before {
  content: "\e4c4";
}
.ph-light.ph-users:before {
  content: "\e4d6";
}
.ph-light.ph-warning:before {
  content: "\e4e0";
}
.ph-light.ph-warning-circle:before {
  content: "\e4e2";
}
.ph-light.ph-wrench:before {
  content: "\e5d4";
}
.ph-light.ph-x:before {
  content: "\e4f6";
}
.ph-light.ph-x-circle:before {
  content: "\e4f8";
}
