html {
    /*     overflow: hidden; */
        scroll-behavior: smooth;
      scrollbar-width: none;
    }
    html::-webkit-scrollbar {
    display: none;
}

@font-face {
    font-family: Fira Code;
    src: url(/assets/fonts/FiraCode-Light.woff2) format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(/assets/fonts/FiraCode-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(/assets/fonts/FiraCode-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(/assets/fonts/FiraCode-SemiBold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(/assets/fonts/FiraCode-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}

.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.font-medium {
    font-weight: 500;
}
.font-regular {
    font-weight: 400;
}
.font-light {
    font-weight: 300;
}

body {
    min-height: 100svh;       /* use 100dvh or 100vh if you prefer */
    display: flex;
    flex-direction: column;
    font-family: Fira Code, monospace;
    -webkit-font-smoothing:antialiased;
    background-color: #EBEBEB;
    background: #0b0d0f;
    color: #E0E0E0;
    margin: 0px;
}

.navbar-nav {
    display:flex;
    max-width: 100%;
    max-height: 11vh;
    padding: max(0.5vw, 0.5rem) max(1vw, 1rem);
    top: 0;
    z-index: 1000;
    margin: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #0B4E82;
}

.navbar-nav-list {
    list-style: none;
    border-width: 2rem;
    border-radius: 0.5rem;
    gap: 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-inline-start: 80px;
}

.navbar-nav-link {
    display: flex;
    text-decoration: none;
    text-align: center;
    font-size: max(1vw, 1.2rem);
    color: #E0E0E0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #E0E0E0;
    cursor: pointer;
}

.nav-div {
    background-color: #0B4E82;
    display: flex;
    height: 12vh;
}

/* Mobile */

@media (max-width: 750px) {
    .navbar-nav {
        display: none;
    }
    .nav-div {
        display: none;
    }
    .navbar-nav-m {
        display: flex;
    }
}

.navbar-nav-m {
    display: none;
    max-width: 100%;
    max-height: 11vh;
    padding: max(0.5vw, 0.5rem) max(1vw, 1rem);
    top: 0;
    z-index: 1000;
    margin: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #a8a9aa;
}


header.site-nav{
    position: static;
    top: 0;
    z-index: 1000;
}


.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0B4E82;
    padding: 8px 12px;
}

.nav-desktop {
    display: flex;
    gap: 3vw;
    align-items: center;
    justify-content: center;
}

.nav-desktop a{
    color: #E0E0E0;
    text-decoration: none;
    padding: 8px 6px;
}

.nav-desktop a:hover {
    text-decoration: underline;
}

.nav-mobile {
    display: none;
}

.nav-menu {
    display: inline-block;
}

.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .5ch;
    color: #E0E0E0;
    cursor: pointer;
    user-select: none;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px
}

.nav-menu-btn::after {
    content: "▾";
    transition: transform 0.15s ease;
}

.nav-menu[open] .nav-menu-btn::after {
    transform: rotate(180deg);
}

.nav-menu-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: #0B4E82;
    display: grid;
    gap: 6px;
}

.nav-menu-list a{
    color: #E0E0E0;
    text-decoration: none;
    padding: 6px 4px;
    display: block;
}

.nav-menu-list a:hover{
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: block;
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu-btn::after{
        transition: none;
    }
}

.title-icon {
    display: flex;
    align-items: center;
}

.title-icon-element {
    max-width: 10vw;
    max-height: 10vh;
}

.title-font {
    margin-left: 1.5rem;
    font-size: max(1.7vw, 1.7rem);
}

.title-font-small {
    margin-left: 1rem;
    font-size: max(1vw, 1rem);
}

.center-item {
    align-items: center;
}

.ep-ep{
  --bg-ep: #f7f7f8;
  --card-ep: #ffffff;
  --text-ep: #111418;
  --muted-ep: #5b6169;
  --accent-ep: #0ea5e9;
  --border-ep: #e6e8eb;
  --radius-ep: 14px;
  --shadow-ep: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark){
  .ep-ep{
    --bg-ep: #0b0d0f;
    --card-ep: #111418;
    --text-ep: #e7e9ee;
    --muted-ep: #a0a6ae;
    --accent-ep: #38bdf8;
    --border-ep: #21262c;
    --shadow-ep: none;
  }
}

/* Optional: give the section its own background without touching body */
.ep-ep{
  background: var(--bg-ep);
  padding: 48px 0;
}

/* ===== Layout ===== */
.ep-ep .wrap-ep{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.ep-ep .title-ep{
  margin: 0 0 20px;
  font-size: clamp(1.25rem, 2vw + 1rem, 2rem);
  letter-spacing: -0.02em;
  color: var(--text-ep);
}

.ep-ep .lead-ep{
  color: var(--muted-ep);
  margin-bottom: 28px;
}

/* ===== Grid ===== */
.ep-ep .grid-ep{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 680px){
  .ep-ep .grid-ep{ grid-template-columns: 1fr 1fr; }
}

/* ===== Post card ===== */
.ep-ep .post-ep{
  background: var(--card-ep);
  border: 1px solid var(--border-ep);
  border-radius: var(--radius-ep);
  box-shadow: var(--shadow-ep);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s ease, transform .15s ease;
  color: var(--text-ep);
}
.ep-ep .post-ep:hover{
  border-color: color-mix(in oklab, var(--accent-ep) 25%, var(--border-ep));
  transform: translateY(-1px);
}

.ep-ep .post-title-ep{
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}
.ep-ep .post-title-ep a{
  color: inherit;
  text-decoration: none;
}
.ep-ep .post-title-ep a:hover,
.ep-ep .post-title-ep a:focus{
  color: var(--accent-ep);
  text-decoration: underline;
  outline: none;
}

.ep-ep .meta-ep{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted-ep);
}

.ep-ep .tag-ep{
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-ep);
  background: color-mix(in oklab, var(--card-ep) 85%, var(--accent-ep));
  color: var(--text-ep);
}

