[data-md-color-scheme="ucf"] {
  --md-primary-fg-color:        #FFC904;
  --md-primary-fg-color--light: #F7CE6C;
  --md-primary-fg-color--dark:  #FFC904;
  --md-accent-fg-color: #9e7e00;
  --md-typeset-a-color:  #9e7e00;
  --md-primary-bg-color: #000000;
}

[data-md-color-scheme="slate"] {
  --md-default-fg-color--light: hsla(134.3, 0%, 99.5%, 0.61);
  --md-default-fg-color--lightest: hsla(232, 0%, 100%, 0.92);
  --md-primary-fg-color: #F7CE6C; 
  --md-accent-fg-color:  #FFC904;
  --md-typeset-a-color:  #F7CE6C !important;
  --md-primary-bg-color: #000000
}

.md-nav__title[for=__drawer] {
  background-color: #FFC904 !important;
}

.md-nav__title[for=__toc] {
  background-color: var(--md-default-bg-color) !important;
}

.md-typeset table:not([class]){
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.4),0 0 .05rem rgba(0,0,0,.1);
}

.md-header{
  background-color: #FFC904;
}

.md-search-result__meta{
   color:  hsla(134.3, 0%, 51%, 0.61) !important;
   background-color: hsla(240.62, 0%, 100%, 0) !important;
}

.card{
background-color:  var(--md-admonition-bg-color)!important;
}

.md-tabs{
  background-color: #FFC904;
  border-bottom: 3px solid #6C6C6C;
}

th {
  color:  var(--md-default-bg-color)!important;
  background-color: var(--md-default-fg-color--light)!important;
}

p {
font-size: 16px;
}

ul {
font-size: 16px;
}

ol {
font-size: 16px;
}

input {
  position: relative;
  padding: 15px 0 0;
  margin-top: 10px;
  width: 50%;
}

input {
  font-family: inherit;
  width: 70%;
  border: 0;
  border-bottom: 2px solid #9b9b9b;
  outline: 0;
  font-size: 0.7rem;
  color: #fff;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;

  &::placeholder {
    color: transparent;
  }

  &:placeholder-shown ~ .form__label {
    font-size: 1.3rem;
    cursor: text;
    top: 20px;
  }
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: $gray;
}

input:focus {
  ~ .form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: $primary;
    font-weight:700;    
  }
  padding-bottom: 6px;  
  font-weight: 700;
  border-width: 3px;
  border-image: linear-gradient(to right, $primary,$secondary);
  border-image-slice: 1;
}
/* reset input */
input{
  &:required,&:invalid { box-shadow:none; }
}

.md-search__input{
  font-family: inherit;
  width: 100%;
  border: 0;
  border-bottom: 0;
  outline: 0;
  transition: border-color 0.2s;
  margin-top:  0px;

  &::placeholder {
    color: transparent;
  }

  &:placeholder-shown ~ .form__label {
    font-size: 0.5rem;
    cursor: text;
    top: 0px;
  }
}
}

.md-typeset h2 {
  font-weight: 500;
}

.md-typeset h1 {
  font-weight: 500;
}

.md-header__topic{
  font-weight: 500;
}

.md-header__topic:first-child{
  font-weight: 500;
}

.md-footer__inner {
  display: none;
  visibility: hidden;
}

.md-button--primary{
  background-color: #F7CE46 !important;
  border-color: #F7CE46 !important; 
}

/*.md-sidebar--primary {
  visibility: hidden;
  width: 150px;
}*/

/*@media screen and (max-width: 600px) {
  .md-sidebar--primary {
    visibility: visible;
  }
}*/
@media only screen 
  and (max-width: 76.25em){
    .md-sidebar--primary {
    visibility: visible;
  }
}

@media only screen 
  and (min-width: 76.25em){
    .md-sidebar--primary {
    visibility: hidden;
    width: 150px;
  }
}

}

.md-grid {
    max-width: 66rem; 
}

