/* 홈페이지 「입시 정보」 (2026-09-17 개발명세서 v1.0).
   색·모서리·그림자는 home.css 토큰을 쓴다 — 명세 §13 "기존 디자인 시스템 우선". */

.ai-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); }
.ai-hero .wrap { max-width: 1100px; }
.ai-hero h1 { margin: 10px 0 12px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.25; color: var(--navy); }
.ai-hero p { max-width: 860px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; color: var(--ink-2); }
.ai-crumb { font-size: 14px; color: var(--muted); }
.ai-crumb a { color: var(--muted); }
.ai-crumb a:hover { color: var(--career); }

.ai-body { padding: 8px 0 72px; }
.ai-body .wrap { max-width: 1100px; }
.ai-sec { margin-top: 48px; }
.ai-sec > h2 { font-size: clamp(22px, 2vw, 30px); color: var(--navy); margin: 0 0 16px; }

/* 핵심 메뉴 카드 2×2 · 전형 카드 3열 */
.ai-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ai-cards.three { grid-template-columns: repeat(3, 1fr); }
.ai-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 28px 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  color: inherit; text-decoration: none; transition: box-shadow .16s ease, transform .16s ease;
}
.ai-card:hover, .ai-card:focus-visible { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ai-card h3 { margin: 0; font-size: 20px; color: var(--navy); }
.ai-card .sub { font-size: 14px; color: var(--muted); }
.ai-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.ai-card .go { font-weight: 700; color: var(--ink-2); }
.ai-card:hover .go, .ai-card:hover h3 { color: var(--career); }

/* 칩 필터 */
.ai-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.ai-filter .lbl { width: 44px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.chip {
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--career-soft); border-color: var(--career-soft); color: var(--career); font-weight: 700; }
.ai-search { display: flex; gap: 8px; margin: 8px 0 14px; }
.ai-search input, .ai-select {
  flex: 1; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); font-size: 15px; color: var(--ink);
}
.ai-select { flex: 0 0 auto; }

.tbadge {
  display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700;
  background: var(--career-soft); color: var(--career); margin: 0 4px 4px 0;
}
.tbadge.gray { background: var(--paper-3); color: var(--ink-2); }

/* 목록 카드 (대학 · 자료) */
.ai-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ai-item {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px;
}
.ai-item h3 { margin: 0; font-size: 18px; color: var(--navy); }
.ai-item .meta { font-size: 13.5px; color: var(--muted); }
.ai-item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.ai-item .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ai-item .actions a { font-weight: 700; font-size: 14.5px; }

.ai-empty { padding: 28px; text-align: center; color: var(--muted); background: var(--paper);
  border: 1px dashed var(--line); border-radius: 14px; }
/* 탭 안의 소제목(2026-09-28 — 지원자격: 요강 기준 / 공통 항목, 전형방법: 방법 / 평가영역). */
.ai-sub { margin: 18px 0 8px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.ai-sub:first-child { margin-top: 0; }
.ai-where { font-size: 13px; color: var(--muted); }
.ai-empty + .ai-sub, ul + .ai-empty { margin-top: 16px; }
/* 요강 원문 발췌(2026-09-28) — 원문 줄바꿈을 살리고, 길면 칸 안에서 내린다. */
.ai-quote { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); padding: 4px 18px; }
.ai-quote-page { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ai-quote-page:last-child { border-bottom: 0; }
.ai-quote-no { display: inline-block; margin-bottom: 8px; padding: 1px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--t-text-brand, #2f5bd3); background: var(--c-brand-50, #eef3ff); }
.ai-quote-text { white-space: pre-line; font-size: 14.5px; line-height: 1.75; color: var(--ink-2, #374151); }
.ai-notice { margin-top: 36px; padding: 16px 18px; border-radius: 12px; background: var(--paper-2);
  font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* 일정 줄 */
.ai-days { display: flex; flex-direction: column; gap: 10px; }
.ai-day { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.ai-day .d { font-weight: 800; font-size: 15px; color: var(--career); }
.ai-day .d.past { color: var(--muted); }
.ai-day b { display: block; color: var(--navy); }
.ai-day span { font-size: 13.5px; color: var(--muted); }
.ai-day .when { font-size: 14px; color: var(--ink-2); white-space: nowrap; }

/* 탭 */
.ai-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 20px 0 18px; }
.ai-tabs button { flex: 0 0 auto; padding: 12px 16px; border: 0; background: none; font-size: 15px;
  color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; }
.ai-tabs button[aria-selected="true"] { color: var(--career); border-bottom-color: var(--career); font-weight: 700; }
.ai-panel dl { display: grid; grid-template-columns: 9rem 1fr; gap: 10px 16px; margin: 0; }
.ai-panel dt { color: var(--muted); }
.ai-panel dd { margin: 0; color: var(--ink); }
.ai-panel ul { margin: 0; padding-left: 20px; line-height: 1.9; }

/* 달력 */
.ai-cal-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ai-cal { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.ai-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ai-cal-head b { font-size: 18px; color: var(--navy); }
.ai-cal-head button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; }
.ai-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ai-cal-grid .w { text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.ai-cal-grid button { position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 10px; background: none;
  font-size: 14px; color: var(--ink); cursor: pointer; }
.ai-cal-grid button:hover { background: var(--paper-2); }
.ai-cal-grid button.today { font-weight: 800; color: var(--career); }
.ai-cal-grid button.sel { background: var(--career); color: var(--on-brand); }
.ai-cal-grid button.has::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--career); }
.ai-cal-grid button.sel.has::after { background: var(--on-brand); }

@media (max-width: 860px) {
  .ai-cards, .ai-cards.three, .ai-list, .ai-cal-wrap { grid-template-columns: 1fr; }
  .ai-card { min-height: 140px; padding: 22px 20px; }
  .ai-panel dl { grid-template-columns: 1fr; gap: 2px; }
  .ai-panel dt { margin-top: 10px; }
  .ai-day { grid-template-columns: 56px 1fr; }
  .ai-day .when { grid-column: 2; }
}
