:root {
  --green: #00b36b;
  --green-dark: #00965a;
  --text: #555;
  --muted: #7a7a7a;
  --light: #f5f5f5;
  --results-offset: 150px;
  --results-width: 888px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #368ad5;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px;
  color: #111;
  background: #fff;
}

.skip-link:focus {
  top: 12px;
}

/* Notice */

.cookie-notice {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 25px;
  background: #fff;
  color: #626b74;
}

.cookie-notice p {
  flex: 1;
  margin: 0;
  line-height: 1.5;
}

.info-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #777;
  border-radius: 50%;
  font-weight: bold;
}

.notice-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.notice-actions button,
.notice-actions a {
  padding: 8px 13px;
  border: 0;
  border-radius: 3px;
  background: var(--light);
  color: #536171;
}

.notice-actions button:hover,
.notice-actions a:hover {
  background: #e9e9e9;
}

/* Shared branding and navigation */

.brand {
  display: inline-flex;
  align-items: flex-start;
  white-space: nowrap;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #333;
}

.brand-arrow {
  display: inline-block;
  margin: -3px 0 0 2px;
  color: #34749b;
  font-size: 22px;
  transform: rotate(-40deg);
}

.search-tabs {
  display: flex;
  gap: 28px;
}

.search-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 18px;
  font-weight: 600;
}

.search-tabs a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
}

/* Dropdown menu */

.site-menu {
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}

.site-menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  list-style: none;
  cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-panel {
  position: absolute;
  top: 46px;
  right: 0;
  width: 190px;
  padding: 8px 0;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  color: #444;
  box-shadow: 0 8px 25px rgb(0 0 0 / 15%);
}

.menu-panel a {
  display: block;
  padding: 11px 18px;
}

.menu-panel a:hover {
  background: var(--light);
}

/* Search form */

.search-form {
  display: flex;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #555;
  font-size: 20px;
  appearance: none;
}

/* Keep one consistent clear button across browsers. */
.search-form input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.search-form input:focus-visible {
  outline: 2px solid #368ad5;
  outline-offset: -3px;
}

.clear-button {
  flex: 0 0 48px;
  border: 0;
  background: #fff;
  color: #888;
  font-size: 32px;
  font-weight: 200;
}

.clear-button:hover {
  color: #333;
}

.search-button {
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--green);
  color: #fff;
}

.search-button:hover {
  background: var(--green-dark);
}

.search-button svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Homepage */

.home-stage {
  position: relative;
  flex: 1;
  min-height: 570px;
  color: #fff;
  background-color: #111;
  background-image: url("images/background-1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 12%);
  pointer-events: none;
}

.home-header,
.home-main {
  position: relative;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 0 25px;
}

.home-tabs a.active::after {
  height: 1px;
}

.home-main {
  width: min(625px, calc(100% - 40px));
  margin: clamp(95px, 18vh, 175px) auto 80px;
  text-align: center;
}

.home-brand {
  margin: 0 0 56px;
  line-height: 1.2;
}

.home-brand .brand {
  font-size: 34px;
  color: #fff;
}

.home-brand .brand-arrow {
  font-size: 27px;
  color: #153cbd;
}

.home-search {
  height: 57px;
}

.tagline {
  margin: 38px 0 0;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 45%);
}

/* Results page */

.results-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px 15px;
  background: var(--light);
}

.results-header > .brand {
  flex: 0 0 117px;
}

.results-search {
  width: min(var(--results-width), 100%);
  height: 45px;
}

.results-search input[type="search"] {
  border: 1px solid #ddd;
  border-right: 0;
}

.results-search .clear-button {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.results-search .search-button {
  flex-basis: 50px;
}

.results-header .site-menu {
  margin-left: auto;
  color: #777;
}

.results-width {
  width: min(
    var(--results-width),
    calc(100% - var(--results-offset) - 25px)
  );
  margin-left: var(--results-offset);
}

.results-navigation {
  border-bottom: 1px solid #f0f0f0;
}

.navigation-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-tabs {
  gap: 25px;
}

.results-tabs a {
  min-height: 62px;
}

.results-tabs a.active {
  color: var(--green);
}

.filters-button {
  padding: 10px 0 10px 15px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 18px;
}

.filters-panel {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
}

.results-main {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.results-main p {
  margin: 0 0 16px;
}

.results-main ul {
  margin-top: 0;
  padding-left: 49px;
}

.preview-note {
  max-width: 650px;
  margin-top: 30px !important;
  padding: 12px 15px;
  border-left: 3px solid #ccc;
  background: #fafafa;
  font-size: 14px;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 47px;
  padding: 12px 25px;
  background: var(--light);
  color: #596572;
  font-size: 16px;
}

.site-footer nav,
.footer-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.results-footer {
  padding-left: var(--results-offset);
}

/* Tablet and mobile */

@media (max-width: 900px) {
  :root {
    --results-offset: 25px;
  }

  .results-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .results-header > .brand {
    flex-basis: auto;
  }

  .results-header .site-menu {
    order: 1;
  }

  .results-search {
    order: 2;
    width: 100%;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .results-footer {
    padding-left: 25px;
  }
}

@media (max-width: 600px) {
  .cookie-notice {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .cookie-notice p {
    flex-basis: calc(100% - 40px);
  }

  .notice-actions {
    margin-left: auto;
  }

  .home-header {
    padding: 8px 12px;
  }

  .search-tabs {
    gap: 18px;
  }

  .search-tabs a {
    font-size: 16px;
  }

  .home-stage {
    min-height: 480px;
  }

  .home-main {
    margin-top: 95px;
  }

  .home-brand {
    margin-bottom: 35px;
  }

  .tagline {
    font-size: 18px;
  }

  .results-width {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  .filters-button {
    font-size: 15px;
  }

  .site-footer {
    padding: 16px;
    font-size: 14px;
  }

  .site-footer nav,
  .footer-credit {
    justify-content: center;
    gap: 18px;
  }
  
  .result-summary {
  margin-bottom: 28px !important;
  font-size: 15px;
}

.search-result {
  max-width: 760px;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}

.search-result h2 {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.search-result h2 a {
  color: #1655ad;
}

.search-result h2 a:hover {
  text-decoration: underline;
}

.result-url {
  margin-bottom: 7px;
  color: #267347;
  font-size: 14px;
}

.search-result .result-description {
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
  font-size: 16px;
}

.pagination a {
  padding: 8px 13px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #1655ad;
}

.pagination a:hover {
  background: #f5f5f5;
}
}