/* ivel study: 시험장 좌석표와 수험표에서 빌린 화면. 밝은 바탕 하나(어두운 판은 첫 판 밖). */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #15171c;
  --sub: #555b66;
  --mute: #666c77;
  --line: #dfe2e7;
  --pen: #2b4fd8;      /* 실기, 파란 볼펜 */
  --pen-soft: #dfe5fb;
  --pass1: #0f8a6c;    /* 필기 */
  --pass1-soft: #d8efe8;
  --empty: #c9cdd4;
  --mark: #e9f86a;     /* 형광펜 */
  --warn: #b42318;
  --r: 10px;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { word-break: keep-all; overflow-wrap: anywhere; margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); font-feature-settings: "tnum"; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* 서비스 머리글 */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--sub); cursor: pointer; }
.iconbtn:hover, .iconbtn:focus-visible { background: var(--bg); color: var(--ink); }
.iconbtn svg { width: 20px; height: 20px; }

/* 툴팁: ? 단추에 마우스나 포커스 */
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--sub); font: 700 11px/1 var(--font); cursor: help; vertical-align: 2px; padding: 0; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: min(280px, 80vw); padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 400 13px/1.5 var(--font); text-align: left; white-space: normal; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 20; }
.tip:focus-visible::after, .tip[aria-expanded="true"]::after { opacity: 1; }
@media (hover: hover) { .tip:hover::after { opacity: 1; } }   /* 터치 화면은 누른 상태로만 열고 닫는다 */
.tip.left::after { left: auto; right: -8px; transform: none; }
@media (max-width: 560px) {
  /* 좁은 화면: 말풍선을 화면 아래에 고정해 가장자리에서 잘리지 않게 */
  .tip::after, .tip.left::after { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; transform: none; width: auto; max-width: none; padding: 12px 14px; font-size: 14px; }
}

