/* ===== 01. Tokens ===== */

:root {
  --site-border-color: #e6e8ec;
  --site-cta-hover-border: 0 0 0 3px rgba(12, 42, 77, 0.35);
  --site-content-max-width: 72rem;
  --site-header-height: 90px;
  --site-link-color: #ff6400;
}

/* ===== 02. Base Elements & Utilities ===== */

hgroup {
  padding: 1rem 0.6rem;
}

hgroup * {
  margin: 0;
  padding: 0;
}

hgroup p {
  font-style: italic;
}

hgroup h1 {
  line-height: 2rem;
  margin-bottom: 0.6rem;
}

main>article {
  padding: 1rem 0.6rem;
}

#main>p>img {
  max-width: 100%;
  height: auto;
}

main>section {
  padding: 0 0.6rem;
}

main>article img {
  max-width: 100%;
  height: auto;
}

.story main>article {
  max-width: 780px;
}

a {
  color: var(--site-link-color);
  text-decoration: none;
}

body {
  color: #151721;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 100%;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  margin: 0;
  margin-inline: auto;
  max-width: var(--site-content-max-width);
}

.center {
  text-align: center;
}

.cta-button {
  background: var(--site-link-color);
  border-radius: 9999px;
  color: #ffffff;
  display: inline-block;
  font-weight: 700;
  line-height: 1;
  margin: 2rem 1rem 0;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
}

.cta-button:focus-visible,
.cta-button:hover {
  background: var(--site-link-color);
  box-shadow: var(--site-cta-hover-border);
}

.cta-button:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.font-extrabold {
  font-weight: 800;
}

.font-light {
  font-weight: 300;
}

main {
  box-sizing: border-box;
  padding-top: var(--site-header-height);
}

.skip {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.skip:focus {
  background-color: #fff;
  height: auto;
  left: 0;
  padding: 1em;
  top: 0;
  width: auto;
  z-index: 10000;
}

/* ===== 03. Header & Navigation ===== */

body>header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--site-border-color);
  box-sizing: border-box;
  display: flex;
  left: 50%;
  min-height: var(--site-header-height);
  padding: 0 1em;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: min(100%, var(--site-content-max-width));
  z-index: 1000;
}

body>header a {
  color: #000;
}

body>header a:hover {
  text-decoration: none;
}

body>header nav {
  align-items: stretch;
  display: flex;
  flex: 1;
  font-weight: 800;
  justify-content: space-between;
  margin-left: 1.5rem;
  min-width: 0;
  position: relative;
}

body>header .icon {
  align-items: center;
  align-self: stretch;
  border-left: 1px solid var(--site-border-color);
  display: flex;
  height: 100%;
  justify-content: center;
  margin-left: 0;
  min-height: var(--site-header-height);
  min-width: 68px;
  padding: 0;
}

body>header .icon img {
  display: block;
  height: var(--icon-size, 1rem);
  width: var(--icon-size, 1rem);
}

