body {
  color: #242249;
  background-color: white;
  font-family: 'acumin-pro', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 85%;
}

body.page {
  background-color: #F7F7F7;
}

main {
  background-color: white;
  margin-bottom: 94vh;
  z-index: 10;
}

main.page {
  background-color: #F7F7F7;
}

h1, h2, h3 {
  font-family: 'acumin-pro', sans-serif;
  font-weight: 600;
}

h1 {
  font-size: 2.5em;
  line-height: 1;
  font-weight: 600;
}

p {
  margin-bottom: .5em;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

hr {
  border-bottom: 1px solid rgba(137, 137, 147, 0.25);
  margin: 0;
  max-width: unset;
  width: 100%;
}

hr.hover {
  border-bottom: 1px solid #F6776C;
}

.grid-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.mobile-only {
  display: unset;
}

.desktop-only {
  display: none;
}

.expand-all.desktop-only {
  display: none !important;
}

.toggle-menu {
  font-weight: 700;
  color: rgb(36, 34, 73);
}

.nav-bg {
  width: 100%;
  position: fixed;
  height: 4.2em;
  background: transparent;
  z-index: 300;
}

.menu-item {
  padding: 1em 4px;
  margin: 0 2em;
}

/* Accessibility */

.skip-to-content, .skip-to-content-noscript {
  position: absolute;
  top: -200px;
  left: 35px;
  line-height: 25px;
}

.skip-to-content:focus, .skip-to-content-noscript:focus {
  top: 0;
  background-color: #000F7D;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  left: 0;
  text-decoration: underline;
}

.skip-to-content-noscript {
  display: none;
}

h2#content {
  tabindex: 0;
}

.back-to-top {
  color: white;
}

/* nav */

nav {
  background-color: rgba(255, 255, 255, 0);
  padding: 1em 0;
}

nav.page, nav.patterns {
  position: fixed;
  top: 0;
  width:100%;
  z-index: 500;
}

nav.patterns .made-by,
body.error .made-by {
  color: #242249;
}

nav img {
  height: 30px;
}

nav h1 {
  display: inline-block;
  margin: 0;
}

nav h1,
nav .title,
nav .made-by {
  color: white;
  font-size: 1.05em;
  line-height: 30px;
  letter-spacing: -0.01rem;
  font-weight: 700;
}

nav h1,
nav .title {
  text-transform: lowercase;
}

nav .made-by {
  display: inline-block;
  margin: 0;
  padding-left: 2em;
}

nav .made-by-alt {
  color: rgb(189, 189, 200);
  font-size: 1.1em;
  line-height: 30px;
  letter-spacing: -0.01rem;
  margin-bottom: 0;
  font-weight: 700;
  position: absolute;
  bottom: 1em;
}

nav .how-to p {
  margin: 0;
}

nav .title,
nav .made-by:hover {
  color: #EC392A;
}

.page-nav {
  display: flex;
  align-items: center;
}

.page-nav .push {
  margin-left: auto;
}

.global-category-nav {
  background-color: #242249;
  width: 100%;
  height: 100%;
  padding: 5em 1rem;
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 450;
}

.global-category-nav a {
  color: white;
}

.global-category-nav-list {
  margin-bottom: 0;
  padding-left: 2rem;
}

.global-category-nav-list li {
  padding: 0.4rem 0;
}

.global-category-nav-list a {
  display: flex;
  align-items: flex-start;
}

.global-category-nav-list div.wrapper {
  position: relative;
}

.global-category-nav-list div.box {
  display: inline-block;
  position: relative;
  top: 3px;
  width: .8rem;
  height: .8rem;
  border-radius: 2px;
}

.global-category-nav-list div.signing-in-to-a-service {
  background: #87D7EB;
}

.global-category-nav-list div.giving-and-removing-consent {
  background: #8CEBC8;
}

.global-category-nav-list div.giving-access-to-data {
  background: #BADE7D;
}

.global-category-nav-list div.getting-access-to-data {
  background: #FFD75F;
}

.global-category-nav-list div.understanding-and-influencing-decisions {
  background: #FF9169;
}

.global-category-nav-list div.doing-security-checks {
  background: #FAA0AA;
}

.global-category-nav-list p {
  padding-left: .6rem;
  margin: 0;
  font-size: 1.1em;
}

.global-category-nav-list a:hover,
.global-category-nav-list a:focus,
.global-category-nav-list a:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Error page */
.error-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-size: 5em;
  font-weight: 700;
  margin-bottom: 1em;
}

