/* ═════ v3 「이너버스 마스터플랜」 — 설계도 콘셉트 ═════
   bcave에서 섞은 것: 가운데 명조 제목 + 가는 가로선 틀 + 가운데 장식, 영문 소제목, 각진 카드
   이너버스만의 것: 도면 격자 배경·모서리 좌표 표시, PLAN № 도면 번호, 매달 '다섯 칸' 슬롯, 노랑 */
:root { --r: 4px; }

/* 첫 화면 */
.mp-hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 75%); }
.frame { position: relative; max-width: 860px; margin: 0 auto; padding: 56px 24px 52px; text-align: center; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.frame::before, .frame::after { position: absolute; font-size: 10px; letter-spacing: .2em; color: var(--faint); font-family: ui-monospace, Consolas, monospace; }
.frame::before { content: "A-01"; left: 0; top: 10px; }
.frame::after { content: "IV / MP"; right: 0; bottom: 10px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .32em; color: var(--dim); }
.mp-hero h1 { margin-top: 22px; font-family: var(--serif); font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; line-height: 1.32; letter-spacing: -.02em; }
.mp-hero h1 em { font-style: normal; color: var(--y); }
.orn { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 28px auto; max-width: 520px; color: var(--y); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.mp-hero p { color: var(--dim); font-family: var(--serif); font-size: 17px; line-height: 1.9; }
.mp-hero .cta { margin-top: 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mp-hero .btn, .mp-sec .btn { border-radius: var(--r); }

.plan-strip { max-width: 860px; margin: 28px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.plan-strip p { font-size: 14px; color: var(--dim); }
.plan-strip b { color: var(--y); }
.slots { display: inline-flex; gap: 6px; }
.slots i { width: 14px; height: 14px; border: 1.5px solid var(--y); border-radius: 50%; }
.slots i.on { background: var(--y); box-shadow: 0 0 10px rgba(252,242,24,.5); }
.slots.big i { width: 18px; height: 18px; }

/* 섹션 머리 */
.mp-sec { padding: 56px 0; }
.sh { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 14px; border-bottom: 1px solid var(--line2); margin-bottom: 28px; }
.eng { display: block; font-size: 11px; font-weight: 700; letter-spacing: .28em; color: var(--y); }
.sh h2 { margin-top: 8px; font-family: var(--serif); font-size: 28px; font-weight: 800; }
.phead { padding: 56px 0 28px; }
.phead h1 { margin-top: 10px; font-family: var(--serif); font-size: 36px; font-weight: 800; padding-bottom: 18px; border-bottom: 1px solid var(--line2); }

/* 최신 칼럼: 큰 것 1 + 작은 것 2 */
.tagno { position: absolute; left: 12px; top: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: .12em; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); padding: 3px 8px; border-radius: 2px; backdrop-filter: blur(4px); }
.ph { position: relative; overflow: hidden; border-radius: var(--r); background: var(--card); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a:hover .ph img { transform: scale(1.035); }
.lead-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.lead-col .ph { aspect-ratio: 4/3; }
.lead-col .cat { font-size: 13px; color: var(--y); font-weight: 700; }
.lead-col h3 { margin-top: 12px; font-family: var(--serif); font-size: 32px; font-weight: 800; line-height: 1.4; }
.lead-col p { margin-top: 16px; font-family: var(--serif); color: var(--dim); font-size: 16px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mt { display: block; margin-top: 18px; font-size: 13px; color: var(--faint); }
a:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(252,242,24,.6); text-decoration-thickness: 1px; }
.pair { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sub-col .ph { aspect-ratio: 16/9; }
.sub-col h3 { margin-top: 16px; font-family: var(--serif); font-size: 21px; font-weight: 800; line-height: 1.45; }
.sub-col .mt { margin-top: 8px; }

/* 인덱스(도면 목록) */
.index { border-top: 1px solid var(--line2); }
.irow { display: grid; grid-template-columns: 116px 1fr 110px 70px 72px; gap: 18px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.irow:hover { background: rgba(255,255,255,.02); }
.irow .t { min-width: 0; }
.sh + .index { border-top: 0; margin-top: -28px; }
.irow .no { font-family: ui-monospace, Consolas, monospace; font-size: 12px; letter-spacing: .08em; color: var(--faint); }
.irow h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.5; }
.irow p { margin-top: 4px; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow .cat { font-size: 13px; color: var(--dim); }
.irow .rt { font-size: 12px; color: var(--faint); display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.irow img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); filter: grayscale(.35); transition: filter .3s; }
.irow:hover img { filter: none; }
.lk { display: inline-flex; color: var(--text); }
.open { font-size: 11px; font-weight: 800; color: #000; background: var(--y); border-radius: 2px; padding: 1px 6px; }

.filters { margin: 0 0 20px; }
.filters a { border: 1px solid var(--line2); color: var(--dim); font-size: 14px; font-weight: 600; padding: 8px 15px; border-radius: var(--r); }
.filters a.on { background: #fff; color: #000; border-color: #fff; }

/* 인강 띠 */
.class-band { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center; padding: 18px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); }
.class-band:hover { border-color: rgba(252,242,24,.4); }
.class-band .pv { aspect-ratio: 16/10; border-radius: 2px; background: radial-gradient(120% 90% at 70% 20%, #1d1b2b 0%, #0a0a0e 60%); display: grid; place-items: center; }
.class-band .pv img { width: 32%; filter: invert(1); }
.class-band h3 { margin-top: 8px; font-family: var(--serif); font-size: 22px; font-weight: 800; }
.class-band p { margin-top: 6px; font-size: 14px; color: var(--faint); }
.class-band .pr { text-align: right; font-size: 20px; font-weight: 800; padding-right: 8px; }
.class-band .pr .more { display: flex; justify-content: flex-end; margin-top: 6px; font-size: 13px; color: var(--dim); }

/* 읽기 */
.reader { padding-top: 0; }
.reader .cover { height: 340px; overflow: hidden; position: relative; margin-bottom: 40px; }
.reader .cover img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.reader .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg)); }
.lockbox, .endnav a, .buybox, .plan, .sumbox, .kit div, .bonus div, .poster, .player, .modal .box { border-radius: var(--r); }
.lockbox .btn, .checkout .btn, .buybox .btn { border-radius: var(--r); }

/* 정보 */
.home-body { padding-top: 8px; padding-bottom: 120px; }
.info h2 { font-size: 20px; font-weight: 800; margin: 40px 0 14px; }
.info h2:first-child { margin-top: 8px; }
.info > p { color: var(--dim); line-height: 1.8; margin-bottom: 12px; }
.kv { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--faint); }
.kv b { color: var(--text); font-weight: 600; text-align: right; }
.info .faq { margin-top: 0; }

@media (max-width: 860px) {
  .lead-col { grid-template-columns: 1fr; gap: 20px; }
  .irow { grid-template-columns: 1fr 64px; gap: 6px 14px; }
  .irow .no { grid-column: 1; grid-row: 1; }
  .irow .t { grid-column: 1; grid-row: 2; }
  .irow img { grid-column: 2; grid-row: 1 / span 3; width: 64px; height: 64px; }
  .irow .cat, .irow .rt { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .irow .cat { display: none; }
}
@media (max-width: 760px) {
  .mp-hero { padding: 28px 0 48px; }
  .frame { padding: 40px 4px 36px; }
  .mp-hero p { font-size: 15px; }
  .mp-hero p br { display: none; }
  .lead-col h3 { font-size: 24px; }
  .pair { grid-template-columns: 1fr; }
  .sh h2 { font-size: 24px; }
  .irow h3 { font-size: 17px; }
  .class-band { grid-template-columns: 1fr; }
  .class-band .pr { text-align: left; }
  .class-band .pr .more { justify-content: flex-start; }
  .reader .cover { height: 220px; margin-bottom: 28px; }
  .phead { padding: 36px 0 20px; }
  .phead h1 { font-size: 28px; }
}

/* 약관·방침·환불 */
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.legal h2 { font-size: 18px; }
.legal p, .legal li, .legal td { color: var(--dim); line-height: 1.85; font-size: 15px; }
.legal p.lead { max-width: none; color: var(--text); font-size: 16px; padding: 18px 20px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--card); }
.legal p.lead b { color: var(--y); }
.legal ol, .legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
.legal li ul { margin-top: 6px; }
.legal a { color: var(--y); text-decoration: underline; text-underline-offset: 3px; }
.rtable { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.rtable th { text-align: left; font-size: 13px; font-weight: 700; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.rtable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable td b { color: var(--y); }
.legal .eff { margin-top: 36px; font-size: 13px; color: var(--faint); }
.refund-note { margin: 0 0 12px; font-size: 13px; color: var(--dim); }
.agree a { color: var(--y); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .rtable th, .rtable td { padding: 9px 6px; font-size: 14px; } }

/* ── 로그인 코드 / 관리 화면 ── */
.modal .otp { letter-spacing: .4em; font-size: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.modal .btn[disabled] { opacity: .6; pointer-events: none; }
.modal p b { color: var(--text); }
.loading { color: var(--faint); font-size: 14px; margin-top: 24px; }
nav.main a[hidden] { display: none; }
.admin .adm-card { margin-top: 28px; padding: 26px 24px; border: 1px solid var(--line2); background: var(--card); border-radius: var(--r); }
.admin h2 { font-size: 19px; font-weight: 800; }
.admin h2 small { font-size: 13px; font-weight: 500; color: var(--dim); margin-left: 8px; }
.admin .note { margin-top: 8px; line-height: 1.6; }
.admin code { font-size: 12px; background: var(--bg); padding: 1px 6px; border-radius: 4px; }
.admin textarea, .admin input { width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.admin textarea:focus, .admin input:focus { outline: none; border-color: var(--y); }
.adm-row { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.adm-row input { flex: 1; }
.adm-row .btn { margin-top: 14px; white-space: nowrap; }
.adm-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.adm-head input { width: 200px; margin-top: 0; }
.adm-list { margin-top: 14px; border-top: 1px solid var(--line); }
.adm-item { display: flex; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.adm-item > div { flex: 1; min-width: 0; }
.adm-item b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.adm-item small { color: var(--faint); font-size: 12px; }
.adm-item.off b { color: var(--faint); text-decoration: line-through; }
.btn.sm { padding: 7px 12px; font-size: 12px; min-height: 0; }
.btn.sm.del { color: var(--faint); }
.modal .btn.kakao { margin-top: 22px; background: #FEE500; color: #191600; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.modal .alt-login { margin-top: 18px; }
.modal .alt-login summary { cursor: pointer; font-size: 13px; color: var(--faint); text-align: center; list-style: none; }
.modal .alt-login summary::-webkit-details-marker { display: none; }
.modal .alt-login[open] summary { margin-bottom: 4px; }