.md-typeset h1 {
    font-weight: bold;
    color: var(--md-default-fg-color);
}

.md-typeset h2 {
    font-weight: bold;
}

.md-sidebar {
    width: 11.5rem;
}

.md-footer {
    margin-top: 30px;
}

.card {
    border-radius: 5px;
    box-shadow: 0 1px 3px 0 #ddd, 0 0 0 1px #ddd;
}

a.card {
    -webkit-box-shadow: 0 1px 3px 0 #ddd, 0 0 0 1px #ddd;
    box-shadow: 0 1px 3px 0 #ddd, 0 0 0 1px #ddd;
    transition: 0.25s;
}

a.card:hover {
    -webkit-box-shadow: 0 1px 12px 0 #ccc, 0 0 0 1px #ddd;
    box-shadow: 0 1px 12px 0 #ccc, 0 0 0 1px #ddd;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.card .container {
    padding: 10px 16px;
    text-align: center;
}

#this-week {
    display: flex;
    flex-wrap: wrap;
}

#this-week .card {
    flex: 1 1 0;
    margin: 0.5rem;
    min-width: 250px;
}

#this-week .card .header {
    font-size: 14pt;
    font-weight: bold;
    padding: 15px;
    margin-bottom: 2px;
    border-bottom: 1px #ccc solid;
}

#this-week .card .content {
    font-size: 11pt;
    padding: 15px;
    border-bottom: 0.5px #ccc solid;
}

#this-week .card .content:last-child {
    border-bottom: none;
    padding-bottom: 20px;
}

#this-week .lecture-name,
#this-week .reading-name,
#this-week .recitation-name,
#this-week .homework-name {
    font-size: 12pt;
    font-weight: bold;
    padding-bottom: 2px;
}

#this-week .lecture-date,
#this-week .reading-date,
#this-week .recitation-date,
#this-week .homework-date {
    font-size: 11pt;
    font-weight: light;
    padding-bottom: 2px;
}

#this-week .homework-date .material-symbols-outlined,
#this-week .lecture-date .material-symbols-outlined,
#this-week .reading-date .material-symbols-outlined {
    font-size: 15px;
    vertical-align: text-top;
    padding-right: 2px;
}

#schedule .md-typeset__table {
    display: table;
    width: 100%;
    margin-right: 50px;
}

#schedule table {
    border-collapse: collapse;
    font-size: 90%;
    display: table;
}

#schedule table td, table th {
    border-left: 1px solid var(--md-typeset-table-color);
    border-right: 1px solid var(--md-typeset-table-color);
    padding: 10px!important;
}

#schedule table:not([class]) td {
    vertical-align: middle;
}

#schedule table td:first-child, table th:first-child {
    border-left: none;
}

#schedule table td:last-child, table th:last-child {
    border-right: none;
}

#schedule table thead,
#schedule table tbody tr:nth-child(2n) {
    border-bottom: 3px #ccc solid;
}

#schedule table td:nth-last-child(3) {
    border-right: none;
}

#schedule table:not([class]) tbody tr:hover {
    background-color: rgba(0,0,0,0);
}

a.label, a.label:visited {
    color: #fff;
}

a.label:hover {
    color: #fff;
    text-decoration: underline;
}

.label.label-aqua {
    background-color: #2E8C8C;
    border-color: #2E8C8C;
}

.label.label-red {
    background-color: #D84136;
    border-color: #D84136;
}

.label.label-gold {
    background-color: #D99036;
    border-color: #D99036;
}

.label.label-blue {
    background-color: #2185d0;
    border-color: #2185d0;
}

.label .material-symbols-outlined {
    font-size: 15px;
    vertical-align: text-top;
    padding-right: 4px;
}

