/* Base: typography, focus, scrollbars and accessibility utilities. */
html.coylin {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--cy-header) + 16px);
}
html.coylin body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cy-bg);
  color: var(--cy-fg);
  font-family: var(--cy-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.coylin :where(code, kbd, samp, pre) {
  font-family: var(--cy-mono);
}
html.coylin :where(h1, h2, h3) {
  text-wrap: balance;
}
html.coylin :where(p, li) {
  text-wrap: pretty;
}
html.coylin ::selection {
  background: #c9644233;
}
html.coylin :focus-visible {
  outline: 2px solid var(--cy-accent);
  outline-offset: 2px;
}
/* Text fields show focus on their own frame (or on the rounded field that wraps them), never as a
   second square outline drawn inside it. */
html.coylin :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"]), textarea, select):focus-visible {
  outline: none;
  border-color: var(--cy-fg-3);
  box-shadow: 0 0 0 3px var(--cy-fill);
}
html.coylin :is(.cy-composer, .cy-filter-box, .cy-palette-input) :is(input, textarea):focus-visible {
  border-color: transparent;
  box-shadow: none;
}
html.coylin * {
  scrollbar-width: thin;
  scrollbar-color: var(--cy-line-2) transparent;
}
html.coylin ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html.coylin ::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--cy-line-2);
  background-clip: padding-box;
}
html.coylin ::-webkit-scrollbar-track {
  background: transparent;
}
.cy-serif {
  font-family: var(--cy-serif);
}
.cy-tabular {
  font-variant-numeric: tabular-nums;
}
.cy-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.cy-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: var(--cy-z-toast);
  padding: 8px 14px;
  border-radius: var(--cy-r);
  background: var(--cy-ink);
  color: var(--cy-on-ink);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform var(--cy-fast) var(--cy-ease);
}
.cy-skip:focus {
  transform: none;
}
.cy-i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html.coylin *,
  html.coylin *::before,
  html.coylin *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* A bare "/" (Opengist's create page) is forwarded to the overview before it paints. */
html.cy-leaving body {
  visibility: hidden;
}