body>header .icon-close {
  color: #fff;
  display: none;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

body>header .icon-menu {
  --icon-size: 1rem;
  cursor: pointer;
  display: none;
}

body>header .icon-search {
  --icon-size: 1.8rem;
}

body>header .logo {
  align-items: flex-start;
  display: inline-flex;
  position: relative;
  top: -1em;
}

body>header .logo div {
  left: -2.5em;
  position: relative;
  top: 2em;
  z-index: 1;
}

body>header .logo img {
  left: -1em;
  position: relative;
  top: -0.5em;
  width: 70px;
  z-index: 0;
}

body>header .logo span {
  display: block;
}

body>header .menu-bar {
  align-items: center;
  display: flex;
  flex: 1;
  min-width: 0;
}

body>header .menu-bar li {
  margin-left: 0;
  white-space: nowrap;
}

body>header .menu-bar ul {
  align-items: center;
  column-gap: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  row-gap: 0.35rem;
}

body>header .menu-content {
  align-items: stretch;
  display: flex;
  flex: 1;
  min-width: 0;
}

body>header .menu-rhs {
  align-items: stretch;
  display: flex;
  margin-left: 1.5rem;
  margin-right: 0.8rem;
  white-space: nowrap;
}

body>header .menu-rhs a {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  padding: 0 1.1rem;
}

body>header .menu-rhs li {
  align-items: center;
  display: flex;
  margin-left: 0.7rem;
}

body>header .menu-rhs li:nth-child(1) a {
  background-color: #ff6400;
  border: 1px solid #ff6400;
  color: #fff;
}

body>header .menu-rhs li:nth-child(1) a:hover {
  background-color: var(--site-link-color);
  border-color: var(--site-link-color);
  box-shadow: var(--site-cta-hover-border);
}

body>header .menu-rhs li:nth-child(2) a {
  border: 1px solid #d5d9df;
  color: #151721;
}

body>header .menu-rhs li:nth-child(2) a:hover {
  background-color: #f8f9fb;
  border-color: #b8c0cb;
}

body>header .menu-rhs ul {
  align-items: stretch;
  display: flex;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

body>header .menu-toggle {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body>header nav>.icon:last-child {
  border-right: 1px solid var(--site-border-color);
}

@media (min-width: 1024px) {
  body>header {
    padding-right: 0;
  }

  body>header .icon-search {
    border-right: 1px solid var(--site-border-color);
  }
}

@media (max-width: 1023px) {
  body>header .icon-menu {
    display: flex;
  }

  body>header {
    padding-right: 0;
  }

  body>header nav {
    justify-content: flex-end;
  }

  body>header .menu-bar {
    display: none;
  }

  body>header .menu-content {
    display: none;
  }

  body>header .menu-rhs {
    display: none;
  }

  body>header .menu-rhs ul {
    display: none;
  }

  body>header .menu-toggle:checked~.icon-menu {
    background-color: #0f1730;
    border-left-color: #0f1730;
    border-right-color: #0f1730;
  }

  body>header .menu-toggle:checked~.icon-menu .icon-close {
    display: block;
  }

  body>header .menu-toggle:checked~.icon-menu img {
    display: none;
  }

  body>header .menu-toggle:checked~.menu-content {
    background: #ff6400;
    display: block;
    left: 0;
    padding: 1.75rem 2rem 2rem;
    position: fixed;
    right: 0;
    top: var(--site-header-height);
    z-index: 999;
  }

  body>header .menu-toggle:checked~.menu-content .menu-bar,
  body>header .menu-toggle:checked~.menu-content .menu-rhs {
    display: block;
  }

  body>header .menu-toggle:checked~.menu-content .menu-bar a {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
  }

  body>header .menu-toggle:checked~.menu-content .menu-bar li {
    margin: 0 0 0.85rem;
  }

  body>header .menu-toggle:checked~.menu-content .menu-bar ul {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs {
    margin-left: 0;
    margin-right: 0;
    margin-top: 2rem;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs a {
    align-items: center;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 52px;
    padding: 0 1.6rem;
    transition:
      background-color 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li {
    margin: 0;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(1) a {
    background-color: #0f1730;
    border: 1px solid #0f1730;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(1) a:active,
  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(1) a:focus-visible,
  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(1) a:hover {
    background-color: #0f1730;
    border-color: #0f1730;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.32),
      inset 0 0 0 2px rgba(255, 255, 255, 0.28);
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(2) a {
    background: transparent;
    border: 1px solid #cf7f30;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(2) a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #e9a965;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs ul {
    align-items: center;
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  body>header .menu-content {
    display: flex;
    flex: 0 0 auto;
    margin-right: 0.8rem;
    min-width: auto;
  }

  body>header .menu-rhs {
    display: flex;
    margin-left: 0;
    margin-right: 0;
  }

  body>header .menu-rhs ul {
    display: flex;
  }

  body>header .menu-toggle:checked~.menu-content {
    background: transparent;
    display: flex;
    padding: 0;
    position: static;
  }

  body>header .menu-toggle:checked~.menu-content .menu-bar {
    background: #ff6400;
    display: block;
    left: 0;
    padding: 1.75rem 2rem 2rem;
    position: fixed;
    right: 0;
    top: var(--site-header-height);
    z-index: 999;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs {
    display: flex;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs a {
    color: inherit;
    font-size: inherit;
    min-height: 48px;
    padding: 0 1.1rem;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li {
    margin-left: 0.7rem;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(1) a {
    background-color: #ff6400;
    border-color: #ff6400;
    color: #fff;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(1) a:hover {
    background-color: #e85b00;
    border-color: #e85b00;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(2) a {
    background: transparent;
    border: 1px solid #d5d9df;
    color: #151721;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs li:nth-child(2) a:hover {
    background-color: #f8f9fb;
    border-color: #b8c0cb;
    color: #151721;
  }

  body>header .menu-toggle:checked~.menu-content .menu-rhs ul {
    display: flex;
  }
}

/* ===== 04. Footer ===== */

body>footer {
  align-items: flex-start;
  background-color: #444;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-size: smaller;
  margin-top: 6em;
  padding: 2em;
  clear: both;
}

body>footer a {
  color: #ff6400;
  text-decoration: none;
}

body>footer .imprint {
  flex: 1;
  min-width: 200px;
  padding-left: 1.5em;
}

body>footer img {
  flex-shrink: 0;
}

body>footer nav {
  margin-top: 2rem;
  text-align: center;
}

body>footer nav a,
body>footer span {
  padding: 0 1em;
}

@media (max-width: 640px) {
  body>footer {
    align-items: center;
    flex-direction: column;
  }

  body>footer .imprint {
    padding-left: 0;
  }
}

/* ===== Help Page ===== */

body.help article>p:first-child {
  background-color: #b11306;
  box-sizing: border-box;
  border-bottom-right-radius: 1rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 26px;
  max-width: 780px;
  padding: 20px 24px;
}

body.help article>p:first-child strong {
  font-size: 1.3em;
}

body.help article>ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  max-width: 780px;
  padding: 0;
}

body.help article>ul li {
  background: #fff;
  border-left: 6px solid #ff6400;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  min-width: 0;
  padding: 18px 22px;
}

body.help article>ul strong {
  color: #0f1730;
}

/* ===== 05. News Content ===== */

body.news hgroup,
body.news article {
  max-width: 72ch;
}

/* ===== 06. Pagination ===== */

.news-pagination {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.pager-arrow {
  align-items: center;
  color: #1e2330;
  display: inline-flex;
  font-size: 1.75rem;
  height: 1.65rem;
  justify-content: center;
  line-height: 1;
  width: 1.65rem;
}

.pager-arrow:hover,
.pager-edge:hover,
.pager-number:hover {
  text-decoration: none;
}

.pager-edge {
  align-items: center;
  background: #ff6400;
  border-radius: 0.3rem;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.13);
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  height: 1.86rem;
  justify-content: center;
  min-width: 1.86rem;
  padding: 0 0.6rem;
}

.pager-ellipsis {
  color: #121826;
  letter-spacing: 0.01em;
  padding: 0 0.12rem;
}

.pager-number {
  align-items: center;
  color: #121826;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 500;
  height: 1.86rem;
  justify-content: center;
  min-width: 1.86rem;
  text-decoration: none;
}

.pager-number.is-active {
  background: #121826;
  border-radius: 0.16rem;
  color: #ffffff;
}

.pager-numbers {
  align-items: center;
  background: #ffffff;
  border-radius: 0.24rem;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12);
  display: inline-flex;
  gap: 0.08rem;
  margin: 0;
  padding: 0.18rem 0.22rem;
}

/* ===== 07. News & Actions Cards ===== */

.news-card {
  background: #fff;
  border: 1px solid #d5d9de;
  overflow: hidden;
}

.news-card:hover .news-card__title,
.news-card:focus-within .news-card__title {
  text-decoration: underline;
}

.news-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
}

.news-card__cta {
  background: var(--site-link-color);
  border: 0;
  border-radius: 9999px;
  color: #ffffff;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.news-card__date {
  color: #617287;
  font-weight: 600;
  margin-top: auto;
}

.news-card__description {
  color: #3f4f63;
  line-height: 1.5;
  margin: 0;
}

.news-card p>img {
  aspect-ratio: 1200 / 628;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.news-card p>img.image-fallback {
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, #f0f5ff 0%, #f8f1e9 100%);
}

.transparent {
  opacity: 0;
}

.news-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card__link:focus-visible .news-card__cta,
.news-card__link:hover .news-card__cta {
  background: var(--site-link-color);
  box-shadow: var(--site-cta-hover-border);
}

.news-card__meta {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
}

.news-card__meta .news-card__date {
  margin-top: 0;
}

.news-card__title {
  color: #0c2a4d;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
}

.news-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list__after-featured {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .news-card--featured .news-card__content {
    padding: 1.25rem;
  }

  .news-card--featured .news-card__link {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }
}

/* ===== 08. Team Pages ===== */

.team-grid {
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 11rem));
  justify-content: start;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.team-grid li {
  display: flex;
  flex-direction: column;
}

.team-grid li:hover h3,
.team-grid li:focus-within h3 {
  text-decoration: underline;
}

.team-grid li h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.team-grid li img {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  display: block;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.team-grid li p {
  color: #555;
  line-height: 1.4;
  margin: 0;
}

.team-grid li a {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  text-decoration: none;
}

.team-member {
  display: grid;
  gap: 1.5rem;
}

.team-member .header {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
}

.team-member .header p {
  margin: 0 0 .3rem 0;
  padding: 0;
}

.team-member .details {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

article.team-member .bio {
  max-width: 72ch;
}

.team-member .colleagues {
  margin: 0;
}

.team-member .colleagues img {
  border-radius: 9999px;
  display: block;
  height: 3rem;
  object-fit: cover;
  object-position: top;
  width: 3rem;
}

.team-member .colleagues a {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-weight: 600;
  gap: 0.75rem;
  text-decoration: none;
}

.team-member .colleagues a:hover span,
.team-member .colleagues a:focus-visible span {
  text-decoration: underline;
}

.team-member .details ul {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-member li.icons a {
  color: #4b5563;
  flex-shrink: 0;
  height: 2rem;
  width: 2rem;
}

.team-member li.icons svg {
  display: block;
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.team-member li.icons a.facebook svg {
  transform: scale(1.1);
  transform-origin: center;
}

.team-member img {
  border-radius: 0.5rem;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.team-member li.icons {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.team-member li.icons a {
  align-items: center;
  border-radius: 9999px;
  display: inline-flex;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 2.5rem;
  text-decoration: none;
}

@media (max-width: 700px) {
  .team-member details {
    grid-template-columns: 1fr;
  }

  .team-member .header {
    grid-template-columns: 1fr;
  }

  .team-member img {
    max-width: 16rem;
  }
}

/* ===== 09. Home Page ===== */

.home main>section>p img {
  max-width: 33%;
  height: auto;
}

.do-better {
  display: grid;
  column-gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.do-better>h2,
.do-better>.summary {
  grid-column: 1 / -1;
}

.do-better>.summary {
  padding-top: 1rem;
}

.do-better>.card {
  border: 1px solid #d1d5db;
  box-sizing: border-box;
  margin: 0;
  padding: 1rem;
}

.do-better>.card>h3 {
  color: #0c2a4d;
  margin: 0 0 0.75rem;
}

.do-better>.card>h3.labour,
.do-better>.card>h3.conservatives,
.do-better>.card>h3.reform {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.do-better>.card>h3.labour::before,
.do-better>.card>h3.conservatives::before,
.do-better>.card>h3.reform::before {
  content: "";
  flex: 0 0 1.5rem;
  height: 1.5rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.do-better>.card>h3.labour::before {
  background-image: url("/ui/icon/award.svg");
}

.do-better>.card>h3.conservatives::before {
  background-image: url("/ui/icon/award-conservatives.svg");
}

.do-better>.card>h3.reform::before {
  background-image: url("/ui/icon/award-conservatives.svg");
}

.do-better>.summary>p::before {
  background-image: url("/ui/icon/orange.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  float: left;
  height: 3rem;
  margin-left: -2rem;
  margin-bottom: 0.5rem;
  position: relative;
  left: 0.8rem;
  top: -0.4rem;
  width: 5rem;
}

.do-better>.summary>p {
  padding-left: 3rem;
  font-style: normal !important;
}

.do-better>.card>p {
  line-height: 1.4;
  margin: 0;
  font-style: normal !important;
}

@media (max-width: 900px) {
  .do-better {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .do-better {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== 10. Utility States ===== */

.error-message,
main .message,
body.error main {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 60vh;
  min-height: 60dvh;
  padding: 1rem;
}

.error-message>div,
main .message>div,
body.error main>p {
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.error-message pagefind-searchbox {
  margin-top: 3em;
  margin-bottom: 3em;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0.6rem;
  padding: 0;
}

p.contents {
  margin: 0 0.6rem;
  text-align: center;
}

p.contents a {
  background: var(--site-link-color);
  border-radius: 9999px;
  color: #ffffff;
  display: inline-block;
  line-height: 1;
  margin: 0 0.5rem 0.5rem 0;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
}

.cards>li {
  border: 1px solid #d5d9de;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  scroll-margin-top: calc(var(--site-header-height) + 1rem);
}

.cards>li.featured {
  grid-column: 1 / -1;
}

.cards>li.campaign {
  grid-column: 1 / -1;
}

.cards div {
  display: none;
}

.cards>li.open div {
  display: block;
}

.cards>li.open>div {
  background-color: #fff6f0;
}

.cards h1 {
  color: #0c2a4d;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 1rem 1rem 0;
}

.cards h1 a {
  color: inherit;
  text-decoration: none;
}

.cards h1+p {
  margin-top: 1rem;
}

.cards p {
  color: #2f3c4e;
  line-height: 1.4;
  margin: 1rem;
}

.cards>li>p:first-of-type {
  position: relative;
  margin: 0;
}

.cards>li>p:first-of-type span {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #000;
  color: #fff;
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  font-style: normal;
  border-bottom-right-radius: 0.25rem;
}

.cards>li>p:first-of-type img {
  aspect-ratio: 1200 / 628;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.cards>li>p:last-of-type {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.home .cards>li>p:last-of-type {
  justify-content: flex-end;
}

.cards>li>p:last-of-type span {
  color: #617287;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  margin-right: auto;
  text-align: left;
}

.cards>li>p:last-of-type span:empty {
  display: none;
}

.cards>li>p:last-of-type span:empty+a,
.cards>li>p:last-of-type span:empty+button {
  margin-left: auto;
}

.cards>li>p:last-of-type a,
.cards>li>p:last-of-type button,
.cards .card-actions button {
  background: var(--site-link-color);
  border-radius: 9999px;
  color: #ffffff;
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
}

.cards>li>p:last-of-type button,
.cards .card-actions button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  margin: 0;
}

.cards>li.open>p:last-of-type>button {
  display: none;
}

.cards>li>p:last-of-type a:focus-visible,
.cards>li>p:last-of-type a:hover,
.cards>li>p:last-of-type button:focus-visible,
.cards>li>p:last-of-type button:hover,
.cards .card-actions button:focus-visible,
.cards .card-actions button:hover {
  background: var(--site-link-color);
  box-shadow: var(--site-cta-hover-border);
}

.cards .card-actions {
  display: flex;
  justify-content: flex-end;
}

.cards .card-actions button {
  background: #e6edf4;
  color: #0c2a4d;
}

.cards .card-actions button:focus-visible,
.cards .card-actions button:hover {
  background: #d5dfe9;
}

.cards.cta>li>p:last-of-type {
  justify-content: center;
}

.cards>li.campaign>p:last-of-type {
  justify-content: flex-end;
}

.instagram-links {
  align-items: center;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  list-style: none;
  padding: 0 1rem 1rem 1rem;
}

.instagram-links>li {
  margin-inline: -0.375rem;
  min-width: 0;
  position: relative;
}

.instagram-links>li:nth-child(odd) {
  z-index: 1;
}

.instagram-links>li:hover,
.instagram-links>li:focus-within {
  z-index: 2;
}

.instagram-links a {
  background: #fff;
  border: 1px solid var(--site-border-color);
  box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
  display: block;
  padding: 0.5rem 0.5rem 1.75rem;
  transform: rotate(-1.5deg);
}

.instagram-links>li:nth-child(even) a {
  transform: rotate(1.5deg);
}

.instagram-links img {
  display: block;
  height: auto;
  width: 100%;
}

.instagram-links a:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 4px;
}

@media (min-width: 941px) {
  .home .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cards>li.featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .cards>li.featured>p:first-of-type {
    grid-column: 1;
    grid-row: 1 / 4;
    height: 100%;
  }

  .cards>li.featured>p:first-of-type img {
    aspect-ratio: auto;
    width: 100%;
  }

  .cards>li.featured>h1 {
    grid-column: 2;
    margin: 1.5rem 1.5rem 0;
  }

  .cards>li.featured>h1+p {
    grid-column: 2;
    margin: 1rem 1.5rem 1rem;
  }

  .cards>li.featured>p:last-of-type {
    grid-column: 2;
    margin: 0 1.5rem 1.25rem;
  }

  .cards>li.campaign {
    display: grid;
    grid-template-columns: 45% minmax(0, 1fr);
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      "image headline"
      "image summary"
      "image action"
      "details details";
  }

  .cards>li.campaign>p:first-of-type {
    grid-area: image;
  }

  .cards>li.campaign>p:first-of-type img {
    aspect-ratio: auto;
    width: 100%;
  }

  .cards>li.campaign>h1 {
    grid-area: headline;
    margin: 1.5rem 1.5rem 0;
  }

  .cards>li.campaign>h1+p {
    grid-area: summary;
    margin: 1rem 1.5rem;
  }

  .cards>li.campaign>p:last-of-type {
    grid-area: action;
    margin: 0 1.5rem 1.25rem;
  }

  .cards>li.campaign>div {
    grid-area: details;
    min-width: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .cards>li.campaign>div>div {
    min-width: 0;
    column-count: 2;
    column-gap: 2rem;
  }

  .cards>li.campaign>div p {
    margin-top: 0;
    margin-bottom: 1rem;
    break-inside: avoid-column;
  }

  .cards>li.campaign>div>.card-actions {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 940px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .instagram-links>li:nth-child(n+5) {
    display: none;
  }
}
.contacts {
  list-style: none;
  padding-left: 0;
}

.contacts>li {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.contacts>li::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  flex: 0 0 1em;
  height: 1em;
}

.contacts>li.email::before {
  background-image: url("/ui/icon/envelope.svg");
}

.contacts>li.phone::before {
  background-image: url("/ui/icon/telephone.svg");
}

.contacts>li.instagram::before {
  background-image: url("/ui/icon/instagram.svg");
}

.contacts>li.whatsapp::before {
  background-image: url("/ui/icon/whatsapp.svg");
}

.contacts>li.facebook::before {
  background-image: url("/ui/icon/facebook.svg");
}

main>section.panel1,
main>section.panel2 {
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

main>section.panel1>p,
main>section.panel2>p,
main>section.panel1>.content,
main>section.panel2>.content {
  grid-row: 1;
}

main>section.panel1>p {
  grid-column: 2;
}

main>section.panel1>.content {
  grid-column: 1;
}

main>section.panel2>p {
  grid-column: 1;
}

main>section.panel2>.content {
  grid-column: 2;
}

main>section.panel1>p,
main>section.panel2>p {
  margin: 0;
}

main>section.panel1>p img,
main>section.panel2>p img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 40rem) {
  .home .do-better>.card+.card {
    margin-top: 0.75rem;
  }

  main>section.panel1,
  main>section.panel2 {
    grid-template-columns: minmax(0, 1fr);
  }

  main>section.panel1>p,
  main>section.panel2>p,
  main>section.panel1>.content,
  main>section.panel2>.content {
    grid-column: 1;
    grid-row: auto;
  }
}

body.home main>section.wash {
  background-color: #fff7ec;
  padding: 1rem 1rem 1rem 1rem;
  margin-bottom: 1rem;
}

body.home main>section.border {
  border: 1px solid #eedbc9;
  padding: 0 1rem 1rem 1rem;
  margin-bottom: 1rem;
}

body.home main>section.proud {
  color: #fff;
  background-color: #14283e;
  padding: 2rem;
  border-top: 5px solid #f47721;
  border-bottom: 5px solid #f47721;
}

main>section.libby {
  background-color: #ffe4c5;
  position: relative;
  isolation: isolate;
  padding: 1rem 1rem 1rem 1rem;
}

main>section.libby::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/ui/icon/orange.svg") center / 100% auto no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

body.home footer {
  margin-top: 0;
}

body.home>main {
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.home main>p:first-of-type {
  margin-bottom: 1rem;
}

body.home>main>h1 {
  margin: 0.5rem 0 0 0;
  padding: 0;
}

.helpme main>section.wash {
  background-color: #fff7ec;
  padding: 1rem 1rem 1rem 1rem;
  margin-bottom: 1rem;
}

.helpme main>section.proud {
  color: #fff;
  background-color: #14283e;
  padding: 2rem;
  border-top: 5px solid #f47721;
  border-bottom: 5px solid #f47721;
}

.helpme main>section.proud img {
  height: 500px;
  width: auto;
}

.helpme main>section.proud>.content {
  align-self: center;
  padding-right: 3rem;
}
