/* ===============================
   Research Log 12-Column Grid (styles.css)
   Drop this file in /assets and link from pages:
   <link rel="stylesheet" href="/assets/styles.css" />
   =============================== */

:root{
  --container: min(1100px, 92vw);
  --gutter: clamp(12px, 2vw, 24px);
  --gap: clamp(12px, 2.5vw, 28px);
  --bg: #fff;
  --ink: #141414;
  --muted: #585858;
  --line: #e9e9e9;
}

*{ box-sizing: border-box; }
html, body{
  margin:0; padding:0;
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.homepage{
  margin:0; padding:0;
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-image: url('../icons/tile_background.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
}
.weeklylog {
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.8) 0%, rgba(247, 247, 247, 0.8) 100%), url('../icons/week_tile.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
}

.research{
  background: var(--home-yellow);
}

.cases{
  background: var(--home-yellow);
}

.field{
  background: var(--home-yellow);
}

.peer{
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.8) 0%, rgba(247, 247, 247, 0.8) 100%), url('../icons/peer_tile.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
}

body.exercise{
  background: var(--home-pink);
  min-height: 100vh;
}

.prototype{
  background: var(--home-orange);
}
.prototype-mini{
  background: var(--home-paper);
}

.footer{
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.8) 0%, rgba(247, 247, 247, 0.8) 100%);
}
.container{ width: var(--container); margin-inline: auto; padding-inline: var(--gutter); padding-bottom: 0px; }

/* 12-col grid */
.grid{ display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gap); }

/* Column spans (desktop) */
.span-12{ grid-column: 1 / -1; }
.span-8{ grid-column: span 8; }
.span-7{ grid-column: span 7; }
.span-6{ grid-column: span 6; }
.span-5{ grid-column: span 5; }
.span-4{ grid-column: span 4; }
.span-3{ grid-column: span 3; }

/* Start column helpers (offsets) */
.start-2{ grid-column-start: 2; }
.start-3{ grid-column-start: 3; }
.start-4{ grid-column-start: 4; }

/* Responsive stacking */
@media (max-width: 900px){
  .span-8, .span-7, .span-6, .span-5, .span-4, .span-3{ grid-column: 1 / -1; }
}

/* Page chrome */
.page-head{ padding: px 0 8px;}
.page-meta{ color: var(--home-black); font: size 1.2em; display:flex; gap: 0px;flex-wrap:wrap; }

.h1{ 
  font-weight:800; 
  letter-spacing:-0.01em; 
  font-size: clamp(1.6rem,2.2vw,2rem);
  /*
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fcfcfc 0%, #f7f7f7 100%);
  border: 1px solid #d0d0d0;
  box-shadow: 
    2px 2px 4px rgba(0,0,0,0.1), 
    0 -1px 1px rgba(255,255,255,0.7) inset;*/
}
.subpage-title{
  font-weight:800; 
  letter-spacing:-0.01em; 
  font-size: clamp(1.6rem,4vw,4rem); 
  margin:0 0 0px;
  display: inline-block;
  font-family: var(--title-font);
  letter-spacing: 1.2px;
}
.proto-title{
  font-weight:800; 
  font-size: clamp(1.6rem,2vw,2rem); 
  display: inline-block;
  font-family: var(--title-font);
  letter-spacing: 1.1px;
}
.h2{ font-weight:700; font-size:1.2rem;padding: -10px; margin: 0; }
.kicker{ text-transform:uppercase; letter-spacing:.08em; font-size:.8rem; color:var(--muted); margin-top:20px;}

/* Content helpers */
.measure{ max-width: 65ch; }               /* Keeps paragraphs readable */
.stack > * + *{ margin-top: 0px; }        /* Vertical rhythm */
.rule{ border:0; height:1px; background:var(--line); margin: 28px 0; }

