/* app.css — ligero (~6-8KB), sin dependencias, alto contraste y responsive */
/* Sistema tipográfico y colores */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1f2937;
  /* gris-900 */
  --muted: #6b7280;
  /* gris-500 */
  --primary: #7486c0;
  /* azul-800 */
  --primary-600: #1f2937;
  /* azul-600 */
  --primary-700: #6e6e6e;
  /* azul-700 */
  --border: #e5e7eb;
  /* gris-200 */
  --success-bg: #ecfdf5;
  --danger-bg: #fef2f2;
  --focus: #81858b;
  /* azul-500 */
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout base (limpiado: se usará header de Materialize) */
/* Sistema tipográfico y colores */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1f2937;
  /* gris-900 */
  --muted: #6b7280;
  /* gris-500 */
  --primary: #5d5d5d;
  /* azul-800 */
  --primary-600: #5d5d5d;
  /* azul-600 */
  --primary-700: #5d5d5d;
  /* azul-700 */
  --border: #e5e7eb;
  /* gris-200 */
  --success-bg: #ecfdf5;
  --danger-bg: #fef2f2;
  --focus: #5d5d5d;
  /* azul-500 */
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* (legacy header rules removidos) */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* (legacy generic nav rules removidos para evitar choques) */

main {
  display: block;
}

.inline-block {
  display: inline-block;
}

.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Selector para la clase escapa Tailwind min-w-[220px] usada en index */
.min-w-\[220px\] {
  min-width: 220px;
}

/* Tarjetas y paneles */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

th {
  text-align: left;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: #eef2ff;
}

tr:first-child th,
tr:first-child td {
  border-top: 0;
}

/* Formularios */
form {
  margin-top: 8px;
}

label {
  display: block;
  font-size: .95rem;
  color: #334155;
  margin: .25rem 0 .25rem;
}

input[type=text],
input[type=password],
input[type=date],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Botones */
.btn,
button,
input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}

.btn-sm {
  padding: 6px 10px;
  font-size: .9rem;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 1.05rem;
}

.btn-primary,
.btn-primary:visited {
  background: var(--primary-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-secondary {
  background: #fff;
  color: #374151;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Enlaces */
a {
  color: var(--primary-600);
  text-decoration: none;
}

a:hover {
  color: var(--primary-700);
}

/* Alertas genéricas basadas en clases existentes */
.msg {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 10px 12px;
  border-radius: 8px;
}

.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: #64748b;
  font-size: .9rem;
}

/* Modal constancia (consultar.php) */
#constanciaModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#constanciaModal.show {
  display: flex;
}

#constanciaModal>div {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 20px;
  box-shadow: var(--shadow);
}

/* Estado visual simple */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .8rem;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Helpers spacing usados en vistas */
.mb-1 {
  margin-bottom: .25rem;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-3 {
  margin-bottom: .75rem;
}

/* Tabla responsive (scroll suave en móviles) */
.table-wrap {
  width: 100%;
  overflow: auto;
}

/* Preferencias reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Styles specific for consultar.php moved from inline <style> */
.consultar-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 1px 6px rgba(2, 6, 23, 0.04);
  transition: none !important;
  animation: none !important;
}

.consultar-card .consultar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.consultar-table th,
.consultar-table td {
  padding: 10px;
  border-bottom: 1px solid #e8f6fb;
  vertical-align: middle;
  transition: none !important;
  animation: none !important;
}

.consultar-table th {
  width: 20%;
  color: #0b3240;
  font-weight: 600;
  text-align: left;
}

.consultar-table td {
  color: #09282d;
}

.consultar-table tr:last-child td {
  border-bottom: none;
}

.consultar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  transition: none !important;
  animation: none !important;
}

.consultar-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  text-decoration: none;
}

.consultar-actions .btn.btn-primary {
  background: #a0ecf9;
  color: #042125;
  border: 1px solid #9ee7f6;
}

.consultar-actions .btn.btn-secondary {
  background: #d3d3d3;
  color: #111;
  border: 1px solid #cfcfcf;
}

.consultar-actions .btn.btn-soft {
  background: transparent;
  color: #042125;
  border: 1px solid transparent;
  padding: 6px 10px;
}

