/* Use Inter everywhere (keep code blocks monospace) */
html, body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-feature-settings: "liga" 1, "calt" 1, "cv11" 1, "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Many Jekyll themes set serif for headings; force inheritance */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;           /* tweak if you want lighter headings */
  letter-spacing: -0.01em;    /* Inter likes a touch of tightening */
}

/* Preserve monospace for code */
code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
}

/* Optional: readability tuning */
body {
  font-size: 17px;    /* adjust to taste */
  line-height: 1.6;
}

/* ===========================
   Responsive Inter Typography
   (append to assets/css/custom.css)
   =========================== */

/* Body copy — responsive between 17–20px */
html { font-size: 100%; } /* keep rems stable */
body {
  color: #000; /* redundancy to be safe */
  font-weight: 400;
  line-height: 1.65;
  font-size: clamp(17px, 0.9vw + 12px, 20px);
}

/* Headings — clean, roomy Inter scale */
h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2; /* tighter, headline feel */
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

/* Responsive sizes (approx. like your reference screenshot) */
h1 { font-size: clamp(2.2rem, 2.6vw + 0.6rem, 3.25rem); }
h2 { font-size: clamp(1.8rem, 2.0vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.4rem, 1.2vw + 0.6rem, 1.9rem); }
h4 { font-size: clamp(1.2rem, 0.8vw + 0.6rem, 1.4rem); }
h5 { font-size: clamp(1.05rem, 0.5vw + 0.6rem, 1.2rem); }
h6 { font-size: 1rem; }

/* Navigation & small UI bits — slightly stronger weight */
.nav__list, .site-nav, .greedy-nav, .site-title,
.btn, .pagination, .sidebar {
  color: #000;
  font-weight: 600;
}

/* Paragraph rhythm */
p { margin: 0.75em 0 1.1em; }

/* Blockquotes — keep elegant & readable on white */
blockquote {
  color: #111;
  border-left: 4px solid #e6e6e6;
  padding-left: 1rem;
}

/* Code stays mono (don’t turn black icons into boxes) */
code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace !important;
}
.ai { font-family: "Academicons" !important; }

/* ----- LOAD A WEIRD FONT (Nunito) ----- */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap");

/* ----- APPLY EVERYWHERE (high specificity + !important to win) ----- */
:root {
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Global */
html, body {
  font-family: var(--font-body) !important;
}

/* Headings & titles used by Academic Pages */
h1, h2, h3, h4, h5, h6,
.page-title, .page_title,  /* list/section titles */
.article-title, .publication-title, .project-title,
.navbar-brand, .docs-title {
  font-family: var(--font-body) !important;
  font-weight: 800; /* make it very obvious */
  letter-spacing: .01em;
}

/* Navigation, menus, buttons */
.navbar, .navbar-nav .nav-link, .dropdown-menu, .btn, .badge, .pagination,
.sidebar, .menu, .menu a {
  font-family: var(--font-body) !important;
}

/* Form controls */
input, select, textarea, label {
  font-family: var(--font-body) !important;
}

/* Optional: lighten paragraph weight to accentuate the change */
p { font-weight: 400; }

:root {
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
html, body { font-family: var(--font-body) !important; }
h1, h2, h3, h4, h5, h6,
.page-title, .page_title, .article-title, .publication-title, .project-title,
.navbar-brand { font-family: var(--font-body) !important; font-weight: 800; }
.navbar, .nav-link, .dropdown-menu, .btn, .badge { font-family: var(--font-body) !important; }
input, select, textarea, label { font-family: var(--font-body) !important; }

/* Stable author/profile rail */
@media (min-width: 1024px) {
  #main:has(> .sidebar) {
    display: grid;
    grid-template-columns: minmax(210px, 245px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 1180px;
  }

  #main:has(> .sidebar) > .sidebar {
    position: sticky;
    top: 5.8rem;
    float: none;
    width: auto;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 6.5rem);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    opacity: 1;
    z-index: 2;
  }

  #main:has(> .sidebar) > .page,
  #main:has(> .sidebar) > .archive {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  #main:has(> .sidebar) > .archive {
    max-width: none;
  }
}