.left.floating.label {
    left: 0;
    right: auto;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.floating {
    position: absolute;
    z-index: 100;
    top: -1em;
    white-space: nowrap;
    -webkit-transform: translateX(50%);
    transform: translateX(50%);
}

.label:first-child {
    margin-left: 0;
}

.label {
    font-size: 0.65rem;
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0.14em;
    background-color: #e8e8e8;
    background-image: none;
    padding: 0.5833em 0.833em;
    color: rgba(0,0,0,.6);
    text-transform: none;
    font-weight: 700;
    border: 0 solid transparent;
    border-radius: 0.28571429rem;
    -webkit-transition: background .1s ease;
    transition: background .1s ease;
}

#course-instructors .card,
#course-assistants .card {
    display: inline-block;
    min-width: 275px;
    margin: 0.5rem;
}

.staffer .staffer-image {
    border-radius: 50%;
    height: 100px;
    width: 100px;
    object-fit: cover;
    margin-top: .50rem;
}

.staffer .staffer-name {
    font-weight: bold;
    margin: .25rem !important;
}

.staffer .staffer-links {
    margin: .25rem !important;
    line-height: normal;
}

.staffer-links a {
    font-size: 24px;
}

.staffer-links .material-symbols-outlined {
    font-size: 24px;
    vertical-align: text-top;
    padding: 0px 3px;
}

.admonition p.admonition-title,
details summary {
    font-size: .8rem;
}

.admonition p, .admonition ul,
details p, details ul {
    font-size: .725rem;
}

.admonition code,
details code {
    font-size: .65rem;
}

/* ==========================================================================
   Homepage course-topic animation ("What We'll Build & Break This Semester")
   Pure CSS: a cycling keyword line plus two counter-scrolling topic marquees.
   Light values live on :root so the "auto"/default palette inherits them;
   only the slate (dark) scheme overrides.
   ========================================================================== */

:root {
    --cen-hero-fg:        #21201d;
    --cen-hero-muted:     rgba(0, 0, 0, 0.58);
    --cen-hero-bg:        linear-gradient(135deg, rgba(255, 201, 4, 0.16) 0%,
                                                  rgba(255, 201, 4, 0.04) 55%,
                                                  rgba(0, 0, 0, 0.03) 100%);
    --cen-hero-border:    rgba(0, 0, 0, 0.10);
    --cen-accent:         #9e7e00;
    --cen-accent-bright:  #FFC904;
    --cen-chip-bg:        rgba(255, 255, 255, 0.72);
    --cen-chip-fg:        #2f2d29;
    --cen-chip-border:    rgba(0, 0, 0, 0.10);
    --cen-fade:           #ffffff;
}

[data-md-color-scheme="slate"] {
    --cen-hero-fg:        rgba(255, 255, 255, 0.94);
    --cen-hero-muted:     rgba(255, 255, 255, 0.62);
    --cen-hero-bg:        linear-gradient(135deg, rgba(255, 201, 4, 0.14) 0%,
                                                  rgba(255, 201, 4, 0.03) 55%,
                                                  rgba(255, 255, 255, 0.02) 100%);
    --cen-hero-border:    rgba(255, 255, 255, 0.14);
    --cen-accent:         #FFC904;
    --cen-accent-bright:  #FFD84A;
    --cen-chip-bg:        rgba(255, 255, 255, 0.07);
    --cen-chip-fg:        rgba(255, 255, 255, 0.86);
    --cen-chip-border:    rgba(255, 255, 255, 0.15);
    --cen-fade:           #1f2129;
}

.cen-topics {
    position: relative;
    margin: 1.6em 0 1.8em;
    padding: 1.4em 0 1.25em;
    border: 1px solid var(--cen-hero-border);
    border-radius: 10px;
    background: var(--cen-hero-bg);
    overflow: hidden;
    color: var(--cen-hero-fg);
}

/* Slow gold sweep across the panel, so it reads as alive but not busy. */
.cen-topics::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 35%,
                                        rgba(255, 201, 4, 0.13) 50%,
                                        transparent 65%);
    background-size: 260% 100%;
    animation: cen-sweep 11s ease-in-out infinite;
}

