/* Keep public cards bright and use a fine border to separate them from the page. */
.legacy-thai.w3-white {background:#fcfcfd!important}
.legacy-thai.w3-white :is(
 .legacy-home-news,.legacy-section,.legacy-article,.legacy-quick-link,
 .legacy-shortcut-grid a,.academic-service,.legacy-shortcuts a
) {
 background:#fff;
 border-color:#e6e8ee;
 box-shadow:none;
}
.legacy-thai.w3-white .legacy-home-panels .legacy-panel {
 background:#fff;
 border-color:#e6e8ee;
 border-top-color:var(--agenda-accent);
 box-shadow:none;
}
.legacy-thai.w3-white :is(.legacy-news-row,.legacy-section h2,.legacy-news-heading,.legacy-list-row) {border-color:#eff0f4}
.legacy-thai.w3-white :is(
 .legacy-news-row:hover,.legacy-section .legacy-list-row a:hover,
 .legacy-quick-link:hover,.legacy-shortcut-grid a:hover,.legacy-shortcuts a:hover
) {background:#f8f9fc}
.legacy-thai.w3-white .academic-page .academic-intro {
 background:#fff;
 border-top-color:#e6e8ee;
 border-right-color:#e6e8ee;
 border-bottom-color:#e6e8ee;
 box-shadow:none;
}
.legacy-thai.w3-white .academic-results {background:#fcfcfd}
.legacy-thai.w3-white .academic-timetable-report {background:#fff}
.legacy-thai.w3-white .academic-weekly-dialog {background:#fff;box-shadow:0 8px 24px #20263212}
.legacy-thai.w3-white .academic-weekly-card {background:#fff7e7}
.legacy-thai.w3-white .academic-weekly-colour-1 {background:#eff8fa}
.legacy-thai.w3-white .academic-weekly-colour-2 {background:#f6effb}
.legacy-thai.w3-white .academic-weekly-colour-3 {background:#eff3ff}
.legacy-thai.w3-white .academic-weekly-colour-4 {background:#fdf1f6}
.legacy-thai.w3-white .about-page :is(.about-teams div,.about-person) {background:#fff;border-color:#e6e8ee}
@media print {
 .legacy-thai.academic-printing {background:#fff!important}
}

/* Use the university's gold as an accent on a neutral homepage. */
.legacy-thai.legacy-home.w3-white {background:#f4f5f6!important}

.legacy-thai.legacy-home.w3-white .legacy-shortcuts a {
 background:#fff;
 border-color:#e2ddd4;
}
.legacy-thai.legacy-home.w3-white .legacy-shortcuts a:hover {background:#f6f4ef}
.legacy-thai.legacy-home .legacy-shortcuts-managed a {
 --shortcut-icon-bg:#ebb047;
 --shortcut-icon-ink:#39260e;
 --shortcut-accent:#805414;
}
.legacy-thai.legacy-home .legacy-shortcuts-managed a:nth-child(3n+2) {
 --shortcut-icon-bg:#315f89;
 --shortcut-icon-ink:#fff;
 --shortcut-accent:#315f89;
}
.legacy-thai.legacy-home .legacy-shortcuts-managed a:nth-child(3n) {
 --shortcut-icon-bg:#256b59;
 --shortcut-icon-ink:#fff;
 --shortcut-accent:#256b59;
}
.legacy-thai.legacy-home .legacy-shortcuts-managed a>i:first-child {
 display:grid;
 place-items:center;
 flex:none;
 width:2.25rem;
 height:2.25rem;
 border-radius:9px;
 background:var(--shortcut-icon-bg);
 color:var(--shortcut-icon-ink);
}
.legacy-thai.legacy-home .legacy-shortcuts-managed .legacy-shortcut-arrow {color:var(--shortcut-accent)}
.legacy-thai.legacy-home .legacy-shortcuts-managed a:focus-visible {
 outline:2px solid var(--shortcut-accent);
 outline-offset:-3px;
}

.legacy-thai.legacy-home .legacy-quick {
 background:#f6f7f8;
 border:1px solid #dfe3e7;
 border-radius:12px;
}
.legacy-thai.legacy-home.w3-white .legacy-quick-link {
 background:#fff;
 border-color:#dfe3e7;
}
.legacy-thai.legacy-home.w3-white .legacy-quick-link:hover {
 background:#f6f7f8;
 border-color:#a5beb2;
}
.legacy-thai.legacy-home .legacy-quick-link .legacy-quick-icon {
 background:transparent;
 border-color:transparent;
 color:var(--public-pine);
}
.legacy-thai.legacy-home .legacy-quick-link .legacy-quick-arrow {color:var(--public-pine)}
.legacy-thai.legacy-home .legacy-quick-heading {
 margin:0;
 padding:10px clamp(14px,1.8vw,22px);
 gap:4px 12px;
 background:var(--public-pine);
 border-bottom:2px solid var(--public-gold);
 border-radius:11px 11px 0 0;
}
.legacy-thai.legacy-home .legacy-quick-heading h2 {color:#fff}
.legacy-thai.legacy-home .legacy-quick-heading p {color:#e0e9e5}
.legacy-thai.legacy-home .legacy-quick-grid {padding:clamp(12px,1.8vw,22px)}
.legacy-thai.legacy-home.w3-white .legacy-home-news {
 --news-gutter:clamp(17px,3vw,32px);
 padding:0 0 clamp(20px,3vw,30px);
 border-color:#dfe3e7;
 overflow:hidden;
}
.legacy-thai.legacy-home .legacy-home-news > :is(#legacy-news-list,.legacy-empty) {
 margin-inline:var(--news-gutter);
}
.legacy-thai.legacy-home.w3-white .legacy-news-heading {
 padding:12px var(--news-gutter);
 border:0;
 background:#293d54;
}
.legacy-thai.legacy-home .legacy-news-heading h2,
.legacy-thai.legacy-home .legacy-news-heading .legacy-news-filter label {color:#fff}
.legacy-thai.legacy-home .legacy-news-heading h2 i {
 background:#ffffff1f;
 color:#f4ca79;
}
.legacy-thai.legacy-home .legacy-news-heading .legacy-news-filter label i {color:#f4ca79}
.legacy-thai.legacy-home.w3-white .legacy-home-news .legacy-news-row time {
 background:#fbefd5;
 color:#684411;
 padding:3px 8px;
}

.legacy-thai.legacy-home .legacy-home-panels .legacy-panel:first-child {
 --agenda-accent:#794607;
 --agenda-soft:#ebb047;
 --agenda-heading-ink:#39260e;
}
.legacy-thai.legacy-home .legacy-home-panels .legacy-panel:nth-child(2) {
 --agenda-accent:#31536f;
 --agenda-soft:#315f89;
}
.legacy-thai.legacy-home .legacy-home-panels .legacy-panel:nth-child(3) {
 --agenda-accent:#285b51;
 --agenda-soft:#256b59;
}
.legacy-thai.legacy-home .legacy-home-panels .legacy-panel h2 {
 color:var(--agenda-heading-ink,#fff);
}
.legacy-thai.legacy-home .legacy-home-panels .legacy-panel h2 i {
 background:#ffffff26;
 color:inherit;
 box-shadow:none;
}
.legacy-thai.legacy-home .legacy-home-panels .legacy-calendar-month {color:inherit}
.legacy-thai.legacy-home .legacy-home-panels .legacy-list-row .fa-regular {color:var(--agenda-accent)}
.legacy-thai.legacy-home .legacy-home-panels .legacy-event-date {
 padding:5px 2px;
 border:0;
 border-radius:8px;
 background:#e4f1eb;
 color:#215648;
}
.legacy-thai.legacy-home .legacy-home-panels .legacy-event-month {color:inherit}

/* Use pine green for the current public menu item and the main search action. */
.legacy-thai {
 --public-pine:#255449;
 --public-pine-hover:#1c453b;
 --public-gold:#d4ac58;
}
.legacy-thai .legacy-topbar a[aria-current] {
 background:var(--public-pine);
 color:#fff;
 box-shadow:0 2px 0 var(--public-gold);
 border-radius:3px 3px 0 0;
 padding-inline:6px;
}
.legacy-thai .legacy-primary a[aria-current] {
 background:var(--public-pine);
 color:#fff;
 box-shadow:inset 0 -3px 0 var(--public-gold);
}
.legacy-thai .legacy-side-layout .legacy-sidebar a[aria-current] {
 background:#e8f1ed;
 color:#214d42;
 box-shadow:inset 3px 0 0 var(--public-pine);
 font-family:LegacyKanitMedium,LegacyKanit,Tahoma,sans-serif;
}
.legacy-thai .legacy-side-layout .legacy-sidebar a[aria-current] i {color:inherit}
.legacy-thai .academic-page .academic-submit {
 background:var(--public-pine);
 color:#fff;
 box-shadow:none;
}
.legacy-thai .academic-page .academic-submit:hover:not(:disabled) {background:var(--public-pine-hover)}
.legacy-thai .academic-page .academic-submit:disabled {
 background:#e3ebe7;
 color:#435851;
 opacity:1;
}
