/* from https://ktbysa.net/css/app.css?v=20260603r-1781001351 (101) */
.site-header { --hdr-height: 60px; background: var(--c-white); border-bottom: 1px solid var(--c-border); position: sticky; top: 0px; z-index: 1100; transition: box-shadow 0.2s; }

.site-header.is-scrolled { box-shadow: rgba(15, 23, 42, 0.06) 0px 2px 10px; }

.site-header-inner { max-width: 1280px; margin: auto; padding: 0px 20px; height: var(--hdr-height); display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo search nav actions"; align-items: center; gap: 12px 16px; transition: height 0.2s, padding 0.2s; }

.site-header.is-scrolled { --hdr-height: 52px; }

.site-header.is-scrolled .header-logo-img { height: 34px; transition: height 0.2s; }

.site-header.is-scrolled .hdr-search { height: 34px; }

.site-logo { grid-area: logo; display: flex; align-items: center; gap: 8px; padding-inline-end: 0px; border-inline-end: none; height: auto; flex-shrink: 0; }

.header-logo-img { height: 40px; width: auto; max-width: 160px; transition: height 0.2s; }

.hdr-search-wrap { grid-area: search; position: relative; flex: 1 1 0%; max-width: 540px; min-width: 0px; width: 100%; justify-self: center; }

.live-search-wrap { position: relative; }

.hdr-search { display: flex; align-items: center; gap: 8px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; padding: 0px 14px; height: 38px; min-width: 0px; max-width: 540px; width: 100%; justify-self: center; margin: 0px; transition: border-color 0.2s, height 0.2s; }

.hdr-search:focus-within { border-color: var(--c-blue-600); }

.hdr-search svg { color: var(--c-text-3); flex-shrink: 0; }

.hdr-search input { border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; background: transparent; outline: none; font-family: inherit; font-size: 13px; color: var(--c-text); width: 100%; padding: 0px; min-width: 0px; }

.hdr-search input::placeholder { color: var(--c-text-3); }

.site-nav { grid-area: nav; display: flex; align-items: center; height: auto; margin-inline-start: 0px; gap: 12px; position: static; opacity: 1; pointer-events: auto; transform: none; background: transparent; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; box-shadow: none; padding: 0px; min-width: auto; flex-direction: row; flex-shrink: 0; }

.site-nav a { font-size: 12px; font-weight: 600; color: var(--c-text-2); transition: color var(--ease), background var(--ease); display: flex; align-items: center; gap: 5px; padding: 0px; border-radius: 0px; white-space: nowrap; }

.site-nav__drawer { display: none; }

.site-nav__bar { display: flex; align-items: center; gap: 12px; }

.site-nav-head--sub { margin-top: 4px; border-top: 1px solid var(--c-border); border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; padding-top: 12px; }

.site-nav-links--sub a::after { display: none; }

.hdr-dropdown { position: relative; }

.hdr-dropdown__btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 12px; font-weight: 600; font-family: inherit; color: var(--c-text-2); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; white-space: nowrap; }

.hdr-dropdown__btn:hover, .hdr-dropdown.is-open .hdr-dropdown__btn { color: var(--c-blue-600); border-color: color-mix(in srgb, var(--c-blue-600) 25%, var(--c-border)); background: var(--c-blue-50); }

.hdr-dropdown__chev { transition: transform 0.2s; }

.hdr-dropdown.is-open .hdr-dropdown__chev { transform: rotate(180deg); }

.hdr-dropdown__panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0px; min-width: 210px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: rgba(15, 23, 42, 0.12) 0px 12px 32px; padding: 6px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 1300; }

.hdr-dropdown.is-open .hdr-dropdown__panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0px); }

.hdr-dropdown__panel a { display: block; padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--c-text-2); border-radius: 8px; text-decoration: none; transition: background 0.15s, color 0.15s; }

.hdr-dropdown__panel a:hover { background: var(--c-blue-50); color: var(--c-blue-600); }

html.dark .hdr-dropdown__btn { background: rgb(15, 23, 42); border-color: rgb(51, 65, 85); color: rgb(203, 213, 225); }

html.dark .hdr-dropdown__btn:hover, html.dark .hdr-dropdown.is-open .hdr-dropdown__btn { background: rgba(59, 130, 246, 0.12); color: rgb(147, 197, 253); }

