/* ------ */
/* Global */
/* ------ */

html {
  box-sizing: border-box;
  font-size: 14px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Noto', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background-color: #eeeeee;
  color: #222;
}

p {
  margin: 0;
}

ul {
  margin: 0 0 0 16px;
  padding: 0;
}

ul:not(:first-of-type) {
  margin-left: 24px;
}

ul.no-style {
  list-style-type: none;
}

/* Size page to approximate letter paper size */
@media screen {
  html {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #555;
  }
  body {
    width: 100%;
    max-width: 815px;
    box-shadow: 0 12px 16px 1px rgba(0, 0, 0, 0.14),
                0 4px 22px 3px rgba(0, 0, 0, 0.12),
                0 6px 7px -4px rgba(0, 0, 0, 0.4);
  }
  header {
    width: auto;
    max-width: 100%;
  }
}

/* ------ */
/* Layout */
/* ------ */

header, section {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
              0 1px 5px 0 rgba(0, 0, 0, 0.12),
              0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

header {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 72px;
  background-color: #497C92;
  color: #fff;
}

header .title,
header .sub-title {
  display: flex;
  justify-content: center;
}

header .title {
  align-items: center;
  font-size: 2.2rem;
  flex: 0 0 48px;
}

header .sub-title {
  font-size: 0.85rem;
  flex: 1;
}

header .sub-title a {
  color: #fff;
  text-decoration: none;
}

header .sub-title a:hover,
header .sub-title a:active {
  text-decoration: underline;
}

section {
  display: flex;
  margin: 16px;
  background-color: #fff;
}

section.no-flex {
  display: block;
}

aside {
  padding: 16px;
  width: 140px;
  font-size: 1.3rem;
}

section.no-flex aside {
  width: 100%;
  font-size: 2rem;
}

article {
  display: flex;
  flex: 1;
  padding: 16px 16px 16px 8px;
}

article.center {
  align-items: center;
}

article > ul {
  flex: 1;
}

article > ul.references-names {
  flex: 1 1 20%;
}

article > ul.references-addresses {
  flex: 1 1 40%;
}

article > ul.references-phone-numbers {
  flex: 1 1 40%;
}

/* Collapse lists in articles on mobile */
@media screen and (max-width: 600px) {
  ul:not(:first-of-type) {
    margin-left: 16px;
  }

  article {
    flex-direction: column;
  }
}
