/*
 * data2.eu design for the Cassiopeia child template "cassiopeia_data2eu".
 * Reproduces the former Protostar based data2eu template (Bootstrap 2).
 */

/* ---------- Fonts (self hosted, no Google connection) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  --d2-blue: #2a388f;
  --d2-blue-dark: #0e1330;
  --d2-orange: #f7931d;
  --d2-text: #222;
  --d2-gray: #555;
  --d2-gray-light: #999;
  --d2-gray-lighter: #eee;
  --d2-gray-bg: #f5f5f5;
  --d2-border: #ddd;
  --d2-red: #9d261d;
  --d2-green: #46a546;
  --d2-container: 1170px;
  --d2-gutter: 15px;
  --d2-font: "Open Sans", Helvetica, Arial, sans-serif;

  /* Cassiopeia / Bootstrap variables */
  --cassiopeia-font-family-body: var(--d2-font);
  --cassiopeia-font-family-headings: var(--d2-font);
  --cassiopeia-font-weight-headings: 700;
  --cassiopeia-color-primary: var(--d2-blue);
  --cassiopeia-color-link: var(--d2-blue);
  --cassiopeia-color-hover: var(--d2-blue-dark);
  --template-link-color: var(--d2-blue);
  --link-color: var(--d2-blue);
  --link-color-rgb: 42, 56, 143;
  --link-hover-color: var(--d2-blue-dark);
  --link-hover-color-rgb: 14, 19, 48;
  --body-color: var(--d2-text);
  --body-bg: #fff;
  --body-font-family: var(--d2-font);
  --body-font-size: 1rem;
  --body-line-height: 1.8;
  --bs-body-font-family: var(--d2-font);
  --bs-body-color: var(--d2-text);
  --bs-link-color: var(--d2-blue);
  --bs-link-color-rgb: 42, 56, 143;
  --bs-link-hover-color: var(--d2-blue-dark);
  --bs-link-hover-color-rgb: 14, 19, 48;
  --bs-breadcrumb-divider: "\25B8";
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}
body.site {
  margin: 0;
  background: #fff;
  color: var(--d2-text);
  font-family: var(--d2-font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  color: var(--d2-blue);
}
a:hover,
a:focus {
  color: var(--d2-blue-dark);
}
p a {
  text-decoration: underline;
}
p.readmore a,
p a.btn {
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--d2-orange);
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1.2em 0;
  font-family: var(--d2-font);
  font-weight: 700;
  color: var(--d2-text);
  word-wrap: break-word;
}
h1 { font-size: 26px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.15; }
h4 { font-size: 14px; line-height: 1.15; }
h5 { font-size: 13px; line-height: 1.15; }
h6 { font-size: 12px; line-height: 1.15; }

h1 a, h2 a, h3 a,
.item-title a,
.blog-item h2 a {
  text-decoration: none;
}
h1 a:hover, h2 a:hover, h3 a:hover {
  text-decoration: underline;
}
.page-header {
  margin-bottom: 1em;
  border-bottom: 0;
}
.page-header h1,
.page-header h2 {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: .5em 1em;
  background: var(--d2-blue);
  color: #fff;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- Layout container ---------- */
.d2-container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--d2-container) + 2 * var(--d2-gutter));
  margin: 0 auto;
  padding: 0 var(--d2-gutter);
}

/* ---------- Header ---------- */
.d2-header {
  background: #fff;
}
.d2-header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}
.d2-brand {
  display: block;
  line-height: 0;
}
.d2-brand img {
  width: 400px;
  max-width: 100%;
  height: auto;
}

