/* FAQ page (Views/Home/Faq.cshtml): a centred banner with the search box, the topic card beside the questions grouped by
   topic, and the closing call to action. Answers are native <details>, so they open and close on click only; only the
   search needs a script (js/faq-search.js). */
body {
  background-image: none;
  background-color: #ffffff;
}
.faq-page {
  --faq-cyan: #00c2cb;
  --faq-deep: #00c2cb;
  --faq-teal-text: #0e2a38;
  --faq-navy: #0e2a38;
  --faq-muted: #5a7380;
  --faq-line: #d4eff1;
  font-size: var(--fs-body);
  line-height: 1.55;
}
/* Like the home page, this page runs 4.8rem wider than the others */
@media (min-width: 1200px) {
  .faq-page .container {
    max-width: 118.8rem;
    padding: 0 1rem;
  }
}
/* Lines break as in the design, not balanced (main.css balances titles site-wide) */
.faq-page > section :is(h1, h2, p, summary) {
  text-wrap: wrap;
}

/* ---------- Banner: breadcrumb on the left, title and lead centred on the faint grid ---------- */
.faq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: radial-gradient(ellipse 45% 60% at 50% 20%, rgba(0, 194, 203, 0.12), transparent 70%), linear-gradient(180deg, #f3fbfc 0%, #ffffff 90%);
}
.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(0, 194, 203, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 194, 203, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 70% at 50% 20%, #000 20%, transparent 75%);
}
.container.faq-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  /* The trail at the height it has on the other inner pages; the questions follow the search 4.8rem down */
  padding-top: 17.6rem;
  padding-bottom: 4.8rem;
  text-align: center;
}
.faq-hero .breadcrumb {
  align-self: flex-start;
  margin: 0;
}
.faq-hero__title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--faq-navy);
}
.faq-hero__title em {
  font-style: normal;
  color: #0e2a38;
}
.faq-hero__text {
  max-width: 64rem;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.65;
}

/* ---------- Search under the lead (js/faq-search.js shows it and filters the questions) ---------- */
.faq-page [hidden] {
  display: none !important;
}
.faq-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
  max-width: 64rem;
  margin-top: 0.8rem;
}
.faq-search__field {
  position: relative;
  width: 100%;
}
.faq-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.faq-search__icon {
  position: absolute;
  top: 50%;
  left: 2.2rem;
  display: flex;
  color: var(--faq-navy);
  transform: translateY(-50%);
  pointer-events: none;
}
.faq-search__input {
  display: block;
  width: 100%;
  height: 5.8rem;
  padding: 0 5.8rem 0 5.4rem;
  border: 1px solid rgba(0, 194, 203, 0.35);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff;
  font-family: inherit;
  font-size: var(--fs-input);
  color: var(--faq-navy);
  caret-color: var(--faq-cyan);
}
.faq-search__input::placeholder {
  color: var(--faq-muted);
  opacity: 1;
}
.faq-search__input:focus {
  border-color: var(--faq-cyan);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.14);
}
.faq-search__input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}
.faq-search__clear {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 50%;
  background: #e6f9fa;
  color: var(--faq-teal-text);
  cursor: pointer;
}
.faq-search__clear:hover,
.faq-search__clear:focus-visible {
  background: #d2f3f5;
}
.faq-search__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.faq-search__hints-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--faq-muted);
}
.faq-search__hint {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 2.2rem;
  color: var(--faq-teal-text);
  cursor: pointer;
}
.faq-search__hint:hover,
.faq-search__hint:focus-visible,
.faq-search__hint.is-active {
  border-color: var(--faq-cyan);
  background: #e6f9fa;
}

