/* ==========================================================================
   Thành phần giao diện (theo tên component trong js/components/)
   ========================================================================== */

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 47, 91, .6); position: relative; }
.brand-logo .icon { width: 23px; height: 23px; }
.brand-logo::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); border: 2px solid #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.brand-logo.has-img { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 3px; border-radius: 12px; width: 48px; height: 48px; }
.brand-logo.has-img::after { display: none; }
.brand-text { min-width: 0; display: flex; flex-direction: column; }
.brand-school { font-size: var(--fs-md); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.brand-sub { font-size: var(--fs-xs); color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-right { display: flex; align-items: center; gap: 10px; flex: none; }
.header-search { width: 320px; }
.header-search .input { min-height: 42px; border-radius: 999px; padding-left: 40px; background-color: var(--surface-2); box-shadow: none; }
.header-search .search-icon { left: 14px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--navy-800); background: var(--navy-50); border: 1px solid var(--navy-100); transition: background var(--t); }
.icon-btn:hover { background: var(--navy-100); }

/* ---------- HeroSection ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eaf4fd 0%, #f6fafe 60%, var(--bg) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, #cfeeea 0%, transparent 70%); }
.hero::after { width: 360px; height: 360px; left: -140px; bottom: -200px; background: radial-gradient(circle, #dcefff 0%, transparent 70%); }
.hero .container { position: relative; padding-block: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 28px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.hero-title { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); letter-spacing: .01em; text-transform: uppercase; color: var(--navy-800); line-height: 1.15; overflow-wrap: anywhere; text-wrap: balance; max-width: 24ch; }
.hero-title .year { display: block; color: var(--teal-600); font-size: .78em; margin-top: 6px; }
.hero-intro { margin-top: 12px; max-width: 60ch; color: var(--ink-600); font-size: var(--fs-md); }
.hero-search { margin-top: 20px; max-width: 680px; }
.hero-aside { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.internal-stamp { display: inline-block; padding: 7px 18px; border: 2px solid #e8641b; border-radius: 8px; color: #e8641b; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-sm); background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #e8641b; }

/* ---------- SchoolTag ---------- */
.school-tag { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .97); border: 1.5px solid #a9c8ea; color: var(--navy-800); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-lg); line-height: 1.25; box-shadow: 0 10px 24px -18px rgba(11, 47, 91, .45); max-width: 100%; }
.school-tag .tag-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-100); }
.school-tag .tag-icon .icon { width: 20px; height: 20px; }
.school-tag .tag-icon.has-img { background: #fff; padding: 3px; }
.school-tag .tag-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.school-tag .tag-dot { position: absolute; top: -6px; right: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500); border: 2px solid #fff; }
.school-tag .tag-text { min-width: 0; overflow-wrap: anywhere; }
.school-tag small { display: block; font-size: var(--fs-xs); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-500); margin-top: 2px; }

