/* Tailored to the homepage: quiet, readable service notes. */
.home-details {
  scroll-margin-top: 120px;
  padding: 128px 0;
  border-top: 1px solid rgba(195, 195, 195, .15);
  font-size: 14px;
  line-height: 1.85;
}

.home-details section + section {
  margin-top: 28px;
}

.home-details h2,
.home-details h3 {
  font-family: 'Catamaran', 'Noto Sans TC', sans-serif;
  font-size: inherit;
  line-height: 1.85;
  letter-spacing: .02em;
  font-weight: 500;
  color: #dedee4;
  margin: 20px 0 8px;
}

.home-details h2 {
  font-weight: 700;
  margin-top: 0;
}

.home-details p {
  margin: 0 0 10px;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: .02em;
  color: var(--color-light);
}

.home-details section > :last-child {
  margin-bottom: 0;
}

.home-details p.home-details__related {
  margin-top: 12px;
}

.home-details__link {
  color: #dedee4;
  border-bottom: 1px solid rgba(222, 222, 228, .42);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.home-details__link:hover,
.home-details__link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.home-details__disclosure {
  margin-top: 24px;
}

.home-details__disclosure summary {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: .7em;
  padding: 0 0 3px;
  border-bottom: 1px solid rgba(195, 195, 195, .38);
  color: var(--color-light);
  font: inherit;
  letter-spacing: .02em;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, border-color .2s ease;
}

.home-details__disclosure summary::-webkit-details-marker {
  display: none;
}

.home-details__disclosure summary:hover,
.home-details__disclosure summary:focus-visible {
  color: #dedee4;
  border-color: rgba(222, 222, 228, .75);
}

.home-details__disclosure summary:focus-visible {
  outline: 1px solid rgba(222, 222, 228, .65);
  outline-offset: 5px;
}

.home-details__label--open {
  display: none;
}

.home-details__mark {
  position: relative;
  width: .8em;
  height: .8em;
  flex: 0 0 .8em;
}

.home-details__mark::before,
.home-details__mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.home-details__mark::after {
  transform: translateY(-50%) rotate(90deg);
}

.home-details__disclosure[open] .home-details__label--closed {
  display: none;
}

.home-details__disclosure[open] .home-details__label--open {
  display: inline;
}

.home-details__disclosure[open] .home-details__mark::after {
  transform: translateY(-50%) rotate(0deg);
}

.home-details__content {
  padding-top: 28px;
  animation: home-details-reveal .24s ease both;
}

@keyframes home-details-reveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
  .home-details {
    padding-right: 1rem;
    padding-left: 1rem;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-details__disclosure summary,
  .home-details__mark::before,
  .home-details__mark::after {
    transition: none;
  }

  .home-details__content {
    animation: none;
  }
}
