/* 광장 공용(게시판·AI 칼럼) — 광장(/plaza/)의 어두운 남색 + 청록 포인트를 그대로 쓴다. */
:root {
  --bg: #0a0f1e; --bg2: #0f1730; --ink: #e8eefc; --sub: #9fb0d0; --dim: #7686a8; --line: rgba(34,211,238,.18); --line2: rgba(255,255,255,.08);
  --cy: #22d3ee; --cy2: #7be9fa; --lime: #a3e635; --up: #ff4d5e; --dn: #3b82f6; --gold: #fbbf24; --lav: #818cf8;
  --pn: rgba(13,21,42,.78); --pn2: rgba(20,31,60,.82);
  --num: "Chakra Petch", "Pretendard Variable", Pretendard, ui-monospace, Consolas, monospace;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --ease: cubic-bezier(.23,1,.32,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: #0a0f1e url(/plaza/img/a-tex.webp) 0 0 / 1024px auto repeat; color: var(--ink); font: 15px/1.6 "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:active, .btn:active { transform: scale(.97); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.w { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* 머리 */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(8,13,28,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hd-in { min-height: 52px; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo img { width: 26px; height: 26px; object-fit: contain; }
.logo b { font: 700 13px/1 var(--num); letter-spacing: .14em; color: #f3f6fd; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; font-weight: 700; font-size: 13.5px; color: var(--sub); }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 10px; border-radius: 6px; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--cy); }
.nav a.on { box-shadow: inset 0 -2px 0 var(--cy); border-radius: 0; }
.hd-r { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 700; }
.who { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.who.sup { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(251,191,36,.5); }
@media (max-width: 520px) { .logo b { display: none; } .hd-in { gap: 6px; } }

/* 버튼 · 칩 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 6px; font-size: 14.5px; font-weight: 800; transition: transform .14s var(--ease), filter .2s ease; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.btn.gold { background: linear-gradient(180deg, #67e8f9, var(--cy)); color: #03141c; box-shadow: 0 0 22px rgba(34,211,238,.32); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.07); color: var(--sub); white-space: nowrap; }
.chip.cy { background: rgba(34,211,238,.14); color: var(--cy2); }
.chip.gold { background: rgba(251,191,36,.15); color: var(--gold); }
.chip.ok { background: rgba(163,230,53,.14); color: var(--lime); }
.chip.hold { background: rgba(255,255,255,.07); color: var(--dim); }
.chip.warn { background: rgba(255,77,94,.14); color: #ff8a95; }

/* 패널 · 제목 */
.pn { background: var(--pn); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(6px); }
.sec { padding: 26px 0 0; }
.sh { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.sh::before { content: ""; align-self: center; width: 4px; height: 16px; border-radius: 1px; background: var(--cy); box-shadow: 0 0 10px var(--cy); }
.sh small { font-size: 12.5px; font-weight: 500; color: var(--dim); }
.sh a.more { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--cy); }
.lead { margin: 0; color: var(--sub); font-size: 14px; }
.empty { padding: 28px 16px; text-align: center; color: var(--dim); font-size: 14px; }
.note { font-size: 12.5px; color: var(--dim); }

/* 입력 */
.fld { display: grid; gap: 6px; margin-bottom: 12px; }
.fld > label, .fld > span.lb { font-size: 12.5px; font-weight: 800; color: var(--sub); }
.in, textarea.in, select.in { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(5,9,20,.7); font-size: 15px; outline: none; }
textarea.in { min-height: 140px; resize: vertical; line-height: 1.6; }
.in:focus { border-color: var(--cy); box-shadow: 0 0 0 2px rgba(34,211,238,.22); }
.stars { display: flex; gap: 6px; }
.stars button { width: 44px; height: 44px; border-radius: 6px; font: 800 16px/1 var(--num); box-shadow: inset 0 0 0 1px var(--line); color: var(--sub); }
.stars button.on { background: rgba(251,191,36,.18); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(251,191,36,.6); }
.err { color: #ff8a95; font-size: 13px; min-height: 18px; margin: 4px 0; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 90; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 8px; background: #0e1a36; border: 1px solid var(--cy); box-shadow: 0 8px 30px rgba(0,0,0,.5); font-size: 14px; font-weight: 700; transition: transform .25s var(--ease), opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast:not(.show) { display: none; }

.foot { margin-top: 48px; padding: 22px 0 36px; border-top: 1px solid var(--line2); color: var(--dim); font-size: 12.5px; }
.foot a { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
