/* 루덴도 허브 공용 스타일. design-ref 기준: 효과 없음, 글자색 세 단계, 선 #e5e5ec, 버튼 높이 단계(48, 42, 36), 강한 버튼은 화면에 하나 */
@font-face { font-family: 'Paperlogy'; src: url('/fonts/Paperlogy-6SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --text: #111111; --text2: #505050; --text3: #767676;
  --line: #e5e5ec; --line2: #f1f1f5; --bg: #ffffff; --bg2: #f7f7fb; --gray: #f1f1f5;
  --brand: #2962ff; --brand-h: #1e54ea; --black: #111111;
  --red: #e0242b; --redSoft: #fff1f1; --green: #12814b; --greenSoft: #eef8f2;
  --disp: 'Paperlogy', 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  --sans: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 16px/24px var(--sans); letter-spacing: -0.025em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; }
.wordmark { font-family: var(--disp); font-weight: 600; letter-spacing: 0.06em; line-height: 1; margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--text3); }
.grow { flex: 1; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 틀: 1320 화면, 안쪽 1280, 좌우 20. GNB 72 한 줄 ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.gnb { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gnb .wordmark { font-size: 20px; color: var(--text); text-decoration: none; }
.gnb .util { display: flex; align-items: center; gap: 20px; }
.gnb a.t, .gnb .who { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text3); text-decoration: none; }
.gnb a.t:hover { color: var(--text); }
.gnb .who b { color: var(--text); font-weight: 600; }

/* ---------- 버튼 ---------- */
/* 새 버튼: .b + 크기(l 48, m 42, s 36) + 종류. 테두리는 높이 안에 */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.b.l { height: 48px; padding: 0 20px; min-width: 80px; font-size: 14px; line-height: 20px; font-weight: 600; }
.b.m { height: 42px; padding: 0 16px; min-width: 72px; font-size: 14px; line-height: 20px; font-weight: 500; }
.b.s { height: 36px; padding: 0 12px; min-width: 68px; font-size: 13px; line-height: 19px; font-weight: 500; }
.b.l, .b.m, .b.s { border-radius: 100px; }
.b.sq.l { border-radius: 4px; } .b.sq.m, .b.sq.s { border-radius: 3px; }
.b.brand { background: var(--brand); color: #fff; } .b.brand:hover { background: var(--brand-h); }
.b.dark { background: var(--black); color: #fff; } .b.dark:hover { background: #333333; }
.b.line { background: #fff; border-color: var(--line); color: var(--text); } .b.line:hover { background: var(--gray); }
.b.lineDark { background: #fff; border-color: var(--black); color: var(--text); } .b.lineDark:hover { background: var(--gray); }
/* 흐림(backdrop-filter)은 쓰지 않는다: 휴대폰에서 배너 그리기를 무겁게 한다 */
.b.glass { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.b.glass:hover { background: rgba(255, 255, 255, 0.22); }
.b.white { background: #fff; color: var(--text); } .b.white:hover { background: var(--gray); }
.b.block { width: 100%; }
/* 예전 이름(로그인, 가입, 관리 화면의 button, .btn): 선 버튼 42, 주 버튼은 검정 */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.025em; text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--text); transition: background 0.15s; }
button:hover, .btn:hover { background: var(--gray); }
button.primary, .btn.primary { background: var(--black); border-color: var(--black); color: #fff; }
button.primary:hover, .btn.primary:hover { background: #333333; }
button.block { width: 100%; height: 48px; margin-top: 32px; font-size: 14px; font-weight: 600; }
button.danger { color: var(--red); }
button:disabled { background: #a5adb8; border-color: #a5adb8; color: #fff; cursor: default; }
button:not(.primary):disabled { background: var(--gray); border-color: var(--line); color: #999999; }
:is(button, .btn, .b, a, input):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 입력: 48 Default, 선 #e5e5ec, 라운드 4, 좌우 16. 포커스 #2185ff + 빛 4 ---------- */
label { display: block; margin: 20px 0 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); }
input[type=text], input[type=password], input[type=email], input[type=number] { display: block; width: 100%; height: 48px; padding: 0 16px; font: inherit; font-size: 15px; letter-spacing: -0.025em; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
input::placeholder { color: var(--text3); }
input[type=text]:hover, input[type=password]:hover, input[type=email]:hover, input[type=number]:hover { background: var(--gray); }
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus { outline: none; background: #fff; border-color: #2185ff; box-shadow: 0 0 4px rgba(0, 115, 255, 0.4); }
label.check { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; font-weight: 400; }
label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--black); }
.hint { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: var(--text3); }
label.check + .hint { margin-left: 26px; margin-top: 2px; }
/* 칸 이름 옆 입력 조건(8자 이상) */
label .cond { margin-left: 6px; font-size: 13px; line-height: 0; font-weight: 400; color: var(--text3); }
/* 단추 바로 아래 한 줄: 누르면 생기는 일 */
.hint.after { margin-top: 12px; text-align: center; }
.msg { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 4px; font-size: 14px; line-height: 20px; }
.msg.show { display: block; }
.msg.bad { background: var(--redSoft); color: var(--red); }
.msg.good { background: var(--greenSoft); color: var(--green); }

/* ---------- 로그인, 가입, 내 계정: 폭 400, 상자로 감싸지 않음 ---------- */
.auth { width: 100%; max-width: 400px; margin: 80px auto 120px; }
.auth h1 { margin: 0; font-size: 28px; line-height: 38px; }
.auth .lead { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--text3); }
.auth form { margin-top: 12px; }
.auth .links { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--text3); }
.auth .links a { color: var(--text); font-weight: 500; text-decoration: none; }
.auth .links a:hover { text-decoration: underline; }
.auth .part { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.auth .part h2 { margin: 0; font-size: 20px; line-height: 28px; }
.auth .part .row { margin-top: 16px; }

/* ---------- 글 페이지(사용 안내): 폭 720 ---------- */
.doc { max-width: 720px; margin: 64px auto 120px; }
.doc .label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text3); }
.doc h1 { margin: 8px 0 0; font-size: 32px; line-height: 42px; }
.doc .lead { margin: 16px 0 0; font-size: 16px; line-height: 26px; color: var(--text2); }
.doc section { margin-top: 56px; }
.doc h2 { margin: 0 0 16px; font-size: 22px; line-height: 30px; }
.doc ol, .doc ul { margin: 0; padding-left: 1.3em; color: var(--text2); }
.doc li { margin: 8px 0; line-height: 26px; }
.doc b.k { font-weight: 600; color: var(--text); }
.doc b.q { font-weight: 600; color: var(--text); }
.doc dl { margin: 0; }
.doc dt { margin-top: 20px; font-weight: 600; }
.doc dd { margin: 4px 0 0; color: var(--text2); line-height: 26px; }
.doc .hint { margin-top: 12px; }
.addr { font-weight: 500; color: var(--text); white-space: nowrap; }

/* ---------- 칩, 썸네일, 카드 물결(첫 화면) ---------- */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 100px; background: var(--gray); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text2); }
.thumb { position: relative; aspect-ratio: 448 / 290; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transform: scale(1.12); transform-origin: 0 0; transition: transform 0.5s ease; }
.thumb.soonThumb { display: grid; place-items: center; color: var(--text3); font-size: 14px; }
.wave { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 100% 0%, rgba(222, 226, 229, 0.9) 0%, rgba(222, 226, 229, 0) 100%), linear-gradient(95deg, #4b4c4f 0%, #545558 30%, #6c6d70 50%, #96999c 78%, #b3b7ba 100%); }
/* 카드 물결은 캔버스 한 장(intro.js). 글씨와 버튼보다 아래 */
.wave .ic-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.wave .dim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(17, 17, 17, 0.6) 0%, rgba(17, 17, 17, 0) 55%); }

/* ---------- 관리 화면 ---------- */
.wrap.wide { max-width: 1320px; margin: 0 auto; padding: 0 20px 80px; }
.brand { display: flex; align-items: baseline; gap: 12px; height: 72px; align-items: center; }
.brand b { font-family: var(--disp); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.brand span { font-size: 14px; font-weight: 500; color: var(--text3); }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin-bottom: 20px; background: #fff; }
.card h2 { margin: 0 0 16px; font-size: 20px; line-height: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
th, td { text-align: left; padding: 12px 8px; border-top: 1px solid var(--line2); vertical-align: middle; }
th { color: var(--text3); font-weight: 500; font-size: 13px; white-space: nowrap; border-top: 0; }
td input[type=text] { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 2px; }
td button { height: 36px; padding: 0 12px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 100px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); color: var(--text2); background: #fff; }
.pill.off { color: var(--text3); background: var(--gray); border-color: var(--gray); }
.pill.bad { color: var(--red); border-color: #f6c3c5; }
.pill.new { color: #a15c00; border-color: #f1d19a; }
tr.offrow td { color: var(--text3); }
.grid4 { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.grid4 label { margin-top: 0; }
.grid4 button { height: 48px; }
.temp { font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 600; background: #fff7e6; padding: 2px 8px; border-radius: 4px; }

@media (max-width: 760px) {
  body { font-size: 14px; line-height: 20px; }
  .gnb { height: 56px; } .gnb .util { gap: 12px; }
  .auth { margin: 40px auto 60px; } .auth h1 { font-size: 24px; line-height: 32px; }
  .doc { margin: 40px auto 60px; } .doc h1 { font-size: 26px; line-height: 34px; } .doc section { margin-top: 40px; }
  .card { padding: 20px; } .grid4 { grid-template-columns: 1fr 1fr; }
}
