/* Vaidehi Wagh — shared site styles (aligned with homepage) */
:root {
  --color-text: #1f2937;
  --color-body: #374151;
  --color-muted: #6b7280;
  --color-secondary: #4b5563;
  --color-border: #e5e7eb;
  --color-accent: #2563eb;
  --color-heading: #111827;
  --max-width: 980px;
  --radius: 6px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 3rem 2.25rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: var(--color-text);
  background: #ffffff;
}

a {
  text-decoration: none;
  color: var(--color-accent);
}

a:hover {
  text-decoration: underline;
}

/* Accent links in running text; navbar overrides below */
p a,
.card-content a,
.pub-content a,
.card-info a,
.about a,
.roles-intro a,
.role-card a {
  color: var(--color-accent);
}

h3 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin-top: 0.4rem;
}

/* ----- Nav ----- */
.navbar {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar a {
  color: var(--color-muted);
}

.navbar a:hover {
  text-decoration: underline;
}

.navbar a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

/* ----- Homepage layout ----- */
.container.layout-home {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.layout-home .left {
  flex: 0 0 auto;
  font-size: 0.95rem;
}

.layout-home .right {
  flex: 1;
  min-width: 0;
}

/* ----- Inner pages: single full-width column ----- */
.container.page-single {
  display: block;
  width: 100%;
}

.page-single .page-main {
  width: 100%;
  min-width: 0;
}

.page-single .page-main > h3:first-child {
  margin-top: 0;
}

/* ----- Research page (thesis-first layout) ----- */
.page-research .page-lede {
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
  max-width: 72ch;
}

/* Page label (same look as site h3; not a heading so h1 thesis stays top-level) */
.page-research .research-kicker {
  font-size: 1.4rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.3;
}

.page-research .research-kicker::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin-top: 0.4rem;
}

.page-research .research-section {
  margin: 0;
  padding: 0;
  border: none;
}

.page-research h2.research-section-title {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.3;
}

.page-research h2.research-section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin-top: 0.4rem;
}

/* Spacing after divider into UBC block (hr already has bottom margin) */
.page-research .research-section--prior > h2.research-section-title {
  margin-top: 0;
}

/* Thesis hero card */
.page-research .research-hero-card {
  margin: 0 0 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #e0e7ff;
  background: linear-gradient(165deg, #fafbff 0%, #f1f5ff 42%, #ffffff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(37, 99, 235, 0.09);
  position: relative;
  overflow: hidden;
}

.page-research .research-hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 55%, #3b82f6 100%);
  border-radius: 14px 0 0 14px;
}

.page-research .research-hero-card + .research-hero-card {
  margin-top: 1.5rem;
}

.page-research .research-hero-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  gap: 1.35rem 1.85rem;
  align-items: start;
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
}

.page-research .research-hero-media {
  margin: 0;
}

.page-research .research-hero-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b82f6;
  margin: 0 0 0.35rem 0;
}

.page-research .research-hero-card h1.research-page-title {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  line-height: 1.18;
}

.page-research .research-hero-card h2.research-page-title {
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1.22;
  margin: 0 0 0.65rem 0;
}

.page-research .research-hero-card .research-hero-meta {
  color: #64748b;
}

.page-research .research-hero-card .research-hero-meta a {
  color: #2563eb;
}

.page-research .research-tile-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
  margin: 0 0 0.55rem 0;
}

.page-research .research-tile-prose {
  width: 100%;
  max-width: none;
}

.page-research .research-tile-prose p {
  margin: 0 0 0.85rem 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--color-body);
  max-width: none;
}

.page-research .research-tile-prose p:last-child {
  margin-bottom: 0;
}

.page-research .research-tile-h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 1.15rem 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.page-research .research-tile-prose .research-tile-h3:first-of-type {
  margin-top: 0.75rem;
}

/* Compact figure slots (drop in <img> later if you want) */
.page-research .research-media-ph {
  box-sizing: border-box;
  width: 100%;
  max-width: 168px;
  aspect-ratio: 4 / 3;
  min-height: 96px;
  border: 1px dashed #d1d5db;
  background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.25;
  user-select: none;
}

.page-research .research-media-ph .research-media-ph-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.page-research .research-media-ph--inline {
  max-width: 132px;
  min-height: 88px;
  aspect-ratio: 3 / 2;
}

.page-research .research-media-ph--thumb {
  max-width: 88px;
  min-height: 72px;
  aspect-ratio: 1;
  font-size: 0.62rem;
  padding: 0.35rem;
}