html.dark .hdr-dropdown__panel { background: rgb(30, 41, 59); border-color: rgb(51, 65, 85); box-shadow: rgba(0, 0, 0, 0.35) 0px 12px 32px; }

html.dark .hdr-dropdown__panel a { color: rgb(203, 213, 225); }

html.dark .hdr-dropdown__panel a:hover { background: rgba(59, 130, 246, 0.12); color: rgb(147, 197, 253); }

.site-nav a svg { flex-shrink: 0; transition: transform var(--ease); }

.site-nav a:hover { background: transparent; color: var(--c-blue-600); }

.site-nav a:hover svg { transform: scale(1.15); }

.site-nav a.active { background: transparent; color: var(--c-blue-600); }

.hdr-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; margin-inline-start: 0px; flex-shrink: 0; position: relative; z-index: 3; }

.menu-toggle { grid-area: menu; display: none; width: 38px; height: 38px; border-radius: 10px; background: var(--c-blue-50); border: 1px solid rgba(37, 99, 235, 0.1); align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; color: var(--c-blue-600); flex-shrink: 0; position: relative; z-index: 3; }

.menu-toggle:hover { background: var(--c-blue-600); color: rgb(255, 255, 255); }

.hdr-btn { display: none; }

.dark-toggle { width: 34px; height: 34px; border-radius: 10px; background: var(--c-bg); border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; color: var(--c-text-2); flex-shrink: 0; }

.dark-toggle:hover { background: var(--c-blue-50); color: var(--c-blue-600); border-color: var(--c-blue-600); }

.dark-toggle .icon-moon { display: none; }

html.dark .dark-toggle .icon-sun { display: none; }

html.dark .dark-toggle .icon-moon { display: block; }

html.dark .menu-toggle { background: rgba(59, 130, 246, 0.15); color: rgb(96, 165, 250); border-color: transparent; }

html.dark .menu-toggle:hover { background: var(--c-blue-600); color: rgb(255, 255, 255); }

.hero-search-wrap { position: relative; max-width: 650px; margin: 0px auto; width: 100%; z-index: 2; }

.hero-search-wrap .live-search-dropdown { z-index: 1300; box-shadow: rgba(15, 23, 42, 0.16) 0px 16px 40px; }

.hero-search-box { display: flex; max-width: none; margin: 0px; background: rgb(255, 255, 255); padding: 5px; border-radius: 12px; box-shadow: rgba(67, 56, 202, 0.1) 0px 10px 25px; border: 1px solid rgba(67, 56, 202, 0.1); }

.hero-search-box input { flex: 1 1 0%; padding: 10px 16px; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; font-family: inherit; font-size: 14px; outline: none; background: transparent; color: rgb(30, 27, 75); }

.hero-search-box button { background: var(--c-blue-600); color: rgb(255, 255, 255); padding: 0px 32px; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; border-radius: 8px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: background 0.2s; cursor: pointer; }

.hero-search-box button:hover { background: var(--c-blue-700); }

@media (max-width: 768px) {
  .hero-section { padding: 16px 14px; }
  .hero-title { font-size: 22px; }
  .hero-subtitle { font-size: 13px; margin-bottom: 10px; }
  .hero-search-wrap { max-width: none; }
  .hero-search-box { flex-direction: column; background: transparent; box-shadow: none; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; gap: 8px; }
  .hero-search-box input { background: rgb(255, 255, 255); border-radius: 8px; padding: 12px 14px; border: 1px solid rgb(199, 210, 254); }
  .hero-search-box button { padding: 12px; justify-content: center; }
}

@media (max-width: 992px) {
  .site-nav a { font-size: 12px; gap: 4px; }
  .site-nav { gap: 10px; }
  .hdr-search { max-width: 420px; }
}

