.faq-page {
  color: #214e64;
  background: #fff;
}

.faq-content {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.faq-page .sub-hero {
  isolation: isolate;
  background: linear-gradient(112deg, #f3fbfd, #f9fdff 54%, #e3f4f9);
}

html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: auto;
  left: -90px;
  width: 500px;
  height: 428px;
  background: url("../img/logo/logo-beside_blue.svg") left top / 1500px auto no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: .11;
  pointer-events: none;
}

html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual)::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 91% 46%, transparent 0 211px, rgba(38, 155, 194, .2) 212px 213px, transparent 214px 267px, rgba(38, 155, 194, .12) 268px 269px, transparent 270px),
    radial-gradient(circle at 91% 46%, rgba(166, 224, 239, .13), transparent 280px) !important;
  pointer-events: none;
}

html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual) .lower-hero-grid {
  z-index: 3;
}

html body:has(.sub-main) .faq-page .sub-hero .sub-title {
  color: #0a536f;
  text-shadow: none;
}

html body:has(.sub-main) .faq-page .sub-hero .sub-breadcrumb a {
  color: #285d73;
  text-shadow: none;
}

.faq-page .sub-lead {
  max-width: 44rem;
}

@media (min-width: 1024px) {
  html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual),
  html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual) .lower-hero-grid {
    min-height: 416px !important;
  }

  html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual) .lower-hero-grid {
    padding: 32px 0 !important;
  }

  html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual) .lower-hero-visual {
    height: 312px;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual) .lower-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  }
}

@media (max-width: 760px) {
  .faq-page .sub-hero {
    padding-top: 1.3rem;
    padding-bottom: 1.7rem;
  }

  html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual)::before {
    top: 19rem;
    right: -190px;
    left: auto;
    width: 300px;
    height: 262px;
    background-size: 905px auto;
    opacity: .1;
  }

  html body:has(.sub-main) .faq-page .sub-hero:has(.lower-hero-visual)::after {
    background: radial-gradient(circle at 100% 0, transparent 0 139px, rgba(38, 155, 194, .17) 140px 141px, transparent 142px 189px, rgba(38, 155, 194, .1) 190px 191px, transparent 192px) !important;
  }
}

.faq-content {
  padding-block: clamp(24px, 3vw, 38px) 80px;
}

.faq-content__lead {
  margin: 0 0 28px;
  color: #416577;
  font-size: .95rem;
  line-height: 1.8;
}

.faq-finder {
  padding: 20px clamp(20px, 3vw, 38px);
  border: 1px solid #d7eaf1;
  background: #f7fbfd;
}

.faq-finder label {
  display: block;
  margin-bottom: 12px;
  color: #145c7b;
  font-size: 1rem;
  font-weight: 700;
}

.faq-finder__field {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
}

.faq-finder input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 17px;
  border: 1px solid #accfdf;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #214e64;
  font: inherit;
}

.faq-finder input:focus-visible,
.faq-category-nav a:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid #1e9dd3;
  outline-offset: 3px;
}

.faq-finder input::placeholder { color: #849ca8; }

.faq-finder__field button {
  padding: 9px 2px;
  border: 0;
  background: none;
  color: #087caa;
  font: inherit;
  cursor: pointer;
}

.faq-finder__field button[hidden] { display: none; }
.faq-finder > p { margin: 10px 0 0; color: #607d8d; font-size: .8rem; }

.faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}

.faq-category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #bbdce9;
  border-radius: 999px;
  background: #fff;
  color: #225b74;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}

.faq-category-nav a:hover {
  border-color: #1598cc;
  background: #eaf8fc;
}

.faq-group {
  padding-top: 42px;
  scroll-margin-top: 100px;
}

.faq-group[hidden] { display: none; }

.faq-group h2 {
  display: flex;
  align-items: baseline;
  gap: 17px;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #148fc1;
  color: #104d6b;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.4;
}

.faq-group h2 span {
  color: #1596c8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.faq-questions {
  border-top: 1px solid #e1edf2;
}

.faq-item {
  border-bottom: 1px solid #e1edf2;
}

.faq-item[hidden] { display: none; }

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 17px 8px;
  color: #1d4d65;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  flex: none;
  content: "Q";
  color: #1594c6;
  font-size: .95rem;
  font-weight: 800;
}

.faq-item summary::after {
  flex: none;
  content: "+";
  margin-left: auto;
  color: #168fbf;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: #087fac; }

.faq-answer {
  margin: 0 0 20px 26px;
  padding: 0 42px 0 0;
  color: #486a7a;
  font-size: .94rem;
  line-height: 1.9;
}

.faq-answer p { margin: 0; }
.faq-answer a { display: inline-block; margin-top: 9px; color: #087fac; text-underline-offset: 3px; }

.faq-no-results {
  margin: 36px 0;
  color: #486a7a;
  line-height: 1.8;
}

.faq-no-results[hidden] { display: none; }
.faq-no-results a { color: #087fac; }

.faq-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 78px;
  padding: 30px 0;
  border-top: 1px solid #d7eaf1;
}

.faq-bottom p {
  flex-basis: 100%;
  margin: 0;
  color: #486a7a;
  line-height: 1.75;
}

.faq-bottom a { color: #087fac; font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .faq-content { width: calc(100% - 36px); }
  .faq-content { padding-block: 26px 60px; }
  .faq-finder { padding: 17px 16px; }
  .faq-finder input { height: 48px; font-size: .88rem; }
  .faq-category-nav { gap: 8px; margin-top: 18px; }
  .faq-category-nav a { min-height: 38px; padding: 7px 12px; font-size: .76rem; }
  .faq-group { padding-top: 36px; scroll-margin-top: 72px; }
  .faq-group h2 { gap: 12px; margin-bottom: 14px; padding-bottom: 14px; }
  .faq-item summary { gap: 11px; min-height: 60px; padding: 14px 3px; font-size: .9rem; }
  .faq-answer { margin-left: 22px; padding-right: 6px; font-size: .84rem; }
  .faq-bottom { margin-top: 54px; }
}