.sidebar > div[itemscope] {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 141, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(49, 95, 141, 0.05), rgba(140, 95, 211, 0.035)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.sidebar .author__avatar {
  display: block;
  width: 4.8rem;
  height: 4.8rem;
}

.sidebar .author__avatar img,
.sidebar img.author__avatar {
  display: block;
  width: 4.8rem;
  height: 4.8rem;
  max-width: none;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  object-fit: cover;
}

.sidebar .author__content {
  display: block;
  padding: 0;
}

.sidebar .author__name {
  margin: 0 0 0.18rem;
  color: #111827;
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1.15;
}

.sidebar .author__bio,
.sidebar .author__pronouns {
  margin: 0;
  color: #526170;
  font-size: 0.9rem;
  line-height: 1.35;
}

.author__urls-wrapper {
  display: block;
  width: 100%;
}

.author__urls-wrapper button {
  display: none;
}

.author__urls {
  position: static;
  display: grid;
  gap: 0.18rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid rgba(49, 95, 141, 0.12);
  background: transparent;
  box-shadow: none;
  list-style: none;
  z-index: auto;
}

.author__urls::before,
.author__urls::after {
  display: none;
}

.author__urls li {
  white-space: normal;
}

.author__urls a,
.author__urls .author__desktop {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  margin: 0;
  padding: 0.32rem 0.45rem;
  border-radius: 7px;
  color: #4b5b6d;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.author__urls a:hover {
  background: #f1f6fb;
  color: #315f8d;
  text-decoration: none;
}

.author__urls .fa,
.author__urls .fas,
.author__urls .fab,
.author__urls .ai {
  width: 1.1rem;
  color: #315f8d;
  text-align: center;
}

@media (max-width: 1023px) {
  #main > .sidebar {
    position: static;
    width: auto;
    margin: 0 0 1rem;
    padding: 0;
  }

  .sidebar > div[itemscope] {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem 0.95rem;
    align-items: center;
  }

  .sidebar .author__avatar,
  .sidebar .author__avatar img,
  .sidebar img.author__avatar {
    width: 3.9rem;
    height: 3.9rem;
  }

  .sidebar .author__urls-wrapper {
    grid-column: 1 / -1;
  }

  .author__urls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0.65rem;
  }
}

@media (max-width: 560px) {
  .author__urls {
    grid-template-columns: 1fr;
  }
}

/* Compact homepage/news timeline */
.news-timeline {
  margin: 1.1rem 0 2rem;
  --news-paper-bg: #e9f4ff;
  --news-paper-fg: #185a8d;
  --news-paper-soft: #f5fbff;
  --news-conference-bg: #fff0d9;
  --news-conference-fg: #8a5200;
  --news-conference-soft: #fff9ef;
  --news-talk-bg: #ece9ff;
  --news-talk-fg: #5140a1;
  --news-talk-soft: #f8f6ff;
  --news-course-bg: #e9f8ef;
  --news-course-fg: #22693f;
  --news-course-soft: #f5fcf7;
  --news-position-bg: #e6f7f7;
  --news-position-fg: #13706f;
  --news-position-soft: #f3fbfb;
  --news-award-bg: #fff4c7;
  --news-award-fg: #7a5b00;
  --news-award-soft: #fffaf0;
}

.news-year {
  margin: 1.55rem 0 0.45rem;
  color: #222;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 4.85rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.78rem 0.75rem 0.78rem 1.05rem;
  border-bottom: 1px solid #e8e8e8;
  border-left: 5px solid #d8d8d8;
  --news-accent: #777;
  --news-soft: #fbfbfb;
  background: linear-gradient(90deg, var(--news-soft), #fff 62%);
  transition: background-color 0.16s ease, border-left-color 0.16s ease, box-shadow 0.16s ease;
}

.news-item::before {
  position: absolute;
  top: 1.02rem;
  left: -0.52rem;
  width: 0.72rem;
  height: 0.72rem;
  content: "";
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--news-accent);
  box-shadow: 0 0 0 1px var(--news-accent), 0 0 0 5px var(--news-soft);
  z-index: 1;
}

.news-item:hover {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.28);
}

.news-item.is-hidden,
.news-year.is-hidden {
  display: none;
}

