/* Variables */
:root {
  --dark: #001a23;
  --light: #f3dfbf;
  --grey: #eee;
  --white: #fff;
}

.flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-space-between {
  justify-content: space-between;
}

.list-style-none {
  list-style: none;
  padding: 0;
}

.uppercase {
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* -- end of Variables -- */

/* Base styles */
html {
  scroll-behavior: smooth
}

body {
  font-family: "Source Sans 3", serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--dark);
  margin: 0;
}

h1 {
  line-height: 1.2;
  font-size: 24px;
}

h2,
h3 {
  line-height: 1.2;
}

blockquote {
  margin: 0;
  border-left: 5px solid var(--grey);
  padding-left: 2rem;
  font-style: italic;
}

a:focus-visible {
  outline: auto;
}

body a,
body a:visited {
  color: var(--dark);
  text-decoration: none;
}

body a:hover,
body a:focus,
body a:focus-visible {
  text-decoration: underline;
}

body a[target=_blank]:after {
  content: "";
  display: inline-block;
  background-image: url(../images/new-tab.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 10px;
  height: 10px;
  margin-left: 5px
}

@media all and (min-width:48em) {
  body {
    line-height: 2;
  }
}

img {
  max-width: 100%;
  height: auto;
  border-top-left-radius: 1rem;
  border-bottom-right-radius: 1rem
}

.layout-container {
  padding: 1rem;
}

@media all and (min-width:48em) {
  .layout-container {
    width: 50%;
    margin: auto;
  }
}
/* -- end of Base styles -- */

/* Header */
header {
  background-color: var(--dark);
  color: var(--light);
}

header a {
  color: var(--light);
  text-transform: uppercase;
}

header a:hover,
header a:focus,
header a:focus-visible,
header a.is-active,
header a:visited {
  color: var(--light);
}

header .layout-container > div {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

header ul {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 1rem;
  padding: 0;
}

header ul li {
  list-style: none;
}

@media all and (min-width:48em) {
  header .layout-container > div {
    flex-wrap: nowrap;
  }
}
/* -- end of Header styles -- */

/* Main content */
ul.local-tasks {
  margin: 0;
  padding: 1rem;
  padding-left: 0;
}

div[data-drupal-messages] {
  padding: 1rem;
  background-color: var(--grey);
}
/* -- end of Main content styles -- */

/* Footer */

/* -- end of Footer styles -- */

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--dark);
  color: var(--light);
  border: none;
  border-radius: 50%;
  padding: .5rem;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  height: 40px;
  width: 40px;
  transition: opacity .5s ease, visibility .5s, transform .5s ease;
}

#back-to-top:hover,
#back-to-top:focus,
#back-to-top:focus-visible {
  outline: auto;
  transform: scale(1.1);
  transform: translateY(-10px);
}

#back-to-top.show {
  display: block;
  opacity: 1;
  visibility: visible;
}
/* -- end of Back to top styles -- */
