/*
  WEB DIP — Prototipo visual F0-004
  Sistema de diseño conceptual — ver DOCUMENTACION/08_SISTEMA_VISUAL_UI.md
  IDENTIDAD VISUAL PROPUESTA PARA PROTOTIPO — ninguna decisión de color/tipografía es definitiva.
  Dirección visual: A — Institucional contemporánea (PROPUESTA).
*/

/* ============================================================
   1. TOKENS — ver 08_SISTEMA_VISUAL_UI.md para el detalle
   ============================================================ */
:root {
  /* Color — fondo / superficie / texto / bordes */
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f7f9;
  --color-surface: #ffffff;
  --color-text: #1a2733;
  --color-text-secondary: #51606b;
  --color-border: #dde3e8;
  --color-border-strong: #c3ccd3;

  /* Color de marca — PROPUESTA, no institucional definitiva (PEND-13) */
  --color-brand: #0b5fa5;
  --color-brand-hover: #094a82;
  --color-brand-soft: #e8f1f9;

  /* Color de foco (accesibilidad) */
  --color-focus: #0b5fa5;
  --color-focus-ring: rgba(11, 95, 165, 0.35);

  /* Colores semánticos */
  --color-success-bg: #e6f4ea;
  --color-success-text: #1e7b34;
  --color-warning-bg: #fcebd2;
  --color-warning-text: #7a4a00;
  --color-error-bg: #fbeae9;
  --color-error-text: #b3261e;
  --color-neutral-bg: #eceff1;
  --color-neutral-text: #46525a;

  /* Colores de datos / mapa — separados de la marca (Sección 13 de la tarea) */
  --color-map-bg: #e3e9ec;
  --color-map-point: #0b5fa5;
  --color-map-point-selected: #d97706;
  --color-map-geometry: #7c8b93;

  /* Tipografía — pila de sistema, sin descarga de fuentes (Sección 15 de la tarea) */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Escala tipográfica (desktop) */
  --fs-display: 2.5rem;
  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-label: 0.8125rem;

  /* Espaciado */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;

  /* Layout */
  --content-max: 1200px;
  --prose-max: 720px;
  --margin-desktop: 32px;
  --margin-tablet: 24px;
  --margin-mobile: 16px;

  /* Bordes y radios */
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-pill: 999px;

  /* Elevación */
  --shadow-1: 0 1px 2px rgba(16, 24, 32, 0.06), 0 1px 3px rgba(16, 24, 32, 0.08);
  --shadow-2: 0 4px 12px rgba(16, 24, 32, 0.14);
}

/* ============================================================
   2. RESET MÍNIMO
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; display: block; }
a { color: var(--color-brand); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--sp-12); font-weight: 700; }
p { margin: 0 0 var(--sp-16); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* Foco visible obligatorio en todo elemento interactivo (RNF-WEB-002) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}

/* ============================================================
   3. LAYOUT GENERAL
   ============================================================ */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
@media (min-width: 600px) {
  .container { padding-inline: var(--margin-tablet); }
}
@media (min-width: 960px) {
  .container { padding-inline: var(--margin-desktop); }
}
.prose { max-width: var(--prose-max); }

section { padding-block: var(--sp-48); }
@media (min-width: 960px) {
  section { padding-block: var(--sp-64); }
}

.section-alt { background: var(--color-bg-secondary); }

/* ============================================================
   3B. BANNER DE PROTOTIPO (visible en todas las páginas)
   ============================================================ */
.proto-banner {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-align: center;
  padding: var(--sp-8) var(--sp-16);
}

/* ============================================================
   4. HEADER / SITEHEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding-block: var(--sp-12);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--color-text);
  text-decoration: none;
}
.site-header__brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  font-weight: 700;
}
.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--sp-24); }
.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
  padding-block: var(--sp-8);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--color-brand); }
.site-nav a[aria-current="page"] {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: var(--sp-8) var(--sp-12);
  min-height: 44px;
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
}
.mobile-menu-btn:hover { border-color: var(--color-brand); }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .mobile-menu-btn { display: none; }
}

/* Panel de navegación móvil (drawer) */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 32, 0.45);
}
.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-bg);
  box-shadow: var(--shadow-2);
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--color-text);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-4); }
.mobile-nav a {
  display: block;
  padding: var(--sp-12);
  border-radius: var(--radius-control);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
}
.mobile-nav a[aria-current="page"] { color: var(--color-brand); background: var(--color-brand-soft); }
.mobile-nav a:hover { background: var(--color-bg-secondary); }