/* ---------- SearchBox ---------- */
.search-box { position: relative; }
.search-box form { position: relative; display: flex; gap: 10px; }
.search-box .field { position: relative; flex: 1; }
.search-box .input { padding-left: 46px; padding-right: 40px; min-height: 50px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.search-box .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.search-box .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-500); }
.search-box .clear:hover { background: var(--navy-50); }
.search-box .btn { min-height: 50px; border-radius: 14px; }
.search-hint { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.search-hint button { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--navy-700); font-size: var(--fs-xs); }
.search-hint button:hover { border-color: var(--navy-600); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest[hidden] { display: none; }
.suggest li { border-top: 1px solid var(--line); }
.suggest li:first-child { border-top: 0; }
.suggest a { display: block; padding: 10px 14px; color: inherit; }
.suggest a:hover, .suggest a:focus-visible { background: var(--navy-50); text-decoration: none; box-shadow: none; }
.suggest .crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-xs); color: var(--ink-500); margin-bottom: 2px; }
.suggest .crumbs b { color: var(--teal-700); }
.suggest .title { font-weight: 700; color: var(--navy-800); font-size: var(--fs-sm); }
.suggest .more { padding: 10px 14px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-700); background: var(--surface-2); }
mark { background: var(--gold-100); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- GradeBookshelf / GradeCard ---------- */
.section-shelf { padding-bottom: clamp(12px, 2vw, 24px); }
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); max-width: 1260px; }
.grade-card { position: relative; display: flex; flex-direction: column; text-align: left; width: 100%; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.grade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b9cfe9; }
.grade-card:focus-visible { box-shadow: var(--ring), var(--shadow); border-color: var(--sky-600); }
.grade-card.is-selected { border-color: var(--accent-600); box-shadow: 0 0 0 4px rgba(59, 181, 173, .18), var(--shadow); }
.grade-cover { position: relative; aspect-ratio: 4 / 4.6; padding: 16px 20px 10px; background: linear-gradient(160deg, var(--sky-50), #fff 55%, var(--teal-50)); display: grid; place-items: end center; }
.grade-cover img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 12px 16px rgba(11, 47, 91, .22)); transition: transform var(--t); }
.grade-card:hover .grade-cover img { transform: translateY(-3px) scale(1.015); }
.grade-cover .no-cover { width: 70%; aspect-ratio: 3/4; border-radius: 8px; background: linear-gradient(160deg, var(--navy-100), var(--navy-50)); display: grid; place-items: center; color: var(--navy-700); font-weight: 700; text-align: center; padding: 10px; font-size: var(--fs-sm); }
.grade-number { position: absolute; left: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--surface); color: var(--navy-800); font-weight: 700; font-size: 1.4rem; line-height: 1; box-shadow: var(--shadow); border: 1px solid var(--line); }
.grade-check { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--navy-900); opacity: 0; transform: scale(.6); transition: opacity var(--t), transform var(--t); }
.grade-check .icon { width: 16px; height: 16px; stroke-width: 3; }
.grade-card.is-selected .grade-check { opacity: 1; transform: scale(1); }
.grade-body { padding: 12px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.grade-name { font-weight: 700; color: var(--navy-800); font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grade-body > div { min-width: 0; }
.grade-hint { font-size: var(--fs-xs); color: var(--ink-500); margin-top: 3px; }
.grade-arrow { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--navy-50); color: var(--navy-800); transition: background var(--t), color var(--t), transform var(--t); }
.grade-card:hover .grade-arrow { background: var(--accent); color: #fff; transform: translateX(2px); }
.grade-card.is-selected .grade-arrow { background: var(--accent); color: #fff; }

/* ---------- SubjectGrid / SubjectCard (bản đồ môn học) ---------- */
.subject-section { scroll-margin-top: 80px; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.subject-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.subject-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b9cfe9; }
.subject-card:focus-within { box-shadow: var(--ring), var(--shadow); border-color: var(--sky-600); }
.subject-card.is-empty { background: var(--surface-2); }
.subject-main { display: flex; align-items: center; gap: 14px; color: inherit; min-width: 0; }
.subject-main:hover { text-decoration: none; }
.subject-main:focus-visible { box-shadow: none; }
.subject-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; }
.subject-icon .icon { width: 27px; height: 27px; }
.subject-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.subject-name { font-weight: 700; color: var(--navy-800); font-size: var(--fs-lg); line-height: 1.2; }
.subject-name small { font-weight: 400; color: var(--ink-500); font-size: var(--fs-xs); margin-left: 4px; }
.subject-meta { font-size: var(--fs-sm); color: var(--ink-600); margin-top: 4px; }
.subject-meta b { color: var(--navy-800); }
.subject-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.subject-actions .btn { flex: 1 1 auto; }
.subject-actions .btn-outline { flex: 0 0 auto; }

/* Tông màu biểu tượng môn */
.tone-navy { background: var(--navy-100); color: var(--navy-800); }
.tone-teal { background: var(--teal-100); color: var(--teal-700); }
.tone-rose { background: #fde4e8; color: #b42846; }
.tone-green { background: #dcf3e2; color: #1f7a3c; }
.tone-amber { background: #fdecc8; color: #9a5b00; }
.tone-sky { background: var(--sky-100); color: #155f9e; }
.tone-indigo { background: #e3e6fb; color: #3b45a8; }
.tone-slate { background: #e6ebf2; color: #3f4f63; }
.tone-violet { background: #ece4fb; color: #6b3fb0; }
.tone-pink { background: #fbe3f2; color: #a8327a; }
.tone-orange { background: #fee5d3; color: #b34a12; }
.tone-gold { background: var(--gold-100); color: var(--gold-600); }

/* ---------- IntegrationBadge ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-blue { background: #e3eefc; color: #1d4f9c; }
.badge-violet { background: #ece4fb; color: #5f3aa3; }
.badge-olive { background: #e8f0d6; color: #4f6b12; }
.badge-amber { background: #fdefc9; color: #8a5300; }
.badge-teal { background: var(--teal-100); color: var(--teal-700); }
.badge-rose { background: #fde4e8; color: #a52541; }
.badge-pink { background: #fbe3f2; color: #a0306f; }
.badge-brown { background: #f1e6da; color: #6f4a26; }
.badge-orange { background: #fee5d3; color: #a5460f; }
.badge-green { background: #dcf3e2; color: #1e6f38; }
.badge-indigo { background: #e3e6fb; color: #35409c; }
.badge-slate { background: #e6ebf2; color: #3f4f63; }
.integration-list { display: flex; flex-direction: column; gap: 6px; }
.integration-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; font-size: var(--fs-xs); color: var(--ink-700); line-height: 1.45; }
.integration-item .text { flex: 1 1 160px; min-width: 0; }

/* ---------- SubjectDetail: đầu trang tài liệu ---------- */
.doc-section { padding-top: clamp(16px, 2.5vw, 28px); }
.doc-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-500); margin-bottom: 8px; }
.breadcrumb a { color: var(--navy-700); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb .sep { color: var(--ink-400); }
.doc-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.25; }
.doc-title .subject-icon { width: 46px; height: 46px; border-radius: 13px; }
.doc-title .subject-icon .icon { width: 22px; height: 22px; }
.doc-title .muted { font-weight: 400; font-size: .8em; }
.doc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-600); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Thanh công cụ gọn */
.plan-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.plan-toolbar .field { position: relative; flex: 1 1 260px; min-width: 200px; }
.plan-toolbar .field .input { padding-left: 42px; min-height: 42px; }
.plan-toolbar .field .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--navy-50); border: 1px solid var(--navy-100); }
.segmented button { min-height: 34px; padding: 6px 14px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-700); transition: background var(--t), color var(--t); white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.plan-toolbar select.input { flex: 0 1 250px; min-height: 42px; }

/* ---------- Trang A4 ---------- */
.sheet-wrap { display: flex; justify-content: center; }
.sheet { width: 100%; max-width: 1123px; /* A4 ngang ở 96 dpi */ background: #fff; color: #000; padding: 48px 60px 52px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px -28px rgba(11, 47, 91, .45), 0 2px 6px rgba(11, 47, 91, .06); font-family: "Times New Roman", Times, "Liberation Serif", "Noto Serif", serif; font-size: 17px; /* 13pt */ line-height: 1.32; }
.sheet .org { display: inline-block; text-align: center; margin-bottom: 26px; }
.sheet .org p { margin: 0; }
.sheet .org .org-1 { text-transform: uppercase; }
.sheet .org .org-2 { font-weight: 700; text-transform: uppercase; position: relative; padding-bottom: 2px; }
.sheet .org .org-2::after { content: ""; position: absolute; left: 22%; right: 0; bottom: 0; border-bottom: 1px solid #000; }
.sheet-loading { min-height: 50vh; display: grid; place-items: center; }
.sheet p { margin: 0 0 3px; overflow-wrap: anywhere; }
.sheet .p-left { text-align: left; } .sheet .p-center { text-align: center; } .sheet .p-right { text-align: right; } .sheet .p-justify { text-align: justify; }
.sheet .p-bold { font-weight: 700; }
.sheet .p-italic { font-style: italic; }
.sheet-head { margin-bottom: 14px; }
.sheet-head p { white-space: pre-wrap; }
.sheet-head .p-center.p-bold { font-size: 17px; margin-top: 2px; }
.sheet-head .p-center.p-italic { font-size: 16px; color: #000; margin: 4px 0 12px; }
.sheet-head .p-left.p-bold { margin-top: 12px; }
.sheet-head .p-justify { margin-bottom: 5px; }
.sheet-head .p-left:not(.p-bold) { margin-bottom: 4px; }
.sheet-foot { margin-top: 16px; }
.sheet-foot .p-italic { font-size: 13px; color: #000; }
.sheet-foot .p-left.p-bold { margin-top: 12px; }

/* Bảng đúng khuôn Phụ lục 2 */
.plan-table-wrap { overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.3; min-width: 900px; }
.plan-table th, .plan-table td { border: 1px solid #000; padding: 4px 6px; vertical-align: top; overflow-wrap: anywhere; }
.plan-table thead th { text-align: center; vertical-align: middle; font-weight: 700; background: #f3f4f6; font-size: 13.5px; }
.plan-table .th-note { display: block; font-weight: 400; font-style: italic; font-size: 10.5px; margin-top: 3px; color: #374151; }
.plan-table .sem-row td { text-align: center; font-weight: 700; background: #f3f4f6; letter-spacing: .04em; }
.plan-table td.week { text-align: center; vertical-align: middle; font-weight: 700; }
.plan-table td.theme { font-size: 12px; }
.plan-table td.title { color: #000; }
.plan-table td.title .content { font-size: 12px; color: #374151; margin-top: 2px; }
.plan-table td.period { white-space: nowrap; }
.plan-table td.period .muted { font-size: 11.5px; }
.plan-table td.adjust { font-size: 12.5px; }
.plan-table .adj-text { margin-bottom: 3px; }
.plan-table .adj-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 6px; margin: 2px 0; }
.plan-table .adj-item > span { flex: 1 1 120px; min-width: 0; }
.plan-table .adj-item .level { color: #6b7280; }
.plan-table td.note { font-size: 12.5px; }
.plan-table tr.is-target td { background: var(--gold-50); box-shadow: inset 3px 0 0 var(--gold-500); }
.plan-filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: var(--sky-50); border: 1px solid #bfdcf7; font-size: var(--fs-xs); color: var(--ink-700); }
.plan-filter-note .icon { width: 16px; height: 16px; color: var(--sky-600); }
.plan-filter-note .link { color: var(--navy-700); font-weight: 700; text-decoration: underline; }

/* Quy ước mã, chữ kí */
.legend-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; margin: 4px 0 8px; }
.legend-table col.c-code { width: 22%; } .legend-table col.c-domain { width: 30%; }
.legend-table .badge { white-space: normal; }
.legend-table th, .legend-table td { border: 1px solid #000; padding: 4px 6px; vertical-align: top; text-align: left; }
.legend-table th { background: #f4f7fb; }
.legend-table td, .legend-table th { overflow-wrap: anywhere; }
.signature { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; text-align: center; }
.signature p { margin: 0; }
.signature .sig-name { margin-top: 64px; }

.scroll-hint { display: none; align-items: center; gap: 6px; margin: 0 0 8px; font-family: var(--font); font-size: var(--fs-xs); color: var(--ink-600); }
.scroll-hint .icon { width: 16px; height: 16px; }
/* Chế độ thẻ theo tuần (không dùng, giữ để tham khảo) */
.plan-cards { display: none; }
.plan-cards .sem-head { padding: 8px 12px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; letter-spacing: .05em; font-size: var(--fs-xs); border-radius: 8px; margin: 8px 0; }
.plan-cards .week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 8px 4px 4px; color: var(--navy-800); border-bottom: 2px solid var(--navy-100); }
.plan-cards .week-head span { font-size: var(--fs-xs); color: var(--ink-500); }
.lesson-card { padding: 10px 4px 12px; border-bottom: 1px dashed var(--line); }
.lesson-card .lc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lesson-card .lc-title { font-weight: 700; color: var(--navy-800); font-size: var(--fs-md); line-height: 1.3; }
.lesson-card .lc-period { flex: none; text-align: right; font-size: var(--fs-xs); color: var(--ink-600); }
.lesson-card .lc-theme { font-size: var(--fs-xs); color: var(--ink-500); margin-top: 2px; }
.lesson-card .lc-row { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-700); }
.lesson-card .lc-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.lesson-card .adj-item { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 3px 0; }
.lesson-card .adj-item > span { flex: 1 1 140px; }
.lesson-card.is-target { background: var(--gold-50); box-shadow: inset 3px 0 0 var(--gold-500); }

/* ---------- Kết quả tìm kiếm ---------- */
.results-head { margin-bottom: 16px; }
.results-head h1 { font-size: var(--fs-xl); }
.results-list { display: grid; gap: 10px; }
.result-card { display: block; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); color: inherit; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.result-card:hover { text-decoration: none; border-color: #b9cfe9; box-shadow: var(--shadow); transform: translateY(-2px); }
.result-card .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.result-card .title { font-weight: 700; color: var(--navy-800); font-size: var(--fs-md); }
.result-card .theme { font-size: var(--fs-xs); color: var(--ink-500); margin-top: 2px; }
.result-card .go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--teal-700); }
.result-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: var(--fs-xs); font-weight: 700; color: var(--navy-800); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--sky-50)); }
.site-footer .container { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; padding-block: clamp(24px, 4vw, 40px); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-brand .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
.footer-brand .brand-logo .icon { width: 20px; height: 20px; }
.footer-brand b { display: block; color: var(--navy-800); text-transform: uppercase; letter-spacing: .04em; font-size: var(--fs-sm); }
.footer-brand span { font-size: var(--fs-xs); color: var(--ink-500); }
.footer-tagline { color: var(--teal-700); font-weight: 700; font-size: var(--fs-sm); }
.footer-note { margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-500); max-width: 60ch; }
.footer-col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin-bottom: 8px; }
.footer-col li { font-size: var(--fs-xs); color: var(--ink-600); padding: 3px 0; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding-block: 12px; font-size: var(--fs-xs); color: var(--ink-500); }
.footer-bottom .designer { color: var(--ink-500); font-weight: 400; }
.footer-bottom .designer a { color: inherit; }
