/* ================================================================
   pages/qna.css — Q&A page only.
   Page rhythm:
     PAGE HEADER · 山群 mountain range at bottom-right
       → ACCORDION (10 Q/A · native <details>)
       → STILL ASKING · 夜市 night-market illustration + Contact CTA
   ----------------------------------------------------------------
   Layout primitives (.section, .page-header base, .breadcrumb, .kicker,
   .deck, .page-header h1) live in components.css. This file only carries
   qna-specific overrides + qna-only components.
   Taiwan element budget: 山群 (header) · 夜市 (still-asking).
   ================================================================ */


/* ============ PAGE HEADER · qna-specific overrides only ============ */

.qna-header {
  background:
    /* warm peach radial top-centre — suggests rising warmth */
    radial-gradient(ellipse at 70% 110%, rgba(245,196,160,0.20), transparent 55%),
    linear-gradient(180deg, var(--cream-deep) 0%, #ecd6b5 100%);
}
.qna-header .header-text { max-width: 760px; }


/* ============ 山群 (header accent) ============
   Hand-drawn 3-layer Taiwan central mountain range — distinct from
   lessons' thin mountains-horizon silhouette. Sits bottom-right of
   the header at full visibility. */

.tw-mountains-2 {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 280px;
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 1100px) { .tw-mountains-2 { width: 220px; right: 2%; } }
@media (max-width: 880px)  { .tw-mountains-2 { width: 180px; opacity: 0.75; } }
@media (max-width: 560px)  { .tw-mountains-2 { display: none; } }

.tw-mountains-2 .mt-sky    { fill: transparent; }
.tw-mountains-2 .mt-sun    { fill: var(--hero-2); opacity: 0.75; }
.tw-mountains-2 .mt-range  { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.tw-mountains-2 .mt-back   { fill: var(--cream-deep); }
.tw-mountains-2 .mt-mid    { fill: var(--accent-2); opacity: 0.55; }
.tw-mountains-2 .mt-front  { fill: var(--banner-dark); }
.tw-mountains-2 .mt-snow   { fill: var(--cream); stroke: var(--ink); stroke-width: 0.6; }
.tw-mountains-2 .mt-bird path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.55;
}
.tw-mountains-2 .mt-texture line {
  stroke: var(--cream);
  stroke-width: 0.8;
  stroke-linecap: round;
  opacity: 0.4;
}


/* ============ QNA LIST · flat accordion ============ */

.qna-list {
  max-width: 820px;
}

.qna-item {
  border-bottom: 1px solid var(--cream-deep);
}
.qna-list .qna-item:first-of-type {
  border-top: 1px solid var(--cream-deep);
}

.qna-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  transition: color var(--t-fast) var(--ease-soft);
}
.qna-item summary::-webkit-details-marker { display: none; }
.qna-item summary::marker { content: ""; }

.qna-item summary:hover { color: var(--accent-deep); }
.qna-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

/* +/− indicator at right */
.qna-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background-image:
    linear-gradient(to right, var(--ink), var(--ink)),
    linear-gradient(to right, var(--ink), var(--ink));
  background-size: 100% 2px, 2px 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--t-base) var(--ease-soft);
}
.qna-item[open] summary::after {
  background-size: 100% 2px, 0 100%;
  transform: rotate(180deg);
}

.qna-item[open] summary { color: var(--accent-deep); }

.qna-answer {
  padding: 0 0 24px;
  max-width: 720px;
}
.qna-answer p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}


/* ============ STILL ASKING · compact CTA section with 飯糰 ============
   Light cream-deep panel, NOT a dramatic dark block. Q&A page closes
   with a friendly food-icon + 2 buttons. Different visual treatment
   from home/lessons/about end CTAs. */

.qna-still {
  background: linear-gradient(135deg, var(--cream-deep) 0%, #ecd6b5 100%);
  border-radius: var(--r-xl);
  padding: 48px 50px;
  margin: 20px auto 80px;
  max-width: 1000px;
  width: calc(100% - 2 * var(--container-pad));
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 720px) {
  .qna-still {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 28px;
    gap: 20px;
  }
}

.qna-still-text {
  text-align: left;
}
@media (max-width: 720px) {
  .qna-still-text { text-align: center; }
}

.qna-still-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.8vw + 1rem, 2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.qna-still-text p {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 480px;
}
@media (max-width: 720px) { .qna-still-text p { margin-left: auto; margin-right: auto; } }

.qna-still-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


/* ============ 夜市 (CTA accent) ============
   Hand-drawn night-market scene: lantern string, 3 striped awnings,
   centre stall with 夜市 sign + rising steam, bowl with chopsticks
   and a skewer (串) for visual texture. */

.tw-nightmarket {
  width: 100%;
  max-width: 240px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 6px 14px rgba(42,36,56,0.12));
}
@media (max-width: 720px) { .tw-nightmarket { max-width: 200px; } }

/* Lantern string + lanterns */
.tw-nightmarket .nm-string {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.55;
}
.tw-nightmarket .nm-lantern ellipse {
  fill: var(--accent-deep);
  stroke: var(--ink);
  stroke-width: 1.2;
}
.tw-nightmarket .nm-lantern-thread path {
  fill: none;
  stroke: var(--cream);
  stroke-width: 0.7;
  opacity: 0.6;
}
.tw-nightmarket .nm-lantern-tassel line {
  stroke: var(--hero-2);
  stroke-width: 1.2;
  stroke-linecap: round;
}

/* Steam wisps from centre stall */
.tw-nightmarket .nm-steam-w {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0;
  animation: nm-steam-rise 4.5s ease-in-out infinite;
}
.tw-nightmarket .nm-steam-w.s2 { animation-delay: 1.6s; }
@keyframes nm-steam-rise {
  0%   { opacity: 0; transform: translateY(8px); }
  30%  { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .tw-nightmarket .nm-steam-w { animation: none; opacity: 0.35; transform: none; }
}

/* Awnings (striped tents) */
.tw-nightmarket .nm-awning-body {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.tw-nightmarket .nm-awning-center { fill: var(--accent-2); }
.tw-nightmarket .nm-stripe {
  stroke: var(--cream);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.7;
}

/* Stall counters */
.tw-nightmarket .nm-counter rect {
  fill: var(--cream-deep);
  stroke: var(--ink);
  stroke-width: 1.2;
}

/* Centre sign */
.tw-nightmarket .nm-sign {
  fill: var(--banner-dark);
  stroke: var(--ink);
  stroke-width: 1;
}
.tw-nightmarket .nm-sign-han {
  font-family: var(--font-han);
  font-size: 11px;
  font-weight: 900;
  fill: var(--cream);
  letter-spacing: 0.08em;
}

/* Food items */
.tw-nightmarket .nm-bowl {
  fill: var(--cream);
  stroke: var(--ink);
  stroke-width: 1.2;
}
.tw-nightmarket .nm-chopstick {
  stroke: var(--accent-deep);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.tw-nightmarket .nm-skewer-stick {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
}
.tw-nightmarket .nm-skewer-ball {
  fill: var(--pearl);
  stroke: var(--ink);
  stroke-width: 0.8;
}

/* Ground line */
.tw-nightmarket .nm-ground {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.4;
}
