/* ==========================================================================
   tb-answers.css (Reach W2-ANSWERS, 2026-09-27): the answer pages, the sample guide,
   the free mini-plan and Check my plan (routes/reach/answers.js).

   Loaded after tb-baekja.css (tokens) and tb-story-page.css (the shared shell: sp-head,
   sp-main, sp-title, sp-dek, sp-h2, sp-cta, sp-foot). Prefix an-. ONE gold per page at most:
   .an-gold (a form's submit) or the story shell's .sp-cta__btn; answer pages carry none (their
   door is .an-door, celadon). Serif stacks name Pretendard so Hangul never falls to a system serif.
   ========================================================================== */

.an-body { --an-serif: 'Newsreader', 'Pretendard', Georgia, 'Times New Roman', serif; }
.an-body :lang(ko), .an-hangul { word-break: keep-all; }
.an-main { padding-bottom: 24px; }

.an-crumbs { font-size: 12.5px; margin: 4px 0 6px; }
.an-crumbs a { color: var(--color-celadon-deep); text-decoration: none; }
.an-crumbs a:hover { text-decoration: underline; }

.an-q { margin-bottom: 10px; }
.an-answer {
  font-family: var(--an-serif); font-size: 19px; line-height: 1.6; color: var(--color-ink);
  margin: 0 0 20px; padding: 14px 16px; background: var(--color-base-2);
  border: 1px solid var(--color-line); border-left: 3px solid var(--color-celadon); border-radius: 12px;
}

/* the place named by the question */
.an-place {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-base);
}
.an-place__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.an-place__names b { font-family: var(--an-serif); font-size: 17px; font-weight: 600; color: var(--color-ink); }
.an-hangul { font-family: var(--font-sans); font-size: 15px; color: var(--color-ink-muted); }
.an-place__where { font-size: 12.5px; color: var(--color-ink-faint); }
.an-place__links { display: flex; gap: 14px; font-size: 13.5px; }
.an-place__links a, .an-fact__link { color: var(--color-celadon-deep); font-weight: 600; text-decoration: none; }
.an-place__links a:hover, .an-fact__link:hover { text-decoration: underline; }

/* facts */
.an-facts { list-style: none; margin: 0 0 12px; padding: 0; }
.an-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--color-line); font-size: 15px; line-height: 1.6; color: var(--color-ink); }
.an-fact:first-child { border-top: 0; }
.an-fact__t { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.an-fact__t a { color: var(--color-celadon-deep); }
.an-fact__more { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.an-fact__photo { width: 100%; max-width: 320px; height: auto; border-radius: 10px; display: block; margin: 2px 0 6px; }
.an-src { font-size: 12.5px; color: var(--color-ink-muted); text-decoration: underline; text-decoration-color: var(--color-line-strong); }
.an-src:hover { color: var(--color-celadon-deep); }
.an-checked {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--color-celadon-soft); color: var(--color-celadon-deep); white-space: nowrap;
}
.an-day__label { font-size: 13.5px; color: var(--color-ink); min-width: 9em; }

/* the quiet door (celadon, never gold) */
.an-doorrow { margin: 22px 0 6px; }
.an-door {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--color-celadon-deep); background: transparent; border: 1px solid var(--color-celadon); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; font-family: var(--font-sans);
}
.an-door:hover { background: var(--color-celadon-soft); }
.an-door:disabled { opacity: 0.6; cursor: default; }