@media (max-width: 768px) {
  .site-header { --hdr-height: auto; position: sticky; overflow: visible; }
  .site-header-inner { grid-template: "menu logo actions" 44px "search search search" 40px / 40px 1fr 40px; height: auto; min-height: 92px; padding: 8px 16px 0px; gap: 8px; position: relative; z-index: 2; overflow: visible; }
  .site-header.is-scrolled { --hdr-height: auto; }
  .site-header.is-scrolled .site-header-inner { min-height: 84px; padding: 6px 16px 0px; gap: 6px; }
  .site-header.is-scrolled .header-logo-img { height: 30px; }
  .site-logo { justify-self: center; }
  .header-logo-img { height: 32px; }
  .menu-toggle { display: flex; }
  .hdr-search-wrap { max-width: none; margin-bottom: 8px; }
  .hdr-search { max-width: none; height: 38px; padding: 0px 12px; margin-bottom: 8px; }
  .site-header.is-scrolled .hdr-search { height: 36px; }
  .hdr-search input { font-size: 13px; }
  .hdr-search input::placeholder { font-size: 12px; }
  .hdr-actions { justify-self: end; }
  .dark-toggle, .menu-toggle { width: 34px; height: 34px; }
  .site-nav { grid-area: unset; display: block; position: absolute; top: 100%; left: 0px; right: 0px; margin: 0px; background: var(--c-white); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); border-radius: 0px 0px 16px 16px; box-shadow: rgba(15, 23, 42, 0.1) 0px 14px 28px; padding: 0px; z-index: 1200; opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(-6px); transition: opacity 0.22s, transform 0.22s, visibility 0.22s; height: auto; }
  .site-nav.active { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0px); }
  .site-nav__bar { display: none; }
  .site-nav__drawer { display: block; }
  .site-nav-head { display: block; margin: 0px; padding: 10px 16px 6px; font-size: 11px; font-weight: 700; color: var(--c-text-3); letter-spacing: 0.02em; border-bottom: 1px solid var(--c-border); }
  .site-nav-links { display: flex; flex-direction: column; gap: 0px; padding: 6px 10px 10px; }
  .site-nav a { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 10px; white-space: normal; color: var(--c-text); border: 1px solid transparent; }
  .site-nav a svg { flex-shrink: 0; width: 17px; height: 17px; padding: 7px; background: var(--c-bg); border-radius: 9px; box-sizing: content-box; }
  .site-nav a::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-inline-start: auto; border-top: 1.5px solid var(--c-text-3); border-inline-start: 1.5px solid var(--c-text-3); transform: rotate(-45deg); opacity: 0.55; }
  .site-nav a:hover, .site-nav a.active { background: var(--c-blue-50); border-color: color-mix(in srgb, var(--c-blue-600) 12%, transparent); color: var(--c-blue-600); }
  .site-nav a:hover svg, .site-nav a.active svg { transform: none; }
  html.dark .site-nav { background: rgb(30, 41, 59); border-color: rgb(51, 65, 85); box-shadow: rgba(0, 0, 0, 0.35) 0px 14px 28px; }
  html.dark .site-nav-head { color: rgb(148, 163, 184); border-bottom-color: rgb(51, 65, 85); }
  html.dark .site-nav a { color: rgb(226, 232, 240); }
  html.dark .site-nav a svg { background: rgb(15, 23, 42); }
  html.dark .site-nav a:hover, html.dark .site-nav a.active { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.2); color: rgb(147, 197, 253); }
  .semester-cards { grid-template-columns: 1fr; }
  .hero-section { padding: 18px 14px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .foot-brand { border-left-width: medium; border-left-style: none; border-left-color: currentcolor; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-left: 0px; padding-bottom: 24px; align-items: center; }
  .foot-brand-desc { text-align: center; max-width: 340px; }
  .foot-brand-desc span { white-space: normal; overflow: visible; text-overflow: clip; }
  .foot-links-wrap { flex-direction: column; gap: 24px; text-align: center; }
  .foot-title { text-align: center; }
  .foot-links a { text-align: center; }
  .footer-bot { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
}

html.dark .site-header { background: rgb(30, 41, 59); border-bottom-color: rgb(51, 65, 85); }

html.dark .site-header.is-scrolled { box-shadow: rgba(0, 0, 0, 0.28) 0px 2px 10px; }

html.dark .hero-search-box { background: rgb(30, 41, 59); border-color: rgb(67, 56, 202); box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 25px; }

html.dark .hero-search-box input { color: rgb(241, 245, 249); }

html.dark .dark-toggle { background: rgb(51, 65, 85); border-color: rgb(71, 85, 105); color: rgb(251, 191, 36); }

html.dark .dark-toggle:hover { background: rgb(71, 85, 105); border-color: rgb(251, 191, 36); }

html.dark .header-logo-img { filter: brightness(0) invert(1); }

.live-search-dropdown { position: absolute; top: calc(100% + 6px); right: 0px; left: 0px; z-index: 1200; background: var(--c-white); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: rgba(15, 23, 42, 0.12) 0px 12px 32px; max-height: 360px; overflow-y: auto; }

.live-search-status { padding: 14px 16px; font-size: 0.85rem; color: var(--c-text-2); text-align: center; }

.live-search-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--c-border); transition: background 0.15s; }