.ep-ep .summary-ep{
  margin: 0;
  color: var(--text-ep);
}

.ep-ep .actions-ep{
  margin-top: 4px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.ep-ep .actions-ep a{
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--accent-ep);
}
.ep-ep .actions-ep a:hover{ text-decoration: underline; }

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  .ep-ep .post-ep{ transition: none; }
  .ep-ep .post-ep:hover{ transform: none; }
}





/* Toggle styling (same as before) */
.ep-ep .summary-toggle-ep{
  display:inline-flex; align-items:center; gap:.5ch;
  cursor:pointer; user-select:none; color: var(--accent-ep);
  padding:6px 0;
}
.ep-ep .summary-toggle-ep::after{ content:"▾"; transition: transform .15s ease; }
.ep-ep .more-ep[open] .summary-toggle-ep::after{ transform: rotate(180deg); }

/* Expanded body: hidden by default, appears BELOW the actions row */
.ep-ep .more-body-ep{ display:none; margin-top:8px; color: var(--text-ep); }
.ep-ep .more-ep[open] ~ .more-body-ep{ display:block; }  /* key line */

/* links */
.ep-ep .more-body-ep a{ color: var(--accent-ep); text-decoration:none; }
.ep-ep .more-body-ep a:hover{ text-decoration:underline; }

@media (prefers-reduced-motion: reduce){
  .ep-ep .summary-toggle-ep::after{ transition: none; }
}

.ep-ep .post-ep.pinned {
  border: 2px solid var(--accent-ep);
}

.ep-ep .tag-announcement {
  background: #0B4E82;
  color: white;
  border-color: #0B4E82;
}

.ep-ep .tag-mini-announcement {
  background: #2c7be5;
  color: white;
  border-color: #2c7be5;
}

.ep-ep .tag-syllabus-change {
  background: #d97706;
  color: white;
  border-color: #d97706;
}

.ep-ep .tag-meeting-info {
  background: #287c49;
  color: white;
  border-color: #287c49;
}

* { box-sizing: border-box; }

footer {
    width: 100%;
    text-align: center;
    padding: 0px;
    background-color: #0B4E82;
    color: #E0E0E0;
    font-size: max(0.7vw, 0.5rem);
}

/* ===== Update Controls ===== */

.update-controls {
  display: flex;
  justify-content: flex-end;   /* hug right side */
  gap: 12px;
  margin-bottom: 28px;         /* space above cards */
  flex-wrap: wrap;
}

.update-controls input,
.update-controls select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-ep);
  background: var(--card-ep);
  color: var(--text-ep);
  outline: none;
  transition: border-color 0.15s ease;
}

.update-controls input:focus,
.update-controls select:focus {
  border-color: var(--accent-ep);
}