/* Demand E06: the page charter's label and the private report link (quiet, under the door; never gold) */
.an-built { margin: 28px 0 0; font-size: 13px; color: var(--color-ink-muted); }
.an-report { margin: 6px 0 0; }
.an-report__btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--color-celadon-deep); text-decoration: underline; cursor: pointer; }
.an-report__btn:hover { color: var(--color-ink); }
/* Demand E06: E11's free first spread, only on the answer page a product class names (none today) */
.an-spread { margin: 24px 0 0; }
.an-spread img { display: block; width: 100%; height: auto; border: 1px solid var(--color-line); border-radius: 12px; }
.an-spread figcaption { margin-top: 8px; font-size: 14px; }
.an-spread figcaption a { color: var(--color-celadon-deep); font-weight: 600; text-decoration: none; }
/* Demand E16: the logistics shelf (paid and free options, lowest price first; quiet, never gold) */
.an-shelf { margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-base-2); }
.an-shelf .sp-h2 { margin-top: 0; }
.an-shelf__head { margin: 0 0 10px; font-size: 14px; color: var(--color-ink-muted); }
.an-shelf__list { list-style: none; margin: 0; padding: 0; }
.an-shelf__opt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--color-line); }
.an-shelf__opt:first-child { border-top: 0; }
.an-shelf__link { color: var(--color-celadon-deep); font-weight: 600; text-decoration: none; }
.an-shelf__link:hover { text-decoration: underline; }
.an-shelf__name { font-weight: 600; color: var(--color-ink); }
.an-shelf__paid { font-size: 12px; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--color-celadon-soft); color: var(--color-celadon-deep); }
.an-shelf__price { font-variant-numeric: tabular-nums; color: var(--color-ink); }
.an-shelf__report { margin: 8px 0 0; }

/* the one gold action of a tool page */
.an-gold {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 18px;
  font: 600 15px/1 var(--font-sans); color: var(--color-ink); background: var(--color-gold);
  border: 0; border-radius: 10px; padding: 13px 22px; cursor: pointer;
}
.an-gold:hover { background: var(--color-gold-hover); }
.an-gold:disabled { opacity: 0.7; cursor: default; }
.an-share { margin-left: auto; }

/* index */
.an-list { list-style: none; margin: 0 0 8px; padding: 0; }
.an-list li { padding: 9px 0; border-top: 1px solid var(--color-line); }
.an-list li:first-child { border-top: 0; }
.an-list a { font-family: var(--an-serif); font-size: 17px; color: var(--color-ink); text-decoration: none; }
.an-list a:hover { color: var(--color-celadon-deep); }
.an-search { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; max-width: 420px; }
.an-empty { font-family: var(--an-serif); font-style: italic; color: var(--color-ink-muted); margin: 8px 0 18px; }

/* forms */
.an-form { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.an-field { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.an-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--color-ink); margin: 8px 0 8px; }
.an-input {
  width: 100%; box-sizing: border-box; font: 400 15.5px/1.5 var(--font-sans); color: var(--color-ink);
  background: var(--color-base-2); border: 1px solid var(--color-line-strong); border-radius: 10px; padding: 10px 12px;
}
.an-input:focus { outline: 2px solid var(--color-celadon); outline-offset: 1px; border-color: var(--color-celadon); }
.an-input--date { max-width: 220px; }
.an-textarea { min-height: 150px; resize: vertical; }
.an-dates { display: flex; flex-wrap: wrap; gap: 12px; }
.an-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--color-ink-muted); flex: 1 1 150px; }
.an-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.an-chip { position: relative; display: inline-flex; cursor: pointer; }
.an-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.an-chip span {
  display: inline-block; font-size: 13.5px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--color-line-strong); color: var(--color-ink-muted); background: var(--color-base-2);
}
.an-chip.is-on span, .an-chip input:checked + span { background: var(--color-celadon-soft); border-color: var(--color-celadon); color: var(--color-celadon-deep); font-weight: 600; }
.an-chip input:focus-visible + span { outline: 2px solid var(--color-celadon); outline-offset: 2px; }
.an-err { color: var(--color-ink); background: var(--color-gold-soft); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 6px 0 0; }
.an-err[hidden], .an-note[hidden] { display: none; }
.an-note { font-size: 13.5px; line-height: 1.55; color: var(--color-ink-muted); margin: 6px 0; }
.an-note.is-bad { color: var(--color-ink); background: var(--color-gold-soft); border-radius: 8px; padding: 8px 12px; }
.an-row { display: flex; gap: 8px; flex-wrap: wrap; }
.an-row .an-input { flex: 1 1 220px; }
.an-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--color-ink-muted); margin-top: 6px; }
.an-consent input { margin-top: 3px; accent-color: var(--color-celadon-deep); }