/* Language switcher (top right) */
/* Fixed at the top right edge of the window (full width, as before) */
.d2-topbar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1030;
  padding: 8px 16px;
  background: #fff;
}
.mod-languages ul,
.mod-languages ul.lang-inline {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mod-languages li {
  margin: 0 !important;
  line-height: 1.2;
}
.mod-languages li a {
  display: block;
  padding: 3px 5px;
  font-size: 16px;
  text-decoration: none;
}
.mod-languages li.lang-active a {
  background: var(--d2-blue);
  color: #fff;
}

/* Main navigation */
.d2-nav {
  margin-left: auto;
  padding-top: .6em;
}
.d2-nav ul.mod-menu,
.d2-nav ul.nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.d2-nav ul.mod-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}
.d2-nav ul.mod-menu > li > a,
.d2-nav ul.mod-menu > li > span {
  display: block;
  margin: 10px 5px;
  padding: 12px 12px 14px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--d2-blue);
}
.d2-nav ul.mod-menu > li > a:hover,
.d2-nav ul.mod-menu > li > a:focus {
  background: var(--d2-gray-lighter);
  color: var(--d2-blue-dark);
}
.d2-nav ul.mod-menu > li.active > a,
.d2-nav ul.mod-menu > li.current > a {
  background: var(--d2-blue);
  color: #fff;
}
.d2-nav ul.mod-menu {
  flex-direction: row;
}
/* Sub menus: dropdown on hover / keyboard focus (as before) */
.d2-nav ul.mod-menu ul.mod-menu__sub {
  position: absolute;
  top: 95%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 220px;
  margin: 2px 0 0;
  padding: 5px 0;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
  font-size: 16px;
  list-style: none;
}
.d2-nav ul.mod-menu > li:hover > ul.mod-menu__sub,
.d2-nav ul.mod-menu > li:focus-within > ul.mod-menu__sub,
.d2-nav ul.mod-menu > li > button[aria-expanded="true"] + ul.mod-menu__sub {
  display: block;
}
.d2-nav ul.mod-menu__sub li a {
  display: block;
  padding: 3px 20px;
  color: #333;
  line-height: 1.8;
  text-decoration: none;
  white-space: nowrap;
}
.d2-nav ul.mod-menu__sub li a:hover,
.d2-nav ul.mod-menu__sub li a:focus {
  background: var(--d2-blue);
  color: #fff;
}
/* The sub menu toggle is only needed for keyboard / touch users */
.d2-nav .mod-menu__toggle-sub {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  clip: rect(0 0 0 0);
}
.d2-nav .mod-menu__toggle-sub:focus-visible {
  width: auto;
  height: auto;
  padding: 2px;
  clip: auto;
  transform: translateY(-50%);
  color: var(--d2-blue);
}

.d2-nav-toggle {
  display: none;
  align-items: center;
  gap: .5em;
  padding: .5em .8em;
  border: 0;
  border-radius: 3px;
  background: var(--d2-blue);
  color: #fff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.d2-nav-toggle-bars,
.d2-nav-toggle-bars::before,
.d2-nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  content: "";
}
.d2-nav-toggle-bars {
  position: relative;
}
.d2-nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}
.d2-nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

/* ---------- Banner / slider ---------- */
/* The banner height follows the text box; the image covers the whole area and is cropped */
.d2-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.d2-banner .d2-slide,
.d2-banner .item {
  position: relative;
  display: flow-root;
  padding-bottom: 2em;
}
.d2-banner img.d2-slide-image,
.d2-banner .item > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.d2-banner .d2-container {
  position: relative;
  z-index: 9;
}
.d2-slide-caption,
.d2-banner .carousel-caption {
  position: static;
  box-sizing: content-box;
  max-width: 550px;
  margin-top: 150px;
  padding: 1em 2em 2em;
  background-color: rgba(255, 255, 255, .85);
  color: #000;
  text-align: left;
}
.d2-slide-caption p,
.d2-banner .carousel-caption p {
  color: #000;
}
.d2-banner .carousel-header,
.d2-banner .carousel-caption h1,
.d2-banner .carousel-caption h2 {
  margin: 1.1333em 0 .5em;
  font-family: var(--d2-font);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #000;
}
.d2-banner .carousel-caption .btn,
.d2-slide-caption .btn {
  margin-top: 10px;
}

/* ---------- Body ---------- */
.d2-body {
  background: #fff;
}
.d2-body > .d2-container {
  padding-top: 20px;
  padding-bottom: 20px;
}
main#content:focus {
  outline: 0;
}

/* Modules in main-top / main-bottom (html5 chrome) */
.d2-body .moduletable {
  margin: 0 0 1.5em;
}
.d2-body .moduletable > h3,
.d2-body .moduletable > h2 {
  margin-top: 1em;
}
.moduletable.well,
.moduletable .well,
.well {
  margin-bottom: 20px;
  padding: 19px;
  border: 1px solid #e3e3e3;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
}

