/* ==========================================================================
   TIPOGRAFIA PUBLICA BEE LIFE
   --------------------------------------------------------------------------
   Este es el unico fichero de la web publica donde se cambian familias,
   pesos, ritmo de texto y jerarquia tipografica global.

   Cambio rapido:
   - Estado normal: usa el bloque "ESTETICA ALTERNATIVA SUGERIDA".
   - Para volver a la corporativa en una pagina concreta: pon
     data-public-typography="corporate" en la etiqueta <html>.
   - Para volver a la corporativa en toda la web: cambia el selector del bloque
     "ESTETICA CORPORATIVA" a `:root, html[data-public-typography="corporate"]`
     y quita `:root` del bloque alternativo.
   ========================================================================== */

/* ==========================================================================
   ESTETICA CORPORATIVA:
   Conserva la jerarquia corporativa de pesos y tamanos, pero respeta la
   familia global seleccionada en el superpanel.
   ========================================================================== */
html[data-public-typography="corporate"] {
  --public-font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --public-font-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --public-font-action: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --public-font-data: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --public-font-icons: "Material Symbols Outlined";

  --public-weight-body: 560;
  --public-weight-lead: 600;
  --public-weight-nav: 700;
  --public-weight-button: 800;
  --public-weight-eyebrow: 900;
  --public-weight-card-title: 900;
  --public-weight-section-title: 900;
  --public-weight-hero: 900;
  --public-weight-brand: 900;
  --public-weight-data: 800;

  --public-size-body: 16px;
  --public-size-small: 14px;
  --public-size-caption: 12px;
  --public-size-nav: 14px;
  --public-size-button: 14px;
  --public-size-card-title: 21px;
  --public-size-section-title: clamp(26px, 3vw, 38px);
  --public-size-hero-home: clamp(40px, 5vw, 68px);
  --public-size-hero-page: clamp(38px, 5vw, 66px);
  --public-size-hero-dataset: clamp(56px, 8vw, 116px);

  --public-line-body: 1.7;
  --public-line-lead: 1.7;
  --public-line-title: 1.08;
  --public-line-hero: 1.04;
  --public-line-hero-tight: .9;

  --public-letter-normal: 0;
  --public-letter-eyebrow: .16em;
  --public-letter-brand-small: .18em;
}

/* ==========================================================================
   ESTETICA ALTERNATIVA SUGERIDA:
   Tomada de `home-hub-material3.html`.
   - Titulos / display: la familia seleccionada en el superpanel.
   - Parrafos, menus, formularios y botones: la familia seleccionada.
   - Pesos mas Material 3: menos "black", mas legibles y suaves.
   - NO cambia colores.

   Esta es ahora la estetica activa de toda la web publica porque incluye
   `:root`. No cambia colores: solo familias, pesos, tamanos y ritmo de texto.
   ========================================================================== */
:root,
html[data-public-typography="alternative"] {
  --public-font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --public-font-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --public-font-action: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --public-font-data: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --public-font-icons: "Material Symbols Outlined";

  --public-weight-body: 400;
  --public-weight-lead: 500;
  --public-weight-nav: 600;
  --public-weight-button: 700;
  --public-weight-eyebrow: 700;
  --public-weight-card-title: 800;
  --public-weight-section-title: 800;
  --public-weight-hero: 800;
  --public-weight-brand: 800;
  --public-weight-data: 700;

  --public-size-body: 16px;
  --public-size-small: 14px;
  --public-size-caption: 12px;
  --public-size-nav: 14px;
  --public-size-button: 14px;
  --public-size-card-title: 20px;
  --public-size-section-title: clamp(26px, 3vw, 38px);
  --public-size-hero-home: clamp(36px, 4.6vw, 60px);
  --public-size-hero-page: clamp(36px, 4.8vw, 60px);
  --public-size-hero-dataset: clamp(48px, 7vw, 96px);

  --public-line-body: 1.625;
  --public-line-lead: 1.65;
  --public-line-title: 1.14;
  --public-line-hero: 1.1;
  --public-line-hero-tight: 1;

  --public-letter-normal: 0;
  --public-letter-eyebrow: .18em;
  --public-letter-brand-small: .2em;
}

html {
  font-family: var(--public-font-body);
  font-size: var(--public-size-body);
}

body,
input,
textarea,
select,
button {
  font-family: var(--public-font-body);
}

button,
.button,
.btn-filled,
.btn-tonal,
.btn-outline,
.btn-accent,
.expand-button,
.login-link,
.nav-link {
  font-family: var(--public-font-action);
  font-size: var(--public-size-button);
  font-weight: var(--public-weight-button);
  letter-spacing: var(--public-letter-normal);
}