.page-research .research-media-ph--thumb .research-media-ph-label {
  font-size: 0.55rem;
}

.page-research .research-media-ph--hero {
  max-width: 168px;
  border-color: #bfdbfe;
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}

.page-research .research-hero-text {
  min-width: 0;
}

.page-research h1.research-page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.45rem 0;
}

.page-research .research-hero-meta {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0 0 1rem 0;
}

.page-research .research-hero-meta a {
  font-weight: 500;
}

.page-research .research-code {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-x: auto;
}

.page-research .research-code code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.page-research .research-body {
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.55;
  max-width: 100%;
}

.page-research .research-body p {
  margin: 0 0 0.85rem 0;
}

.page-research .research-body p:last-child {
  margin-bottom: 0;
}

.page-research h4.research-subhead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 1.35rem 0 0.5rem 0;
}

.page-research h4.research-subhead:first-child {
  margin-top: 0;
}

.page-research ul.research-list {
  margin: 0 0 1rem 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.5;
}

.page-research ul.research-list li {
  margin-bottom: 0.4rem;
}

.page-research .research-note {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0.75rem 0 0 0;
  max-width: 72ch;
}

.page-research .research-divider {
  margin: 2.25rem 0 1.5rem 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.page-research .research-prior {
  margin-top: 0.25rem;
}

.page-research .research-prior-item {
  display: grid;
  grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.page-research .research-prior-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-research .research-prior-title {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
}

.page-research .research-prior-title::after {
  display: none;
}

.page-research .research-prior-text {
  min-width: 0;
}

.page-research .research-prior-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.5;
}

/* ----- Projects page (static detail rows) ----- */
.page-projects .page-lede {
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
  max-width: 72ch;
}

.page-projects .project-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.page-projects .project-row:first-of-type {
  padding-top: 0;
}

.page-projects .project-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-projects .project-row img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.page-projects .project-body h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-heading);
}

.page-projects .project-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.65rem 0;
}

.page-projects .project-body p {
  margin: 0 0 0.5rem 0;
  font-size: 0.92rem;
  color: var(--color-body);
  line-height: 1.55;
}

.page-projects .project-body p:last-child {
  margin-bottom: 0;
}

.page-projects .project-body ul {
  margin: 0.35rem 0 0 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--color-body);
  line-height: 1.5;
}

.page-projects .project-body li {
  margin-bottom: 0.35rem;
}

/* ----- Sidebar / profile (shared) ----- */
.carousel {
  width: 220px;
  max-width: 100%;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.carousel img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: none;
}

/* Show the rotating slide, or a single photo without JS */
.carousel img.active,
.carousel img:only-of-type {
  display: block;
}

.profile-info {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.profile-info li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.profile-info .role {
  font-style: italic;
  color: var(--color-secondary);
}

.profile-info .role a {
  color: var(--color-accent);
}

.profile-info li a:not(.role a) {
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
}

.profile-info li a:not(.role a) i {
  color: var(--color-secondary);
  margin-right: 0.4rem;
}

.profile-info hr {
  margin: 0.65rem 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.profile-header {
  margin-bottom: 0.75rem;
}

.profile-header .name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.profile-header .subtitle {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-top: 0.2rem;
}

.about {
  margin-bottom: 1.25rem;
}

.about p {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--color-body);
}

/* ----- Homepage preview cards ----- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.layout-home .cards.research .card,
.layout-home .cards.projects .card {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

/* Uniform preview tiles (fixed aspect so GIFs/PNGs align) */
.layout-home .home-card-thumb {
  flex-shrink: 0;
  width: 152px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e7eb;
  align-self: flex-start;
}

.layout-home .home-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.layout-home .cards.research .card-info strong,
.layout-home .cards.projects .card-info strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
}

.layout-home .cards.research .card-info strong a,
.layout-home .cards.projects .card-info strong a {
  color: var(--color-heading);
}

.layout-home .cards.research .card-info em,
.layout-home .cards.projects .card-info em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.layout-home .cards.research .card-info p,
.layout-home .cards.projects .card-info p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-body);
}

.layout-home .cards.research .card {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.layout-home .cards.research .card:last-child {
  border-bottom: none;
}

/* ----- Teaching list (flat rows) ----- */
.cards.teaching {
  gap: 0;
}

.cards.teaching .card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.cards.teaching .card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cards.teaching .card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.cards.teaching .card-info strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
}

.cards.teaching .card-info em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.cards.teaching .card-info p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-body);
}

