/* Core foundation. Visual theme rules live in pond-theme.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-size-adjust: 100%;
}

body {
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  cursor: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

header,
main,
aside,
nav,
section,
article {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
blockquote,
figure {
  margin-top: 0;
}

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

button,
a,
input,
textarea,
select,
.pdf-btn,
.ctf-group-header {
  cursor: pointer;
}

input[type='text'],
textarea {
  cursor: text;
}

button {
  appearance: none;
}

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

img,
video,
iframe {
  max-width: 100%;
}

iframe {
  width: 100%;
}

img {
  height: auto;
}

table {
  border-spacing: 0;
}

pre,
code,
kbd,
samp {
  font-family: 'Space Mono', Consolas, monospace;
}

pre {
  white-space: pre;
  tab-size: 4;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.sidebar-overlay.overlay-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar {
  transition: transform .22s ease;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

::selection {
  color: #07171e;
  background: #b8cf68;
}

@media (max-width: 700px) {
  body.nav-open {
    position: fixed;
    inset: 0;
    width: 100%;
  }

  button,
  a,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }
}

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