/* Match the existing AMUGONA /edu page, using the shared site-brand fonts/header. */
:root { color-scheme: light; color: var(--amg-ink, #151515); background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--amg-body, "RIDIBatang", serif); font-size: 16px; line-height: 1.78; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline: 2px solid #315fba; outline-offset: 4px; }
.library { width: min(1120px, calc(100% - 32px)); margin: auto; padding: clamp(64px, 8vw, 96px) 0; }
.library-intro { padding: clamp(24px, 4vw, 48px) 0 20px; }
.eyebrow { display: inline-block; padding: 5px 11px; border: 1px solid #315fba; color: #315fba; font-family: var(--amg-section); font-size: 13px; font-weight: 700; line-height: 1.35; }
.library h1 { font-family: var(--amg-headline); font-size: clamp(34px, 6vw, 44px); font-weight: 900; line-height: 1.18; margin: 18px 0; }
.intro { max-width: none; margin: 0; font-size: 17px; line-height: 1.85; }
.tools { display: flex; align-items: center; gap: 16px; margin: 16px 0 28px; }
.search { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid #b8b8b8; border-radius: 0; color: #151515; background: #fff; font-family: var(--amg-body); font-size: 16px; }
.search::placeholder { color: #777; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.filters button { min-height: 40px; padding: 8px 14px; border: 1px solid #b8b8b8; border-radius: 999px; color: #151515; background: #fff; font-family: var(--amg-section); font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.categories button:hover, .categories button[aria-pressed="true"] { background: #151515; border-color: #151515; color: #fff; }
.kinds { gap: 10px; margin-top: 24px; }
.kinds button { border: 1px solid #ef6c1a; border-radius: 0; font-family: var(--amg-headline); font-size: 17px; padding: 9px 16px; }
.kinds button:hover, .kinds button[aria-pressed="true"] { background: #ef6c1a; color: #fff; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.section-title { display: inline-block; margin: 0; padding: 7px 12px; background: #151515; color: white; font-family: var(--amg-section); font-size: 23px; font-weight: 500; line-height: 1.34; }
.count { margin: 0; color: #555; font-size: 14px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card { display: block; padding: 26px; border: 1px solid #cfcfcf; background: #fff; text-decoration: none; transition: background-color 160ms, border-color 160ms, transform 160ms; }
.card:hover { border-color: #7b8f7a; background: #f3f8ee; transform: translateY(-2px); }
.card[data-categories~="ICT-IOT"]:hover { border-color: #6fa9b3; background: #eef9fb; }
.card[data-categories~="AI-파이썬"]:hover { border-color: #9a89ca; background: #f5f1ff; }
.card[data-categories~="기술창업"]:hover { border-color: #d49b69; background: #fff5eb; }
.card[data-categories~="기구설계"]:hover { border-color: #7f9f72; background: #f3f8ee; }
.card[data-categories~="기타"]:hover { border-color: #9a9a9a; background: #f5f5f5; }
.tag { display: inline-block; margin-bottom: 12px; padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; color: #151515; background: #fff; font-family: var(--amg-section); font-size: 12px; line-height: 1.2; }
.card h3 { margin: 0 0 10px; font-family: var(--amg-section); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.34; }
.card p { margin: 0; color: #555; font-size: 17px; line-height: 1.75; }
.card .open { display: inline-block; margin-top: 14px; color: #315fba; font-family: var(--amg-section); font-size: 12px; }
.message { padding: 60px 24px; max-width: 800px; margin: auto; line-height: 1.8; }
.message h1 { font-family: var(--amg-headline); }
.message button { padding: 10px 18px; cursor: pointer; }
.lesson-frame { display: block; width: 100%; height: 85vh; border: 0; background: #fff; }
.lesson-nav { display: flex; justify-content: space-between; gap: 20px; padding: 12px max(16px, calc((100vw - 1120px)/2)); border-bottom: 1px solid #ddd; font-family: var(--amg-section); font-size: 12px; background: #fff; }
.embed .site-header, .embed .lesson-nav, .embed .footer-container { display: none; }
.empty { padding: 35px 0; color: #555; }
@media(max-width:600px) {
  .library { padding-top: 28px; }
  .library-intro { padding-top: 16px; }
  .site-header { gap: 18px; padding: 18px 20px; }
  .site-nav { gap: 14px 16px; font-size: 14px; }
  .site-nav a { white-space: nowrap; }
  .card { padding: 20px; }
  .kinds button { flex: 1; padding: 9px 10px; font-size: 14px; }
  .section-title { font-size: 20px; }
  .results-heading { align-items: center; }
  .count { font-size: 12px; }
}
@media print { .site-header, .lesson-nav, .footer-container { display: none; } .lesson-frame { overflow: visible; } }