/* ---------- Buttons (Bootstrap 2 look) ---------- */
.btn,
a.btn,
button.btn,
.readmore .btn {
  display: inline-block;
  min-width: 120px;
  padding: .75em 1em;
  border: 0;
  border-radius: 0;
  background: var(--d2-gray-bg);
  color: #333;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
}
.btn:hover,
.btn:focus,
.readmore .btn:hover {
  background: #e6e6e6;
  color: #333;
}
.btn-primary,
a.btn-primary,
.btn.btn-primary,
button[type="submit"].btn {
  background: var(--d2-blue);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:hover {
  background: var(--d2-orange);
  color: #000;
}
.btn-small,
.btn-sm {
  min-width: 0;
  padding: .3em .5em;
}
.btn a {
  color: #fff;
}

/* ---------- Blog / category ---------- */
.blog-items,
.com-content-category-blog__items {
  margin-bottom: 0;
}
.blog-items.columns-2,
.com-content-category-blog__items.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 1em;
}
.blog-items .blog-item,
.blog-item {
  margin-bottom: 1.5em;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.blog-item .item-content {
  padding: 0;
}
.blog-item h2,
.items-row h2 {
  margin: .6em 0 .5em;
  font-size: 22px;
  line-height: 1.5;
}
.blog-item h2 a,
.item-title a {
  color: var(--d2-blue);
}
.item-image.float-start,
.item-image.pull-left,
figure.left.item-image,
.blog-item figure.left.item-image {
  float: left;
  max-width: 45%;
  margin: 0 20px 18px 0;
  overflow: visible;
}
.blog-item .item-content {
  display: flow-root;
}
.blog-items .blog-item {
  display: block;
}
.item-image.float-end,
.item-image.pull-right,
figure.right.item-image {
  float: right;
  margin: 0 0 18px 20px;
}
.blog-item .item-image img {
  max-width: 100%;
}
.blog-item::after,
.item-page::after {
  display: table;
  clear: both;
  content: "";
}
.blog-featured {
  clear: both;
  margin-top: 2em;
}
.readmore {
  margin: 1em 0 0;
}
.readmore .btn .icon-chevron-right,
.readmore .btn .icon-chevron-left {
  margin-right: .3em;
}
.category-desc {
  margin-bottom: 1em;
}
.items-more ol,
.items-more ul {
  padding-left: 0;
  list-style: none;
}
.item-links-a {
  margin-top: .5em;
}

/* Article */
.item-page .page-header h1,
.item-page .page-header h2 {
  margin-top: .6em;
}
.item-page figure.item-image,
.item-page .item-image {
  max-width: 50%;
}
.article-info,
dl.article-info {
  margin: 0 0 1em;
  color: var(--d2-gray);
  font-size: .9em;
}
.article-info dd {
  margin-left: 0;
}

/* Tags */
.tags a.btn,
.tags .btn,
.tags a.label {
  min-width: 0;
  padding: 4px 8px;
  background: var(--d2-blue);
  color: #fff;
  font-size: .85em;
}

/* Page navigation (prev / next) */
.pagenavigation {
  clear: both;
  margin: 2em 0 1em;
}
.pagenavigation .pagination {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
.pagenavigation .btn {
  min-width: 0;
  padding: .3em 1em;
  border: 1px solid var(--d2-border);
  border-radius: 15px;
  background: #fff;
  color: var(--d2-blue);
}
.pagenavigation .btn.next {
  margin-left: auto;
}
.pagenavigation .btn:hover,
.pagenavigation .btn:focus {
  background: var(--d2-gray-bg);
}

/* Pagination */
.pagination .page-link {
  color: var(--d2-blue);
}
.pagination .page-item.active .page-link {
  border-color: var(--d2-blue);
  background: var(--d2-blue);
  color: #fff;
}

/* ---------- Breadcrumbs ---------- */
.mod-breadcrumbs__wrapper {
  clear: both;
  margin-top: 50px;
}
.breadcrumb,
.mod-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 8px 15px 8px 0;
  background: #fff;
  font-size: 14px;
  list-style: none;
}
.mod-breadcrumbs a {
  text-decoration: none;
}
.mod-breadcrumbs a:hover,
.mod-breadcrumbs a:focus {
  text-decoration: underline;
}
.mod-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: var(--d2-orange);
}
.mod-breadcrumbs__divider {
  margin-right: .6em;
  color: var(--d2-gray-light);
}
.breadcrumb-item.active,
.breadcrumb > li {
  color: #515151;
}