.card{ padding:16px 18px; background:var(--home-yellow); }
.callout{ border-left:4px solid #222; background:#f6f6f6; padding:12px 14px; }

.figure{ border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.figure img{ display:block; width:100%; height:auto; }
.figcap{ font-size:.9rem; color: var(--home-black); padding:8px 12px 12px; }

/* Optional: control image aspect with cropping */
.ratio{ /*aspect-ratio: 16/9; object-fit: cover;*/ width: 100%; height: auto; }

/* Order utilities (to change mobile order) */
@media (max-width: 900px){
  .order-1{ order: 1; }
  .order-2{ order: 2; }
}

/* Links */
a{ color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* ===============================
   UNIVERSAL NAVBAR (no Tailwind)
   =============================== */
#site-nav{
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #fefefe 0%, #e8e8e8 100%);
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
#site-nav .nav-inner{
  width: var(--container); margin-inline: auto; padding: 0  var(--gutter);
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
#site-nav .brand{
  font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; padding: 8px; border-radius: 10px;
}
#site-nav .nav-links{ display: flex; gap: 14px; }
#site-nav .nav-links a{
  color: #444; text-decoration: none; padding: 8px 10px; border-radius: 8px;
  background: linear-gradient(180deg, #fefefe 0%, #e0e0e0 100%);
  border: 1px solid #d0d0d0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 1px 1px rgba(255,255,255,0.7) inset;
}
#site-nav .nav-links a:hover{ 
  background: linear-gradient(180deg, #f0f0f0 0%, #d0d0d0 100%); 
  color: #000; 
}
#site-nav a[aria-current="page"]{ font-weight: 600; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,0.5) inset; transform: translateY(1px); }

/* --- Hamburger button (hidden on desktop) --- */
.hamburger{
  display:none; /* shown via media query */
  width: 40px; height: 40px; border: 1px solid #d0d0d0; border-radius: 8px;
  background: linear-gradient(180deg,#fefefe 0%, #e0e0e0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 1px 1px rgba(255,255,255,.7) inset;
  align-items:center; justify-content:center; gap:4px; padding:0; cursor:pointer;
}
.hamburger span{
  display:block; width:20px; height:2px; background:#333; border-radius:2px;
}
.hamburger:active{ transform: translateY(1px); }

/* --- Mobile nav behavior --- */
@media (max-width: 900px){
  #site-nav .nav-inner{ position: relative; }
  /* show burger, hide inline links */
  .hamburger{
  display:none; /* shown via media query */
  width: 40px; height: 40px;
  border: 1px solid #d0d0d0; border-radius: 8px;
  background: linear-gradient(180deg,#fefefe 0%, #e0e0e0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 1px 1px rgba(255,255,255,.7) inset;

  /* KEY CHANGE: stack spans vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;       /* spacing between lines */
  padding: 0;
  cursor: pointer;
}

.hamburger span{
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

  #site-nav .nav-links{
    display:none; /* hidden until open */
    position: absolute; left:0; right:0; top:64px;
    background: linear-gradient(180deg, #fefefe 0%, #e8e8e8 100%);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 14px;
    flex-direction: column; gap: 8px;
  }
  #site-nav.open .nav-links{ display:flex; }
  /* make touch targets comfy */
  #site-nav .nav-links a{
    display:block; padding:10px 12px; border-radius:8px; text-decoration:none;
    background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
    border: 1px solid #d0d0d0; box-shadow: 0 1px 2px rgba(0,0,0,.1);
  }
}

/* ===============================
   GALLERY TILES (homepage + subs)
   =============================== */
.gallery-tiles{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;            /* consistent row + column spacing */
  align-items: flex-start;
  padding-bottom: 30px;
}
.gallery-item{
  width: 150px; height: 150px; overflow: hidden;
  position: relative; background: #e5e7eb; cursor: pointer;
  transition: transform .2s ease-in-out, box-shadow .2s;
  box-shadow: var(--home-shadow);
  margin: 0;
}
.gallery-item:hover{ transform: scale(1.04); }
.gallery-item-frame{
  border: 10px solid #fff; border-rgb (48, 49, 50) 12px; position: relative;
  width: 100%; height: 100%; overflow: hidden;
}
.gallery-item-frame img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.gallery-item-title{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7); color:#fff; padding: 8px; font-size:.875rem; text-align:center;
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gallery-item-title,
.gallery-item:focus .gallery-item-title,
.gallery-item:focus-within .gallery-item-title{ 
  opacity: 1; 
}

.gallery-item-static-title {
  position: absolute;
  top: 25%;
  left: 10px;
  right: 0;
  background: none;
  color: var(--home-black);
  padding: 8px;
  font-size: 1rem;
  line-height: 1.2rem;
  text-align: center;
  z-index: 2; /* Ensures it's above the image */
}
.gallery-item-static-title-darkbg {
  position: absolute;
  top: 25%;
  left: 0px;
  right: 0;
  background: none;
  color: #ffffff;
  padding: 8px;
  font-size: 1rem;
  line-height: 1.2rem;
  text-align: center;
  z-index: 2; /* Ensures it's above the image */
}

/* ===============================
   NEW SKEUOMORPHIC SECTION WRAPPER
   =============================== */
.skeuomorphic-section {
  padding: 5px 30px;
  box-shadow: var(--home-shadow);
  margin-top: 20px;
}

/* ===============================
   PREVIEW PANEL LAYOUT (sub-gals)
   =============================== */
.subwrap{
  display: grid;
  grid-template-columns: 1fr 0;
  gap: 16px;
  transition: none;
  align-items: start;   
  align-content: start;
}
.subwrap.open{ grid-template-columns: 1fr min(540px, 50vw); }
.preview{
  background:#fff; height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
}
.preview-head{
  display:flex; align-items:center; justify-content: space-between;
  padding: 10px 12px; background:#fafafa;
}
.preview-head .btn{ background:var(--home-blue); padding:6px 10px; border-radius:0px; text-decoration: none; }
.preview-placeholder{
  flex: 1 1 auto; display:flex; align-items:center; justify-content:center; color:#666; font-size:.95rem; padding: 8px 12px;
}
.preview-iframe{
  display:none; width:100%; height:auto; flex: 1 1 auto; border:0; background:#fff; min-height:0;
}
.preview.showing-iframe .preview-placeholder{ display:none; }
.preview.showing-iframe .preview-iframe{ display:block; }

/* Mobile drawer */
@media (max-width: 900px){
  .subwrap{ grid-template-columns: 1fr; }
  .subwrap.open{ grid-template-columns: 1fr; }
  .preview{ position: fixed; inset: 0; z-index: 50; display:none; }
  .subwrap.open .preview{ display:flex; }
}

/* ===============================
   SMALL UTILITIES SHARED
   =============================== */
.meta-list{ list-style:none; padding:0; margin:0;}
.meta-list li + li{ margin-top:6px; }
.badge{ display:inline-block; padding: 2px 8px; font-size:.85rem; color: var(--home-black); background: var(--home-pink);}
.inline-img{ max-width:100%; height:auto; vertical-align: baseline; }
.side-by-side{ display:flex; gap:12px; flex-wrap: wrap; }
.side-by-side figure{ flex: 1 1 260px; }

/* Buttons (optional) */
.btn{ 
  border:0px solid #c0c0c0; 
  background:linear-gradient(180deg, #fefefe 0%, #e0e0e0 100%); 
  padding:6px 10px; 
  border-radius: 8px; 
  text-decoration:none; 
  cursor:pointer; 
  box-shadow: none;
}
.btn:hover{ background:var(--home-yellow); }
.btn:active{ box-shadow: none; transform: translateY(1px); }

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid var(--line);
}

/* ===============================
   2026 HOMEPAGE + NAV REFRESH
   =============================== */
:root{
  --home-red: #ee293d;
  --home-navy: #1729e9;
  --home-blue: #40c2ff;
  --home-orange: #f36e3e;
  --home-pink: #f76fbc;
  --home-yellow: #fee74b;
  --home-paper: #fff0ed;
  --home-black: #000000;
  --home-shadow: 8px 8px 0 var(--home-black);
  --title-font: "ringold-sans", Impact, sans-serif;
  --body-font-home: "national-park", "Avenir Next", "Segoe UI", sans-serif;
}

#site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--home-blue);
  border-bottom: 0;
  box-shadow: none;
}

#site-nav .nav-inner{
  width: min(var(--homepage-fit-width, 1820px), calc(100vw - 32px));
  margin-inline: auto;
  padding: 7px 0 10px;
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

#site-nav .brand{
  flex: 0 0 auto;
  height: 86px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border-radius: 0;
}

#site-nav .brand img{
  display: block;
  height: 100%;
  width: auto;
}

#site-nav .nav-links{
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 7px;
}

