@charset "UTF-8";
/* 디자인 시스템 사이트 공통 셸(상단 내비·카탈로그·파운데이션·설치). vote.css 의 기본 토큰을 그대로 따른다. */
.topnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.topnav a { display: inline-block; padding: 7px 12px; border-radius: 999px; color: #596370; font-size: 13px; font-weight: 650; text-decoration: none; }
.topnav a:hover { background: #E7EEFB; color: #1F62C9; }
.topnav a[aria-current=page] { background: #1F62C9; color: white; }
.wide { width: min(100% - 32px, 1200px); }
.hero { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px 0 8px; }
.hero h1 { margin: 0; }
.hero p { margin: 0; max-width: 720px; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }
.stat-chip { padding: 8px 14px; border: 1px solid #E2E8F0; border-radius: 12px; background: white; font-size: 13px; }
.stat-chip b { color: #1F62C9; font-size: 16px; margin-right: 4px; }
.filters { position: sticky; top: 0; z-index: 5; background: #F8FAFCEE; backdrop-filter: blur(6px); padding: 12px 0; margin: 12px 0 8px; border-bottom: 1px solid #E2E8F0; }
.seg { display: inline-flex; border: 1px solid #CBD5E1; border-radius: 10px; overflow: hidden; background: white; }
.seg button { margin: 0; width: auto; padding: 8px 14px; border: 0; border-radius: 0; background: transparent; color: #596370; font-size: 13px; font-weight: 700; }
.seg button:hover:not(:disabled) { background: #E7EEFB; }
.seg button[aria-pressed=true], .seg button[aria-pressed=true]:hover:not(:disabled) { background: #1F62C9; color: white; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-row input[type=search] { flex: 1 1 240px; width: auto; padding: 9px 12px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cat-chips button { width: auto; margin: 0; padding: 5px 11px; border: 1px solid #E2E8F0; border-radius: 999px; background: white; color: #191C1E; font-size: 12px; font-weight: 600; }
.cat-chips button:hover:not(:disabled) { background: #F1F5F9; }
.cat-chips button[aria-pressed=true], .cat-chips button[aria-pressed=true]:hover:not(:disabled) { background: #E7EEFB; border-color: #1F62C9; color: #1F62C9; }
.cat-chips small { color: #596370; margin-left: 4px; font-weight: 400; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.comp-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid #E2E8F0; border-radius: 16px; background: white; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.comp-card:hover:not(:disabled) { background: white; border-color: #1F62C9; box-shadow: 0 6px 20px #1F62C91A; }  /* vote.css 의 button:hover(파란 배경)보다 우선 */
.comp-card[hidden] { display: none; }
.preview { display: flex; align-items: center; justify-content: center; min-height: 168px; padding: 20px; background: #EEF2F7; background-image: radial-gradient(#D7DEE8 1px, transparent 1px); background-size: 14px 14px; overflow: hidden; }
.preview.mobile-frame { padding: 16px 28px; }
.preview .ph { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: #596370; font-size: 12px; }
.preview .ph b { font-size: 26px; color: #1F62C9; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.comp-body { padding: 12px 14px 14px; }
.comp-title { display: flex; align-items: center; gap: 8px; color: #191C1E; font-size: 15px; font-weight: 750; letter-spacing: -.3px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #F1F5F9; color: #596370; white-space: nowrap; }
.tag.web { background: #E3F2FD; color: #1565C0; }
.tag.mechanic { background: #E7EEFB; color: #1F62C9; }
.tag.rider { background: #E0F2F1; color: #00695C; }
.comp-desc { display: block; margin-top: 4px; color: #596370; font-size: 12.5px; line-height: 1.5; min-height: 2.9em; }
.comp-meta { display: flex; gap: 8px; margin-top: 8px; font-size: 11px; color: #94A3B8; }
.drawer { position: fixed; inset: 0; z-index: 30; display: flex; justify-content: flex-end; background: #191C1E80; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(100%, 640px); height: 100%; overflow: auto; background: white; padding: 24px 24px 40px; box-shadow: -8px 0 30px #191C1E22; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-head h2 { margin: 0 0 6px; font-size: 22px; }
.drawer-close:hover:not(:disabled) { background: #E2E8F0; color: #191C1E; }
.drawer-close { width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 50%; background: #F1F5F9; color: #191C1E; font-size: 22px; line-height: 1; }
.drawer .preview { border-radius: 12px; margin: 16px 0; }
.drawer h3 { margin: 22px 0 8px; font-size: 14px; }
.drawer table { width: 100%; border-collapse: collapse; font-size: 13px; }
.drawer th, .drawer td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.drawer th { color: #596370; font-weight: 600; font-size: 12px; }
.drawer code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; background: #F1F5F9; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.token-list { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.drawer .actions button { width: auto; margin: 0; padding: 10px 16px; font-size: 13px; }
.drawer .actions .secondary { background: white; color: #1F62C9; border: 1px solid #CBD5E1; }
.sizes { font-size: 12.5px; white-space: pre-wrap; color: #404751; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow: auto; }
/* 파운데이션 */
.fd-section { margin-top: 32px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch:hover:not(:disabled) { background: white; border-color: #1F62C9; }
.swatch { border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; background: white; cursor: pointer; text-align: left; padding: 0; width: auto; margin: 0; }
.swatch .chip { display: block; height: 56px; }
.swatch .sw-body { display: block; padding: 8px 10px; }
.swatch .sw-name { display: block; font-size: 11.5px; color: #191C1E; font-weight: 650; word-break: break-all; }
.swatch .sw-val { display: block; font-size: 11px; color: #596370; font-family: ui-monospace, Consolas, monospace; }
.type-list { display: grid; gap: 8px; }
.type-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 10px; background: white; }
.type-row .t-name { font-size: 12px; color: #596370; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.type-row .t-sample { color: #191C1E; }
.type-row .t-spec { font-size: 11.5px; color: #596370; white-space: nowrap; }
.scale { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.scale .step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #596370; }
.scale .bar { background: #1F62C9; border-radius: 4px; min-width: 4px; }
.scale .rbox { width: 56px; height: 56px; border: 2px solid #1F62C9; background: #E7EEFB; }
/* 설치 */
.cmd { position: relative; margin: 12px 0; padding: 14px 52px 14px 16px; border: 1px solid #E2E8F0; border-radius: 12px; background: #191C1E; color: #E2E8F0; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; line-height: 1.6; }
.cmd button:hover:not(:disabled) { background: #475569; }
.cmd button { position: absolute; top: 8px; right: 8px; width: auto; margin: 0; padding: 6px 10px; font-size: 12px; background: #334155; }
.callout { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #E7EEFB; color: #191C1E; font-size: 14px; }
.steps { counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; padding: 6px 0 6px 36px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #1F62C9; color: white; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) {
  .comp-grid { grid-template-columns: 1fr; }
  .type-row { grid-template-columns: 1fr; }
  .drawer-panel { width: 100%; padding: 16px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { .topnav a, .comp-card { transition: none; } }
