.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  color: #041523;
  background: #35c7f3;
  border: 2px solid #ffffff;
  border-radius: 6px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #35c7f3;
  outline-offset: 2px;
}

.agenda-task-expand,
html[data-theme="light"] .agenda-task-expand,
html[data-theme="light"] .agenda-task-expand:hover,
html[data-theme="light"] .agenda-task-expand:active,
html[data-theme="light"] .agenda-task-expand:focus,
html[data-theme="light"] .agenda-task-expand:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.agenda-task-expand:focus-visible {
  outline: 0;
  outline-offset: 0;
  color: var(--agenda-blue);
}

html[data-theme="light"] .agenda-closed-toggle,
html[data-theme="light"] .agenda-closed-toggle:focus-visible {
  border-color: transparent !important;
  background: #f1f5f9 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .agenda-closed-toggle:hover,
html[data-theme="light"] .agenda-closed-toggle.is-active {
  border-color: transparent !important;
  background: #e8edff !important;
  color: #4056df !important;
  box-shadow: none !important;
}

.nav-menu.is-open .nav-submenu {
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

dialog::backdrop {
  background: rgba(3, 14, 28, 0.74);
}

@media (max-width: 760px), (pointer: coarse) {
  button,
  .ghost-link,
  .nav-menu-link,
  .nav-submenu a {
    min-height: 42px;
  }

  .nav-menu-toggle,
  button[aria-label="Editar"],
  button[aria-label="Remover"],
  button[aria-label="Fechar"] {
    min-width: 42px;
  }

  .agenda-task-expand {
    min-width: 20px;
    min-height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
