/*
 * Site styles, ported from the Gatsby styled-components.
 *
 * Per-microsite colours and fonts come from the Drupal "Microsites" term and
 * are set as custom properties in a <style> block in templates/layout.php:
 *   --color-brand, --header-bg-color, --header-text-color,
 *   --footer-bg-color, --footer-text-color, --font-heading, --font-body
 */

:root {
  --width-medium: 40rem;
  --header-height: 4rem;
  --transition-time: 0.3s;
}

/* Elements ---------------------------------------------------------------- */

body {
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-body), sans-serif;
  font-weight: 400;
}

main {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
}

main a {
  color: var(--color-brand);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  color: var(--color-brand);
  font-family: var(--font-heading), sans-serif;
}
h1 { margin-top: 3rem; margin-bottom: 4rem; font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
}

a {
  text-decoration: none;
  transition: var(--transition-time);
}
a:focus,
a:hover {
  color: var(--color-brand);
  text-decoration: none;
}

blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--color-brand);
}

/* Only images the templates output; images inside Drupal body HTML keep
   whatever width/height the editor gave them, as on the Gatsby site. */
.logo-container img,
.hero__image,
.node__image {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

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

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-container > footer {
  margin-top: auto;
}

.layout-contained {
  margin: 0 auto;
  max-width: calc(100% - 4em);
  width: 70rem;
}
.layout-contained--medium,
.layout-contained__article-width {
  max-width: var(--width-medium);
}

.body-content > * + h2,
.body-content > * + h3,
.body-content > * + h4,
.body-content > * + h5 {
  margin-top: 4rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Header ------------------------------------------------------------------ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-height);
  z-index: 100;
  width: 100%;
  padding: 2rem 0;
  color: var(--header-text-color);
  background-color: var(--header-bg-color);
}
.header a,
.header a:hover,
.header a:focus {
  color: var(--header-text-color);
}
.header p {
  margin-bottom: 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
}

.logo-container img {
  display: block;
  max-height: var(--header-height);
  max-width: 200px;
  width: auto;
}

.header__menu-button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 0;
  height: 70px;
  width: 35px;
  cursor: pointer;
  margin-left: 25px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.icon-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--header-text-color);
  transition: var(--transition-time);
}
.icon-bar + .icon-bar {
  margin-top: 5px;
}

.header__nav-content {
  padding: 1.5rem;
  width: 90%;
  max-width: 232px;
  position: absolute;
  top: calc(var(--header-height) + 2rem);
  left: 0;
  height: calc(100vh - 70px);
  overflow-y: auto;
  background: var(--header-bg-color);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transform: translateX(-100%);
  /* Hidden menus are also removed from the tab order. */
  visibility: hidden;
  transition: transform var(--transition-time), visibility var(--transition-time);
  will-change: transform;
}
.header__nav-content--active {
  transform: translateX(0);
  visibility: visible;
}
.header__nav-content ul li + li {
  border-top: 1px solid var(--header-text-color);
}
.header__nav-content li a {
  padding: 1rem 0;
  display: block;
  text-transform: uppercase;
}

/* Menu -------------------------------------------------------------------- */

.menu {
  padding: 0;
}
.menu li {
  list-style: none;
}
.menu a {
  transition: var(--transition-time);
}
.menu a:focus,
.menu a:hover {
  text-decoration: underline;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  padding: 1rem 0;
  color: var(--footer-text-color);
  background-color: var(--footer-bg-color);
}
.footer a,
.footer a:focus,
.footer a:hover {
  color: var(--footer-text-color);
}
.footer p {
  margin-bottom: 0;
}
.footer .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.footer .menu li {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}
.footer .menu li::after {
  content: "|";
  margin-left: 1rem;
}
.footer .menu li:last-child::after {
  content: "";
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
  padding: 1rem;
  list-style: none;
  text-align: center;
}
.social-links li {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}
.social-links svg {
  display: block;
  width: 1.5rem;
  height: auto;
  transition: var(--transition-time);
}
.social-links svg path {
  fill: var(--footer-text-color);
}
.social-links a:focus svg,
.social-links a:hover svg {
  transform: translateY(-2px);
}

/* Breadcrumb -------------------------------------------------------------- */

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
}
.breadcrumb__separator {
  color: var(--color-brand);
  margin: 0 0.5rem;
}

/* Home hero --------------------------------------------------------------- */

.hero {
  position: relative;
}
.hero__image {
  display: block;
  width: 100%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.hero__overlay-inner {
  max-width: var(--width-medium);
  margin: auto;
  padding: 0.5rem;
  background-color: var(--header-bg-color);
  opacity: 0.95;
}
.hero__overlay-text {
  text-align: center;
  color: var(--header-text-color);
}
@media only screen and (min-width: 400px) {
  .hero__overlay-inner {
    padding: 2rem;
  }
  .hero__overlay-text {
    margin: 0 2rem;
  }
}
@media only screen and (max-width: 600px) {
  .hero__overlay-text {
    font-size: 1.25rem;
  }
}

/* Page / news item -------------------------------------------------------- */

.node__image {
  display: block;
  width: 100%;
  max-width: 650px;
  margin-bottom: 4rem;
}

/* News listing ------------------------------------------------------------ */

.teaser-list {
  max-width: var(--width-medium);
  padding-left: 0;
  list-style-type: none;
}
.teaser-list__item {
  margin-bottom: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-brand);
}

.teaser__text {
  margin-bottom: 1.5rem;
}
.teaser__read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-brand);
  border: 1px solid var(--color-brand);
  letter-spacing: 0.25rem;
}
main a.teaser__read-more {
  color: white;
  text-decoration: none;
}
.teaser__read-more svg {
  width: 1rem;
  height: 1rem;
  margin-left: 1rem;
  transform: translateY(0.1rem);
  transition: all 0.25s ease;
}
.teaser__read-more svg path {
  fill: white;
}
main a.teaser__read-more:hover,
main a.teaser__read-more:focus {
  text-decoration: underline;
  color: var(--color-brand);
  background-color: white;
}
.teaser__read-more:hover svg,
.teaser__read-more:focus svg {
  transform: translate(0.5rem, 0.1rem);
}
.teaser__read-more:hover svg path,
.teaser__read-more:focus svg path {
  fill: var(--color-brand);
}
