/* ── Navegación móvil de Arad (≤900px): barra compacta + menú desplegable ──
   Sobrescribe los estilos duplicados de #aradHeader que traen las páginas.
   Altura de la barra: 56px (--arad-hdr-h). */
.arad-menu-btn, .arad-nav-scrim, #aradHeader .arad-nav-cta { display: none; }

@media (max-width: 900px) {
  html body #aradHeader {
    --arad-hdr-h: 56px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    height: var(--arad-hdr-h);
    padding: 0 8px 0 20px !important;
    transition: none !important;
  }
  html body #aradHeader.scrolled { padding: 0 8px 0 20px !important; }
  html body #aradHeader .logo { display: flex; align-items: center; height: 100%; }
  html body #aradHeader .logo img { height: 22px; width: auto; }

  /* Botón hamburguesa (área táctil 48x48) */
  html body #aradHeader .arad-menu-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0; margin: 0;
    background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .arad-menu-btn span {
    display: block; width: 22px; height: 2px; background: #171717; border-radius: 2px;
    transition: transform .3s cubic-bezier(.72,0,.28,1), opacity .2s ease;
  }
  .arad-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .arad-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .arad-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .arad-menu-btn:focus-visible { outline: 2px solid #a8112c; outline-offset: -4px; border-radius: 6px; }

  /* Panel de navegación */
  html body #aradHeader nav {
    display: block !important;
    position: fixed; top: var(--arad-hdr-h, 56px); left: 0; right: 0;
    max-height: calc(100vh - var(--arad-hdr-h, 56px)); max-height: calc(100dvh - var(--arad-hdr-h, 56px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #fff; border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 4px 20px 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    z-index: 101;
  }
  html body #aradHeader.arad-nav-open nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
  html body #aradHeader nav ul { display: block !important; gap: 0 !important; margin: 0; padding: 0; list-style: none; }
  html body #aradHeader nav li { border-bottom: 1px solid rgba(0,0,0,.07); }
  html body #aradHeader nav a {
    display: block; padding: 15px 0 !important; font-size: 17px !important; font-weight: 500;
    letter-spacing: 0; color: #171717 !important; min-height: 48px;
  }
  html body #aradHeader nav a::after { display: none; }
  html body #aradHeader nav a[aria-current="page"] { color: #a8112c !important; font-weight: 700; }

  /* CTA dentro del panel */
  html body #aradHeader nav li.arad-nav-cta { display: block; border-bottom: 0; padding-top: 20px; }
  html body #aradHeader nav li.arad-nav-cta a {
    display: block; text-align: center; background: #a8112c; color: #fff !important;
    font-size: 12px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: 17px 20px !important;
  }

  /* Fondo atenuado bajo el panel */
  .arad-nav-scrim {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 99;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .arad-nav-scrim.on { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }

  /* Barra sólida mientras el menú está abierto */
  html body #aradHeader.arad-nav-open .header-bg { background-color: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

  html.arad-nav-lock, html.arad-nav-lock body { overflow: hidden; }
}

/* ── Consistencia tipográfica móvil: ninguna etiqueta por debajo de 11px ── */
@media (max-width: 600px) {
  #aradSite .tc-line, #aradSite .foto-cliente-sector, #aradSite .desc,
  #aradSite .beat-label, #aradSite .work-type-tag, #aradSite .client-category,
  #aradSite .svc-tag, #aradSite .svc-right-label, #aradSite .svc-card-tag2,
  #aradSite .fase-badge, #aradSite .fase-ent-label, #aradSite .lock-badge, #aradSite .lock-note,
  #aradSite .roster-role, #aradSite .honor-role, #aradSite .acc-tag,
  #aradSite .case-arrow, #aradSite .l, #aradSite .k, #aradSite .stat-label, #aradSite .ficha-k {
    font-size: 11px !important;
    line-height: 1.45;
  }
  #aradSite .label, #aradSite footer.arad-footer h5 { font-size: 11px; }
  /* Áreas táctiles mínimas en enlaces de texto sueltos */
  #aradSite .link-underline { display: inline-block; padding: 12px 4px; }
  #aradSite .bv-link, #aradSite .profile-back { display: inline-block; padding: 10px 0; }
}
