html, body,input,textarea, div, span, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, sub, sup, ol, ul, li, form, button, label, div, table, tbody, tr, th, td,header, section, footer, aside, nav, main, article, figure, figcaption, progress  {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: font-light, Arial;
}

body, html {
    background-color: #fff;
    color: #1B1919;
    overflow-x: hidden;
}

header, section, footer, aside, nav, main, article, figure, figcaption, progress{
    display: block;
}

a{
    color: #E5D019;
    text-decoration: none;
}

a:hover{
    cursor: pointer;
    color: #FF0008;
}

textarea,
input {
    width: 100%;
    padding: 1em;
    box-sizing: border-box;
    border: 1px solid #d3d9de;
    font-size: .875em;
}

textarea{
    height: auto;
    min-height: 150px;
    margin-top: .75em;
    min-width: 100%;
    max-width: 100%;
}

.clear { 
    clear: both; 
}

/* HEADER */
header,
.login_wrap{
    position: relative;
    width: 100%;
    border-bottom: 1px solid #d3d9de;
}

.header_wrap{
    display: flex;
    position: relative;
    max-width: 1200px;
    margin: 1em  auto;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    align-content: space-between;
    padding: 1em 1.75em;
    box-sizing: border-box;
}

.site_logo{
    width: 33.33%;
}

.site_logo img{
    max-height: 100px;
}

.site_name{
    width: 100%;
    order: 4;
    text-align: left;
    padding-top: 1em;
}

.site_name h1{
    font-size: 28px;
    font-weight: 600;
    padding: .25em 0;
}

.site_desc{
    font-size: 20px;
}

/* MAIN */
.main_wrap{
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 3em auto;
    padding-bottom: 3em;
}

.t_page h2{
    display: block;
    width: 100%;
    margin-bottom: 2em;
}

.t_page h2{
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.table_wrap{
    display: flex;
    flex-wrap: wrap;
    padding: 0 1em;
    box-sizing: border-box;
}

table{
    width: 48%;
    margin: 1%;
    border-collapse: collapse;
    font-family: sans-serif;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: .875em;
}

th,
td {
    padding: .25em .75em;
    border: 1px solid #e0e0e0;
    text-align: left;
    line-height: 1.5em;
}

th{
    padding: .75em;
    font-weight: 600;
    text-align: center;
}

td:first-child{
    text-align: center;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:hover {
    background-color: #f1f7ff;
}

thead tr:first-child,
.ls_type{
    font-size: 1.125em;
    font-weight: 600;
}

tr:first-child th,
.ls_type td{
    text-align: center;
}

.search_block{
    position: relative;
    padding: 0 1.75em;
    margin-bottom: 1em;
}

.highlight {
  background-color: #f3dd25;
}

.suggestions {
    display: none;
    min-width: 400px;
    border: 1px solid #d3d9de;
    max-height: 270px;
    overflow-y: auto;
    background: white;
    position: absolute;
    z-index: 1000;
    margin-top: 2px;
}

.suggestions div {
  padding: .5em .75em;
  cursor: pointer;
}

.suggestions div:hover {
  background-color: #f1f7ff;
}

.clear-btn {
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #999;
    cursor: pointer;
    display: none;
}

.clear-btn:hover {
  color: #333;
}

#fixed-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#fixed-header-wrapper table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 0;
}

#fixed-header-wrapper th {
  background: white;
}

/* For icon */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Page link all levels */
.link_levels{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 1em;
}

.link_levels a{
    background-color: #fafafa;
    color: #1B1919;
    padding: .625em 2em;
    margin: .5em;
    width: 100px;
    text-align: center;
    border: 1px solid #d3d9de;
}

.link_levels a:hover{
    background-color: #f1f7ff;
    cursor: pointer;
}

@media (max-width: 980px) {
    .site_desc {
        font-size: 16px;
        line-height: 1.5em;
    }
}

@media (max-width: 768px) {
    .suggestions{
        min-width: 300px;
    }
    
    table{
        width: 100%;
        margin: 0;
        margin-bottom: 2.5em;
    }
    
    .search_block{
        padding: 0 1em;
    }
    
    .clear-btn{
        right: .625em;
    }
    
    .site_logo {
        width: 35%;
    }
    
    .site_name{
        width: 65%;
        order: unset;
    }
    
    .header_wrap {
        margin-top: 0;
        padding: 1em;
    }
    
    .header_wrap .move-last{
        width: 65%;
        order: 4;
        padding-top: 1em;
    }
    
    .header_wrap > div:last-child{
        padding-top: 1em;
        order: 3;
    }
    
    .site_logo img {
        max-height: 80px;
    }
}

@media (max-width: 600px) {
    .suggestions{
        left: 1em;
        right: 1em;
        min-width: unset;
    }
    
    .site_name h1{
        font-size: 24px;
        padding: 0;
    }

}

@media (max-width: 479px) {
    .site_desc{
        font-size: 14px;
    }
    
    .site_name h1{
        font-size: 20px;
        padding: .25em 0;
    }
    
    .link_levels a{
        width: 80px;
    }
    
    .site_logo img {
        max-height: 60px;
        max-width: 100%;
        padding: 0 1em;
        box-sizing: border-box;
    }
}









/* SCH-PUBLIC-ROSTER-HOTFIX-20261007: active roster and student search restored. */
.schedule-live-status {
    margin: 10px 0 14px;
    font-size: 13px;
    line-height: 1.35;
    color: #4c5967;
}


/* Accessible jump navigation for each level's group timetable. */
.group-shortcuts {
    display: flex;
    flex: 0 0 98%;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
    margin: 0 1% 14px;
    padding: 12px 14px;
    border: 1px solid #d6dee5;
    border-radius: 12px;
    background: #f7f9fb;
}

.group-shortcuts__label {
    margin-right: 6px;
    color: #344054;
    font-weight: 600;
    font-size: 14px;
}

.group-shortcuts__link {
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #c9d1d9;
    border-radius: 10px;
    background: #fff;
    color: #1b1919;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.group-shortcuts__link:hover,
.group-shortcuts__link:focus-visible {
    border-color: #c6ac20;
    background: #f5e66e;
    color: #1b1919;
}

.group-shortcuts__link:focus-visible {
    outline: 2px solid #826c0d;
    outline-offset: 2px;
}

.group_table {
    scroll-margin-top: 20px;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .group-shortcuts {
        flex-basis: 100%;
        margin: 0 0 16px;
        padding: 12px;
    }
    .group_table {
        scroll-margin-top: 110px;
    }
}

@media (max-width: 600px) {
    .group-shortcuts__label {
        flex: 0 0 100%;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* Floating return-to-top action; stays anchored to the viewport. */
.back-to-top {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px;
    box-sizing: border-box;
    border: 1px solid #c4ad20;
    border-radius: 999px;
    background: #e5d019;
    color: #1b1919;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top__arrow {
    font-size: 25px;
    line-height: .8;
    font-weight: 600;
}

.back-to-top:hover {
    background: #f5e66e;
}

.back-to-top:focus-visible {
    outline: 3px solid #4b5563;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .back-to-top {
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        min-height: 48px;
        padding: 10px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}
