/* 백일장 — 앱 공통 스타일 (원고지 격자는 manuscript.css) */

:root {
  color-scheme: light dark;
  --paper: #f6f1e7;
  --card: #fbf8f1;
  --ink: #1c1a17;
  --ink-soft: #5f584e;
  --line: #d8cfbd;
  --seal: #b3261e;
  --seal-strong: #8f1d17;
  --on-seal: #fffaf3;
  --ok: #2f6b3f;
  --shadow: 0 1px 2px rgb(60 45 20 / 8%), 0 6px 18px rgb(60 45 20 / 6%);
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --sans: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1917;
    --card: #25221f;
    --ink: #ece6da;
    --ink-soft: #a9a195;
    --line: #3d3832;
    --seal: #e2594f;
    --seal-strong: #ee7068;
    --on-seal: #1b1917;
    --ok: #7fbf8f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--seal);
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── 머리말 ─────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 16px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav a,
.link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--seal);
}

.link-btn:hover,
.nav a:hover {
  color: var(--seal);
}

.user-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  font-size: 0.9rem;
}

.user-name {
  font-weight: 600;
}

.user-title {
  padding: 1px 8px;
  border: 1px solid var(--seal);
  border-radius: 999px;
  color: var(--seal);
  font-family: var(--serif);
  font-size: 0.8rem;
}