@keyframes cen-sweep {
    0%, 100% { background-position: 160% 0; }
    50%      { background-position: -60% 0; }
}

/* ---- Cycling keyword line -------------------------------------------- */

.cen-topics__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 0.45em;
    margin: 0 auto 1.15em;
    padding: 0 1.2em;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: var(--cen-lh, 1.9em);
    text-align: center;
}

.cen-topics__lead-static {
    color: var(--cen-hero-muted);
    font-weight: 500;
}

/* Viewport for the vertical word stack. */
.cen-cycle {
    --cen-lh: 1.9em;
    position: relative;
    display: inline-block;
    height: var(--cen-lh);
    overflow: hidden;
    vertical-align: bottom;
    /* The box is as wide as the LONGEST word, so shorter words must be centered
       inside it -- left-aligning them made each word sit at a different offset. */
    text-align: center;
}

.cen-cycle__list {
    display: block;
    margin: 0;
    padding: 0;
    animation: cen-cycle 13.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.cen-cycle__list .cen-cycle__word {
    display: block;
    height: var(--cen-lh);
    line-height: var(--cen-lh);
    margin: 0;
    white-space: nowrap;
    color: var(--cen-accent);
    font-weight: 700;
}

/* Six words; the 7th word repeats the 1st so the loop is seamless. */
@keyframes cen-cycle {
    0%,     12.0% { transform: translateY(0); }
    16.67%, 28.7% { transform: translateY(calc(-1 * var(--cen-lh))); }
    33.33%, 45.3% { transform: translateY(calc(-2 * var(--cen-lh))); }
    50.0%,  62.0% { transform: translateY(calc(-3 * var(--cen-lh))); }
    66.67%, 78.7% { transform: translateY(calc(-4 * var(--cen-lh))); }
    83.33%, 95.3% { transform: translateY(calc(-5 * var(--cen-lh))); }
    100%          { transform: translateY(calc(-6 * var(--cen-lh))); }
}

/* ---- Counter-scrolling topic marquees --------------------------------- */

.cen-marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    /* Fade both edges so chips slide in and out instead of being clipped. */
    -webkit-mask-image: linear-gradient(to right, transparent 0,
                                        var(--cen-fade) 9%,
                                        var(--cen-fade) 91%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0,
                                        var(--cen-fade) 9%,
                                        var(--cen-fade) 91%, transparent 100%);
}

.cen-marquee + .cen-marquee {
    margin-top: 0.5em;
}

.cen-marquee__track {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5em;
    padding-right: 0.5em;
    /* The track holds the chip list twice, so -50% is one seamless lap. */
    animation: cen-scroll var(--cen-speed, 46s) linear infinite;
    will-change: transform;
}

.cen-marquee--reverse .cen-marquee__track {
    animation-direction: reverse;
}

@keyframes cen-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.cen-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.34em 0.85em;
    border: 1px solid var(--cen-chip-border);
    border-radius: 999px;
    background: var(--cen-chip-bg);
    color: var(--cen-chip-fg);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.cen-chip::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--cen-accent-bright);
    transform: rotate(45deg);
}

/* Pause the motion on hover so a topic can actually be read. */
.cen-topics:hover .cen-marquee__track,
.cen-topics:hover .cen-cycle__list {
    animation-play-state: paused;
}

@media screen and (max-width: 60em) {
    .cen-topics__lead { font-size: 0.9rem; }
    .cen-chip { font-size: 0.65rem; }
}

/* NOTE: this panel intentionally animates for everyone, including visitors whose
   system has "reduce motion" enabled -- by explicit instruction. There is no
   prefers-reduced-motion override below. If a static version is ever wanted for
   those visitors, re-add a @media (prefers-reduced-motion: reduce) block that
   sets animation:none on .cen-topics::after/.cen-marquee__track/.cen-cycle__list,
   makes .cen-marquee display:block with no mask, lets .cen-marquee__track wrap,
   and hides .cen-chip--dup plus every .cen-cycle__word after the first. */