/* ============================================================
   5. FOOTER / SITEFOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-48);
  margin-top: var(--sp-64);
}
.site-footer__grid {
  display: grid;
  gap: var(--sp-32);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
}
.site-footer h4 {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-12);
}
.site-footer a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--fs-small);
  display: block;
  padding-block: var(--sp-4);
}
.site-footer a:hover { color: var(--color-brand); text-decoration: underline; }
.site-footer__bottom {
  margin-top: var(--sp-32);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  justify-content: space-between;
}
.placeholder-note {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ============================================================
   6. TIPOGRAFÍA DE COMPONENTES
   ============================================================ */
.display { font-size: var(--fs-display); }
.eyebrow {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  font-weight: 700;
  margin-bottom: var(--sp-8);
}
.text-secondary { color: var(--color-text-secondary); }
.text-small { font-size: var(--fs-small); }
.text-caption { font-size: var(--fs-caption); }
code, .code { font-family: var(--font-mono); font-size: 0.9em; }

@media (max-width: 599px) {
  .display { font-size: 1.875rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
}

/* ============================================================
   7. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-control);
  padding: var(--sp-12) var(--sp-16);
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-hover); }
.btn-secondary { background: var(--color-bg); color: var(--color-brand); border-color: var(--color-brand); }
.btn-secondary:hover { background: var(--color-brand-soft); }
.btn-tertiary { background: none; color: var(--color-brand); padding-inline: var(--sp-4); min-height: auto; }
.btn-tertiary:hover { text-decoration: underline; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.is-loading { opacity: 0.75; cursor: progress; }

/* ============================================================
   8. INPUTS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-16); }
.field label {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--color-text);
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  font-family: inherit;
  font-size: var(--fs-body);
  padding: var(--sp-12);
  min-height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-bg);
  color: var(--color-text);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-brand); }
.field input:disabled { background: var(--color-bg-secondary); opacity: 0.6; }
.field.has-error input { border-color: var(--color-error-text); }
.field__error { color: var(--color-error-text); font-size: var(--fs-caption); }
.field__hint { color: var(--color-text-secondary); font-size: var(--fs-caption); }

.search-bar {
  display: flex;
  gap: var(--sp-8);
  align-items: stretch;
  margin-bottom: var(--sp-16);
}
.search-bar input {
  flex: 1;
  font-family: inherit;
  font-size: var(--fs-body);
  padding: var(--sp-12) var(--sp-12) var(--sp-12) var(--sp-32);
  min-height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%2351606b" stroke-width="2"><circle cx="6.5" cy="6.5" r="5"/><line x1="10.5" y1="10.5" x2="15" y2="15"/></svg>') no-repeat 10px center;
}

/* ============================================================
   9. FILTROS
   ============================================================ */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8);
  margin-bottom: var(--sp-24);
}
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  padding: var(--sp-8) var(--sp-12);
  min-height: 44px;
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 600;
}
.filters-toggle:hover { border-color: var(--color-brand); }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  border-radius: var(--radius-pill);
  padding: var(--sp-4) var(--sp-12);
  font-size: var(--fs-caption);
  font-weight: 600;
}
.filter-chip button { background: none; border: none; cursor: pointer; color: inherit; font-weight: 700; }
.filters-panel {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--sp-16);
  margin-bottom: var(--sp-24);
  background: var(--color-bg-secondary);
}
.filters-panel.is-open { display: grid; gap: var(--sp-16); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.filters-panel__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* ============================================================
   10. STATUS BADGE
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  border-radius: var(--radius-pill);
  padding: var(--sp-4) var(--sp-12);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge--info { background: var(--color-brand-soft); color: var(--color-brand); }
.status-badge--success { background: var(--color-success-bg); color: var(--color-success-text); }
.status-badge--warning { background: var(--color-warning-bg); color: var(--color-warning-text); }
.status-badge--neutral { background: var(--color-neutral-bg); color: var(--color-neutral-text); }

/* ============================================================
   11. PROJECT CARD / PROJECT LIST
   ============================================================ */
.project-list {
  display: grid;
  gap: var(--sp-16);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .project-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .project-list { grid-template-columns: repeat(3, 1fr); }
}
.project-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--sp-16);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.project-card__code { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--color-text-secondary); }
.project-card__name { font-size: var(--fs-h3); margin: 0; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; font-size: var(--fs-small); color: var(--color-text-secondary); }
.project-card__summary { font-size: var(--fs-small); color: var(--color-text-secondary); margin: 0; }
.project-card__footer { margin-top: auto; display: flex; justify-content: flex-end; }

