/* 티쳐툴즈 TeacherTools — 공통 스타일 */
:root {
  --ink: #1B1F24;
  --muted: #4A5058;
  --soft: #5B6168;
  --line: #E2E2DC;
  --ground: #F6F6F2;
  --white: #FFFFFF;
  --blue: #1F4FC4;
  --blue-dark: #163A92;
  --blue-bg: #EEF3FD;
  --blue-line: #C9D6F5;
  --green: #1D6B3A;
  --green-bg: #E8F4EC;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.5;
  word-break: keep-all;
}
h1, h2, h3, .brand { font-family: 'IBM Plex Sans KR', sans-serif; }
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 32px; font-size: 34px; }

/* 헤더 */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.brand-en { font-weight: 500; font-size: 16px; color: var(--soft); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a { padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a.cta { color: var(--white); background: var(--ink); border-radius: 8px; padding: 10px 16px; }

/* 버튼 */
.btn { display: inline-block; padding: 14px 22px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 16px; border: 1px solid #C8C8C0; background: var(--white); color: var(--ink); }
.btn:hover { color: var(--ink); background: #FAFAF7; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 700; }
.btn.primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 배지·태그 */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--blue-bg); color: var(--blue); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.gray { background: #F1F1EC; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border: 1px solid #DCDCD5; border-radius: 6px; font-size: 13px; color: var(--muted); }

/* 홈: 소개 */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 88px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; padding: 6px 12px; border: 1px solid var(--blue-line); background: var(--blue-bg); color: var(--blue); border-radius: 999px; font-size: 14px; font-weight: 500; }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.25; letter-spacing: -0.02em; max-width: 820px; }
.hero p { margin: 0; font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 680px; }

/* 홈: 프로그램 */
.programs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.programs-head h2 { margin: 0 0 8px; }
.programs-head p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #C8C8C0; background: var(--white); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.card:hover { color: var(--ink); box-shadow: 0 8px 24px rgba(27,31,36,.08); transform: translateY(-2px); }
.card-img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: top left; background: #E9EDF5; border-bottom: 1px solid var(--line); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card h3 { margin: 0; font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; flex-grow: 1; }
.card .more { font-weight: 700; color: var(--blue); font-size: 15px; }
.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 420px; border: 2px dashed #C8C8C0; border-radius: var(--radius); padding: 32px; text-align: center; color: var(--soft); }
.soon strong { font-size: 18px; color: var(--ink); }
.soon p { margin: 0; font-size: 15px; line-height: 1.6; }

/* 홈: 이용 안내 */
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.guide div { padding: 28px; border-radius: 14px; background: var(--ground); display: flex; flex-direction: column; gap: 10px; }
.guide span { font-family: 'IBM Plex Sans KR', sans-serif; font-weight: 700; color: var(--blue); font-size: 15px; }
.guide strong { font-size: 19px; }
.guide p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 15px; }

/* 홈: 만든 사람 */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-img { flex: 0 0 200px; width: 200px; height: 200px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); object-fit: contain; padding: 12px; }
.about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about-text h2 { margin: 0; }
.about-text .who { margin: 0; font-size: 18px; font-weight: 700; }
.about-text .bio { margin: 0; color: var(--muted); line-height: 1.75; font-size: 16px; max-width: 720px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span, .skills a { padding: 6px 12px; background: var(--white); border: 1px solid #DCDCD5; border-radius: 8px; font-size: 14px; }
.skills a { background: var(--blue-bg); border-color: var(--blue-line); font-weight: 500; text-decoration: none; }

/* 푸터 */
.site-footer { background: var(--ink); color: #E6E7E9; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer .label { color: #B5B9BF; }
.site-footer a { color: var(--white); }
.site-footer .brand-name { font-family: 'IBM Plex Sans KR', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); }
.site-footer .brand-name span { font-weight: 500; color: #B5B9BF; }
.sns { display: flex; flex-wrap: wrap; gap: 16px; }
.sns a { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.sns img { width: 32px; height: 32px; object-fit: contain; display: block; }
.footer-mini .wrap { padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: #B5B9BF; }

/* 상세 */
.detail-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.detail-hero .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.detail-hero .text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.detail-hero h1 { margin: 0; font-size: 44px; line-height: 1.25; letter-spacing: -0.02em; }
.detail-hero p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.detail-hero .meta { font-size: 13px; color: var(--soft); }
.detail-hero .shot { flex: 1 1 480px; min-width: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--white); border: 1px solid #DCE2EE; object-fit: cover; object-position: top left; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.feature small { font-size: 13px; font-weight: 700; color: var(--blue); }
.feature strong { font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .num { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps strong { font-size: 17px; }
.steps span.desc { color: var(--muted); font-size: 15px; line-height: 1.7; }
kbd { padding: 1px 6px; border: 1px solid #C8C8C0; border-bottom-width: 2px; border-radius: 4px; background: var(--ground); font-family: inherit; font-size: 13px; }
.boxes { display: flex; flex-wrap: wrap; gap: 24px; }
.box { flex: 1 1 420px; min-width: 0; padding: 28px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.box strong { font-size: 18px; }
.box ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; font-size: 15px; }
.box.warn { background: #FFF6EC; border-color: #F1D9BD; }
.box.warn strong { color: #7A3F0B; }
.box.warn ul { color: #4A3A2A; }
.updates { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.updates li { display: flex; gap: 16px; }
.updates b { color: var(--ink); min-width: 96px; }
.notfound { padding: 120px 0; text-align: center; }

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
  .detail-hero h1 { font-size: 30px; }
  .grid { grid-template-columns: 1fr; }
  .nav a { padding: 8px 10px; }
}
