/* Single-page site. The theme does the heavy lifting; this file only makes the
   page airier, gives the wide DCO wordmark the room it needs, and sets the
   typeface. */

:root {
  --dco-brand: #2b7a8c;

  /* One sans-serif stack, the same one the PDFs use: a geometric face where it
     is installed, a neutral grotesque everywhere else. No webfont is fetched. */
  --md-text-font: "URW Gothic", "Century Gothic", "Liberation Sans", Arial,
    Helvetica;
  --md-code-font: "Liberation Mono", "DejaVu Sans Mono", monospace;
}

[data-md-color-scheme="default"] {
  --md-accent-fg-color: var(--dco-brand);
  --md-typeset-a-color: var(--dco-brand);
}

/* The wordmark is ~3:1, not a square icon. Material hides it below its desktop
   breakpoint and shows a drawer button instead; with one page there is nothing
   to put in a drawer, so the header is the same at every width: the wordmark,
   and nothing else. */
.md-header__button.md-logo {
  display: inline-flex;
  padding: 0 0.4rem 0 0;
}

.md-header__button.md-logo img {
  width: auto;
  height: 1rem;
}

/* The site name, next to the wordmark, but only once the page heading has
   scrolled out of sight; Material fades it in then (see the header partial).
   Lighter and smaller than the theme's default: it is a reminder of where the
   reader is, not a second heading. */
.md-header__title {
  margin-left: 0.7rem;
  font-size: 0.78rem;
  font-weight: 400;
}

/* The institutions, flush with the right edge of the column the header shares
   with the content. Same optical balance as in the attribution section: the
   DEIC block carries its own inner margin, so the UAB monogram is set smaller
   to match it by eye. */
.dco-header__inst {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  padding-left: 0.8rem;
}

.dco-header__inst img {
  display: block;
  width: auto;
  height: 0.9rem;
}

.dco-header__inst .dco-header__inst--uab {
  height: 0.64rem;
}

/* Material sets the root font-size to 125%, so 1rem is 20px here: 34rem is a
   ~640px measure, around 80 characters. */
.md-grid {
  max-width: 34rem;
}

/* The table of contents gets a column of its own, 12.1rem wide, but only on a
   large screen: Material brings it in at 60em, which is not wide enough to
   carry both it and the measure. Above the breakpoint the grid widens by
   exactly the width of that column, so the text, and the left edge the
   wordmark sits on, stay put. */
@media screen and (max-width: 76.2375em) {
  .md-sidebar--secondary:not([hidden]) {
    display: none;
  }
}

@media screen and (min-width: 76.25em) {
  .md-grid {
    max-width: 46.1rem;
  }
}

.md-content {
  padding-top: 1.5rem;
}

/* Material greys the h1 down; at weight 300 that reads as washed out. */
.md-typeset h1 {
  margin-bottom: 1.2em;
  font-weight: 300;
  color: var(--md-default-fg-color);
}

.md-typeset h2 {
  margin-top: 2.4em;
}

.md-typeset h3 {
  margin-top: 1.8em;
}

/* Ragged right on screen: the measure changes with the viewport and browser
   hyphenation is not good enough to justify against. The PDFs are justified,
   where the measure is fixed and WeasyPrint hyphenates properly. */
.md-typeset p {
  text-align: left;
}

/* Table of contents: present, but it should not compete with the text. */
.md-nav--secondary .md-nav__title {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none;
}

.md-nav--secondary .md-nav__link {
  color: var(--md-default-fg-color--light);
}

/* The adherence forms, centered under the paragraph that introduces them. */
.md-typeset .dco-adherence {
  margin-top: 1.6em;
  text-align: center;
}

/* Institutional logos in the attribution section, kept to the same compact
   height as the DCO wordmark in the header. The UAB monogram is set smaller so
   that the two match by eye: the DEIC block carries its own inner margin, so at
   equal height its letters are half the size of the UAB ones. */
.md-typeset .dco-inst {
  height: 1.7rem;
  width: auto;
  margin: 0.9em 1.4em 0 0;
  vertical-align: middle;
}

.md-typeset .dco-inst--uab {
  height: 1.2rem;
}

/* Footer: the versions laid out for print. */
.dco-formats {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--md-default-fg-color--light);
}

.dco-formats p {
  margin: 0;
  text-align: left;
}

.dco-formats strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--md-default-fg-color--light);
}

/* With the generator notice off (extra.generator in mkdocs.yml) and no
   page-to-page navigation to offer, the theme footer is an empty dark bar. */
.md-footer {
  display: none;
}
