/* =============================================================================
   RESET — Normalize browser defaults for consistency
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Restore sensible list defaults stripped by the * rule above.
   Navigation contexts use higher-specificity selectors below to override back to 0.
   Drupal admin UI lists (.contextual-links, .toolbar-menu etc.) are excluded. */
ul:not(.contextual-links):not(.toolbar-menu):not(.toolbar-tray-horizontal .menu),
ol:not(.contextual-links) {
  padding-left: 1.5em;
}

li:not(.contextual-links__item) {
  margin-bottom: 0.25em;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Navigation / UI lists — override the ul/ol padding restore above.
   These selectors all have higher specificity than plain ul/ol so they win. */
/* .site-nav ul,
.site-nav ol,
nav ul,
nav ol,
.menu,
.tabs,
.action-links,
.pager__items,
.breadcrumb ol,
.breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
} */

.site-nav ul:not(.contextual-links),
.site-nav ol:not(.contextual-links){
  display: flex;
  gap: var(--space-2);
  padding: 0 !important;
}

a {
  color: inherit;
  /* text-decoration: none; */
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Focus visible only on keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 3px;
}
