@import url('/_flashcms/theme.css');
:root {
  font: 1rem/1.6 system-ui, sans-serif;
  color: var(--acm-ink);
  background: var(--acm-page);
  accent-color: var(--acm-accent);
}
body {
  max-width: 72rem;
  margin: auto;
  padding: clamp(1rem, 3vw, 3rem);
}
main, article, section, nav, aside, footer, header {
  max-width: 100%;
  min-width: 0;
}
article, section, footer {
  margin-block: 1.5rem;
}
h1, h2, h3 {
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
a {
  color: var(--acm-accent);
  text-underline-offset: 0.15em;
}
table {
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
td, th {
  padding: 0.55rem;
  border-bottom: 1px solid var(--acm-line);
}
img, video {
  max-width: 100%;
  height: auto;
}
p {
  max-width: 75ch;
}

/* Neve ships separate desktop and mobile headers. Its off-canvas menu normally needs JS. */
header:has(#header-grid .header-main) {
  color: var(--acm-on-band);
  background-color: var(--acm-band);
  background-image: linear-gradient(100deg, rgb(0 0 0 / .55), rgb(0 0 0 / .65)), var(--flashcms-header-image, none);
  background-size: cover;
  background-position: center;
  padding: clamp(.85rem, 2vw, 1.6rem);
  border-radius: var(--acm-radius);
}
#header-grid .header-main .row,
#header-grid .hfg-slot,
#header-grid .title-with-logo,
#header-grid .primary-menu-ul,
#header-menu-sidebar .primary-menu-ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 1.25rem;
}
#header-grid .row,
#header-grid .hfg-slot.left {
  justify-content: space-between;
  flex: 1;
}
#header-grid a, #header-menu-sidebar a { color: inherit; }
#header-grid .brand { text-decoration: none; }
#header-grid .site-title { margin: 0; font-size: 1.35rem; font-weight: 700; }
#header-grid .title-with-logo { flex-wrap: nowrap; }
#header-grid .neve-site-logo { width: clamp(4rem, 10vw, 7rem); object-fit: contain; }
#header-grid .primary-menu-ul, #header-menu-sidebar .primary-menu-ul,
.wp-block-navigation__container {
  list-style: none;
  padding: 0;
  margin: 0;
}
#header-grid .navbar-toggle, #header-menu-sidebar .navbar-toggle,
#header-grid .widget-search:has(fieldset:disabled),
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close {
  display: none;
}
.neve-skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
@media (min-width: 60rem) {
  #header-grid:has(.header-main.hide-on-mobile) .header-main.hide-on-desktop,
  #header-grid:has(.menu-desktop) #header-menu-sidebar:has(.menu-mobile) { display: none; }
}
@media (max-width: 59.999rem) {
  #header-grid:has(.header-main.hide-on-desktop) .header-main.hide-on-mobile { display: none; }
  #header-menu-sidebar .primary-menu-ul { margin-top: .55rem; }
}
.wp-block-navigation__container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-block: 1rem;
}

header:has(#header-grid .header-main) { --flashcms-header-image: url("/_flashcms/650868d41fce584085b2c342e32890ac.jpg"); }
