/* ==========================================================================
   Smile Brain — Teal-Blue modern theme
   ========================================================================== */
:root {
  --sidebar-w: 268px;
  --primary: #0e7490;          /* น้ำเงินอมเขียว */
  --primary-600: #0b6680;
  --primary-50: #ecf8fb;
  --ink: #0f2a37;
  --muted: #64808c;
  --line: #e3edf1;
  --bg: #f3f8fa;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 55, .05), 0 1px 3px rgba(15, 42, 55, .06);
  --shadow: 0 4px 16px rgba(14, 116, 144, .08), 0 1px 3px rgba(15, 42, 55, .06);
  --bs-primary: #0e7490;
  --bs-primary-rgb: 14, 116, 144;
  --bs-link-color: #0e7490;
  --bs-link-color-rgb: 14, 116, 144;
  --bs-link-hover-color: #0b5c73;
  --bs-body-color: #1d3743;
  --bs-border-color: #e3edf1;
  --bs-border-radius: .6rem;
  --bs-focus-ring-color: rgba(14, 116, 144, .25);
}

body { font-family: 'Sarabun', system-ui, sans-serif; background: var(--bg); font-size: 15px; color: var(--bs-body-color); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .sidebar a:hover, .list-group-item-action:hover, a.card-link:hover, a:has(> .card):hover { text-decoration: none; }
::selection { background: rgba(14, 116, 144, .18); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 1.75rem 2rem 3rem; max-width: 1440px; width: 100%; }
@media (max-width: 576px) { .content { padding: 1rem .85rem 2rem; } }

/* ---------- sidebar ---------- */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; color: #b9d3dc;
  background: linear-gradient(180deg, #0c3b4f 0%, #0a2c3c 55%, #082230 100%) !important; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar.offcanvas-lg { --bs-offcanvas-width: 284px; }
.sidebar::-webkit-scrollbar { width: 6px; } .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.sidebar-inner { display: flex; flex-direction: column; min-height: 100%; padding: 1.25rem .9rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none !important; padding: 0 .4rem 1.1rem; letter-spacing: .01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, #22d3ee 0%, #0e7490 60%, #0f766e 100%); box-shadow: 0 6px 18px rgba(34, 211, 238, .25); }
.brand small { display: block; font-size: .7rem; font-weight: 500; color: #7fb3c4; letter-spacing: .08em; text-transform: uppercase; }
.program-switch > .btn { position: relative; padding: .65rem 2rem .65rem .85rem; color: #fff; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 3px 0 0 var(--brand); }
.program-switch > .btn:hover, .program-switch > .btn.show { background: rgba(255,255,255,.11); color: #fff; }
.program-switch .dropdown-menu, .user-box .dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 12px 32px rgba(8, 34, 48, .25); padding: .4rem; }
.program-switch .dropdown-item, .user-box .dropdown-item { border-radius: 8px; }
.program-switch .dropdown-toggle::after, .user-box .dropdown-toggle::after { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); opacity: .6; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.sidebar .nav-label { text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: #5f93a5; margin: 1.35rem .85rem .45rem; font-weight: 600; }
.sidebar .nav-link { color: #c3dce4; border-radius: 10px; padding: .52rem .85rem; display: flex; align-items: center; gap: .7rem; white-space: nowrap; overflow: hidden; margin-bottom: 2px; transition: background .15s, color .15s; }
.sidebar .nav-link i { font-size: 1.05rem; opacity: .85; width: 1.1rem; text-align: center; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .nav-link.active { color: #fff; background: linear-gradient(90deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #22d3ee) 100%); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.sidebar .nav-link.active i { opacity: 1; }
.sidebar .user-box { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar .user-box .btn { position: relative; color: #d6e8ee; padding-right: 2rem; border-radius: 10px; }
.sidebar .user-box .btn:hover { background: rgba(255,255,255,.06); }
.user-avatar { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #22d3ee, #0e7490); flex-shrink: 0; }

/* ---------- top header ---------- */
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .7rem 2rem;
  background: rgba(243, 248, 250, .82); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(227, 237, 241, .8); }
.topbar .menu-btn { display: none; }
.topbar .crumb { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.topbar .crumb .chip { font-size: .72rem; font-weight: 700; color: #fff; background: var(--brand); padding: .15rem .55rem; border-radius: 999px; letter-spacing: .04em; }
.topbar .search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.topbar .search input { padding-left: 2.3rem; border-radius: 999px; background: #fff; border-color: var(--line); height: 40px; }
.topbar .search > i, .topbar .search .search-wrap + i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 2; }
.topbar .search .search-icon { position: absolute; left: .9rem; top: 20px; transform: translateY(-50%); color: var(--muted); z-index: 3; pointer-events: none; }
.topbar .today-chip { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 991.98px) {
  .topbar { padding: .6rem .85rem; background: linear-gradient(90deg, #0c3b4f, #0e7490); border-bottom: 0; }
  .topbar .menu-btn { display: inline-flex; color: #fff; font-size: 1.6rem; padding: 0; border: 0; background: none; }
  .topbar .crumb { color: #fff; }
  .topbar .crumb .chip { background: rgba(255,255,255,.2); }
  .topbar .today-chip { display: none; }
  .topbar .search { display: none; }
}

/* ---------- page head ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.65rem; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .2rem; }

/* hero (program home / dashboard) */
.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 1.6rem 1.75rem; margin-bottom: 1.5rem; color: #fff;
  background: radial-gradient(1200px 300px at 100% 0%, rgba(34, 211, 238, .35), transparent 60%),
              linear-gradient(120deg, #0c3b4f 0%, var(--brand) 100%); box-shadow: var(--shadow); }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero h1 { color: #fff; font-size: 1.7rem; font-weight: 700; margin: 0; }
.hero .sub { color: rgba(255,255,255,.78); }
.hero .btn-light { color: var(--ink); font-weight: 600; }
.hero .btn-outline-light { border-color: rgba(255,255,255,.45); }
.hero-icon { width: 54px; height: 54px; border-radius: 15px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; }

/* ---------- cards ---------- */
.card { border: 1px solid rgba(227, 237, 241, .9); box-shadow: var(--shadow-sm); border-radius: var(--radius); }
.card-header { background: transparent; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); padding: .85rem 1.1rem; }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1.1rem; }
a > .card, .hover-lift { transition: transform .15s ease, box-shadow .15s ease; }
a:hover > .card, .hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.list-group-item { border-color: var(--line); }
.list-group-flush > .list-group-item:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

.stat { padding: 1.05rem 1.15rem; display: flex; align-items: center; gap: .9rem; }
.stat .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); }
.stat .num { font-size: 1.6rem; font-weight: 700; line-height: 1.05; color: var(--ink); }
.stat .lbl { color: var(--muted); font-size: .84rem; }

.program-card { overflow: hidden; }
.program-card .band { height: 6px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #22d3ee)); }
.program-card .icon { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #22d3ee)); color: #fff; display: grid; place-items: center; font-size: 1.35rem; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 30%, transparent); }
.program-card .metric { background: var(--bg); border-radius: 10px; padding: .55rem .25rem; }
.program-card .metric .v { font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.program-card .metric .l { font-size: .74rem; color: var(--muted); }

.session-card { border-left: 4px solid var(--c, var(--brand)) !important; }
.cohort-card .meta { font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin-top: .2rem; }
.cohort-card .foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: .85rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--ink); }

/* ---------- buttons / forms ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-lg { border-radius: 12px; }
.btn-sm { border-radius: 8px; }
.btn-brand { color: #fff; border: 0; background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #22d3ee) 100%); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn-brand:hover, .btn-brand:focus { color: #fff; filter: brightness(1.06); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 36%, transparent); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-outline-secondary { --bs-btn-color: #3f5b67; --bs-btn-border-color: #d3e2e8; --bs-btn-hover-bg: #eef5f8; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #c4d8e0; --bs-btn-active-bg: #e3eff4; --bs-btn-active-color: var(--ink); background: #fff; }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: #a9d6e2; --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); }
.form-control, .form-select { border-radius: 10px; border-color: #d6e4ea; }
.form-control:focus, .form-select:focus { border-color: #5fb6cc; box-shadow: 0 0 0 .2rem rgba(14, 116, 144, .15); }
.form-label { font-weight: 600; font-size: .86rem; color: #36525e; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.required::after { content: ' *'; color: #e11d48; }
.text-brand { color: var(--brand) !important; }
.border-brand { border-color: var(--brand) !important; }

/* ---------- tables ---------- */
.table { --bs-table-hover-bg: #f3f9fb; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .9rem; vertical-align: middle; border-color: var(--line); }
.table thead th { font-size: .76rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #f7fbfc; white-space: nowrap; border-bottom-width: 1px; }
.card > .table-responsive:last-child .table tr:last-child td { border-bottom: 0; }

/* ---------- badges ---------- */
.badge { font-weight: 600; border-radius: 999px; padding: .38em .7em; letter-spacing: .01em; }
.text-bg-success { background: #dcf5ea !important; color: #087a4a !important; }
.text-bg-warning { background: #fff2d6 !important; color: #9a5b00 !important; }
.text-bg-danger { background: #ffe1e5 !important; color: #be123c !important; }
.text-bg-info { background: #dcf3fa !important; color: #0b6680 !important; }
.text-bg-primary { background: #dbeefe !important; color: #075985 !important; }
.text-bg-secondary { background: #e9eff2 !important; color: #4b6570 !important; }
.text-bg-light { background: #f3f8fa !important; color: #36525e !important; }
.text-bg-dark { background: var(--ink) !important; color: #fff !important; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; padding: .22rem .6rem; border-radius: 999px; letter-spacing: .03em; }

/* ---------- tabs ---------- */
.nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.nav-tabs .nav-link { border: 0; color: var(--muted); font-weight: 600; padding: .65rem 1rem; border-radius: 10px 10px 0 0; position: relative; }
.nav-tabs .nav-link:hover { color: var(--ink); background: rgba(14, 116, 144, .05); }
.nav-tabs .nav-link.active { color: var(--brand); background: #fff; }
.nav-tabs .nav-link.active::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: -1px; height: 3px; border-radius: 3px; background: var(--brand); }
.tab-content.card { border-top: 0; }

/* ---------- attendance ---------- */
.att-row .btn-check + .btn { min-width: 54px; border-radius: 9px !important; margin-left: 4px; }
.att-row .btn-group > .btn-check:first-child + .btn { margin-left: 0; }
.att-row .btn-check:checked + .btn-outline-success { background: #10b981; border-color: #10b981; color: #fff; }
.att-row .btn-check:checked + .btn-outline-warning { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.att-row .btn-check:checked + .btn-outline-danger { background: #f43f5e; border-color: #f43f5e; color: #fff; }
.att-row .btn-check:checked + .btn-outline-info { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: .75rem 0; background: linear-gradient(180deg, rgba(243,248,250,0), var(--bg) 35%); }

/* ---------- misc ---------- */
.avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #d9f1f7, #c7e6ee); color: var(--primary-600); display: inline-grid; place-items: center; font-weight: 700; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 92px; height: 92px; border-radius: 22px; font-size: 2.1rem; }
.search-wrap { position: relative; }
.search-results { position: absolute; z-index: 1050; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 42, 55, .14); }
.timeline .item { border-left: 2px solid var(--line); padding: 0 0 1.1rem 1.1rem; position: relative; }
.timeline .item::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.code-area { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }
.empty { text-align: center; color: #8aa5b0; padding: 2.75rem 1rem; }
.empty i { font-size: 2.4rem; display: block; margin-bottom: .5rem; color: #b6cfd8; }
.alert { border: 0; border-radius: 12px; }
.alert-success { background: #e1f6ee; color: #075c3a; }
.alert-danger { background: #ffe8ec; color: #9f1239; }
.alert-warning { background: #fff4dc; color: #7a4a00; }
.pagination { --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-color: var(--primary); }
.min-w-0 { min-width: 0; }
@media print { .sidebar, .topbar, .no-print { display: none !important; } .content { padding: 0; } }
.card.stat { flex-direction: row; }
.sidebar .nav { width: 100%; min-width: 0; flex-wrap: nowrap; }
.sidebar-inner { overflow-x: hidden; }
.sidebar .nav-link > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero h1 { margin: .15rem 0 .3rem; line-height: 1.25; }
.hero .sub { line-height: 1.5; }
.col-name { min-width: 230px; }

/* ---------- curriculum / session topics ---------- */
.period-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.period-pill { display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; box-shadow: var(--shadow-sm); }
.period-pill .no { font-size: .75rem; font-weight: 700; color: var(--muted); }
.period-pill .nm { font-weight: 600; font-size: .9rem; }
.period-pill i { color: #c2d4db; }
.period-pill.keyed i { color: #10b981; }
.period-pill.active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.period-pill:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 50%, #fff); }
.search-inline { position: relative; max-width: 320px; }
.search-inline i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.search-inline input { padding-left: 2rem; border-radius: 999px; }
.topic-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; background: #fff; }
.topic-group > summary { list-style: none; cursor: pointer; padding: .65rem .9rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.topic-group > summary::-webkit-details-marker { display: none; }
.topic-group > summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.topic-group[open] > summary::after { transform: rotate(180deg); }
.sj-icon { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; color: #fff; background: var(--sc); font-size: .95rem; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; padding: 0 .9rem .9rem; }
.topic-chip { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 11px; border: 1.5px solid var(--line); cursor: pointer; background: #fbfdfe; transition: all .12s; user-select: none; }
.topic-chip:hover { border-color: color-mix(in srgb, var(--sc) 55%, #fff); }
.topic-chip .tick { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c5d6dd; display: grid; place-items: center; flex-shrink: 0; color: transparent; background: #fff; margin-top: 1px; }
.topic-chip .nm { font-weight: 600; font-size: .92rem; display: block; line-height: 1.3; }
.topic-chip .meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.fc-tag { color: #b45309; font-weight: 600; }
.btn-check:checked + .topic-chip { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 9%, #fff); }
.btn-check:checked + .topic-chip .tick { background: var(--sc); border-color: var(--sc); color: #fff; }
.btn-check:focus-visible + .topic-chip { box-shadow: 0 0 0 .2rem rgba(14,116,144,.25); }
.fc-scores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; padding: .55rem .65rem; border-radius: 10px; background: #fff8eb; border: 1px dashed #f5cf8a; }
.fc-input { display: none; align-items: center; gap: .4rem; }
.fc-input.show { display: flex; }
.fc-input .lbl { font-size: .8rem; font-weight: 600; color: #92400e; white-space: nowrap; }
.fc-input input { width: 76px; text-align: center; font-weight: 700; }
.fc-input .max { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.row-more > summary { list-style: none; cursor: pointer; font-size: .8rem; color: var(--muted); margin-top: .45rem; display: inline-block; }
.row-more > summary::-webkit-details-marker { display: none; }
.row-more[open] > summary { color: var(--brand); }

/* ---------- overview matrix ---------- */
.ov-table th, .ov-table td { text-align: center; }
.ov-table td:first-child, .ov-table th:first-child { text-align: left; }
.ov-cell { display: block; border-radius: 10px; padding: .45rem .4rem; font-size: .78rem; line-height: 1.25; min-width: 104px; color: var(--ink); border: 1px solid transparent; }
.ov-cell:hover { text-decoration: none; filter: brightness(.97); }
.ov-cell .s { font-weight: 700; display: block; font-size: .82rem; }
.ov-done { background: #dcf5ea; border-color: #b6ead2; }
.ov-partial { background: #fff2d6; border-color: #fbdc9b; }
.ov-pending { background: #ffe8ec; border-color: #fbc5cf; }
.ov-future { background: #f3f7f9; border-color: var(--line); color: var(--muted); }
.ov-cancelled { background: #eef2f4; color: #94a3b8; text-decoration: line-through; }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.progress-thin { height: 8px; border-radius: 99px; background: #e8f0f3; }
.progress-thin .progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #22d3ee)); }
.tt-table td { min-width: 150px; } .tt-table th { background:#f7fbfc; }
.term-chip { font-size: .82rem; font-weight: 600; color: var(--primary-600); background: var(--primary-50); border: 1px solid #cde9f0; padding: .32rem .75rem; border-radius: 999px; white-space: nowrap; }
.term-chip:hover { text-decoration: none; background: #dff2f7; }
@media (max-width: 991.98px) { .term-chip { background: rgba(255,255,255,.15); color: #fff; border-color: transparent; margin-left: auto; font-size: .75rem; } }
.year-pills { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.year-pills a { font-size: .82rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.year-pills a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.year-pills a:hover { text-decoration: none; }