#site-nav .nav-link{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 100px;
  padding: 0 9px 5px;
  color: var(--home-black);
  font-family: var(--title-font);
  font-size: calc(clamp(1rem, 0.75vw + 0.7rem, 1.35rem) * 0.9);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

#site-nav .nav-link img{
  width: calc(clamp(46px, 4vw, 62px) * 0.9);
  height: calc(clamp(46px, 4vw, 62px) * 0.9);
  object-fit: contain;
}

#site-nav .nav-link span{
  position: relative;
  text-align: center;
  white-space: nowrap;
}

#site-nav .nav-link::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88%;
  height: 38px;
  background: var(--home-yellow);
  transform: translateX(-50%) rotate(-5deg) scale(0);
  transform-origin: center;
  transition: transform 0.18s ease;
  z-index: -1;
}

#site-nav .nav-link:hover::after,
#site-nav .nav-link:focus-visible::after,
#site-nav .nav-link[aria-current="page"]::after{
  transform: translateX(-50%) rotate(-5deg) scale(1);
}

#site-nav .nav-links a,
#site-nav .nav-links a:hover,
#site-nav .nav-link[aria-current="page"],
#site-nav a[aria-current="page"]{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}

#site-nav .nav-links a:hover{
  background: transparent;
  color: var(--home-black);
  box-shadow: none;
}

