.t24-faq {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 32px);
  margin-block-end: clamp(42px, 6vw, 80px);
  color: #154e54;
  overflow-wrap: anywhere;
}

.t24-faq__sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  min-inline-size: 0;
}

.t24-faq__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  padding-inline-start: 13px;
  min-block-size: 48px;
  border: 1px solid #b9d2c5;
  border-radius: 10px;
  background: #fff;
  color: #347662;
}

.t24-faq__search:focus-within {
  border-color: #347662;
  box-shadow: 0 0 0 2px #dcebe3;
}

.t24-faq__search > input {
  appearance: none;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #154e54;
  font: inherit;
  font-size: 1rem;
}

.t24-faq__search > input::placeholder {
  color: #547169;
  opacity: 1;
}

.t24-faq__search > input:placeholder-shown {
  grid-column: 2 / -1;
  padding-inline-end: 10px;
}

.t24-faq .t24-faq__search > input:focus-visible {
  outline: none;
}

.t24-faq__search > input::-webkit-search-cancel-button {
  display: none;
}

.t24-faq__search > button {
  appearance: none;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #347662;
  cursor: pointer;
}

.t24-faq__search > button:hover {
  background: #eaf4ee;
}

.t24-faq__nav {
  padding: 6px;
  border: 1px solid #d8e6df;
  border-radius: 12px;
  background: #f4f8f5;
}

.t24-faq__nav ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.t24-faq__nav a {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  min-block-size: 44px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #164f55;
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
}

.t24-faq__nav a:hover,
.t24-faq__nav a[aria-current="location"] {
  background: #e5f0e9;
  text-decoration: none;
}

.t24-faq__nav a[aria-current="location"] {
  box-shadow: inset 3px 0 #dcb15c;
}

.t24-faq__section:not([hidden]) ~ .t24-faq__section:not([hidden]) {
  margin-block-start: 34px;
}

.t24-faq__section h2 {
  scroll-margin-top: 18px;
  margin: 0 0 14px;
  color: #154e54;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 700;
}

.t24-faq__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.t24-faq__row + .t24-faq__row {
  margin-block-start: 12px;
}

.t24-faq__row:has(> details[open]) {
  align-items: start;
}

.t24-faq[data-searching] .t24-faq__section:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.t24-faq[data-searching] .t24-faq__section:has(details[open]:not([hidden])) {
  align-items: start;
}

.t24-faq[data-searching] .t24-faq__section h2 {
  grid-column: 1 / -1;
  margin-block-end: 2px;
}

.t24-faq[data-searching] .t24-faq__row {
  display: contents;
}

.t24-faq__status:not(:empty) {
  padding: 18px;
  border: 1px solid #d8e6df;
  border-radius: 10px;
  background: #f4f8f5;
  color: #335c59;
}

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

.t24-faq__question {
  min-inline-size: 0;
  border: 1px solid #d8e6df;
  border-radius: 10px;
  background: #fff;
}

.t24-faq__question[open] {
  border-color: #aacbbc;
}

.t24-faq__question summary {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-block-size: 94px;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.375;
  list-style: none;
  cursor: pointer;
}

.t24-faq__question:not([open]) summary {
  block-size: 100%;
}

.t24-faq__question summary::-webkit-details-marker {
  display: none;
}

.t24-faq__question summary::after {
  content: '';
  flex: 0 0 auto;
  inline-size: 9px;
  block-size: 9px;
  margin-inline-end: 3px;
  margin-block-start: -4px;
  border: solid #347662;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.t24-faq__question[open] summary,
.t24-faq__question summary:hover {
  background: #f0f6f2;
}

.t24-faq__question[open] summary {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.t24-faq__question[open] summary::after {
  margin-block-start: 4px;
  transform: rotate(225deg);
}

.t24-faq .t24-faq__nav a:focus-visible,
.t24-faq .t24-faq__question summary:focus-visible {
  outline: 2px solid #347662;
  outline-offset: -3px;
}

.t24-faq__answer {
  padding: 13px 15px 15px;
  border-top: 1px solid #dce9e2;
  color: #335c59;
  font-size: .9375rem;
  line-height: 1.55;
}

.t24-faq__answer > :last-child {
  margin-block-end: 0;
}

.t24-faq__answer img {
  max-inline-size: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .t24-faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .t24-faq__sidebar {
    display: contents;
  }

  .t24-faq__search {
    position: sticky;
    top: 8px;
    z-index: 2;
    box-shadow: 0 -9px 0 #fff;
  }

  .t24-faq__search:focus-within {
    box-shadow: 0 0 0 2px #dcebe3, 0 -9px 0 #fff;
  }

  .t24-faq:has(.t24-faq__search:not([hidden])) .t24-faq__section h2 {
    scroll-margin-top: 68px;
  }

  .t24-faq__nav ul {
    display: flex;
    flex-wrap: wrap;
  }

  .t24-faq__nav li {
    flex: 1 1 150px;
    min-inline-size: 0;
  }
}

@media (max-width: 600px) {
  .t24-faq__row,
  .t24-faq[data-searching] .t24-faq__section:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }

  .t24-faq__question summary {
    min-block-size: 84px;
    padding-block: 11px;
    font-size: .9375rem;
  }
}