/* ---------- Footer ---------- */
.d2-footer {
  padding: 2em 0 3em;
  background: var(--d2-blue);
  color: #fff;
}
.d2-footer a {
  color: #fff;
  text-decoration: none;
}
.d2-footer a:hover,
.d2-footer a:focus {
  color: #fff;
  text-decoration: underline;
}
.d2-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.d2-footer h3 {
  margin: 1em 0 .8em;
  color: #fff;
  font-size: 18px;
}
.d2-footer ul.mod-menu,
.d2-footer ul.nav {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.d2-footer ul.mod-menu li {
  margin: 0;
  padding: 0;
}
.d2-footer ul.mod-menu li a {
  display: block;
  padding: 0;
  line-height: 1.8;
}
/* html5 chrome writes the old suffix as separate class: "moduletable -disclaimer" */
.d2-footer .moduletable.-disclaimer p,
.d2-footer .moduletable-disclaimer p {
  font-size: 12px;
  line-height: 1.3;
}
.d2-footer .moduletable.-disclaimer a,
.d2-footer .moduletable-disclaimer a {
  text-decoration: underline;
}
.d2-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5em;
}
.d2-footer-bottom p {
  margin: 0;
}
#back-top {
  display: inline-block;
  padding: .5em;
  color: #fff;
}
#back-top::before {
  display: inline-block;
  margin-right: .3em;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f077";
}
#back-top:hover,
#back-top:focus {
  background: var(--d2-orange);
  color: #000;
  text-decoration: none;
}

/* ---------- Bootstrap 2 compatibility for existing content ---------- */
.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.row-fluid::after {
  display: table;
  clear: both;
  content: "";
}
.row-fluid > [class*="span"] {
  box-sizing: border-box;
  min-height: 1px;
  margin-left: 2.5641%;
}
.row-fluid > [class*="span"]:first-child {
  margin-left: 0;
}
.row-fluid > .span12 { width: 100%; margin-left: 0; }
.row-fluid > .span9 { width: 74.359%; }
.row-fluid > .span8 { width: 65.812%; }
.row-fluid > .span6 { width: 48.7179%; }
.row-fluid > .span4 { width: 31.6239%; }
.row-fluid > .span3 { width: 23.0769%; }
.row-fluid > .span2 { width: 14.5299%; }

.pull-left { float: left; }
.pull-right { float: right; }
.clearfix::after {
  display: table;
  clear: both;
  content: "";
}

/* Scope boxes ("thumbnails") */
ul.thumbnails,
ul.thumbnails-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
ul.thumbnails-overview {
  grid-template-columns: repeat(6, 1fr);
  font-size: smaller;
}
ul.thumbnails > li,
ul.thumbnails-overview > li {
  width: auto;
  margin: 0;
}
.thumbnail {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--d2-border);
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .055);
  overflow: hidden;
}
ul.thumbnails-overview .thumbnail {
  margin-bottom: 0;
}
.thumbnail .thumb-image img {
  display: block;
  width: 100%;
}
ul.thumbnails-overview a {
  text-decoration: none;
}
ul.thumbnails-overview .caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  box-sizing: border-box;
  padding: 9px;
  background: var(--d2-orange);
}
ul.thumbnails-overview .caption h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
ul.thumbnails-overview .modal-footer {
  min-height: 95px;
  padding: 14px 15px 15px;
  font-size: 13.33px;
  line-height: 24px;
}
ul.thumbnails-overview .icon-checkmark,
ul.thumbnails-overview .icon-delete {
  margin-right: 4px;
  font-size: 13.33px;
}
.thumbnails .caption {
  padding: 1.5em;
  font-size: 16px;
}
.thumbnails .caption1 h2 {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1.5em 0;
  background: var(--d2-orange);
  color: #fff;
  text-align: center;
}
.thumbnails h2 {
  text-align: center;
}
.thumbnails ul {
  list-style-type: disc;
}
.modal-footer {
  flex: 1 1 auto;
  min-height: 75px;
  margin: 0;
  padding: 14px 15px 15px;
  border-top: 1px solid var(--d2-border);
  border-radius: 0;
  background: var(--d2-gray-bg);
  text-align: left;
}
.thumbnails .modal-footer a {
  text-decoration: underline;
}
.modal-footer .row-fluid > .span12 {
  line-height: 1.6;
}
.mf-heading {
  margin-bottom: .3em;
  font-weight: 700;
}
.overview-button {
  width: 100%;
  margin: 0 0 1em auto;
  text-align: right;
}
.overview {
  padding: .5em;
}
.overview::before {
  margin-right: 1em;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f077";
}
.overview:hover {
  background: var(--d2-gray-lighter);
  text-decoration: none;
}
.icon-delete { color: var(--d2-red); }
.icon-checkmark { color: var(--d2-green); }