.news-date {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
  color: #666;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  padding-top: 0.08rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-icon {
  display: inline-grid;
  width: 1.22rem;
  height: 1.22rem;
  align-items: center;
  justify-items: center;
  border: 1px solid color-mix(in srgb, var(--news-accent), #fff 42%);
  border-radius: 50%;
  background: #fff;
  color: var(--news-accent);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.news-icon::before {
  content: "N";
}

.news-body {
  min-width: 0;
}

.news-head {
  display: flex;
  gap: 0.62rem;
  align-items: center;
  margin: 0 0 0.52rem;
}

.news-head__text {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.25rem 0.42rem;
  align-items: center;
}

.news-source-name {
  color: #687586;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-content {
  display: grid;
  grid-template-columns: minmax(8.2rem, 10.4rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.news-source-visual {
  display: flex;
  min-height: 5.6rem;
  align-items: center;
  justify-content: center;
}

.news-source-logo-large {
  display: block;
  width: auto;
  max-width: 10rem;
  max-height: 5.6rem;
  object-fit: contain;
}

.news-source--water .news-source-logo-large {
  transform: translateX(25%);
}

.news-source-fallback {
  display: inline-grid;
  width: 4.4rem;
  height: 4.4rem;
  align-items: center;
  justify-items: center;
  border: 1px solid color-mix(in srgb, var(--source-accent, var(--news-accent)), #fff 50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--source-accent, var(--news-accent)), #fff 88%);
  color: var(--source-accent, var(--news-accent));
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.news-content__text {
  min-width: 0;
}

.news-type {
  display: inline-block;
  margin: 0;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  color: #444;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-item--paper {
  --news-accent: var(--news-paper-fg);
  --news-soft: var(--news-paper-soft);
  border-left-color: var(--news-paper-fg);
}

.news-item--conference {
  --news-accent: var(--news-conference-fg);
  --news-soft: var(--news-conference-soft);
  border-left-color: var(--news-conference-fg);
}

.news-item--talk {
  --news-accent: var(--news-talk-fg);
  --news-soft: var(--news-talk-soft);
  border-left-color: var(--news-talk-fg);
}

.news-item--course {
  --news-accent: var(--news-course-fg);
  --news-soft: var(--news-course-soft);
  border-left-color: var(--news-course-fg);
}

.news-item--position {
  --news-accent: var(--news-position-fg);
  --news-soft: var(--news-position-soft);
  border-left-color: var(--news-position-fg);
}

.news-item--award {
  --news-accent: var(--news-award-fg);
  --news-soft: var(--news-award-soft);
  border-left-color: var(--news-award-fg);
}

.news-item--paper .news-icon::before {
  content: "P";
}

.news-item--conference .news-icon::before {
  content: "C";
}

.news-item--talk .news-icon::before {
  content: "T";
}

.news-item--course .news-icon::before {
  content: "L";
}

.news-item--position .news-icon::before {
  content: "R";
}

.news-item--award .news-icon::before {
  content: "A";
}

.news-type--paper {
  background: var(--news-paper-bg);
  color: var(--news-paper-fg);
}

.news-type--conference {
  background: var(--news-conference-bg);
  color: var(--news-conference-fg);
}

.news-type--talk {
  background: var(--news-talk-bg);
  color: var(--news-talk-fg);
}

.news-type--course {
  background: var(--news-course-bg);
  color: var(--news-course-fg);
}

.news-type--position {
  background: var(--news-position-bg);
  color: var(--news-position-fg);
}

.news-type--award {
  background: var(--news-award-bg);
  color: var(--news-award-fg);
}

.news-source--wrr {
  --source-accent: #0b5f8f;
}

.news-source--wrm {
  --source-accent: #0d6b56;
}

.news-source--jhe,
.news-source--asce {
  --source-accent: #244b7a;
}

.news-source--jhyd {
  --source-accent: #13706f;
}

.news-source--ems {
  --source-accent: #6e4a9e;
}

.news-source--rbrh {
  --source-accent: #0f766e;
}

.news-source--dae {
  --source-accent: #0a6fb4;
}

.news-source--uwj {
  --source-accent: #1c6b7a;
}

.news-source--crest {
  --source-accent: #4f6b2d;
}

.news-source--hydroinformatics {
  --source-accent: #1f6f9e;
}

.news-source--conference-generic {
  --source-accent: #8a5200;
}

.news-source--ieee {
  --source-accent: #00629b;
}

.news-source--nh {
  --source-accent: #8a5200;
}

.news-source--ijdrr {
  --source-accent: #8f3f46;
}

.news-source--hsj {
  --source-accent: #315f8d;
}

.news-source--jem {
  --source-accent: #22693f;
}

.news-source--sustainability {
  --source-accent: #367a3d;
}

.news-source--water {
  --source-accent: #1677b7;
}

.news-source--stanford {
  --source-accent: #8c1515;
}

.news-source--uarizona {
  --source-accent: #0c234b;
}

.news-source--utsa {
  --source-accent: #0c4b8e;
}

.news-source--usp {
  --source-accent: #0b4ea2;
}

.news-source--vanderbilt {
  --source-accent: #866d4b;
}

.news-source--agu {
  --source-accent: #1d5f3d;
}

.news-source--cmwr {
  --source-accent: #5140a1;
}

.news-source--abrh {
  --source-accent: #1f6f9e;
}

.news-source--unesco {
  --source-accent: #0072bc;
}

.news-copy p {
  margin: 0 0 0.28rem;
  line-height: 1.5;
}

.news-link {
  display: inline-block;
  margin-top: 0.05rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.news-actions {
  margin-top: 1.15rem;
  text-align: center;
}

.news-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.news-load-more:hover {
  border-color: #999;
  background: #f8f8f8;
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .news-date {
    padding-top: 0;
  }

  .news-content {
    grid-template-columns: minmax(4.4rem, 5.2rem) minmax(0, 1fr);
    gap: 0.65rem;
  }

  .news-source-visual {
    min-height: 4rem;
  }

  .news-source-logo-large {
    max-width: 5rem;
    max-height: 4rem;
  }

  .news-source-fallback {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 0.98rem;
  }
}

/* Global navigation and footer polish */
body {
  margin-bottom: 0 !important;
}

.masthead {
  border-bottom: 1px solid rgba(74, 35, 119, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: saturate(160%) blur(12px);
}

.greedy-nav {
  min-height: 3rem;
  padding-right: 6.4rem;
  background: transparent;
}

.greedy-nav a {
  border-radius: 999px;
  color: #26313d;
  font-weight: 800;
}

.greedy-nav .visible-links a {
  padding: 0.42rem 0.1rem;
}

.greedy-nav .visible-links a::before {
  height: 3px;
  border-radius: 999px;
  background: #8c5fd3;
}

.masthead__language {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.18rem;
  border: 1px solid rgba(74, 35, 119, 0.16);
  border-radius: 999px;
  background: #f8f5fc;
  box-shadow: 0 8px 20px rgba(74, 35, 119, 0.09);
  line-height: 1;
  transform: translateY(-50%);
}

.masthead__language a {
  display: inline-grid;
  width: 2.05rem;
  height: 2.05rem;
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 1.12rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.masthead__language a::before {
  display: none;
}

.masthead__language a:hover {
  background: rgba(74, 35, 119, 0.08);
  transform: translateY(-1px);
}

.masthead__language a.is-active {
  border-color: rgba(74, 35, 119, 0.24);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(74, 35, 119, 0.1);
}

.greedy-nav a:hover {
  color: #4a2377;
}

.greedy-nav__toggle {
  display: inline-flex;
  min-width: 3.1rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.75rem !important;
  border: 1px solid rgba(74, 35, 119, 0.2) !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a2377, #6b3eb0) !important;
  box-shadow: 0 8px 20px rgba(74, 35, 119, 0.22);
  right: 5.35rem !important;
}

.greedy-nav__toggle.hidden {
  display: none;
}

.greedy-nav__label {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.navicon,
.navicon::before,
.navicon::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
}

.greedy-nav .hidden-links {
  min-width: min(20rem, calc(100vw - 2rem));
  margin-top: 0.72rem;
  padding: 0.55rem;
  border: 1px solid rgba(74, 35, 119, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.greedy-nav .hidden-links::before,
.greedy-nav .hidden-links::after {
  right: 6.5rem;
}

.greedy-nav .hidden-links li {
  border-bottom: 0;
}

.greedy-nav .hidden-links a {
  margin: 0;
  padding: 0.72rem 0.82rem;
  color: #26313d;
  font-size: 0.98rem;
  line-height: 1.2;
}

.greedy-nav .hidden-links a:hover {
  background: #f4effb;
  color: #4a2377;
  text-decoration: none;
}

.author__urls-wrapper button {
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  background: #fff;
  color: #26313d;
  font-weight: 800;
}

.author__urls-wrapper button:hover {
  border-color: rgba(74, 35, 119, 0.28);
  color: #4a2377;
}

.publication-list__item {
  width: 100%;
  margin: 1rem 0 1.35rem;
  padding-right: 0 !important;
}

.publication-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(49, 95, 141, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.publication-card__top {
  display: grid;
  gap: 0.52rem;
}

.publication-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: #687586;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.publication-card__type {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #e9f4ff;
  color: #185a8d;
}

.publication-card__type--conference {
  background: #fff0d9;
  color: #8a5200;
}

.publication-card__title {
  margin: 0;
  max-width: 880px;
  color: #111827;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
}

.archive__item .publication-card__title a,
.publication-card__title a {
  color: #111827;
  text-decoration: none;
}

.archive__item .publication-card__title a:hover,
.publication-card__title a:hover {
  color: #315f8d;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.publication-card__permalink {
  margin-left: 0.25rem;
  color: #8c5fd3 !important;
  font-size: 0.74em;
}

.publication-card__venue {
  margin: 0;
  color: #526170;
  font-size: 0.94rem;
  line-height: 1.35;
}

.publication-description {
  margin: 0;
  padding: 0.72rem 0.88rem;
  border-left: 4px solid #8c5fd3;
  border-radius: 0 8px 8px 0;
  background: #fbf9ff;
  color: #344052;
  font-size: 0.94rem;
  line-height: 1.55;
}

.publication-description p {
  margin: 0;
}

.publication-citation {
  display: grid;
  gap: 0.32rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(49, 95, 141, 0.12);
  color: #344052;
  font-size: 0.9rem;
  line-height: 1.5;
}

.publication-citation p {
  margin: 0;
}

.publication-citation__label {
  color: #315f8d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.publication-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.publication-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(49, 95, 141, 0.18);
  border-radius: 999px;
  background: #315f8d;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
}

.publication-action:hover {
  background: #244d74;
}

.publication-action--secondary {
  background: #ffffff;
  color: #315f8d !important;
}

.publication-action--secondary:hover {
  background: #f1f6fb;
}

@media (max-width: 560px) {
  .publication-card {
    padding: 0.9rem;
  }

  .publication-card__title {
    font-size: 1.12rem;
  }
}

.talks-page {
  display: grid;
  gap: 1.15rem;
}

.talks-hero {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(49, 95, 141, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 95, 141, 0.08), rgba(140, 95, 211, 0.06)),
    #ffffff;
}

.talks-eyebrow {
  margin: 0 0 0.35rem;
  color: #315f8d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.talks-hero h2 {
  margin: 0 0 0.5rem;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.talks-hero p:last-child {
  max-width: 820px;
  margin: 0;
  color: #526170;
  font-size: 0.98rem;
  line-height: 1.55;
}

.talks-list {
  display: grid;
  gap: 0.9rem;
}

.talk-list__item {
  width: 100%;
  margin: 0;
  padding-right: 0 !important;
}

.talk-card {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 141, 0.13);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.talk-card__date time {
  display: grid;
  justify-items: center;
  gap: 0.08rem;
  padding: 0.62rem 0.45rem;
  border-radius: 8px;
  background: #f1f6fb;
  color: #315f8d;
  text-align: center;
  line-height: 1;
}

.talk-card__date span,
.talk-card__date em {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.talk-card__date strong {
  color: #111827;
  font-size: 1.45rem;
  font-weight: 900;
}

.talk-card__body {
  display: grid;
  gap: 0.5rem;
}

.talk-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: #687586;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.talk-card__type {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.25rem 0.52rem;
  border-radius: 999px;
  background: #ece9ff;
  color: #5140a1;
}

.talk-card__title {
  margin: 0;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.archive__item .talk-card__title a,
.talk-card__title a {
  color: #111827;
  text-decoration: none;
}

.archive__item .talk-card__title a:hover,
.talk-card__title a:hover {
  color: #315f8d;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.talk-card__permalink {
  margin-left: 0.25rem;
  color: #8c5fd3 !important;
  font-size: 0.74em;
}

.talk-card__venue {
  margin: 0;
  color: #526170;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
}

.talk-card__excerpt {
  color: #425062;
  font-size: 0.93rem;
  line-height: 1.55;
}

.talk-card__excerpt p {
  margin: 0;
}

@media (max-width: 640px) {
  .talk-card {
    grid-template-columns: 1fr;
  }

  .talk-card__date time {
    grid-template-columns: auto auto auto;
    justify-content: start;
    gap: 0.4rem;
    width: fit-content;
  }
}

.models-page {
  display: grid;
  gap: 1.25rem;
}

.models-page a {
  text-decoration: none;
}

.models-hero {
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(49, 95, 141, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 95, 141, 0.08), rgba(140, 95, 211, 0.06)),
    #ffffff;
}

.models-eyebrow,
.model-card__kicker {
  margin: 0 0 0.35rem;
  color: #315f8d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.models-hero h2 {
  margin: 0 0 0.55rem;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.12;
}

.models-hero p:last-child {
  max-width: 820px;
  margin: 0;
  color: #526170;
  font-size: 1rem;
  line-height: 1.58;
}

.models-grid {
  display: grid;
  gap: 1rem;
}

.model-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.model-card--featured {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  border-color: rgba(74, 35, 119, 0.15);
}

.model-card--compact {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
}

.model-card--text {
  grid-template-columns: minmax(0, 1fr);
}

.model-card__content {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.model-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.18;
}

.model-card p {
  margin: 0;
  color: #425062;
  font-size: 0.96rem;
  line-height: 1.55;
}

.model-card__features {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.05rem;
  color: #526170;
  font-size: 0.9rem;
  line-height: 1.4;
}

.model-card__features li::marker {
  color: #8c5fd3;
}

.model-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.model-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(49, 95, 141, 0.18);
  border-radius: 999px;
  background: #315f8d;
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.model-button:hover {
  background: #244d74;
  text-decoration: none;
}

.model-button--secondary {
  background: #ffffff;
  color: #315f8d !important;
}

.model-button--secondary:hover {
  background: #f1f6fb;
}

.model-card__media {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.model-card__media--stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-card figure {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  margin: 0;
  min-width: 0;
}

.model-card img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.model-card figcaption {
  color: #687586;
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 920px) {
  .model-card,
  .model-card--featured,
  .model-card--compact,
  .model-card__media--stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .models-hero,
  .model-card {
    padding: 0.9rem;
  }

  .models-hero h2 {
    font-size: 1.3rem;
  }
}

.page__footer {
  position: static;
  bottom: auto;
  float: none;
  height: auto;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(74, 35, 119, 0.16);
  background:
    linear-gradient(90deg, rgba(74, 35, 119, 0.08), rgba(140, 95, 211, 0.08) 36%, rgba(28, 93, 143, 0.08)),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: #26313d;
}

.page__footer footer {
  max-width: 1180px;
  padding: 2.2rem 1.25rem 1.35rem;
}

.page__footer a {
  color: #315f8d;
  text-decoration: none;
}

.page__footer a:hover {
  color: #4a2377;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.page__footer .fas,
.page__footer .fab,
.page__footer .far,
.page__footer .fal,
.page__footer .fa,
.page__footer .ai {
  color: inherit;
}

.site-footer {
  display: grid;
  gap: 1.45rem;
}

.site-footer__top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer__brand {
  max-width: 760px;
}

.site-footer__eyebrow {
  margin: 0 0 0.25rem;
  color: #4a2377;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer__name {
  margin: 0 0 0.28rem;
  color: #111827;
  font-size: clamp(1.15rem, 0.7vw + 0.95rem, 1.55rem);
  font-weight: 900;
  line-height: 1.18;
}

.site-footer__tagline {
  margin: 0;
  color: #526170;
  font-size: 0.98rem;
  line-height: 1.48;
}

.site-footer__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.56rem 0.9rem;
  border: 1px solid rgba(74, 35, 119, 0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  color: #4a2377 !important;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

.site-footer__cta:hover {
  background: #f7f2fd;
  text-decoration: none !important;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer__group {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(74, 35, 119, 0.12);
}

.site-footer__heading {
  margin: 0 0 0.1rem;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.site-footer__group a {
  display: inline-flex;
  width: fit-content;
  gap: 0.32rem;
  align-items: center;
  color: #526170;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(74, 35, 119, 0.12);
  color: #687586;
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .greedy-nav__label {
    display: none;
  }

  .site-footer__top {
    display: grid;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .page__footer footer {
    padding: 1.75rem 1rem 1.2rem;
  }
}