#site-nav .hamburger{
  display: none;
  width: 52px;
  height: 52px;
  margin-left: auto;
  border: 4px solid var(--home-black);
  border-radius: 0;
  background: var(--home-yellow);
  box-shadow: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

#site-nav .hamburger span{
  width: 24px;
  height: 4px;
  background: var(--home-black);
  border-radius: 0;
}

body.homepage{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--home-yellow);
  color: var(--home-black);
  font-family: var(--body-font-home);
  background-image: none;
  overflow: hidden;
}

.homepage-fit-shell{
  --homepage-scale: 1;
  width: fit-content;
  margin: 0 auto;
  zoom: var(--homepage-scale);
}

.home-main.container{
  flex: 1 0 auto;
  width: min(1820px, calc(100vw - 48px));
  max-width: none;
  margin-inline: auto;
  padding: 12px 0 56px;
  background: var(--home-yellow) url("../icons/updated/background_home.png") center bottom / cover no-repeat;
}

.home-layout{
  display: grid;
  grid-template-columns: minmax(220px, 20%) minmax(0, 60%) minmax(220px, 20%);
  gap: 18px;
  height: auto;
  min-height: 0;
  padding: 12px 12px 0;
  background: transparent;
  align-items: start;
}

.home-side{
  min-width: 0;
}

.home-side-left{
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(128px, 0.56fr);
  gap: 10px;
  align-content: start;
  height: 90%;
}

.announcement-title{
  margin: 0;
  padding: 14px 16px 12px 30%;
  background: url("../icons/updated/background_announcement.png") center / 100% 100% no-repeat;
  color: var(--home-paper);
  font-family: var(--title-font);
  font-size: calc(clamp(1.1rem, 1vw + 0.7rem, 1.55rem) * 0.9);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.spotlight-button,
.events-button{
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.spotlight-button:hover{
  transform: translate(-3px, -3px);
}

.spotlight-button img,
.events-button img{
  display: fit-content;
  width: 100%;
  object-fit: contain;
  object-position: center top;
  
}

.spotlight-button-tall{
  min-height: 0;
  padding-bottom:15%;
  
}

.home-side-left .spotlight-button{
  min-height: 0;
  
}

.spotlight-button{
  box-shadow: none;
  
}

.spotlight-button img{
  box-shadow: var(--home-shadow);
}

.home-center-panel{
  min-width: 0;
  border: 0;
  background: var(--home-paper);
  box-shadow: var(--home-shadow);
  height: 90%;
  align-self: stretch;
}

.home-center-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
}

.home-log-column{
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 8px;
}

.home-panel-header{
  margin-bottom: 4px;
}

.semester-title{
  margin: 0;
  font-family: var(--title-font);
  font-size: calc(clamp(2.1rem, 2vw + 1rem, 4.2rem) * 0.9);
  line-height: 0.9;
  text-transform: uppercase;
  text-align: center;
}

.semester-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 8px;
}

.calendar-card{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  outline: none;
  z-index: 0;
}

.calendar-card::after{
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--home-yellow);
  transform: rotate(-4deg) scale(0);
  transform-origin: center;
  transition: transform 0.18s ease;
  z-index: -1;
}

.calendar-card img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calendar-card span{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  color: var(--home-black);
  font-family: var(--body-font-home);
  font-size: clamp(0.58rem, 0.33vw + 0.45rem, 0.84rem);
  font-weight: 400;
  text-align: center;
}

.calendar-card:hover,
.calendar-card:focus-visible{
  transform: translate(-3px, -3px);
}

.calendar-card:hover::after,
.calendar-card:focus-visible::after{
  transform: rotate(-4deg) scale(1);
}