/* ---------- Questions: topic card and the groups ---------- */
.faq-body {
  border-top: 1px solid #e3eef0;
  background: #ffffff;
}
.container.faq-body__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4.8rem;
  padding-top: 6.4rem;
  padding-bottom: 9.6rem;
}
/* Stays in view while reading, below the sticky header */
.faq-nav {
  position: sticky;
  top: 8.8rem;
  flex: 0 0 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem;
  border: 1px solid var(--faq-line);
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 1.8rem 3.6rem -2.8rem rgba(14, 42, 56, 0.45);
}
.faq-nav__label {
  padding: 0.6rem 1.4rem 0.8rem;
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faq-muted);
}
.faq-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.2rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--faq-navy);
  text-decoration: none;
}
.faq-nav__link:hover,
.faq-nav__link:focus-visible {
  background: #f0fbfc;
  color: var(--faq-navy);
  text-decoration: none;
}
.faq-nav__name {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.faq-nav__name svg {
  flex: none;
  color: var(--faq-deep);
}
.faq-nav__count {
  font-size: var(--fs-label);
  font-weight: 800;
  color: var(--faq-muted);
}
/* While searching: the count of matches per topic, topics without one dimmed */
.faq-nav__link.is-match .faq-nav__count {
  color: var(--faq-teal-text);
}
.faq-nav__link.is-empty {
  opacity: 0.45;
  pointer-events: none;
}
.faq-results {
  flex: 1 1 56rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.faq-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  margin: 0;
  padding: 0 0.4rem;
  font-size: var(--fs-body);
  line-height: 2.4rem;
}
.faq-status strong {
  color: var(--faq-navy);
}
.faq-status__clear {
  margin: -0.8rem -1rem;
  padding: 0.8rem 1rem;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--faq-teal-text);
  cursor: pointer;
}
.faq-status__clear:hover,
.faq-status__clear:focus-visible {
  color: var(--faq-navy);
}
.faq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 4.8rem 3.2rem;
  border: 1px solid var(--faq-line);
  border-radius: 2rem;
  background: #f7fcfc;
  text-align: center;
}
.faq-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 1.6rem;
  background: #e6f9fa;
  color: var(--faq-navy);
}
.faq-empty__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  color: var(--faq-navy);
  overflow-wrap: anywhere;
}
.faq-empty__text {
  max-width: 48rem;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.65;
}
.faq-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem 2.4rem;
  margin-top: 0.6rem;
}
.faq-empty__clear {
  min-height: 4.4rem;
  padding: 1rem 2.2rem;
  border: 1px solid #9fe3e7;
  border-radius: 999px;
  background: #ffffff;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--faq-teal-text);
  cursor: pointer;
}
.faq-empty__clear:hover,
.faq-empty__clear:focus-visible {
  border-color: var(--faq-cyan);
  background: #f0fbfc;
}
.faq-groups {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
}
.faq-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  scroll-margin-top: 8.8rem;
}
.faq-group__title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 0.4rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.55;
  color: var(--faq-navy);
}
.faq-group__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  background: var(--faq-cyan);
  color: #ffffff;
}
.faq-q {
  padding: 1.8rem 2.2rem;
  border: 1px solid var(--faq-line);
  border-radius: 1.6rem;
  background: #ffffff;
}
/* The question with the site's chevron on the right instead of the browser's marker */
.faq-q summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--faq-navy);
}
.faq-q summary::-webkit-details-marker {
  display: none;
}
.faq-q__text {
  min-width: 0;
}
/* One line high, so it stays beside the first line of a question that wraps */
.faq-q__chevron {
  flex: none;
  display: flex;
  align-items: center;
  height: 1lh;
  color: var(--faq-deep);
  transition: transform 0.25s;
}
.faq-q[open] .faq-q__chevron {
  transform: rotate(180deg);
}
.faq-q p {
  margin: 1.2rem 0 0;
  font-size: var(--fs-body);
  line-height: 1.65;
}
.faq-q a {
  font-weight: 700;
  color: var(--faq-teal-text);
}
.faq-q a:hover,
.faq-q a:focus-visible {
  color: var(--faq-navy);
}
/* Words that match the search */
.faq-mark {
  padding: 0 0.1rem;
  border-radius: 0.3rem;
  background: #c9f1f4;
  color: inherit;
}


/* ---------- Tablet and phone ---------- */
html[lang=ja] .faq-hero__title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
  .container.faq-hero__inner {
    padding-top: 13.6rem;
  }
  /* The topic card sits above the questions and no longer sticks */
  .faq-nav {
    position: static;
    flex-basis: 100%;
  }
  .faq-group {
    scroll-margin-top: 2.4rem;
  }
  /* The card sits above the questions here: hidden while searching, so the matches follow the search box */
  .faq-page.is-searching .faq-nav {
    display: none;
  }
}
@media (max-width: 767px) {
  .container.faq-hero__inner {
    gap: 1.6rem;
    padding-top: 11.2rem;
  }
  /* Titles at the phone Home's sizes (main.css) */
  .faq-hero__title {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    letter-spacing: -0.06rem;
  }
  .faq-hero__text {
    font-size: var(--fs-body);
  }
  .faq-search {
    gap: 1.2rem;
    margin-top: 0.4rem;
  }
  .faq-search__icon {
    left: 1.8rem;
  }
  .faq-search__input {
    height: 5.2rem;
    padding: 0 5.2rem 0 4.8rem;
  }
  .faq-search__clear {
    top: 0.8rem;
    right: 0.8rem;
    width: 3.6rem;
    height: 3.6rem;
  }
  .faq-search__hint {
    min-height: 4rem;
    padding: 0.8rem 1.4rem;
  }
  .faq-empty {
    gap: 1.2rem;
    padding: 3.2rem 2rem;
  }
  .faq-empty__icon {
    width: 4.8rem;
    height: 4.8rem;
  }
  .faq-empty__icon svg {
    width: 24px;
    height: 24px;
  }
  .faq-empty__title {
    font-size: var(--fs-h2);
  }
  .faq-empty__actions {
    gap: 1rem 2rem;
  }
  .container.faq-body__grid {
    gap: 3.2rem;
    padding-top: 4.8rem;
    padding-bottom: 7.2rem;
  }
  .faq-groups {
    gap: 4rem;
  }
  .faq-group__title {
    font-size: var(--fs-h2);
  }
  .faq-q {
    padding: 1.6rem;
  }
  .faq-q summary {
    font-size: var(--fs-body);
  }
}
/* The trail stays below the corner of the header's logo, which reaches furthest at these widths */
@media (min-width: 1367px) and (max-width: 1480px) {
  .container.faq-hero__inner {
    padding-top: 20rem;
  }
}