.btn-sm {
  padding: 6px 8px;
  font-size: 0.88rem;
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.table-wrap {
  background: #fff;
  border-radius: 8px;
}

.card input[type="text"],
.card input[type="date"],
.card select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e6eef2;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .consultar-actions {
    flex-direction: column;
    gap: 8px;
  }

  .consultar-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .consultar-card {
    padding: 10px;
    margin: 8px;
  }

  .card input[type="text"],
  .card select {
    padding: 10px;
  }

  .consultar-table th,
  .consultar-table td {
    padding: 10px;
  }

  #constanciaModal,
  #constanciaBackdrop {
    transition: none !important;
    animation: none !important;
  }
}

/* Footer themed with calm gradient (optional) */
.footer-fixed footer {
  background: linear-gradient(90deg, #8c97b9 0%, #80a8ff 100%);
  color: #ffffff;
}

.footer-fixed footer .footer-inner {
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.navbar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  min-height: 90px;
}

.brand {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
}

/* Navegación */

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.nav a {
  color: var(--primary-600);
  text-decoration: none;
  font-size: 1.1em;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: .1px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.nav a:hover {
  color: #fff;
  background: var(--primary-600);
}

/* Menú móvil */
.nav-toggle {
  display: none;
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  /* Keep consultar-card transitions disabled on small screens */
  .consultar-card {
    transition: none !important;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
}

/* Scoped styles for consultar actions and header-like buttons */
.consult-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.actions-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  color: #042125;
  background: #a0ecf9;
  /* palette primary */
  border: 1px solid #9ee7f6;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.header-btn:hover,
.header-btn:focus {
  filter: brightness(.95);
  transform: translateY(-1px);
}

/* header button sizes and variants */
.header-btn.btn-sm {
  height: 34px;
  padding: 0 10px;
  font-size: .88rem;
}

/* secondary variant using user's gray palette */
.header-btn.btn.btn-secondary,
.header-btn.btn-secondary {
  background: #d3d3d3;
  color: #111;
  border: 1px solid #cfcfcf;
}

/* Pink highlight for Egresar action */
.header-btn.egresar-btn {
  background: linear-gradient(90deg, #ffd6e8 0%, #ff9fcf 100%);
  color: #3b0b17;
  border: 1px solid #ff7fb3;
}

.header-btn.egresar-btn:hover,
.header-btn.egresar-btn:focus {
  background: #ff7fb3;
  color: #ffffff;
  border-color: #ff5fa0;
}

/* Icon sizing inside header buttons */
.header-btn .icon,
.nav-links .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* On mobile show only icons (hide labels) */
@media (max-width: 720px) {
  .nav-links .label {
    display: none;
  }

  .nav-links a {
    padding: 8px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  /* make header-btn compact on small screens */
  .header-btn {
    padding: 0 8px;
    height: 40px;
    min-width: 40px;
  }
}

/* Pink highlight for Egresar action */
.header-btn.egresar-btn {
  background: linear-gradient(90deg, #ffd6e8 0%, #ff9fcf 100%);
  color: #3b0b17;
  border: 1px solid #ff7fb3;
}

.header-btn.egresar-btn:hover,
.header-btn.egresar-btn:focus {
  background: #ff7fb3;
  color: #ffffff;
  border-color: #ff5fa0;
}

@media (max-width:600px) {
  .consult-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-left,
  .actions-right {
    width: 100%;
    justify-content: flex-start;
  }

  .actions-right {
    justify-content: flex-end;
  }

  .actions-left .header-btn,
  .actions-right .header-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Disable hover effect for consultar cards only when page is marked */
.page-content.consultar-root .consultar-card:hover {
  box-shadow: none !important;
  transform: none !important;
}

main {
  display: block;
}

/* Tipografía */
.header-titles {
  margin-bottom: 2px;
  text-align: center;
}

.header-title-main {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  letter-spacing: .5px;
  color: #f8fafc !important;
  text-shadow: 0 2px 8px rgba(30, 64, 175, 0.10);
}

.header-title-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6em;
  font-weight: 400;
  color: #e0e7ef !important;
  text-shadow: 0 1px 4px rgba(30, 64, 175, 0.10);
}

.inline-block {
  display: inline-block;
}

.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Selector para la clase escapa Tailwind min-w-[220px] usada en index */
.min-w-\[220px\] {
  min-width: 220px;
}

/* Tarjetas y paneles */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

th {
  text-align: left;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: #eef2ff;
}

tr:first-child th,
tr:first-child td {
  border-top: 0;
}

/* Formularios */
form {
  margin-top: 8px;
}

label {
  display: block;
  font-size: .95rem;
  color: #334155;
  margin: .25rem 0 .25rem;
}

input[type=text],
input[type=password],
input[type=date],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Botones */
.btn,
button,
input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}

.btn-sm {
  padding: 6px 10px;
  font-size: .9rem;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 1.05rem;
}

.btn-primary,
.btn-primary:visited {
  background: var(--primary-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-secondary {
  background: #fff;
  color: #374151;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Enlaces */
a {
  color: var(--primary-600);
  text-decoration: none;
}

a:hover {
  color: var(--primary-700);
}

/* Alertas genéricas basadas en clases existentes */
.msg {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 10px 12px;
  border-radius: 8px;
}

.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: #64748b;
  font-size: .9rem;
}

/* Modal constancia (consultar.php) */
#constanciaModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#constanciaModal.show {
  display: flex;
}

#constanciaModal>div {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 20px;
  box-shadow: var(--shadow);
}

/* Estado visual simple */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .8rem;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Helpers spacing usados en vistas */
.mb-1 {
  margin-bottom: .25rem;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-3 {
  margin-bottom: .75rem;
}

/* Tabla responsive (scroll suave en móviles) */
.table-wrap {
  width: 100%;
  overflow: auto;
}

/* Preferencias reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* === Materialize-first header adjustments === */
/* Taller nav for logos; keep everything inside safely */
nav.nav-large {
  height: 96px;
  overflow: hidden;
}

nav.nav-large .nav-wrapper {
  height: 100%;
}

nav.nav-large .brand-logo-img {
  /* fill almost the full header height, leaving ~6px top/bottom */
  max-height: calc(100% + 20px) !important;
  max-width: 220px !important;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

nav.nav-large .brand-logo-left,
nav.nav-large .brand-logo-right {
  line-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Ensure links align nicely within taller header */
nav.nav-large ul.nav-links {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.nav-large ul.nav-links li {
  list-style: none;
}

nav.nav-large ul.nav-links a {
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  color: #797979;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #00000047;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, box-shadow .2s ease, transform .1s ease;
}

nav.nav-large ul.nav-links a:hover,
nav.nav-large ul.nav-links a:focus {
  background: #e7e7e7;
  color: var(--m-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Header gradient and base text color */
nav.nav-large {
  background: linear-gradient(90deg, #a0ecf9 0%, #d3d3d3 100%) !important;
  color: #ffffff;
}

/* Make sure content clears the taller fixed nav */
.navbar-fixed+main.page-content {
  padding-top: 120px;
}

/* --- Final overrides to ensure header gradient is visible --- */
.navbar-fixed {
  background: transparent !important;
}

.navbar-fixed>nav.nav-large {
  background: linear-gradient(90deg, #a0ecf9 0%, #d3d3d3 100%) !important;
}

.navbar-fixed>nav.nav-large .nav-wrapper {
  background: transparent !important;
}

.navbar-fixed>nav.nav-large ul.nav-links {
  background: transparent !important;
}

/* Mobile menu: align with taller header and avoid solid overlay */
@media (max-width: 760px) {
  nav.nav-large ul.nav-links {
    top: 96px !important;
    background: rgba(0, 0, 0, 0.35) !important;
  }
}

/* Styles moved from includes/header.php */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.container.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.brand-logo-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.nav-links::-webkit-scrollbar {
  height: 8px;
}

.nav-links::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-links li {
  display: inline-block;
}

.nav-links a .icon {
  display: none;
  font-size: 1.05rem;
  line-height: 1;
}

.nav-links a .label {
  display: inline-block;
}

@media (max-width:600px) {
  .nav-links a .icon {
    display: inline-block;
  }

  .nav-links a .label {
    display: none;
  }

  .nav-links {
    gap: 8px;
  }
}

@media (max-width:420px) {
  .brand-logo-img {
    max-height: 32px;
  }

  .brand-logo-right img {
    max-height: 32px;
  }
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  scrollbar-width: thin;
}

.nav-scroll .nav-links {
  display: inline-flex;
  gap: 12px;
}

/* Stronger overrides to counteract Materialize mobile rules */
nav.nav-large ul.nav-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

nav.nav-large ul.nav-links li {
  display: inline-block !important;
  vertical-align: middle !important;
}

nav.nav-large ul.nav-links a {
  display: inline-flex !important;
  white-space: nowrap !important;
  width: auto !important;
}

@media (max-width:760px) {
  nav.nav-large ul.nav-links {
    position: static !important;
    top: auto !important;
    background: transparent !important;
  }
}

/* helper class used previously as inline style on container */
.nav-wrapper-space {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}