.semester-nav{
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.semester-toggle{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--home-black);
  font-family: var(--title-font);
  font-size: calc(clamp(1rem, 0.65vw + 0.72rem, 1.65rem) * 0.9);
  line-height: 0.95;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  z-index: 0;
  white-space: nowrap;
}

.semester-toggle::after{
  content: "";
  position: absolute;
  inset: 1px -2px;
  background: var(--home-yellow);
  transform: rotate(-3deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
  z-index: -1;
}

.semester-toggle:hover::after,
.semester-toggle:focus-visible::after{
  transform: rotate(-3deg) scaleX(1);
}

.semester-toggle:disabled{
  color: rgba(0, 0, 0, 0.24);
  cursor: not-allowed;
}

.semester-toggle:disabled::after{
  display: none;
}

.semester-toggle-arrow{
  font-family: var(--body-font-home);
  font-size: 1em;
  line-height: 1;
}

.semester-toggle-label{
  line-height: 0.95;
}

.home-links-column{
  min-width: 0;
  padding: 20px 15px;
  border-left: 3px dashed var(--home-black);
  display: flex;
  flex-direction: column;
}

.home-section-row{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.36);
}

.home-section-row:last-child{
  border-bottom: 0;
}

.home-section-row-link{
  color: var(--home-black);
  text-decoration: none;
  outline: none;
  z-index: 0;
}

.home-section-row-link::after{
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 4px;
  bottom: 4px;
  background: var(--home-pink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
  z-index: -1;
}

.home-section-row-link:hover::after,
.home-section-row-link:focus-visible::after{
  transform: scaleX(1);
}

.home-section-copy{
  min-width: 0;
}

.home-section-title{
  margin: 0 0 2px;
  font-family: var(--title-font);
  font-size: calc(clamp(1.45rem, 0.95vw + 0.92rem, 2.4rem) * 0.9);
  line-height: 0.95;
  text-transform: uppercase;
}

.home-section-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-black);
  font-family: var(--body-font-home);
  font-size: clamp(0.8rem, 0.24vw + 0.5rem, 0.78rem);
  font-weight: 400;
  text-decoration: none;
}

.home-section-icon{
  display: block;
  width: calc(clamp(68px, 5vw, 100px) * 0.9);
  height: auto;
  max-height: 80%;
  object-fit: contain;
}

.home-side-right{
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  align-content: start;
  height: auto;
}

.quick-links-panel{
  width: 100%;
  max-width: 100%;
  padding: 12px 14px 10px;
  border: 0;
  background: var(--home-orange);
  box-shadow: var(--home-shadow);
  height: max-content;
}

.quick-links-title{
  margin: 0 0 12px;
  color: var(--home-paper);
  font-family: var(--title-font);
  font-size: calc(clamp(1.35rem, 0.85vw + 0.8rem, 2rem) * 0.9);
  line-height: 0.95;
  text-transform: uppercase;
}

.quick-links-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links-list li + li{
  margin-top: 7px;
}

.quick-links-list a{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 4px;
  color: var(--home-paper);
  font-family: var(--body-font-home);
  font-size: calc(calc(clamp(1rem, 0.48vw + 0.8rem, 1.4rem) * 0.9) * 0.8);
  line-height: 1.2;
  text-decoration: none;
  z-index: 0;
}

.quick-links-list a::after{
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 0;
  bottom: 0;
  background: var(--home-navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
  z-index: -1;
}

.quick-links-list a:hover::after,
.quick-links-list a:focus-visible::after{
  transform: scaleX(1);
}

.footer-home{
  margin-top: auto;
  flex: 0 0 auto;
  padding: 14px 0;
  background: var(--home-black);
  color: var(--home-paper);
  border-top: 4px solid var(--home-black);
  font-family: var(--body-font-home);
}

.footer-home p{
  margin: 0;
}

.footer-home .container{
  width: min(var(--homepage-fit-width, 1820px), calc(100vw - 32px));
  max-width: none;
}

@media (max-width: 1100px){
  #site-nav .nav-inner{
    width: min(96vw, 1280px);
    min-height: 94px;
  }

  #site-nav .brand{
    height: 72px;
  }

  #site-nav .nav-link{
    min-width: 88px;
    padding-inline: 6px;
  }

  .home-main.container{
    width: min(96vw, 1400px);
  }

  .home-layout{
    grid-template-columns: 1fr;
    height: auto;
    background-size: contain;
    background-position: center top;
  }

  .home-side-left,
  .home-side-right{
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .announcement-title{
    grid-column: 1 / -1;
  }

  .home-center-columns{
    grid-template-columns: 1fr;
  }

  .home-links-column{
    border-left: 0;
    border-top: 3px dashed var(--home-black);
  }
}