.error-page p {
  width: 50%;
  color: #898993;
  font-size: 1.5em;
  text-align: center;
}

.error-page a {
  color: rgb(36, 34, 73);
}

/* Footer */

footer {
  background-color: #242249;
  color: white;
  bottom: 0;
  left: 0;
  height: 94vh;
  padding: 2em 0 4em 0;
  position: fixed;
  width: 100%;
  z-index: -1;
}

footer hr {
  min-width: 100%;
}

footer div.cell {
  padding: 1em 0 0 0;
}

footer h2 {
  color: #EC392A;
  font-size: 1.1em;
  line-height: 30px;
  letter-spacing: -0.2px;
  font-weight: 700;
  text-transform: lowercase;
}

footer h3 {
  font-size: 1.6em;
  line-height: 1.2;
}

footer h4 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 1em;
}

footer a p,
footer a h4 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 1em;
}

footer a p {
  font-weight: 400;
  margin-top: 0;
}

footer p {
  font-size: 1.6em;
}

footer .title {
  display: none;
}

footer .license {
  color: rgb(189, 189, 200);
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 0;
}

footer.mobile-only .license {
  margin-top: 1em;
  line-height: 1.3em;
}

footer .license a {
  font-weight: 700;
  color: rgb(189, 189, 200);
}

footer .license a:hover {
  color: white;
}

footer.mobile-only .data-usage-statement {
  margin-top: 0em;
  display: block;
}

footer .data-usage-statement {
  color: rgb(189, 189, 200) !important;
}

footer .get-in-touch a,
footer .contribute a {
  color: white;
}

footer .get-in-touch a:hover,
footer .contribute a:hover {
  color: #EC392A;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li a {
  color: rgb(189, 189, 200);
  font-size: 1em;
}

footer li a:hover {
  color: white;
}

footer .logo {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

footer .logo div {
  margin-right: 1em;
}

footer .grid-container {
  height: 100%;
  position: relative;
}

footer .fix-to-bottom {
  position: fixed;
  bottom: 2em;
  width: 100%;
}

/* Media Queries */

/* Large mobile eg. tablet or vertical orientation */
@media (min-width: 40em) {
  main {
    margin-bottom: 24em;
  }

  footer {
    height: 24em;
  }

  footer .title {
    display: inline-block;
  }

  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: unset;
  }

  footer.desktop-only {
    display: unset;
  }

  footer .get-in-touch {
    margin-top: 0.3em;
  }

  footer .get-in-touch h4 {
    margin-top: 0;
  }

  footer .links {
    margin-top: 0.4em;
  }
  footer .logo {
    display: unset;
  }
}

/* Desktop */
@media (min-width: 64em) {
  body {
    font-size: 100%;
  }

  .grid-container {
    padding-left: 6em;
    padding-right: 6em;
  }

  h1 {
    font-size: 3.4em;
    line-height: 1.025;
  }

  nav.page, nav.patterns {
    max-width: 92em;
    position: absolute;
    right: 0;
    left: 0;
    margin: auto;
  }

  main {
    margin-bottom: 25em;
  }

  /* Error page */




  /* Footer */

  footer {
    padding: 2em 0 5em 0;
    height: 25em;
  }

  footer h4 {
    margin-top: 0;
    line-height: 1.3;
  }

  footer .contact.cell {
    padding-top: 1.27em;
  }

  footer .links {
    margin-top: 0;
  }

  footer .get-in-touch {
    height: calc(1.7em * 2);
  }

  footer .get-in-touch a,
  footer .contribute a {
    display: inline-block;
    margin: -2px;
  }

  footer .contribute {
    padding-top: 1.7em;
  }

  /* footer .large-offset-5 {
    margin-left: 39%;
  } */

  footer .get-in-touch h4,
  footer .get-in-touch p,
  footer .contribute h4,
  footer .contribute p {
    font-size: 1.1em;
  }

  footer .get-in-touch h4,
  footer .contribute h4 {
    margin-top: -1px;
  }

  footer .links li:first-of-type {
    margin-top: 4px;
  }

  footer .license {
    font-size: 0.9em;
  }

  .expand-all.desktop-only {
    display: unset !important;
  }

/* Larger desktop adjustment */
@media (min-width: 78.5em) {
  main {
    margin-bottom: 25em;
  }

  footer {
    height: 25em;
  }
}
