/* Public Q&A board (/qna). Same warm palette and type as the home page: the tokens are copied from site.css
   (body.home), but this file stands alone and uses none of its class names. Phone first, 320 px and up. */
:root {
  --bg: #f4efe9; --surface: #fffaf5; --surface-2: #eee4dc; --line: #d9c9bd; --text: #302822; --muted: #57483f; --dim: #615147;
  --accent: #874a3f; --accent-soft: #713b33; --foot: #eae0d8;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --serif: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", Batang, serif;
  color-scheme: only light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--accent-soft); }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: 16px; top: 12px; transform: translateY(-300%); z-index: 20; background: #fff; color: var(--text); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* header and footer: the home page's, reduced to the two links this page needs */
.top { position: sticky; top: 0; z-index: 10; padding-block: 10px; background: rgba(244, 239, 233, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand.small { min-height: 0; margin-right: 12px; font-size: 15px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; font-size: 15px; white-space: nowrap; }
.top nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; }
.top nav a.go { padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--surface); font-weight: 700; }
.foot { margin-top: auto; background: var(--foot); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding-block: 18px; font-size: 14px; color: var(--muted); }
.foot a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); }

main { padding-block: 32px 72px; display: flex; flex-direction: column; gap: 24px; }
.intro { display: flex; flex-direction: column; gap: 10px; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 6vw, 2.3rem); line-height: 1.35; letter-spacing: -0.015em; }
.intro p { color: var(--muted); max-width: 34em; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.fine { font-size: 13px; color: var(--dim); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 28px; border: 2px solid var(--accent-soft); border-radius: 18px; background: var(--accent); color: var(--surface); font: 700 16.5px/1.4 var(--sans); cursor: pointer; }
.btn:hover { background: var(--accent-soft); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.quiet { min-height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15.5px; }
.btn.quiet:hover { background: var(--surface-2); }
/* busy (qna.js): still focusable, so not `disabled`; the label stays readable (7:1) */
.btn[aria-disabled="true"] { background: var(--dim); border-color: var(--dim); cursor: progress; }
.btn.quiet[aria-disabled="true"] { background: var(--surface-2); border-color: var(--line); }

/* the question form opens in place */
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.ask summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font-size: 17px; font-weight: 700; border-radius: 22px; }
.ask summary::-webkit-details-marker { display: none; }
.ask summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); }
.ask[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.ask form, .ask-off { padding: 2px 20px 22px; }
.ask form { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ask label { font-size: 15px; color: var(--muted); }
.ask textarea { display: block; width: 100%; min-height: 136px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); font: 16px/1.7 var(--sans); resize: vertical; }
.ask textarea::placeholder { color: #75665c; }
.ask textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); border-radius: 14px; }
.count { margin-top: -4px; text-align: right; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { list-style: none; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.notice li { position: relative; padding-left: 12px; }
.notice li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.ask .btn { width: 100%; margin-top: 4px; }
.say { padding: 12px 16px; border-radius: 14px; border-left: 3px solid var(--line); background: var(--surface-2); font-size: 15px; line-height: 1.6; }
.say.ok { border-left-color: var(--dim); font-weight: 600; }
.say.bad { border-left-color: var(--accent); color: var(--accent-soft); }

/* the visitor's own questions, kept in this browser until they are answered */
.mine { display: flex; flex-direction: column; gap: 10px; }
.mine ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mine li { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.mine .txt { font-size: 15.5px; white-space: pre-wrap; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.mine .meta { font-size: 13.5px; color: var(--dim); }
.mine .meta a { display: inline-block; padding: 14px 8px; margin: -14px -8px; }
.mine .wait { color: var(--accent-soft); font-weight: 600; }

/* published questions and answers */
.board { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 8px; }
.state { padding: 36px 8px; text-align: center; color: var(--muted); }
.board > .btn, .more .btn { align-self: center; }
.list { display: flex; flex-direction: column; gap: 14px; }
.list:empty { display: none; }
.qa { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent-soft); }
.label .day { font-weight: 400; letter-spacing: 0; color: var(--dim); font-variant-numeric: tabular-nums; }
.label .own { padding: 0 9px; border: 1px solid var(--accent); border-radius: 999px; font-size: 12px; letter-spacing: 0; }
.qa h3 { font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: -0.01em; white-space: pre-wrap; }
.qa h3:focus { outline: none; }
.reply { margin-top: 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.reply p:last-child { font-size: 15.5px; line-height: 1.75; color: var(--muted); white-space: pre-wrap; }
.more { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.say:empty, .more .fine:empty { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); }
.tail { margin-top: 8px; text-align: center; font-size: 14.5px; color: var(--muted); }

@media (max-width: 359px) {
  .wrap { padding-inline: 16px; }
  .brand img { display: none; }
  .top nav a { padding: 0 10px; }
  .top nav a.go { padding: 0 14px; }
  .ask summary { padding-inline: 16px; }
  .ask form, .ask-off { padding-inline: 16px; }
  .qa { padding: 16px; }
}
@media (min-width: 600px) {
  main { padding-block: 48px 96px; }
  .ask .btn { width: auto; align-self: flex-start; min-width: 200px; }
  .qa { padding: 24px 26px; }
}