/* ----- Accordion detail pages (research / projects): flat rows ----- */
.cards.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cards.accordion .card {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  overflow: visible;
  cursor: default;
  transition: none;
  border-left: none;
  border-right: none;
  border-top: none;
  box-shadow: none;
}

.cards.accordion .card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cards.accordion .card-left {
  flex-shrink: 0;
}

.cards.accordion .card-left img {
  width: 180px;
  height: auto;
  border-radius: var(--radius);
}

.cards.accordion .card-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cards.accordion .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.cards.accordion .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.35;
}

.cards.accordion .card-arrow {
  font-size: 1rem;
  color: var(--color-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cards.accordion .card.expanded .card-arrow {
  transform: rotate(180deg);
}

.cards.accordion .card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0.5rem;
}

.cards.accordion .card.expanded .card-content {
  max-height: 1200px;
}

.cards.accordion .card-content p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-body);
}

.cards.accordion .card-content p b {
  color: var(--color-heading);
}

/* ----- Publications (academic list) ----- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.pub-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pub-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.pub-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.pub-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-heading);
  line-height: 1.35;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--color-body);
  font-style: italic;
}

.pub-venue {
  font-size: 0.8rem;
  color: var(--color-secondary);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.pub-links a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
}

.pub-links a:hover {
  text-decoration: underline;
}

.pub-links span.sep {
  color: var(--color-muted);
  user-select: none;
  padding: 0 0.15rem;
}

/* ----- Beyond work ----- */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.fun-item {
  margin: 0;
}

.fun-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.fun-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-secondary);
  line-height: 1.35;
}

/* ----- Recruiters page ----- */
.page-recruiters a {
  color: var(--color-accent);
}

.page-recruiters .navbar a {
  color: var(--color-muted);
}

.page-recruiters .navbar a[aria-current="page"] {
  color: var(--color-text);
}

.page-recruiters .top-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.page-recruiters .hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
}

.page-recruiters .hero p.bio-school {
  font-size: 1.05rem;
  color: var(--color-secondary);
  margin: 0.2rem 0 0.5rem 0;
}

.page-recruiters .hero p.bio-school strong {
  font-weight: 600;
}

.page-recruiters .hero p.bio-summary {
  font-size: 1.05rem;
  color: var(--color-secondary);
  margin: 0.5rem 0;
}

.page-recruiters .hero-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.page-recruiters .hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.page-recruiters .cv-box {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: #fafafa;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.page-recruiters .cv-box h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
}

.page-recruiters .cv-box a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.9rem;
}

.page-recruiters .cv-box a:hover {
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
}

.page-recruiters .roles-intro {
  font-size: 0.95rem;
  color: var(--color-body);
  margin-bottom: 1rem;
}

.page-recruiters .roles-intro p {
  margin: 0 0 0.5rem 0;
}

.page-recruiters .roles-section {
  margin-top: 1rem;
}

.page-recruiters .roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.8rem;
}

.page-recruiters .role-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem 1.4rem;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-recruiters .role-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
}

.page-recruiters .role-card p {
  font-size: 0.92rem;
  color: var(--color-body);
  margin-bottom: 0.7rem;
}

.page-recruiters .role-card ul {
  padding-left: 1.05rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-body);
}

.page-recruiters .role-card li {
  margin-bottom: 0.35rem;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .page-recruiters .roles-grid {
    grid-template-columns: 1fr;
  }

  .page-recruiters .top-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-recruiters .cv-box {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .cards.accordion .card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards.accordion .card-left img {
    width: 100%;
    max-width: 320px;
  }

  .cards.accordion .card-header {
    width: 100%;
  }

  .page-research .research-hero-card-inner {
    grid-template-columns: 1fr;
  }

  .page-research .research-prior-item {
    grid-template-columns: minmax(0, 160px) 1fr;
  }

  .page-projects .project-row {
    grid-template-columns: 1fr;
  }

  .page-projects .project-row img {
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .page-research .research-prior-item {
    grid-template-columns: 1fr;
  }

  body {
    padding: 2.25rem 1.25rem;
  }

  .container.layout-home {
    flex-direction: column;
    gap: 2.25rem;
  }

  .layout-home .left .carousel {
    width: min(220px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .layout-home .cards.research .card,
  .layout-home .cards.projects .card {
    flex-direction: column;
  }

  .layout-home .home-card-thumb {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    margin-left: auto;
    margin-right: auto;
  }

  .layout-home .home-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cards.teaching .card {
    flex-direction: column;
  }

  .cards.teaching .card img {
    width: 100%;
    height: auto;
  }

  .pub-item {
    flex-direction: column;
  }

  .pub-thumb {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
}