.user-points,
.user-streak {
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ── 본문 틀 ────────────────────────────── */
.main {
  flex: 1;
  width: 100%;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.main > * {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.main > .vote-panel {
  max-width: 960px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ── 글자 ───────────────────────────────── */
.page-title,
.section-title,
.card-title {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
}

.page-title {
  font-size: 1.7rem;
  text-align: center;
}

.section-title {
  font-size: 1.15rem;
}

.card-title {
  font-size: 1.05rem;
}

.eyebrow {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.eyebrow + .page-title {
  margin-top: -20px;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

.visually-hidden {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ── 버튼 ───────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-primary {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--on-seal);
}

.btn-primary:hover {
  background: var(--seal-strong);
  border-color: var(--seal-strong);
  color: var(--on-seal);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-quiet {
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
  cursor: pointer;
}

.link-quiet:hover {
  opacity: 1;
  color: var(--seal);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ── 카드 · 상태 ────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.card-foot {
  font-size: 0.95rem;
}

.card-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-soft);
}

.state-error {
  color: var(--ink);
}

.winner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.winner-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.winner-card {
  border-color: var(--seal);
}

.byline {
  font-family: var(--serif);
  font-weight: 700;
}

.seal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--seal);
  color: var(--on-seal);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
}

/* ── 오늘의 낱말 ────────────────────────── */
.keyword-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.seal-word {
  padding: 0.12em 0.3em;
  border: 3px solid var(--seal);
  border-radius: 8px;
  color: var(--seal);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  transform: rotate(-1.5deg);
}

.rule-line {
  max-width: 30em;
}

.countdown {
  color: var(--ink-soft);
}

.countdown-time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── 쓰기 ───────────────────────────────── */
.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.stat {
  color: var(--ink-soft);
}

.stat.is-ok {
  color: var(--ok);
  font-weight: 600;
}

.stat.is-bad {
  color: var(--seal);
  font-weight: 600;
}

.field-msg {
  min-height: 1.65em;
  color: var(--seal);
  font-size: 0.95rem;
}

/* ── 투표 ───────────────────────────────── */
.vote-count {
  text-align: center;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.vote-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .vote-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: none;
  }
}

.vote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vote-card .link-quiet {
  align-self: flex-end;
}

.vote-card.is-picked {
  border-color: var(--seal);
  box-shadow: 0 0 0 2px var(--seal);
}

.pick-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
}

.pick.is-reading .pick-progress {
  opacity: 0.8;
  animation: read-fill linear forwards;
}

@keyframes read-fill {
  to {
    transform: scaleX(1);
  }
}

.earned {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--seal);
  color: var(--on-seal);
  font-weight: 700;
  animation: pop 0.25s ease-out;
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.my-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ── 로그인 ─────────────────────────────── */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 46px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font: inherit;
  font-family: var(--serif);
  font-size: 1.05rem;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--seal);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.input:focus-visible {
  outline-offset: 0;
  border-color: var(--seal);
}

.hint {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ── 결과 목록 ──────────────────────────── */
.rank-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.rank-list li {
  border-bottom: 1px solid var(--line);
}

.rank-row {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 4px;
  text-decoration: none;
}

.rank-num {
  font-family: var(--serif);
  font-weight: 700;
}

.rank-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rank-nick {
  font-weight: 600;
}

.rank-excerpt {
  color: var(--ink-soft);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-record {
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rank-num.is-pending {
  color: var(--ink-soft);
  font-weight: 600;
}

.rank-num.is-top {
  color: var(--seal);
}

/* ── 오늘의 할 일 ───────────────────────── */
.todo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.todo-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.todo-step {
  width: 100%;
  height: 100%;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.todo-num {
  width: 1.7em;
  height: 1.7em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
}

.todo-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.todo-state {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.todo-step.is-now {
  border-color: var(--seal);
  box-shadow: inset 0 0 0 1px var(--seal);
}

.todo-step.is-now .todo-num {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--on-seal);
}

.todo-step.is-now .todo-state {
  color: var(--seal);
  font-weight: 600;
}

.todo-step.is-done .todo-num {
  border-color: var(--ok);
  color: var(--ok);
}

.todo-step.is-done .todo-state {
  color: var(--ok);
}

.todo-step.is-wait {
  background: none;
  border-style: dashed;
}

.todo-step.is-wait .todo-label {
  color: var(--ink-soft);
}

/* ── 심사 · 발표 구역 ───────────────────── */
.block-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.block-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.judge > .judged,
.judge > .notice {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.notice {
  padding: 20px 16px;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.judged {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--seal);
  color: var(--on-seal);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.fold summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

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

.place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.place.is-winner {
  border-color: var(--seal);
}

.place-label {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.place-rank {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.place-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.place-cheer {
  color: var(--seal);
  font-weight: 700;
}

.place a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.insight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.insight-title {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.insight-hit {
  color: var(--seal);
  font-weight: 600;
}

.today-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ── 내 문집 ────────────────────────────── */
.tiles {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 520px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tile dd {
  margin: 0;
}

.tile-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.tile-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.tile.is-seal .tile-value {
  color: var(--seal);
}

.tile-sub {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.my-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 4px;
  text-decoration: none;
}

.my-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.my-row-place {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* ── 먹 순위 ────────────────────────────── */
.board-row {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 4px;
}

.board-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
}

.board-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.board-points {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.board .is-me {
  background: var(--card);
  box-shadow: inset 3px 0 0 var(--seal);
}

.board .is-me .board-row {
  padding-left: 10px;
}

.board-me {
  padding: 12px;
  border: 1px solid var(--seal);
  border-radius: var(--radius);
  text-align: center;
}

/* ── 좁은 화면 머리말 ───────────────────── */
@media (max-width: 560px) {
  .header-inner {
    gap: 0 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-right: 0;
  }

  .user-area {
    margin-left: auto;
    justify-content: flex-end;
  }
}

/* ── 확인 창 · 토스트 ───────────────────── */
.dialog {
  width: min(92vw, 360px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgb(20 15 10 / 45%);
}

.dialog-text {
  font-size: 1.05rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}

.toast {
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── 처음 안내(#/welcome) ───────────────── */
.onb {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.main > .onb.is-wide {
  max-width: 960px;
}

.onb-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.onb-head .eyebrow {
  margin: 0;
  font-weight: 400;
}

.onb-dots {
  display: flex;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.onb-dot {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.onb-dot span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  transition: background-color 0.15s, transform 0.15s;
}

.onb-dot.is-done span {
  background: var(--ink-soft);
}

.onb-dot[aria-current="step"] span {
  background: var(--seal);
  border-color: var(--seal);
  transform: scale(1.4);
}

.onb-count {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.onb-title {
  text-align: center;
  text-wrap: balance;
}

.onb-title:focus-visible {
  outline: none;
}

.onb-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onb-body > * {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.onb-body > .vote-pair {
  max-width: 560px;
}

@media (min-width: 720px) {
  .onb-body > .vote-pair {
    max-width: none;
  }
}

.onb-word {
  font-size: clamp(1.8rem, 9vw, 2.6rem);
}

.onb-figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 0;
}

.onb-lead,
.onb-practice {
  text-align: center;
}

.onb-practice {
  min-height: 3.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.onb-draft {
  padding: 10px 14px;
  border: 1px solid var(--seal);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.92rem;
}

.onb-list,
.onb-keep {
  margin-block: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.onb-list strong {
  color: var(--ink);
}

.onb-list li + li {
  margin-top: 4px;
}

.onb-keep {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.onb-keep li {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.onb-term {
  font-family: var(--serif);
}

.onb-card-tag {
  line-height: 1;
}

.onb-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

/* 견본 표시 — 실제 글·실제 사용자와 헷갈리지 않게 */
.sample-tag {
  display: inline-block;
  padding: 0 7px;
  border: 1px dashed var(--ink-soft);
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}

.how-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
}

/* 운영자 메뉴가 붙어 다섯 칸이 되면 좁은 화면에서 간격을 줄인다 */
.nav a {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .nav.has-admin {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav.has-admin a {
    padding: 0 6px;
  }
}

/* ── 약관·개인정보 처리방침(정적 문서) ───── */
.doc .card { line-height: 1.7; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 4px; }
.doc [data-fill-before-launch] { color: var(--seal); font-weight: 700; }
.site-footer p + p { margin-top: 6px; }
