/* 모든경매 공통 디자인 (2026-11-24)
 * 믿음직한 남색(법원·금융 느낌) + 낙찰 주황 포인트, 숫자는 굵고 또렷하게.
 * 케이맛집과 같은 기본 이름(btn, card, input, chip, msg ...)을 써서 로그인·가입·마이페이지·관리자 화면 구조를 함께 씀 */
:root {
  --navy: #13284b;
  --navy-2: #1d3a6b;
  --navy-soft: #eaf0fa;
  --orange: #f06a1d;
  --orange-d: #d4550c;
  --orange-soft: #fff1e8;
  --blue: #2f6fed;
  --blue-soft: #e8f0ff;
  --green: #12965a;
  --green-soft: #e6f6ee;
  --red: #e03b3b;
  --red-soft: #fdecec;
  --gold: #b7791f;
  --gold-soft: #fff6df;
  --ink: #16202e;
  --ink-2: #475467;
  --ink-3: #8a94a6;
  --line: #e6eaf0;
  --line-2: #d5dbe5;
  --bg: #f5f7fb;
  --bg-2: #eef1f6;
  --card: #ffffff;
  --ok: #12965a;
  --bad: #e03b3b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 32, 64, .06), 0 4px 14px rgba(16, 32, 64, .05);
  --shadow-lg: 0 18px 44px rgba(16, 32, 64, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 15px; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type=file] { max-width: 100%; min-width: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main.wrap { min-height: 60vh; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 머리말 ---------- */
#ra-header { display: contents; } /* 안쪽 머리말이 화면 위에 붙어 있도록 (sticky) */
.ra-top { background: var(--navy); color: #c7d3e8; font-size: 12.5px; }
.ra-top .wrap { display: flex; justify-content: space-between; gap: 12px; height: 32px; align-items: center; }
.ra-top a { color: #dfe7f5; font-weight: 600; }
.ra-top a:hover { color: #fff; }
.ra-top .tl { display: flex; gap: 14px; overflow: hidden; white-space: nowrap; }
.ra-top .tr { display: flex; gap: 14px; white-space: nowrap; }
.ra-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.ra-header .bar { display: flex; align-items: center; gap: 18px; height: 66px; }
.ra-logo { display: flex; align-items: center; gap: 9px; white-space: nowrap; flex: none; }
.ra-logo svg { width: 38px; height: 38px; flex: none; }
.ra-logo .nm { display: flex; flex-direction: column; line-height: 1; }
.ra-logo .nm b { font-weight: 900; font-size: 22px; color: var(--navy); letter-spacing: -.8px; }
.ra-logo .nm small { font-size: 9.5px; font-weight: 800; letter-spacing: 2.2px; color: var(--orange); margin-top: 4px; }
.ra-search { display: flex; align-items: center; flex: 1 1 360px; max-width: 480px; min-width: 150px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; overflow: hidden; }
.ra-search:focus-within { border-color: var(--orange); }
.ra-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 9px 14px; font-size: 14px; background: transparent; }
.ra-search button { flex: none; border: 0; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 18px; cursor: pointer; }
.ra-search:focus-within button { background: var(--orange); }
.ra-user { display: flex; gap: 6px; align-items: center; white-space: nowrap; margin-left: auto; }
.ra-user a { padding: 8px 13px; border-radius: 9px; font-weight: 800; font-size: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); }
.ra-user a.primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.ra-user a.primary:hover { background: var(--orange-d); }
.ra-nav { border-top: 1px solid var(--line); background: #fff; }
.ra-nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ra-nav .wrap::-webkit-scrollbar { display: none; }
.ra-nav a { position: relative; padding: 12px 15px; font-weight: 800; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.ra-nav a:hover { color: var(--orange); }
.ra-nav a.on { color: var(--orange); }
.ra-nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); }
.ra-nav a .new { font-size: 10px; color: var(--orange); vertical-align: super; margin-left: 1px; }
.ra-burger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 38px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; cursor: pointer; flex: none; }
.ra-burger span { display: block; height: 2px; border-radius: 2px; background: var(--navy); }
.ra-drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; overflow: hidden; }
.ra-drawer.open { visibility: visible; }
.ra-drawer-bg { position: absolute; inset: 0; background: rgba(10, 20, 40, .45); opacity: 0; transition: opacity .2s; }
.ra-drawer.open .ra-drawer-bg { opacity: 1; }
.ra-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(310px, 86vw); background: #fff; box-shadow: -8px 0 30px rgba(0, 0, 0, .15); transform: translateX(100%); transition: transform .22s; overflow-y: auto; padding-bottom: 24px; }
.ra-drawer.open .ra-drawer-panel { transform: none; }
.ra-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--navy); color: #fff; }
.ra-drawer-x { border: 0; background: none; font-size: 20px; cursor: pointer; color: #fff; }
.ra-drawer-panel .grp { padding: 10px 18px 4px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.ra-drawer-panel a { display: block; padding: 11px 18px; font-weight: 800; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .ra-top .tl { display: none; }
  .ra-top .wrap { justify-content: flex-end; }
  .ra-header .bar { gap: 10px; height: 58px; }
  .ra-search { display: none; }
  .ra-burger { display: flex; }
  .ra-user a:not(.primary) { display: none; }
  .ra-logo svg { width: 34px; height: 34px; }
  .ra-nav a { padding: 10px 11px; font-size: 14.5px; }
}
.m-search { display: none; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.m-search form { display: flex; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; }
.m-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 9px 12px; font-size: 14px; }
.m-search button { border: 0; background: var(--navy); color: #fff; font-weight: 800; padding: 0 16px; }
@media (max-width: 900px) { .m-search.show { display: block; } }

/* ---------- 꼬리말 ---------- */
.ra-footer { background: #0e1d38; color: #9fb0cc; margin-top: 64px; padding: 36px 0 44px; font-size: 13px; }
.ra-footer .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ra-footer .brand b { font-weight: 900; font-size: 21px; color: #fff; letter-spacing: -.6px; }
.ra-footer .brand p { margin-top: 4px; color: #8295b6; }
.ra-footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ra-footer .links a { color: #dbe4f3; font-weight: 700; }
.ra-footer .notice { color: #8295b6; margin-bottom: 10px; line-height: 1.7; }
.ra-footer .biz { color: #6f84a8; line-height: 1.8; }

/* ---------- 기본 부품 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 10px; font-weight: 800; border: 1px solid transparent; cursor: pointer; font-size: 15px; transition: filter .15s, transform .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--navy); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f3c0c0; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.6; }
.chip.navy { background: var(--navy); color: #fff; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.orange { background: var(--orange-soft); color: var(--orange-d); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.sample { background: #fff; color: var(--gold); border: 1px dashed #e3c27a; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.req { color: var(--bad); }
.empty { text-align: center; color: var(--ink-3); padding: 40px 10px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.field .hint, .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 15px; }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.6; }
.input:focus { outline: 3px solid var(--navy-soft); border-color: var(--navy-2); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--orange); }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.agree { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border-radius: 10px; }
.agree a { color: var(--blue); text-decoration: underline; }
.msg { font-size: 14px; padding: 10px 12px; border-radius: 10px; display: none; }
.msg.show { display: block; }
.msg.bad { background: var(--red-soft); color: var(--bad); }
.msg.ok { background: var(--green-soft); color: var(--ok); }
.auth-box { max-width: 440px; margin: 40px auto; padding: 28px 24px; }
.auth-box h1 { font-size: 22px; margin-bottom: 18px; text-align: center; }
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 10px; background: #FEE500; color: rgba(0, 0, 0, .85) !important; font-weight: 800; font-size: 16px; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; color: var(--ink-3); font-size: 13px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { padding: 11px 14px; border: none; background: none; font-weight: 800; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 15px; }
.tabs button.on, .tabs a.on { color: var(--navy); border-color: var(--orange); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--bg); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.modal-dim { position: fixed; inset: 0; background: rgba(10, 20, 40, .55); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-dim.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 24px 22px; width: 100%; max-width: 400px; text-align: center; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 19px; margin-bottom: 8px; }
.modal p { color: var(--ink-2); margin-bottom: 16px; }
.modal .btns { display: flex; gap: 8px; }
.modal .btns .btn { flex: 1; }
.doc { line-height: 1.8; }
.doc h2 { font-size: 19px; margin: 28px 0 10px; color: var(--navy); }
.doc h3 { font-size: 16px; margin: 18px 0 6px; }
.doc p, .doc li { margin-bottom: 8px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg); white-space: nowrap; }
.doc .lead { font-size: 16px; color: var(--ink-2); }
.doc .date { color: var(--ink-3); font-size: 13px; }
.doc .todo { background: #fff3cd; color: #8a6100; padding: 0 4px; border-radius: 4px; }
.doc a { color: var(--blue); text-decoration: underline; }
.doc blockquote { margin: 14px 0; padding: 12px 16px; background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.doc b, .doc strong { font-weight: 800; }

/* ---------- 제목 줄 ---------- */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
.sec-head h2 small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.sec-head .more { font-size: 14px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.sec-head .more:hover { color: var(--orange); }
.page-head { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 30px 0 26px; }
.page-head h1 { font-size: 26px; font-weight: 900; letter-spacing: -.6px; }
.page-head p { color: #c3d0e6; margin-top: 4px; }
.crumb { font-size: 12.5px; color: #9fb3d4; margin-bottom: 4px; }
.crumb a:hover { color: #fff; }

/* ---------- 칩 줄 · 알약 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill .n { font-size: 11.5px; font-weight: 800; opacity: .7; }
.sample-note { font-size: 13px; color: #7a5200; background: var(--gold-soft); border: 1px dashed #e3c27a; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; }
.warn-box { font-size: 13.5px; color: #7a3a00; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 12px 14px; line-height: 1.7; }

/* ---------- 물건 카드 ---------- */
.it-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1060px) { .it-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .it-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.it-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; cursor: pointer; min-width: 0; }
.it-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.it-card .ph { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, #fff), color-mix(in srgb, var(--tc) 6%, #fff)); display: grid; place-items: center; }
.it-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.it-card .ph .emo { font-size: 46px; opacity: .9; }
.it-card .ph .tl { position: absolute; top: 8px; left: 8px; right: 58px; display: flex; gap: 4px; flex-wrap: wrap; }
.it-card .ph .dday { position: absolute; top: 8px; right: 8px; background: rgba(19, 40, 75, .88); color: #fff; font-size: 12px; font-weight: 900; padding: 2px 8px; border-radius: 6px; }
.it-card .ph .dday.today { background: var(--red); }
.it-card .ph .ratio { position: absolute; bottom: 8px; right: 8px; background: var(--orange); color: #fff; font-weight: 900; font-size: 13px; padding: 2px 9px; border-radius: 6px; }
.it-card .bd { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.it-card .no { font-size: 12px; color: var(--ink-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-card h3 { font-size: 15px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it-card .meta { font-size: 12.5px; color: var(--ink-2); }
.it-card .prices { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; font-size: 13px; }
.it-card .prices span { color: var(--ink-3); }
.it-card .prices b { text-align: right; font-variant-numeric: tabular-nums; }
.it-card .prices b.min { color: var(--orange-d); font-size: 15px; font-weight: 900; }
.it-card .flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 760px) {
  .it-card .bd { padding: 9px 10px 11px; }
  .it-card h3 { font-size: 14px; }
  .it-card .ph .emo { font-size: 36px; }
  .it-card .prices { font-size: 12px; }
  .it-card .prices b.min { font-size: 14px; }
}

/* ---------- 물건 목록 (검색 결과 줄) ---------- */
.it-list { display: flex; flex-direction: column; }
.it-row { display: grid; grid-template-columns: 112px 1.1fr 1.6fr 1fr 110px; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; }
.it-row:hover { background: #fafbfe; }
.it-row .thumb { width: 112px; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, #fff), color-mix(in srgb, var(--tc) 6%, #fff)); display: grid; place-items: center; font-size: 34px; overflow: hidden; }
.it-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.it-row .c1 .no { font-weight: 900; color: var(--navy); font-size: 14.5px; }
.it-row .c1 .ct { font-size: 12.5px; color: var(--ink-3); }
.it-row .c2 .ad { font-weight: 700; line-height: 1.4; }
.it-row .c2 .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.it-row .c2 .flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.it-row .c3 { text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.it-row .c3 .ap { color: var(--ink-3); }
.it-row .c3 .mn { color: var(--orange-d); font-weight: 900; font-size: 16px; }
.it-row .c3 .rt { font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.it-row .c4 { text-align: center; }
.it-row .c4 .dt { font-weight: 900; font-size: 14px; }
.it-row .c4 .st { margin-top: 3px; }
.list-head { display: grid; grid-template-columns: 112px 1.1fr 1.6fr 1fr 110px; gap: 14px; padding: 10px 16px; background: var(--bg-2); font-size: 12.5px; font-weight: 800; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.list-head span:nth-child(4) { text-align: right; }
.list-head span:nth-child(5) { text-align: center; }
@media (max-width: 860px) {
  .list-head { display: none; }
  .it-row { grid-template-columns: 84px 1fr; grid-template-areas: 'th c1' 'th c2' 'c3 c3'; gap: 4px 12px; padding: 12px; }
  .it-row .thumb { grid-area: th; width: 84px; font-size: 28px; align-self: start; }
  .it-row .c1 { grid-area: c1; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
  .it-row .c2 { grid-area: c2; }
  .it-row .c3 { grid-area: c3; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; flex-wrap: wrap; }
  .it-row .c4 { display: none; }
  .it-row .c3 .m-dt { display: inline; }
}
.it-row .c3 .m-dt { display: none; font-weight: 800; color: var(--navy); }

/* ---------- 상태 표시 ---------- */
.st-진행 { background: var(--blue-soft); color: var(--blue); }
.st-낙찰 { background: var(--green-soft); color: var(--green); }
.st-유찰 { background: var(--bg-2); color: var(--ink-2); }
.st-변경·연기, .st-취하·기각 { background: var(--red-soft); color: var(--red); }

/* ---------- 빠른 메뉴 아이콘 ---------- */
.quick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; font-size: 13.5px; text-align: center; transition: all .15s; }
.quick a .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: var(--navy-soft); }
.quick a:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
@media (max-width: 760px) { .quick { grid-template-columns: repeat(4, 1fr); gap: 8px; } .quick a { font-size: 12.5px; padding: 11px 2px 10px; } .quick a .ic { width: 40px; height: 40px; font-size: 21px; } }

/* ---------- 큰 숫자 칸 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.stat b { font-size: 26px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.stat b em { font-style: normal; font-size: 14px; color: var(--ink-3); margin-left: 2px; }
.stat.hot b { color: var(--orange-d); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 22px; } }

/* ---------- 글 카드 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card .cv { aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; font-size: 40px; color: #fff; }
.post-card .cv img { width: 100%; height: 100%; object-fit: cover; }
.post-card .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { font-size: 16px; font-weight: 800; line-height: 1.4; }
.post-card p { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { font-size: 12px; color: var(--ink-3); }
.line-list > a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.line-list > a:hover b { color: var(--orange); }
.line-list > a b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-list > a small { color: var(--ink-3); flex: none; font-size: 12.5px; }

/* ---------- 강의 카드 ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cs-grid { grid-template-columns: 1fr; } }
.cs-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cs-card .cv { aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, #1d3a6b, #2f6fed); color: #fff; position: relative; }
.cs-card .cv img { width: 100%; height: 100%; object-fit: cover; }
.cs-card .cv .tl { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.cs-card .bd { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cs-card h3 { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.cs-card p { font-size: 13px; color: var(--ink-2); }
.cs-card .ft { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-3); }
.cs-card .price { font-weight: 900; font-size: 16px; color: var(--navy); }
.cs-card .price.free { color: var(--green); }

/* ---------- 상세 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; margin-top: 20px; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.side-sticky { position: sticky; top: 130px; }
.kv { display: grid; grid-template-columns: 120px 1fr; border-top: 2px solid var(--navy); }
.kv > div { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > .k { background: var(--bg); font-weight: 800; color: var(--ink-2); font-size: 13px; }
@media (max-width: 640px) { .kv { grid-template-columns: 96px 1fr; } }
.price-box { padding: 18px; }
.price-box .big { font-size: 28px; font-weight: 900; color: var(--orange-d); letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.price-box .ln { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.price-box .ln b { font-variant-numeric: tabular-nums; }
.bar-ratio { height: 10px; background: var(--bg-2); border-radius: 6px; overflow: hidden; margin: 6px 0 2px; }
.bar-ratio i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffb067); border-radius: 6px; }
.lock-box { text-align: center; padding: 26px 16px; background: repeating-linear-gradient(-45deg, #f7f9fc, #f7f9fc 10px, #f1f4f9 10px, #f1f4f9 20px); border-radius: 12px; border: 1px dashed var(--line-2); }
.flag-tip { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; margin-bottom: 8px; font-size: 13.5px; }
.flag-tip b { color: #c2410c; white-space: nowrap; }

/* ---------- 달력 ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; }
.cal .h { padding: 8px; text-align: center; font-size: 13px; font-weight: 800; background: var(--bg-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .h:first-child { color: var(--red); }
.cal .h:last-child { color: var(--blue); }
.cal .d { min-height: 92px; padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.cal .d:hover { background: #fafbfe; }
.cal .d.out { background: #fbfcfe; color: #c4cad4; cursor: default; }
.cal .d.today .dn { background: var(--orange); color: #fff; border-radius: 6px; padding: 0 6px; }
.cal .d.sel { background: var(--navy-soft); }
.cal .dn { font-weight: 800; font-size: 13px; align-self: flex-start; }
.cal .cnt { font-size: 12px; font-weight: 800; border-radius: 5px; padding: 1px 6px; }
.cal .cnt.a { background: var(--blue-soft); color: var(--blue); }
.cal .cnt.o { background: var(--orange-soft); color: var(--orange-d); }
@media (max-width: 640px) { .cal .d { min-height: 64px; padding: 4px; } .cal .cnt { font-size: 10.5px; padding: 0 3px; } }

/* ---------- 필터 상자 ---------- */
.filter { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.filter .fr { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: start; }
.filter .fr > label { font-weight: 800; font-size: 13.5px; padding-top: 7px; color: var(--ink-2); }
@media (max-width: 640px) { .filter .fr { grid-template-columns: 1fr; gap: 6px; } .filter .fr > label { padding-top: 0; } }
.sel-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-row .input { width: auto; flex: 1 1 130px; padding: 8px 10px; font-size: 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.toolbar .total { font-weight: 800; }
.toolbar .total b { color: var(--orange-d); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; font-weight: 800; cursor: pointer; padding: 0 8px; }
.pager button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 영상 ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.lesson button { flex: none; }

/* ---------- 게시판 ---------- */
.bd-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.bd-list a:hover { background: #fafbfe; }
.bd-list a b { font-weight: 700; }
.bd-list a b .cm { color: var(--orange-d); font-size: 13px; margin-left: 4px; }
.bd-list a small { color: var(--ink-3); font-size: 12.5px; }
.bd-list a .r { text-align: right; grid-row: span 2; align-self: center; font-size: 12.5px; color: var(--ink-3); }
.comment { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.comment .h { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.comment .h b { font-weight: 800; }
.comment p { margin-top: 4px; white-space: pre-wrap; }
.pre { white-space: pre-wrap; line-height: 1.8; }

/* ---------- 첫 화면 ---------- */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #2c5296 0%, transparent 60%), linear-gradient(120deg, #0f2140 0%, #1a3666 100%); color: #fff; padding: 40px 0 34px; }
.hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -1.2px; line-height: 1.25; }
.hero h1 em { font-style: normal; color: #ffb067; }
.hero p.sub { color: #b9c8e2; margin-top: 8px; font-size: 15.5px; }
.hero-search { margin-top: 20px; background: #fff; border-radius: 14px; padding: 8px; display: flex; gap: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); flex-wrap: wrap; }
.hero-search .seg { display: flex; background: var(--bg-2); border-radius: 10px; padding: 3px; flex: none; }
.hero-search .seg button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.hero-search .seg button.on { background: var(--navy); color: #fff; }
.hero-search select, .hero-search input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; background: #fff; color: var(--ink); min-width: 0; }
.hero-search input { flex: 1 1 220px; }
.hero-search select { flex: 0 1 130px; }
.hero-search .go { border: 0; background: var(--orange); color: #fff; font-weight: 900; padding: 0 24px; border-radius: 10px; cursor: pointer; font-size: 16px; min-height: 44px; }
.hero .themes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.hero .themes a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 13.5px; font-weight: 700; color: #e4ecf8; }
.hero .themes a:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 640px) {
  .hero { padding: 26px 0 24px; }
  .hero h1 { font-size: 25px; }
  .hero-search .seg { width: 100%; }
  .hero-search .seg button { flex: 1; }
  .hero-search select { flex: 1 1 40%; }
  .hero-search .go { width: 100%; }
}
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #ff8f4f 100%); color: #fff; border-radius: 16px; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-band h3 { font-size: 21px; font-weight: 900; }
.cta-band p { opacity: .9; }
.cta-band .btn { background: #fff; color: var(--orange-d); }
.sold-tbl td, .sold-tbl th { font-size: 13.5px; }
.sold-tbl td.r, .sold-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.gl-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.gl-item b { color: var(--navy); font-size: 16px; }
.gl-item p { color: var(--ink-2); margin-top: 3px; }
.kbd-hl { background: #fff3a8; }
.calc-out { background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 20px; }
.calc-out .ln { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.calc-out .ln b { font-variant-numeric: tabular-nums; }
.calc-out .tot { font-size: 22px; font-weight: 900; color: #ffb067; }

/* 좁은 칸 안의 물건 목록 (첫 화면 '2회 이상 유찰' 등): 휴대폰 모양으로 */
.it-list.compact .it-row { grid-template-columns: 84px 1fr; grid-template-areas: 'th c1' 'th c2' 'c3 c3'; gap: 4px 12px; padding: 12px; }
.it-list.compact .it-row .thumb { grid-area: th; width: 84px; font-size: 28px; align-self: start; }
.it-list.compact .it-row .c1 { grid-area: c1; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.it-list.compact .it-row .c2 { grid-area: c2; }
.it-list.compact .it-row .c3 { grid-area: c3; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; flex-wrap: wrap; }
.it-list.compact .it-row .c4 { display: none; }
.it-list.compact .it-row .c3 .m-dt { display: inline; }
/* 검색 조건: 휴대폰에서는 자세한 조건을 접어 둠 */
.fold-btn { display: none; margin-bottom: 8px; }
@media (max-width: 640px) {
  .fold-btn { display: flex; }
  .filter.fold .fr.more { display: none; }
}
@media (max-width: 640px) {
  .filter .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .filter .chips::-webkit-scrollbar { display: none; }
}
/* 휴대폰 상세 화면: 가격·버튼 상자를 내용보다 위로, 고정 해제 */
@media (max-width: 960px) {
  .detail-grid > aside { order: -1; }
  .side-sticky { position: static; }
}
.ra-footer .brand .family { margin-top: 6px; color: #c7d3e8; font-size: 12.5px; }
.ra-footer .brand .family a { color: #ffb067; font-weight: 700; }
