/* ==========================================================================
   예측판 YECHEUKPAN — design system
   다크 커뮤니티형 예측 정보판 / 모바일 우선
   ========================================================================== */

:root {
  --bg: #0a0d13;
  --bg-soft: #0d121b;
  --surface: #131a25;
  --surface-2: #17202d;
  --surface-3: #1d2837;
  --line: #232e40;
  --line-2: #2f3d54;
  --ink: #e9effa;
  --ink-2: #c2cee1;
  --muted: #8c9ab3;
  --muted-2: #6b7a93;
  --accent: #4c8dff;
  --accent-soft: rgba(76, 141, 255, .14);
  --yes: #ff5468;
  --yes-soft: rgba(255, 84, 104, .14);
  --no: #4c8dff;
  --no-soft: rgba(76, 141, 255, .14);
  --up: #ff5a67;
  --down: #4d9fff;
  --ok: #35d07f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -18px rgba(0, 0, 0, .8);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 14px; }
.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 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 13, 19, .92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 56px;
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #2b6bff, #4c8dff 55%, #7cc4ff);
  box-shadow: 0 6px 16px -8px rgba(76, 141, 255, .9);
}
.brand-mark svg { display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.brand-sub {
  font-size: 9.5px; color: var(--muted-2); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

.header-meta { display: flex; align-items: center; gap: 7px; }

.stamp {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 10px 5px 8px;
  white-space: nowrap; max-width: 54vw; overflow: hidden;
}
.stamp b { color: var(--ink-2); font-weight: 650; }
.stamp-short { display: none; }
.stamp-full { overflow: hidden; text-overflow: ellipsis; }

.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  flex: none; box-shadow: 0 0 0 0 rgba(53, 208, 127, .5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 208, 127, .45); }
  70% { box-shadow: 0 0 0 6px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 31px; height: 31px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: .15s ease;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tab bar ---------- */
.tabbar {
  display: flex; gap: 2px;
  border-top: 1px solid transparent;
  background: rgba(10, 13, 19, .92);
}
.tabbar .tab {
  flex: 1 1 0;
  position: relative;
  padding: 11px 4px 12px;
  border: 0; background: none;
  color: var(--muted); font-size: 14px; font-weight: 700;
  letter-spacing: -.02em; cursor: pointer;
  transition: color .15s ease;
}
.tabbar .tab:hover { color: var(--ink-2); }
.tabbar .tab[aria-selected="true"] { color: var(--ink); }
.tabbar .tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 32px; height: 2.5px; border-radius: 999px;
  background: var(--accent);
}

/* ---------- hero ---------- */
.hero { padding: 20px 0 4px; }
.hero h1 {
  margin: 0 0 8px; font-size: 22px; line-height: 1.32;
  letter-spacing: -.04em; font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #6ab0ff, #4c8dff 45%, #9b7bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.62; max-width: 660px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.pill {
  font-size: 11.5px; font-weight: 650; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px;
}
.pill.accent { color: #9dc0ff; background: var(--accent-soft); border-color: rgba(76, 141, 255, .3); }
.pill.warn { color: #ffc78a; background: rgba(255, 167, 74, .1); border-color: rgba(255, 167, 74, .25); }

/* ---------- section head ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 22px 0 10px;
}
.section-head h2 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.03em; }
.section-head .hint { font-size: 11.5px; color: var(--muted-2); }

/* ---------- featured ---------- */
.featured-grid { display: grid; gap: 9px; grid-template-columns: 1fr; }

.feature {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, #16243c 0%, #121a28 58%, #1a2334 100%);
  border: 1px solid #26344b;
  border-radius: var(--radius);
  padding: 14px 14px 13px;
  display: flex; flex-direction: column; gap: 9px;
  cursor: pointer;
}
.feature::after {
  content: ""; position: absolute; inset: auto -30% -70% auto;
  width: 220px; height: 220px; pointer-events: none;
  background: radial-gradient(circle, rgba(76, 141, 255, .28), transparent 65%);
}
.feature[data-rank="1"] { border-color: #2f4c7d; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feature-rank {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: #8ec3ff; text-transform: uppercase;
}
.feature-cat {
  font-size: 10.5px; font-weight: 700; color: #b9c9e4;
  background: rgba(148, 163, 184, .12); border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px; padding: 2px 8px;
}
.feature h3 {
  margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 700;
  letter-spacing: -.02em; color: #fff;
}
.feature-num { display: flex; align-items: flex-end; gap: 9px; }
.feature-num .big {
  font-size: 32px; line-height: .95; font-weight: 800; letter-spacing: -.045em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.feature-num .big span { font-size: 16px; font-weight: 700; margin-left: 1px; }
.feature-num .side { display: flex; flex-direction: column; padding-bottom: 2px; }
.feature-num .side .k { font-size: 10px; color: #8fa2c2; }
.feature-num .side .v { font-size: 12px; font-weight: 650; color: #ccd9f0; font-variant-numeric: tabular-nums; }
.feature .bar { height: 6px; }

/* ---------- controls ---------- */
.controls { display: flex; flex-direction: column; gap: 9px; margin: 14px 0 12px; }

.chips {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 12.5px; font-weight: 650;
  padding: 7px 12px; border-radius: 999px; transition: .15s ease;
}
.chip-btn:hover { border-color: var(--line-2); color: var(--ink); }
.chip-btn[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.chip-btn .n { font-size: 10.5px; margin-left: 4px; opacity: .7; font-variant-numeric: tabular-nums; }

.search-row { display: flex; align-items: center; gap: 9px; }
.search { position: relative; flex: 1; }
.search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); pointer-events: none;
}
.search input {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px 10px 34px; outline: none;
  transition: .15s ease;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: rgba(76, 141, 255, .55); box-shadow: 0 0 0 3px var(--accent-soft); }
.result-count { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- issue cards ---------- */
.grid { display: grid; gap: 9px; grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 13px 11px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line-2); }
.card.open { border-color: rgba(76, 141, 255, .45); }

.card-head { display: flex; align-items: center; gap: 7px; }
.chip {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; white-space: nowrap; letter-spacing: -.01em;
}
.chip.economy { color: #8fb8ff; background: rgba(76, 141, 255, .13); }
.chip.crypto  { color: #63d7d0; background: rgba(56, 199, 188, .12); }
.chip.ai      { color: #c0a5ff; background: rgba(154, 118, 255, .13); }
.chip.global  { color: #ffc479; background: rgba(255, 174, 73, .12); }
.chip.free    { color: #b8c5da; background: rgba(140, 154, 179, .14); }

.delta-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 7px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.delta-badge.up { color: #ff8b94; background: var(--yes-soft); }
.delta-badge.down { color: #86b8ff; background: var(--no-soft); }
.delta-badge.flat { color: var(--muted); background: rgba(140, 154, 179, .12); }

.card h3 {
  margin: 0; font-size: 15px; line-height: 1.4;
  letter-spacing: -.025em; font-weight: 700; color: var(--ink);
}

.prob { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.prob .yes, .prob .no { display: flex; align-items: baseline; gap: 4px; }
.prob .lab { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--muted-2); }
.prob .val {
  font-size: 21px; font-weight: 800; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.prob .yes .val { color: var(--yes); }
.prob .no .val { color: #93a2b9; }
.prob .val small { font-size: 11px; font-weight: 700; margin-left: 1px; }

.bar {
  position: relative; height: 7px; border-radius: 999px;
  background: #202b3b; overflow: hidden;
}
.bar i {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, #ff7a88, var(--yes));
  border-radius: 999px; transition: width .5s cubic-bezier(.22, .61, .36, 1);
}

.meta {
  display: flex; flex-wrap: wrap; gap: 2px 10px;
  font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.meta b { color: var(--ink-2); font-weight: 650; }

/* ---------- vote block ---------- */
.vote {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding-top: 2px;
}
.vote-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font-size: 12.5px; font-weight: 700;
  transition: .15s ease; text-align: left; line-height: 1.25;
}
.vote-btn .row { display: flex; align-items: center; gap: 5px; width: 100%; }
.vote-btn .pct { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; }
.vote-btn .cnt { font-size: 10.5px; font-weight: 600; color: var(--muted-2); }
.vote-btn.yes:hover { border-color: rgba(255, 84, 104, .5); background: var(--yes-soft); }
.vote-btn.no:hover { border-color: rgba(76, 141, 255, .5); background: var(--no-soft); }
.vote-btn.yes.mine {
  border-color: rgba(255, 84, 104, .65); background: var(--yes-soft); color: #ffb3bc;
}
.vote-btn.no.mine {
  border-color: rgba(76, 141, 255, .65); background: var(--no-soft); color: #a8caff;
}
.vote-bar {
  height: 3px; border-radius: 999px; background: #202b3b; overflow: hidden;
  display: flex;
}
.vote-bar .y { background: var(--yes); }
.vote-bar .n { background: var(--no); }
.vote-note { font-size: 10.5px; color: var(--muted-2); text-align: center; }

/* ---------- card footer / detail ---------- */
.card-foot {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 9px; margin-top: 1px;
}
.foot-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 650; color: var(--muted); padding: 2px 0;
}
.foot-btn:hover { color: var(--ink-2); }
.foot-btn .n { font-variant-numeric: tabular-nums; }
.foot-btn.right { margin-left: auto; }
.foot-btn .chev { transition: transform .2s ease; }
.card.open .foot-btn .chev { transform: rotate(180deg); }

.detail { display: none; flex-direction: column; gap: 10px; animation: fade .22s ease; }
.card.open .detail { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.detail .block h4 {
  margin: 0 0 3px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .07em; color: var(--accent); text-transform: uppercase;
}
.detail .block p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.66; }
.detail .block.origin p {
  font-size: 12px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 10px; font-style: italic;
}
.detail .src { font-size: 10.5px; color: var(--muted-2); }

/* ---------- comments ---------- */
.cmt-box {
  border-top: 1px solid var(--line); padding-top: 11px;
  display: flex; flex-direction: column; gap: 9px;
}
.cmt-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: var(--ink-2); }
.cmt-head .n { color: var(--accent); font-variant-numeric: tabular-nums; }

.cmt-list { display: flex; flex-direction: column; gap: 9px; }
.cmt {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 10px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.cmt-top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-2); }
.cmt-top b { color: var(--ink-2); font-weight: 700; font-size: 12px; }
.cmt-top .time { font-variant-numeric: tabular-nums; }
.cmt-top .acts { margin-left: auto; display: flex; gap: 8px; }
.cmt-body { font-size: 13px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 11px; color: var(--muted-2); font-weight: 650;
}
.link-btn:hover { color: var(--ink-2); text-decoration: underline; }
.link-btn.danger:hover { color: #ff8b94; }

.cmt-form {
  display: grid; gap: 6px; grid-template-columns: 1fr 1fr;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px;
}
.cmt-form .full { grid-column: 1 / -1; }
.field {
  display: flex; flex-direction: column; gap: 3px;
}
.field > span { font-size: 10.5px; font-weight: 700; color: var(--muted-2); letter-spacing: .02em; }
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: 13px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 9px; outline: none; transition: .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(76, 141, 255, .55); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 62px; line-height: 1.55; }
.select { appearance: none; background-image: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line-2); background: var(--surface-3);
  color: var(--ink); font-size: 12.5px; font-weight: 700;
  padding: 8px 13px; border-radius: 9px; cursor: pointer;
  transition: .15s ease;
}
.btn:hover { border-color: #3c4e6b; background: #223047; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #3f7ef2; border-color: #3f7ef2; }
.btn.ghost { background: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 6px; align-items: center; }

.hintline { font-size: 11px; color: var(--muted-2); }
.hintline.warn { color: #ffc78a; }

/* ---------- 수다방 ---------- */
.talk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.talk-top h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.talk-top p { margin: 2px 0 0; }

.post-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .15s ease;
}
.post-row:hover { background: rgba(255, 255, 255, .018); }
.post-row .line1 { display: flex; align-items: center; gap: 6px; }
.post-row .title {
  font-size: 14px; font-weight: 650; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.post-row .cmt-n { font-size: 11.5px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.post-row .sub { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted-2); }
.post-row .sub b { color: var(--ink-2); font-weight: 650; }

.post-view { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 4px; }
.post-view .pv-head {
  border-bottom: 1px solid var(--line); padding-bottom: 11px;
  display: flex; flex-direction: column; gap: 5px;
}
.post-view h2 { margin: 0; font-size: 17px; line-height: 1.45; letter-spacing: -.025em; font-weight: 750; }
.pv-meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; }
.pv-meta b { color: var(--ink-2); font-weight: 650; }
.pv-body { font-size: 14px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }
.crumb { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; background: none; border: 0; padding: 0; }
.crumb:hover { color: var(--ink-2); }

/* ---------- modal ---------- */
.modal-ov {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 8, 13, .72);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-ov.show { display: flex; }
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 16px 16px 0 0;
  padding: 16px 15px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 10px;
  animation: slideup .22s ease;
}
@keyframes slideup { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.modal .form { display: grid; gap: 8px; }
.modal .form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal .form-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 2px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 95;
  transform: translate(-50%, 16px);
  background: #f2f6ff; color: #0b1220;
  font-size: 12.5px; font-weight: 700;
  padding: 9px 15px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .25s ease;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #ffd9dd; color: #5c1119; }

/* ---------- guide pane ---------- */
.guide-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px; margin-bottom: 9px;
}
.guide-card h3 { margin: 0 0 7px; font-size: 14px; font-weight: 770; letter-spacing: -.02em; }
.guide-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.guide-card p + p { margin-top: 7px; }
.guide-item { border-left: 2.5px solid rgba(76, 141, 255, .45); padding: 1px 0 1px 11px; margin: 11px 0; }
.guide-item:first-of-type { margin-top: 4px; }
.guide-item h4 { margin: 0 0 3px; font-size: 13px; font-weight: 750; color: var(--ink); }
.guide-item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.guide-item strong { color: var(--ink-2); }
.faq-q { font-size: 13px; font-weight: 750; margin: 12px 0 3px; }
.faq-a { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.68; }

/* ---------- document pages ---------- */
.page { padding: 26px 0 24px; max-width: 780px; }
.page h1 { font-size: 22px; letter-spacing: -.035em; font-weight: 800; margin: 0 0 5px; }
.page .page-meta { font-size: 12px; color: var(--muted-2); margin-bottom: 22px; }
.page h2 { font-size: 15.5px; letter-spacing: -.02em; font-weight: 770; margin: 26px 0 8px; }
.page h3 { font-size: 14px; font-weight: 700; margin: 18px 0 5px; }
.page p, .page li { font-size: 13.5px; color: var(--ink-2); line-height: 1.78; }
.page ul, .page ol { padding-left: 19px; margin: 7px 0; }
.page li { margin: 3px 0; }
.page strong { color: var(--ink); }
.page .panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 16px; margin: 15px 0;
}
.page .panel h2:first-child, .page .panel h3:first-child { margin-top: 0; }
.page table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.page th, .page td { text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { color: var(--muted); font-weight: 650; background: var(--bg-soft); }
.page code { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 4px; }
.page .back { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 34px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { padding-top: 22px; padding-bottom: 30px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 16px 26px; justify-content: space-between; }
.footer-brand { max-width: 400px; }
.footer-brand .brand { margin-bottom: 7px; }
.footer-brand p { margin: 0; font-size: 12px; color: var(--muted-2); line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 12px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink-2); }
.footer-legal {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11px; color: #6d7c94; line-height: 1.7;
}
.footer-legal p { margin: 0 0 5px; }
.footer-legal strong { color: var(--muted); }

.empty {
  text-align: center; padding: 34px 14px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--radius); font-size: 13px; line-height: 1.7;
}
.loading { color: var(--muted-2); font-size: 13px; padding: 26px 4px; text-align: center; }

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 28px 0 6px; }
  .hero h1 { font-size: 26px; }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .controls { flex-direction: row; align-items: center; }
  .search-row { flex: 1; }
  .search { max-width: 340px; }
  .result-count { margin-left: auto; }
  .modal-ov { align-items: center; padding: 16px; }
  .modal { border-radius: 16px; padding: 18px; }
  .header-inner { height: 60px; }
  .tabbar .tab { flex: none; padding: 12px 18px 13px; font-size: 14.5px; }
  .tabbar { border-bottom: 0; }
}

@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 30px; }
  .talk-top h1 { font-size: 20px; }
  .post-row { padding: 13px 4px; }
  .post-row .title { font-size: 14.5px; }
}

@media (max-width: 560px) {
  .stamp-full { display: none; }
  .stamp-short { display: inline; }
  .brand-sub { font-size: 9px; }
  .section-head { margin: 20px 0 9px; }
  .section-head .hint { display: none; }
}

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

@media print {
  .site-header, .controls, .card-foot, .vote, .site-footer .footer-links { display: none; }
}