h1,
h2,
h3,
h4,
.font-display,
.brand-text,
.hero-badge strong,
.stat-card b,
.section-heading h2,
.catalogue-hero h1,
.page-hero h1,
.provider-hero h1,
.dataset-page-hero h1,
.dataset-page-hero h2,
.explore-card h3,
.modal h2 {
  font-family: var(--public-font-display);
  letter-spacing: var(--public-letter-normal);
}

p,
li,
dd,
small,
.hero-lead,
.section-lead,
.explore-summary,
.long-title,
.modal p,
.modal li,
.footer p,
.footer a,
.dataset-body p,
.article-card p,
.result-card p,
.provider-card p,
.page-card p,
.step-grid small {
  font-weight: var(--public-weight-body);
  line-height: var(--public-line-body);
}

.hero-lead,
.catalogue-hero .hero-lead,
.page-hero .hero-lead,
.provider-hero .hero-lead {
  font-weight: var(--public-weight-lead);
  line-height: var(--public-line-lead);
}

.desktop-nav a,
.mobile-nav a,
.login-link {
  font-size: var(--public-size-nav);
  font-weight: var(--public-weight-nav);
}

.brand-text {
  font-weight: var(--public-weight-brand);
}

.brand-text span {
  letter-spacing: var(--public-letter-brand-small);
}

.eyebrow,
.hero-chip,
.chip-pink,
.chip-date,
.uid-line,
.property-grid dt,
.legacy-card-facts dt,
.descriptor-strip code,
.keyword-cloud span,
.cover-manager label span {
  font-size: var(--public-size-caption);
  font-weight: var(--public-weight-eyebrow);
  letter-spacing: var(--public-letter-eyebrow);
}

.hero h1 {
  font-size: var(--public-size-hero-home);
  font-weight: var(--public-weight-hero);
  line-height: var(--public-line-hero);
}

.catalogue-hero h1,
.provider-hero h1,
.page-hero h1 {
  font-size: var(--public-size-hero-page);
  font-weight: var(--public-weight-hero);
  line-height: var(--public-line-hero);
}

.dataset-page-hero h1 {
  font-size: var(--public-size-hero-dataset);
  font-weight: var(--public-weight-hero);
  line-height: var(--public-line-hero-tight);
}

.section-heading h2,
.dataset-section h2,
.modal-panel-card h3,
.page-section h2 {
  font-size: var(--public-size-section-title);
  font-weight: var(--public-weight-section-title);
  line-height: var(--public-line-title);
}

.explore-card h3,
.dataset-body h3,
.article-card h3,
.result-card h3,
.page-card h3,
.provider-card h3 {
  font-size: var(--public-size-card-title);
  font-weight: var(--public-weight-card-title);
  line-height: var(--public-line-title);
}

code,
pre,
.uid-line,
.descriptor-strip code,
.vocab-item code,
.json-preview {
  font-family: var(--public-font-data);
  font-weight: var(--public-weight-data);
}

.material-symbols-outlined {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  min-width: 1.35rem;
  max-width: 1.35rem;
  height: 1.35rem;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  font-size: 0 !important;
  line-height: 1;
  vertical-align: middle;
  flex: 0 0 auto;
}

.material-symbols-rounded {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  min-width: 1.35rem;
  max-width: 1.35rem;
  height: 1.35rem;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  font-size: 0 !important;
  line-height: 1;
  vertical-align: middle;
  flex: 0 0 auto;
}

.material-symbols-outlined .public-svg-icon,
.material-symbols-rounded .public-svg-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  color: currentColor;
  stroke: currentColor;
}

.icon-button .material-symbols-outlined,
.icon-button .material-symbols-rounded,
.button .material-symbols-outlined,
.button .material-symbols-rounded,
.login-link .material-symbols-outlined,
.login-link .material-symbols-rounded {
  width: 1.35rem;
  min-width: 1.35rem;
  max-width: 1.35rem;
  height: 1.35rem;
}

.step-grid span.material-symbols-outlined .public-svg-icon,
.step-grid span.material-symbols-rounded .public-svg-icon,
.path-card > span.material-symbols-outlined .public-svg-icon,
.path-card > span.material-symbols-rounded .public-svg-icon,
.stat-card > span.material-symbols-outlined .public-svg-icon,
.stat-card > span.material-symbols-rounded .public-svg-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.step-grid article > .material-symbols-outlined,
.step-grid article > .material-symbols-rounded,
.path-card > .material-symbols-outlined,
.path-card > .material-symbols-rounded {
  width: 3.4rem;
  min-width: 3.4rem;
  max-width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.15rem;
}

.step-grid article > .material-symbols-outlined .public-svg-icon,
.step-grid article > .material-symbols-rounded .public-svg-icon,
.path-card > .material-symbols-outlined .public-svg-icon,
.path-card > .material-symbols-rounded .public-svg-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.stat-card > .material-symbols-outlined,
.stat-card > .material-symbols-rounded {
  width: 2rem;
  min-width: 2rem;
  max-width: 2rem;
  height: 2rem;
}
