:root {
  color-scheme: light;
  --surface-muted: rgba(255, 255, 255, 0.7);
  --text-default: #1f2937;
  --accent-soft: rgba(15, 169, 167, 0.12);
}

body {
  scroll-behavior: smooth;
  color: var(--text-default);
  background-image: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 40%, #f7f9fc 100%);
  font-family: 'Inter', 'Noto Sans TC', 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Japanese font support */
html[lang="ja"] body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Traditional Chinese font support */
html[lang="zh-Hant"] body {
  font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Korean font support */
html[lang="ko"] body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

header {
  transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(15, 25, 46, 0.08);
}

main section {
  position: relative;
  z-index: 0;
}

main section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 55%);
  z-index: -1;
}

main section:hover::after {
  opacity: 1;
}

summary::-webkit-details-marker {
  display: none;
}

details {
  border-radius: 18px;
}

details summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

details summary .faq-icon {
  font-size: 1.5rem;
  color: #0b6078;
  transition: transform 0.2s ease;
}

details[open] {
  border-color: rgba(11, 96, 120, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.95);
}

details[open] summary .faq-icon {
  transform: rotate(45deg);
}

/* Language switcher dropdown styling */
select#language-switcher,
select#language-switcher-mobile {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2315b981' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.25rem;
}

select#language-switcher:focus,
select#language-switcher-mobile:focus {
  outline: none;
}

select#language-switcher option,
select#language-switcher-mobile option {
  background-color: white;
  color: #0f766e;
}