/* ============================================================
   12. DOCUMENT ITEM
   ============================================================ */
.document-list { display: flex; flex-direction: column; gap: var(--sp-8); }
.document-item {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}
.document-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}
.document-item__body { flex: 1; min-width: 0; }
.document-item__name { font-weight: 600; margin: 0; }
.document-item__meta { font-size: var(--fs-caption); color: var(--color-text-secondary); }

/* ============================================================
   13. MAP SHELL / CONTROLS / PANEL
   ============================================================ */
.map-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  min-height: 420px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
@media (min-width: 960px) {
  .map-shell { flex-direction: row; }
}
.map-canvas {
  position: relative;
  flex: 1;
  background:
    linear-gradient(0deg, rgba(11,95,165,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,95,165,0.06) 1px, transparent 1px),
    var(--color-map-bg);
  background-size: 32px 32px, 32px 32px, auto;
  min-height: 280px;
}
.map-canvas__label {
  position: absolute;
  top: var(--sp-16);
  left: var(--sp-16);
  background: rgba(255,255,255,0.92);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-control);
  padding: var(--sp-8) var(--sp-12);
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-text-secondary);
  max-width: 260px;
}
.map-point {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-map-point);
  border: 3px solid #fff;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  padding: 0;
}
.map-point:hover, .map-point:focus-visible { transform: scale(1.15); }
.map-point.is-selected { background: var(--color-map-point-selected); }

.map-controls {
  position: absolute;
  right: var(--sp-16);
  bottom: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.map-controls button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
}
.map-controls button + button { border-top: 1px solid var(--color-border); }
.map-controls button:hover { background: var(--color-bg-secondary); }

.map-panel {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
@media (min-width: 960px) {
  .map-panel {
    width: 320px;
    flex-shrink: 0;
    border-top: none;
    border-left: 1px solid var(--color-border);
    overflow-y: auto;
  }
}
.map-panel__empty { color: var(--color-text-secondary); font-size: var(--fs-small); }
.map-panel__project { display: none; flex-direction: column; gap: var(--sp-8); }
.map-panel__project.is-visible { display: flex; }

/* Panel inferior en mobile (bottom sheet) */
@media (max-width: 959px) {
  .map-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 45%;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    box-shadow: var(--shadow-2);
    transform: translateY(calc(100% - 52px));
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .map-panel.is-expanded { transform: translateY(0); }
  .map-panel__handle {
    display: flex;
    justify-content: center;
    padding-bottom: var(--sp-8);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
  }
  .map-panel__handle::before {
    content: "";
    width: 36px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-border-strong);
  }
}
@media (min-width: 960px) {
  .map-panel__handle { display: none; }
}

/* ============================================================
   14. HERO / CTA (Inicio)
   ============================================================ */
.hero { text-align: left; padding-block: var(--sp-64); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-24); }
.cta-grid {
  display: grid;
  gap: var(--sp-16);
  grid-template-columns: 1fr;
  margin-top: var(--sp-24);
}
@media (min-width: 600px) {
  .cta-grid { grid-template-columns: repeat(2, 1fr); }
}
.cta-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--sp-24);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}
.cta-card h3 { margin-bottom: var(--sp-8); }

/* ============================================================
   15. ESTADOS FUNCIONALES
   ============================================================ */
.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-12);
  padding: var(--sp-48) var(--sp-16);
  color: var(--color-text-secondary);
}
.state-block__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.state-block--error .state-block__icon { background: var(--color-error-bg); color: var(--color-error-text); }
.state-block h3 { color: var(--color-text); margin: 0; }
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   16. FICHA DE PROYECTO
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--sp-16);
}
.back-link:hover { color: var(--color-brand); }
.project-detail__header { margin-bottom: var(--sp-24); }
.project-detail__grid {
  display: grid;
  gap: var(--sp-32);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .project-detail__grid { grid-template-columns: 2fr 1fr; }
}
.mini-map {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-card);
  background: var(--color-map-bg);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-align: center;
  padding: var(--sp-16);
}

/* ============================================================
   17. UTILIDADES
   ============================================================ */
.stack { display: flex; flex-direction: column; gap: var(--sp-16); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-8); align-items: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.demo-flag {
  display: inline-block;
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  font-size: var(--fs-caption);
  font-weight: 700;
  border-radius: var(--radius-control);
  padding: 2px 8px;
  margin-left: var(--sp-8);
}