@media (max-width: 900px){
  body.homepage{
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.homepage.nav-open{
    overflow: hidden;
  }

  .homepage-fit-shell{
    width: auto;
  }

  .footer-home .container{
    width: calc(100vw - 24px);
  }

  #site-nav .nav-inner{
    width: calc(100vw - 28px);
    min-height: 74px;
    padding: 10px 0;
    align-items: center;
    position: relative;
  }

  #site-nav .brand{
    height: 48px;
  }

  #site-nav .hamburger{
    display: flex;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    gap: 5px;
    z-index: 72;
  }

  #site-nav .hamburger span{
    width: 32px;
    height: 4px;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  #site-nav.open .hamburger{
    position: fixed;
    top: 14px;
    right: 14px;
  }

  #site-nav.open .hamburger span:nth-child(1){
    transform: translateY(9px) rotate(45deg);
  }

  #site-nav.open .hamburger span:nth-child(2){
    opacity: 0;
  }

  #site-nav.open .hamburger span:nth-child(3){
    transform: translateY(-9px) rotate(-45deg);
  }

  #site-nav .nav-links{
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: max(40vw, 250px);
    margin-left: 0;
    padding: 96px 16px 28px;
    border: 0;
    background: var(--home-blue);
    box-shadow: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 38px;
    z-index: 71;
  }

  #site-nav.open .nav-links{
    display: flex;
  }

  #site-nav .nav-link{
    min-width: 0;
    width: 100%;
    padding: 0;
    gap: 14px;
    justify-content: center;
    font-size: clamp(1.1rem, 0.92rem + 0.8vw, 1.6rem);
    line-height: 0.92;
  }

  #site-nav .nav-link img{
    width: 72px;
    height: 72px;
  }

  #site-nav .nav-link span{
    white-space: normal;
  }

  #site-nav .nav-link::after{
    display: none;
  }

  .home-main.container{
    width: calc(100vw - 28px);
    max-width: 420px;
    padding: 10px 0 28px;
    background: var(--home-yellow);
  }

  .home-layout{
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
  }

  .home-center-panel{
    order: 1;
    height: auto;
    align-self: auto;
  }

  .home-side-left{
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
  }

  .home-side-right{
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
  }

  .home-log-column,
  .home-links-column{
    min-width: 0;
  }

  .home-center-columns{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-log-column{
    padding: 18px 18px 14px;
  }

  .home-panel-header{
    margin-bottom: 14px;
  }

  .home-log-column > br,
  .home-links-column > br,
  .home-links-column > .semester-title{
    display: none;
  }

  .semester-title{
    font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem);
  }

  .semester-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .calendar-card::after{
    inset: 6px;
  }

  .calendar-card span{
    padding-top: 16px;
    font-size: clamp(0.78rem, 0.65rem + 0.4vw, 0.94rem);
  }

  .semester-nav{
    padding-top: 14px;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
  }

  .semester-toggle{
    flex: 1 1 0;
    padding: 8px 0 0;
    font-size: clamp(1rem, 0.88rem + 0.8vw, 1.3rem);
    white-space: normal;
  }

  #semester-prev{
    justify-content: flex-start;
  }

  #semester-next{
    justify-content: flex-end;
  }

  .home-links-column{
    padding: 12px 18px 18px;
    border-top: 2px solid rgba(0, 0, 0, 0.3);
  }

  .home-section-row{
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 0;
  }

  .home-section-title{
    font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2rem);
  }

  .home-section-link{
    font-size: clamp(0.86rem, 0.74rem + 0.35vw, 1rem);
  }

  .home-section-icon{
    width: 56px;
  }

  .announcement-title{
    padding: 12px 14px 10px 28%;
    font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.4rem);
  }

  .spotlight-button-tall{
    padding-bottom: 0;
  }

  .quick-links-panel{
    padding: 14px 16px 16px;
  }

  .quick-links-title{
    margin-bottom: 10px;
  }

  .quick-links-list a{
    font-size: clamp(1rem, 0.88rem + 0.55vw, 1.16rem);
  }

  .footer-home{
    padding: 12px 0;
  }

  .footer-home p{
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.25;
  }
}
