@import url("../fonts/NotoSansEwD/fonts.css");

/* Base font size and family */
:root {
  font-size: 22px;
  --md-tooltip-width: 10rem;
}
@media (min-width: 600px) {
  :root {
    font-size: 24px;
  }
}
html {
  zoom: 100%;
}
body {
  /* font-size: 1rem; */
  font-family: var(--main-font);
}
/* default: 0.8rem */
.md-typeset {
  font-size: var(--main-font-size);
}

/* Text styles */
.md-content h1 {
  margin: 1.5rem 0 1rem !important;
  color: var(--primary-dark-blue);
  font-weight: 600;
}
.md-content h1.h1-without-logo {
  margin: 1.5rem !important;
}
.md-content h1.h1-with-note {
  margin-bottom: 0.5rem !important;
}
@media (max-width: 600px) {
  .md-content h1 {
    margin: 1rem 0 !important;
  }
}
.md-content h2,
.md-content h3 {
  margin-top: 1.5rem;
}
.md-content h2 {
  font-weight: 400;
  color: var(--primary-dark-blue);
}
.md-typeset__table {
  margin-bottom: 0;
}
.table-notes ol {
  margin-top: -0.5rem;
}
/* TODO(bugfix):
     Fix mysterious bug in Chromium-based mobile devices.
     The second column in Corpus_3.md is getting a larger font-size. */
th,
td {
  padding: 0.375rem 0.5rem !important;
  border: 1px solid var(--medium-grey);
  font-size: var(--main-font-size) !important;
}

em.red,
em.blue {
  font-style: normal;
}
.red {
  color: #c10000;
}
em.blue {
  color: #00a0fc;
}
.p-red {
  color: var(--primary-red);
}
.pblue {
  color: var(--primary-dark-blue);
}
sup {
  font-size: 0.8em;
  line-height: 0.8em;
}
.md-typeset a {
  /* text-decoration: underline; */
  color: var(--background-blue);
}
.md-typeset a:hover {
  color: var(--primary-dark-blue);
  text-decoration: underline;
}

/* Layout adjustments */

.md-grid {
  max-width: unset;
}
.md-main__inner {
  margin-top: 0;
  padding: 0 0.75rem;
}
.md-content {
  padding: 0 !important;
}
.md-content__inner {
  padding-top: 0;
  margin-left: 1vw !important;
  margin-right: 1vw !important;
}
@media (max-width: 600px) {
  .md-main__inner {
    margin-top: 0;
    padding: 0 0 16px;
  }
  .md-content__inner {
    margin: 0 3vw !important;
  }
}
.md-footer {
  background-color: var(--primary-dark-blue);
}
.md-footer-meta {
  background: unset;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.spacing {
  height: 0.125rem;
}

@media (min-width: 600px) {
  .hide-on-mobile {
    display: none;
  }
}

/* Advanced customizations */

.md-typeset abbr {
  border-bottom: 2px dotted var(--tooltip-border-color);
}
.md-tooltip2 {
  top: calc(var(--md-tooltip-host-y) - 2rem);
}
.md-tooltip2 > .md-typeset {
  max-width: 92vw;
  max-height: 75vh;
  background-color: var(--tooltip-background);
  color: var(--tooltip-color);
  font-family: var(--main-font);
  font-size: calc(0.85 * var(--main-font-size));
  font-weight: 600;
}
.md-tooltip2 > .md-typeset span {
  font-size: calc(1 * var(--main-font-size));
  font-weight: normal;
}

.footnote {
  font-size: 0.7rem;
}