/* 첫 화면 */
.hero { padding: 28px 0 8px; }
.hero h1 { margin: 0 0 4px; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.25; letter-spacing: -0.03em; }
.hero p { margin: 0; color: var(--sub); }
.find { position: relative; margin: 18px 0 8px; }
.find input { width: 100%; height: 52px; padding: 0 16px 0 46px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); font: 600 17px var(--font); color: var(--ink); }
.find input:focus { outline: 3px solid var(--mark); outline-offset: 0; }
.find svg { position: absolute; left: 14px; top: 15px; width: 22px; height: 22px; color: var(--sub); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 16px 0 32px; }
.qcard { display: grid; grid-template-columns: 1fr 92px; gap: 4px 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; }
.qcard:hover, .qcard:focus-visible { border-color: var(--ink); }
.qcard h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.qcard .meta { color: var(--sub); font-size: 13px; }
.qcard .seats { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
.qcard .line { font-size: 14px; }
.qcard .dday { font-size: 13px; color: var(--sub); }
.qcard .dday b { color: var(--ink); }
.empty { padding: 24px; color: var(--sub); text-align: center; }
.scope { margin: 0 0 28px; font-size: 14px; color: var(--sub); }

/* 종목 페이지 */
.crumb { padding: 14px 0 0; font-size: 14px; color: var(--sub); }
.crumb a { text-decoration: none; }
.head { padding: 6px 0 14px; }
.head h1 { margin: 0; font-size: clamp(26px, 5vw, 38px); letter-spacing: -0.03em; line-height: 1.2; }
.head .sub { color: var(--sub); margin-top: 4px; }
.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.cols > div, .box, .ticket { min-width: 0; max-width: 100%; }
@media (max-width: 860px) {
  .cols { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .cols > div { display: contents; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; }
}
.c-narrow { display: none; }
@media (max-width: 560px) { .c-wide { display: none; } .c-narrow { display: block; } }
.box { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 14px; }
.box > h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; }

/* 고비 */
.crux { font-size: clamp(24px, 4.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 4px; }
.crux-sub { margin: 0 0 14px; color: var(--sub); }
.hall { position: relative; }
.hall .board { height: 8px; margin: 0 18% 14px; border-radius: 3px; background: #2f3b35; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.k-through { background: var(--pen); }
.k-w { background: var(--pass1-soft); border: 1.5px solid var(--pass1); }
.k-out { background: none; border: 1.5px solid var(--empty); }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.facts li b { min-width: 92px; color: var(--sub); font-weight: 600; font-size: 14px; }

/* 수험표 모양 일정 */
.ticket { position: relative; border: 2px solid var(--ink); border-radius: 12px; padding: 16px 16px 14px; background: var(--card); margin-bottom: 14px; }
.ticket .cut { position: relative; border-top: 2px dashed var(--line); margin: 14px -16px 12px; }
.ticket .cut::before, .ticket .cut::after { content: ""; position: absolute; top: -11px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.ticket .cut::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ticket .cut::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ticket .label { font-size: 13px; color: var(--sub); display: flex; justify-content: space-between; gap: 8px; }
.ticket .now { font-size: 15px; font-weight: 700; margin-top: 2px; min-height: 1.5em; }
.ticket .big { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.ticket .dd { font-size: clamp(40px, 9vw, 56px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.ticket .what { font-size: 16px; font-weight: 700; }
.ticket .when { color: var(--sub); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); color: var(--ink); font: 700 14px var(--font); text-decoration: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn:hover { background: var(--bg); }
.btn.primary:hover { background: #2a2e37; }
.rounds { width: 100%; border-collapse: collapse; font-size: 14px; }
.rounds th, .rounds td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rounds td span { display: block; white-space: nowrap; }
.rounds td span i { font-style: normal; color: var(--sub); display: inline-block; min-width: 30px; }
.rounds th { color: var(--sub); font-weight: 600; font-size: 13px; }
.rounds tr.past td { color: var(--mute); }
.rounds tr.cur td { background: #fbfde3; }
.rounds .rt { font-weight: 600; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.more { margin-top: 8px; font-size: 14px; }
.more summary { cursor: pointer; color: var(--sub); }

/* 차트 */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridl { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--mute); font: 12px var(--font); }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.w { stroke: var(--pass1); }
.chart .ln.p { stroke: var(--pen); }
.chart .band.w { fill: var(--pass1); opacity: .12; }
.chart .band.p { fill: var(--pen); opacity: .12; }
.chart .dot { stroke: var(--card); stroke-width: 2; }
.chart .dot.w { fill: var(--pass1); }
.chart .dot.p { fill: var(--pen); }
.chart .lab { font: 700 13px var(--font); fill: var(--ink); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .cross { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.ctip { position: absolute; top: 0; left: 0; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.5; pointer-events: none; opacity: 0; transition: opacity .1s; white-space: nowrap; z-index: 10; }
.ctip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 6px; }
.keys { display: flex; gap: 16px; font-size: 14px; margin-bottom: 8px; }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.keys i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.data th, table.data td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }

/* 공부 길 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps > li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.steps .ic { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.steps .ic svg { width: 22px; height: 22px; }
.steps h3 { margin: 2px 0 6px; font-size: 15px; display: flex; align-items: center; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.links a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 14px; }
.links a:hover { border-color: var(--ink); }
.links .t { font-weight: 600; }
.links .m { color: var(--sub); font-size: 13px; }
.links .ad { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; font-weight: 400; }
.none { color: var(--mute); font-size: 14px; margin: 0; }

/* 바닥 */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 18px 0 40px; font-size: 13px; color: var(--sub); }
.foot .wrap { display: grid; gap: 8px; }
.foot a { color: var(--sub); }
.foot .row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.foot .ivel { color: var(--mute); }

/* 건의 창 */
dialog.fb { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 12px; padding: 18px; }
dialog.fb::backdrop { background: rgba(20, 22, 28, .45); }
dialog.fb h2 { margin: 0 0 10px; font-size: 17px; }
dialog.fb .kinds { display: flex; gap: 6px; margin-bottom: 8px; }
dialog.fb .kinds label { flex: 1; }
dialog.fb .kinds input { position: absolute; opacity: 0; }
dialog.fb .kinds span { display: block; text-align: center; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; }
dialog.fb .kinds input:checked + span { border-color: var(--ink); font-weight: 700; }
dialog.fb .kinds input:focus-visible + span { outline: 2px solid var(--pen); }
dialog.fb textarea, dialog.fb input[type=email] { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; font: 15px var(--font); }
dialog.fb textarea { height: 110px; resize: vertical; }
dialog.fb .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; align-items: center; }
dialog.fb .msg { margin-right: auto; font-size: 13px; color: var(--warn); }
dialog.fb .msg.ok { color: var(--pass1); }
.hp { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 정책 글 */
.doc { max-width: 720px; padding: 20px 0; }
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 18px; margin-top: 24px; }
.nw { white-space: nowrap; }
.live { margin: 10px 0 0; font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pass1); box-shadow: 0 0 0 3px var(--pass1-soft); }
.live[hidden] { display: none; }
