/**
Apply default styles to the document, and shadow documents
 */

:host, html, body {
  color: rgba(var(--zn-text), var(--zn-text-opacity));
  font-family: var(--zn-font-family-sans);

  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 14px;
  line-height: 1.5;

  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0%);
  -moz-tab-size: 4;
  tab-size: 4;
  margin: 0;
}

html, body {
  background-color: rgba(var(--zn-body), var(--zn-bg-opacity));
  container-type: size;
  min-height: 100%;
  height: 100%;
}

.inline-container {
  container-type: inline-size;
}

.app-container {
  container-type: inline-size;
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
  max-height: 100%;
  height: 100%;
  width: 100%;
  max-width: 100%;
}

.inline-app-container, .app-container.inline-app-container, [inline-container] .app-container {
  display: block;
  height: auto;
  flex: unset;
}


hr {
  height: 0;
  border: none;
  border-top: 1px solid rgb(var(--zn-border-color));
}

code, kbd, samp, pre, .mono {
  font-family: var(--zn-font-family-mono);
  font-size: 1em;
}

small {
  font-size: 80%;
}

.hidden {
  display: none !important;
}

.visibility-hidden {
  visibility: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--zn-font-weight-medium);
  color: rgb(var(--zn-text-heading));
}

h6 {
  font-size: var(--zn-font-size-x-small);
}

h5 {
  font-size: var(--zn-font-size-small);
}

h4 {
  font-size: var(--zn-font-size-medium);
}

h3 {
  font-size: var(--zn-font-size-large);
}

h2 {
  font-size: var(--zn-font-size-x-large);
}

h1 {
  font-size: var(--zn-font-size-2x-large);
}

kbd {
  font-family: monospace;

  background-color: #eee;
  color: #333;

  border: 1px solid rgb(var(--zn-border-color));

  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 1px 0 0 rgba(255, 255, 255, .5) inset;
  display: inline-block;
  font-size: 13px;
  line-height: 20px;
  padding: 1px 6px;
  white-space: nowrap;
  min-width: 15px;
  color: rgba(0, 0, 0, 0.5);
}

[t="dark"] kbd {
  background-color: rgb(25, 25, 25);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 1px 0 0 rgba(110, 110, 110, .5) inset;
  color: #eee;
}

[tab] {
  cursor: pointer;
}

.zn-link:hover {
  --zn-text: rgb(var(--zn-primary));
  --icon-color: rgb(var(--zn-primary));
  --zn-text-heading: rgb(var(--zn-primary));
  --property-color: rgb(var(--zn-primary));
  opacity: 1;
}