/* days and stops (mini-plan, sample guide) */
.an-day { margin: 8px 0 18px; }
.an-day__date { display: inline-block; margin-left: 10px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--color-ink-faint); }
.an-route { display: block; width: 100%; max-width: 540px; height: auto; border-radius: 12px; border: 1px solid var(--color-line); margin: 0 0 12px; }
.an-stops { list-style: none; margin: 0; padding: 0; counter-reset: an-stop; }
.an-stop { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--color-line); }
.an-stop:first-child { border-top: 0; }
.an-stop__time { flex: 0 0 48px; font: 600 14px/1.5 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--color-celadon-deep); }
.an-stop__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.an-stop__body b { font-family: var(--an-serif); font-size: 17px; font-weight: 600; color: var(--color-ink); }
.an-walk { font-size: 12.5px; color: var(--color-ink-faint); }
.an-stop__why { margin: 4px 0 2px; font-size: 14.5px; line-height: 1.6; color: var(--color-ink-muted); }
.an-again { margin: 18px 0 0; font-size: 13.5px; }
.an-again a { color: var(--color-celadon-deep); }
.an-copy, .an-send { margin: 26px 0 0; padding-top: 6px; border-top: 1px solid var(--color-line); }

/* Before and After */
.an-ba { list-style: none; margin: 8px 0 18px; padding: 0; }
.an-ba__row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--color-line); }
.an-ba__row:first-child { border-top: 0; }
.an-ba__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-faint); margin-bottom: 4px; }
.an-ba__before s { color: var(--color-ink-muted); text-decoration-color: var(--color-ink-faint); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.an-ba__after b { display: block; font-size: 15.5px; line-height: 1.5; color: var(--color-ink); }
.an-ba__after .an-ba__label { color: var(--color-celadon-deep); }
.an-ba__why { margin: 8px 0 4px; font-size: 14px; line-height: 1.6; color: var(--color-ink-muted); }
.an-ba__why .an-ba__label { display: inline; margin-right: 4px; }

/* Prep P12-FRONTDOOR (2026-09-28): the one sentence intake, Try instead, the check page door.
   The intake box is rendered hidden and shown by tb-answers.js; its button is celadon (the form's
   Show my days stays the page's one gold). */
.an-intake { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-base-2); }
.an-intake[hidden] { display: none; }
.an-intake .an-label { margin-top: 0; }
.an-intake__text { min-height: 64px; resize: vertical; background: var(--color-base); }
.an-intake__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.an-ba__try { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--color-celadon-soft); }
.an-ba__try .an-ba__label { flex-basis: 100%; color: var(--color-celadon-deep); margin-bottom: 2px; }
.an-ba__tryname { font-family: var(--an-serif); font-size: 16px; font-weight: 600; color: var(--color-ink); }
.an-ba__try .an-walk { flex-basis: 100%; color: var(--color-ink-muted); }
.an-ba__try .an-fact__more { flex-basis: 100%; }
.an-checkdoor { margin: 18px 0 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.an-textarea--short { min-height: 84px; }

@media (max-width: 640px) {
  .an-answer { font-size: 17.5px; padding: 12px 14px; }
  .an-ba__row { grid-template-columns: 1fr; gap: 8px; }
  .an-day__label { min-width: 0; flex-basis: 100%; }
  .an-share { margin-left: 0; }
}

/* Board C07-DOOR: the names a plan check could not match, folded under the coverage line */
.an-unmatched { margin: -6px 0 16px; }
.an-unmatched > summary { cursor: pointer; width: fit-content; }
.an-unmatched .an-facts { margin-top: 6px; }