.live-search-item:last-child { border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; }

.live-search-item:hover { background: rgb(240, 244, 255); }

.live-search-item__type { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: rgb(239, 246, 255); color: rgb(37, 99, 235); margin-top: 2px; }

.live-search-item__body { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 2px; }

.live-search-item__title { font-size: 0.88rem; font-weight: 600; color: var(--c-text); line-height: 1.35; }

.live-search-item__crumb { font-size: 0.74rem; color: var(--c-text-2); line-height: 1.3; }

.live-search-item--more { justify-content: center; align-items: center; gap: 6px; padding: 12px 14px; font-size: 0.84rem; font-weight: 700; color: var(--c-blue-600); background: rgb(248, 250, 255); }

.live-search-item--more:hover { background: rgb(239, 246, 255); }

.live-search-item--more svg { flex-shrink: 0; opacity: 0.85; }

.live-search-item__more { line-height: 1.2; }

.search-results-list { display: flex; flex-direction: column; gap: 0px; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; }

.search-result-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--c-border); transition: background 0.15s; }

.search-result-row:last-child { border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; }

.search-result-row:hover { background: rgb(248, 250, 252); }

.search-result-type { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgb(239, 246, 255); color: rgb(37, 99, 235); }

.search-result-body { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 2px; }

.search-result-title { font-size: 0.92rem; font-weight: 600; }

.search-result-crumb { font-size: 0.78rem; color: var(--c-text-2); }

.error-page__search { max-width: 420px; margin: 0px auto 24px !important; }

html.dark .live-search-dropdown { background: rgb(15, 23, 42); border-color: rgb(51, 65, 85); }

html.dark .live-search-item:hover { background: rgb(30, 41, 59); }

html.dark .live-search-item--more { background: rgb(30, 41, 59); color: rgb(147, 197, 253); }

html.dark .live-search-item--more:hover { background: rgb(51, 65, 85); }

html.dark .search-result-row:hover { background: rgb(30, 41, 59); }

@media (max-width: 768px) {
  .live-search-dropdown { max-height: 280px; }
}

.news-search-form { display: flex; gap: 8px; margin-top: 16px; max-width: 520px; }

.news-search-form input { flex: 1 1 0%; border: 1px solid rgb(199, 210, 254); border-radius: 10px; padding: 10px 14px; font-family: inherit; font-size: 0.88rem; background: rgb(255, 255, 255); color: var(--c-text); outline: none; }

.news-search-form input:focus { border-color: var(--c-blue-600); }

.news-search-form button { border: 0px; border-radius: 10px; padding: 10px 18px; background: var(--c-blue-600); color: rgb(255, 255, 255); font-weight: 700; font-family: inherit; font-size: 0.88rem; cursor: pointer; white-space: nowrap; }

.news-search-form button:hover { background: var(--c-blue-700); }

html.dark .news-search-form input { background: rgb(15, 23, 42); border-color: rgb(67, 56, 202); color: rgb(241, 245, 249); }

@media (max-width: 640px) {
  .page-body--news { width: calc(100% - 24px); gap: 10px; }
  .news-hero-section { padding: 16px; border-radius: 14px; }
  .news-hero-section h1 { font-size: 1.1rem; }
  .news-hero-section::after { display: none; }
  .news-search-form { flex-direction: column; max-width: none; }
  .news-search-form button { width: 100%; padding: 12px; }
  .news-post-card .ls-thumb { width: 72px; height: 72px; min-width: 72px; min-height: 72px; }
  .news-rel-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 10px; }
}