/* ---------- Forms (RSForm Pro contact form) ---------- */
#userForm input[type="text"],
#userForm input[type="email"],
#userForm input[type="tel"],
#userForm textarea,
#userForm select {
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 0;
  font: inherit;
}
#userForm .formControls input.form-control,
#userForm .formControls select.form-select {
  max-width: 300px;
}
#userForm .formControls textarea.form-control {
  max-width: 500px;
  min-height: 140px;
}
#userForm .form-control,
#userForm .btn {
  border-radius: 0;
}
#userForm .form-control:focus {
  border-color: var(--d2-blue);
  box-shadow: 0 0 0 .2rem rgba(42, 56, 143, .25);
}
#userForm .formRed,
.formRed {
  color: var(--d2-red);
}
.formDescription {
  font-size: .9em;
}

/* ---------- Sitemap (OSMap) ---------- */
.osmap-items ul {
  list-style: disc;
}

/* ---------- Responsive ---------- */
@media (max-width: 979px) {
  .d2-header-inner {
    padding-top: 2.5em;
  }
  .d2-nav {
    flex-basis: 100%;
    margin-left: 0;
    padding-top: 1em;
  }
  .d2-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .js-nav .d2-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .js-nav .d2-nav-list {
    display: none;
    width: 100%;
  }
  .js-nav .d2-nav-list.is-open {
    display: block;
  }
  .d2-nav ul.mod-menu {
    flex-direction: column;
  }
  .d2-nav ul.mod-menu > li > a {
    margin: 0 0 3px;
    border: 1px solid var(--d2-border);
  }
  .d2-nav ul.mod-menu ul.mod-menu__sub {
    position: static;
    margin: 0 0 3px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .d2-nav ul.mod-menu > li:hover > ul.mod-menu__sub {
    display: none;
  }
  .d2-nav ul.mod-menu > li:focus-within > ul.mod-menu__sub,
  .d2-nav ul.mod-menu > li > button[aria-expanded="true"] + ul.mod-menu__sub {
    display: block;
  }
  .d2-nav ul.mod-menu__sub li a {
    white-space: normal;
  }
  ul.thumbnails-overview {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .d2-header-inner {
    justify-content: center;
  }
  .d2-brand {
    margin: 0 auto;
  }
  .d2-banner .d2-slide-caption,
  .d2-banner .carousel-caption {
    box-sizing: border-box;
    margin-top: 100px;
  }
  .d2-banner .carousel-header,
  .d2-banner .carousel-caption h1,
  .d2-banner .carousel-caption h2 {
    font-size: 30px;
  }
  .blog-items.columns-2,
  .com-content-category-blog__items.columns-2 {
    grid-template-columns: 1fr;
  }
  .d2-footer-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .row-fluid > [class*="span"] {
    width: 100% !important;
    margin-left: 0;
  }
  ul.thumbnails,
  ul.thumbnails-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .item-page figure.item-image,
  .item-page .item-image {
    float: none;
    max-width: 100%;
    margin: 0 0 1em;
  }
}

@media (max-width: 480px) {
  .item-image.float-start,
  .item-image.pull-left,
  figure.left.item-image {
    float: none;
    margin: 0 0 18px;
  }
  ul.thumbnails {
    grid-template-columns: 1fr;
  }
  .d2-slide-caption,
  .d2-banner .carousel-caption {
    padding: .5em 1em 1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Error page (Cassiopeia error.php) ---------- */
.error_site .container-header,
body.site .container-header {
  background: #fff;
  background-image: none;
  box-shadow: none;
}
.container-header .brand-logo img {
  max-width: 400px;
}
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .metismenu.mod-menu .mm-toggler,
.container-header .metismenu.mod-menu .metismenu-item > a {
  color: var(--d2-blue);
}
.container-header .metismenu.mod-menu .metismenu-item.current > a,
.container-header .mod-menu > li.active > a {
  background: var(--d2-blue);
  color: #fff;
  padding: 0 .6em;
}
.container-header .container-nav {
  padding-bottom: 1em;
}
.error_site .container-component,
body.site .container-component > .card {
  border-radius: 0;
}
.container-footer {
  background: var(--d2-blue);
  background-image: none;
}

/* Scope tiles: uniform image height, list starts at the top (as on the old site) */
ul.thumbnails-overview .thumb-image img {
  aspect-ratio: 7 / 4;
  object-fit: cover;
}
.thumbnail .modal-footer {
  display: block;
  justify-content: initial;
  align-items: initial;
}
.thumbnail .modal-footer > * {
  margin: 0;
}
ul.thumbnails,
ul.thumbnails-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
ul.thumbnails-overview {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.thumbnail .modal-footer {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 979px) {
  ul.thumbnails-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  ul.thumbnails,
  ul.thumbnails-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  ul.thumbnails {
    grid-template-columns: minmax(0, 1fr);
  }
}
