/* Shared carousel controls and the two content sections in the homepage flow. */
.carousel-controls, .slide-navigation, .collection-controls, .experience-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-controls, .collection-controls { justify-content: space-between; }
.slide-navigation { gap: 8px; }
.rotation-toggle, .slide-navigation button {
  font: inherit;
  font-size: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b9c7ce;
  border-radius: 8px;
  background: transparent;
  color: #304b5b;
  white-space: nowrap;
  cursor: pointer;
}
.rotation-toggle::before { content: "Ⅱ"; display: inline-block; margin-right: 7px; font-weight: 700; }
.rotation-toggle:disabled::before { content: none; }
.rotation-toggle[data-paused="true"]::before { content: none; }
.rotation-toggle:disabled, .slide-navigation button:disabled { opacity: .45; cursor: default; }
.rotation-toggle:hover:not(:disabled), .slide-navigation button:hover:not(:disabled) { background: #768b9814; }
.hero-controls { position: relative; margin-top: 10px; z-index: 2; }
.hero-controls button, .experience-actions .rotation-toggle { color: #e1ebf1; border-color: #ffffff30; }
.hero-controls .slide-navigation { gap: 2px; }
.hero-controls .slide-navigation button { border-color: transparent; }
#hero-count { font-size: 12px; color: #c1d0da; min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.hero-photo { touch-action: pan-y pinch-zoom; }
.hero-image { animation: hero-image-enter .3s ease-out; }
@keyframes hero-image-enter { from { opacity: .45; } to { opacity: 1; } }
.home-page .destination-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b4c3cc transparent;
  padding: 5px 0 12px;
}
.destination { scroll-snap-align: start; }
.home-page .destination-grid:has(.field-empty) { grid-template-columns: minmax(0, 1fr); }
.collection-controls { margin-top: 9px; }
.collection-line .rotation-toggle { border-color: transparent; padding-right: 0; }
.experience-actions { flex-wrap: wrap; margin-top: auto; }
.experience-demo { display: grid; }
.experience-demo .feature-view { grid-area: 1 / 1; min-width: 0; }
/* Keep the tallest panel in layout; hidden/inert keeps inactive content inaccessible. */
.home-page .experience-demo .feature-view[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.home-news-section { padding: 80px 0; background: #fff; }
.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-news-card { border: 1px solid #dce4e9; border-radius: 15px; overflow: hidden; color: #152a39; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.home-news-card:hover { border-color: #9fb2bf; box-shadow: 0 12px 28px #1d394410; }
.news-visual { position: relative; aspect-ratio: 1.95; overflow: hidden; background: url('../assets/topography.svg') center / cover, linear-gradient(120deg, #142c3b, #284854); }
.news-visual img { width: 100%; height: 100%; object-fit: cover; }
.news-visual-label { position: absolute; bottom: 17px; left: 20px; padding: 5px 10px; border: 1px solid #ffffff40; background: #0c202ce0; border-radius: 5px; color: #ffe289; font-size: 12px; }
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 19px; line-height: 1.6; }
.news-body p { margin: 10px 0 22px; font-size: 13px; color: #5f7481; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #e4eaee; display: flex; gap: 12px; justify-content: space-between; font-size: 11px; color: #607580; }
.news-footer span { color: #294957; margin-left: auto; white-space: nowrap; }
.home-faq-section { padding: 75px 0 85px; border-top: 1px solid #e2e9ed; background: #f3f6f8; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-intro h2 { font-size: 34px; line-height: 1.5; }
.faq-intro .quiet-button { margin-top: 20px; }
.home-faq-list details { border-bottom: 1px solid #d4dfe6; }
.home-faq-list details:first-child { border-top: 1px solid #d4dfe6; }
.home-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; list-style: none; padding: 22px 2px; cursor: pointer; font-size: 16px; font-weight: 600; color: #203c4c; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: "+"; font-size: 23px; font-weight: 400; color: #55717f; flex-shrink: 0; }
.home-faq-list details[open] summary::after { content: "−"; }
.faq-answer { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.95; color: #506976; padding: 0 32px 23px 2px; }
.home-content-state { grid-column: 1 / -1; min-height: 180px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 30px; color: #617785; border: 1px solid #dae4eb; border-radius: 12px; background: #f5f8fa; font-size: 14px; }
.home-page summary:focus-visible { outline: 3px solid #bf930f; outline-offset: 4px; }
@media (max-width: 1000px) {
  .home-page .destination-grid { grid-auto-columns: calc((100% - 24px) / 2); }
  .faq-layout { gap: 35px; }
}
@media (max-width: 700px) {
  .home-page .destination-grid { grid-auto-columns: 88%; gap: 15px; }
  .collection-line { flex-direction: row; align-items: center; gap: 5px; }
  .collection-line p { font-size: 11px; }
  .collection-controls { gap: 8px; }
  .collection-controls .quiet-button { font-size: 11px !important; }
  .collection-controls .slide-navigation { gap: 6px; }
  .collection-controls .slide-navigation button { padding: 7px 10px; }
  .hero-controls { gap: 4px; margin-top: 6px; }
  .hero-controls button { padding: 8px 9px; font-size: 11px; }
  .hero-controls .rotation-toggle { border-color: transparent; }
  .experience-actions { gap: 12px; width: 100%; justify-content: space-between; }
  .experience-actions .home-button { flex: 0 1 auto; }
  .experience-actions .rotation-toggle { padding: 7px 9px; font-size: 11px; }
  .home-news-section, .home-faq-section { padding: 48px 0; }
  .home-news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-body { padding: 18px; }
  .news-body h3 { font-size: 18px; }
  .faq-layout { grid-template-columns: 1fr; gap: 25px; }
  .faq-intro h2 { font-size: 28px; line-height: 1.42; }
  .faq-intro .quiet-button { margin-top: 12px; }
  .home-faq-list summary { font-size: 15px; padding: 18px 2px; }
  .faq-answer { padding-right: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .hero-image { animation: none; } }

/* No standing carousel toolbar. Keep controls reachable for keyboard/assistive use. */
.home-page .hero-controls, .home-page .hero-controls .slide-navigation,
.home-page .collection-controls .slide-navigation { display: contents; }
.home-page #hero-count { display: none; }
.home-page .collection-controls { justify-content: flex-end; }
.home-page .rotation-toggle,
.home-page .hero-controls .slide-navigation button,
.home-page .collection-controls .slide-navigation button {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.home-page .rotation-toggle:focus-visible,
.home-page .hero-controls .slide-navigation button:focus-visible,
.home-page .collection-controls .slide-navigation button:focus-visible {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 1500;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  margin: 0;
  overflow: visible;
  clip-path: none;
  border: 1px solid #b7c6cf;
  background: #fff;
  color: #203c4c;
  box-shadow: 0 6px 24px #152b3929;
}
