/* ============================================================
   Mujaheed Shaikh — academic site
   Shared stylesheet (used by index + all inner pages)
   ============================================================ */

:root {
  --paper:        #f6f3ec;
  --paper-2:      #efeadf;
  --ink:          #1b1a16;
  --ink-soft:     #4a463d;
  --muted:        #756f62;
  --line:         #ddd6c7;
  --pine:         #163d33;   /* primary deep green */
  --pine-2:       #0f2c25;   /* darker green */
  --pine-tint:    #e7ede9;
  --ochre:        #a8652a;   /* warm accent for links/hover */
  --ochre-soft:   #c98b4f;
  --cream:        #f3efe5;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--pine); color: var(--cream); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--ochre); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--ochre);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(120% 130% at 80% 0%, var(--pine) 0%, var(--pine-2) 70%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 86vh, 820px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: 6rem; width: 100%; }
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  margin: 0 0 1.4rem;
  opacity: 0;
  animation: rise .8s ease .1s forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  opacity: 0;
  animation: rise .9s ease .22s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--ochre-soft);
}
.hero-sub {
  margin: 1.8rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 44ch;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  opacity: 0;
  animation: rise .9s ease .38s forwards;
}
.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  opacity: 0;
  animation: rise .9s ease .52s forwards;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ochre); display: inline-block;
}
.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
  display: flex; align-items: center; gap: .8rem;
  opacity: 0; animation: rise .9s ease .7s forwards;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(var(--ochre-soft), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100%{transform:scaleY(.5);opacity:.4} 50%{transform:scaleY(1);opacity:1} }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow, .hero h1, .hero-sub, .hero-meta, .scroll-cue { transform: translateY(18px); }

/* ---------- Section scaffolding ---------- */

section { padding-block: clamp(4rem, 9vw, 8rem); }

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: .9rem;
}
.section-label::before {
  content: ""; width: 34px; height: 1px; background: var(--ochre);
}

/* ---------- About / mission ---------- */

.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.mission {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
}
.mission em { font-style: italic; color: var(--pine); }
.about-body p { color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 62ch; }
.about-body a.inline { color: var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.portrait {
  position: relative;
}
.portrait img {
  width: 100%;
  border-radius: 3px;
  filter: grayscale(12%) contrast(1.02);
  box-shadow: 0 30px 60px -30px rgba(22,61,51,.45);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--pine);
  border-radius: 3px;
  z-index: -1;
}
.portrait .credit {
  font-size: 0.74rem; color: var(--muted); margin-top: 1.4rem;
  letter-spacing: .02em;
}

.facts {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: grid;
  gap: 1rem;
}
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 0.74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 0.98rem; color: var(--ink); }

/* ---------- Research themes ---------- */

.research { background: var(--paper-2); }
.theme {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.6rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.research .theme:first-of-type { border-top: 0; }
.theme-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--ochre);
  line-height: 1;
  font-weight: 300;
}
.theme h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.theme p.lede { color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 64ch; }

.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pub-list li { border-top: 1px solid var(--line); }
.pub-list li:last-child { border-bottom: 1px solid var(--line); }
.pub-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  padding: 1rem 0;
  transition: padding-left .25s ease, color .2s ease;
}
.pub-list a:hover { padding-left: 14px; color: var(--pine); }
.pub-title { font-weight: 500; line-height: 1.4; }
.pub-title .where { display: block; font-size: 0.86rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.pub-year { font-variant-numeric: tabular-nums; color: var(--ochre); font-weight: 600; font-size: .9rem; white-space: nowrap; }

.theme-more {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pine);
  text-decoration: none;
}
.theme-more .arrow { transition: transform .25s ease; }
.theme-more:hover .arrow { transform: translateX(5px); }

/* ---------- Press / media ---------- */

.press { background: var(--pine); color: var(--cream); }
.press .section-label { color: var(--ochre-soft); }
.press .section-label::before { background: var(--ochre-soft); }
.press h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
  max-width: 18ch;
}
.press h2 em { font-style: italic; color: var(--ochre-soft); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; }
.press-item {
  padding: 1.8rem 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.press-item a { text-decoration: none; color: var(--cream); }
.press-item .outlet {
  font-size: 0.74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ochre-soft); margin-bottom: .7rem;
}
.press-item .headline { font-size: 1.12rem; line-height: 1.35; transition: color .2s; }
.press-item a:hover .headline { color: var(--ochre-soft); }
.outlet-strip {
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  font-size: 0.82rem; color: color-mix(in srgb, var(--cream) 62%, transparent);
  letter-spacing: .03em;
}

/* ---------- Work in progress ---------- */

.wip { background: var(--paper); }
.wip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.wip-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem 1.6rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wip-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(22,61,51,.4); }
.wip-card .status {
  font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ochre); font-weight: 700; margin-bottom: .8rem;
}
.wip-card h4 { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; line-height: 1.3; margin: 0 0 .5rem; }
.wip-card .auth { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--pine-2); color: color-mix(in srgb, var(--cream) 80%, transparent); padding-block: 4rem 2.4rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .name { font-family: var(--serif); font-size: 1.7rem; color: var(--cream); margin: 0 0 .6rem; }
.footer-brand p { margin: 0; max-width: 34ch; font-size: .95rem; }
.footer-col h5 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre-soft); margin: 0 0 1rem; }
.footer-col a { display: block; text-decoration: none; color: color-mix(in srgb, var(--cream) 78%, transparent); padding: .25rem 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Inner-page content (publications etc.) ---------- */

.page-head { background: var(--pine); color: var(--cream); padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.02em; margin: .6rem 0 0; line-height: 1.02; }
.page-head .section-label { color: var(--ochre-soft); margin: 0; }
.page-head .section-label::before { background: var(--ochre-soft); }
.page-head p { color: color-mix(in srgb, var(--cream) 80%, transparent); max-width: 56ch; margin: 1.4rem 0 0; }

.content { padding-block: clamp(3rem, 7vw, 5rem); }
.pub-group { margin-bottom: 3.2rem; }
.pub-group > h2 {
  font-family: var(--serif); font-weight: 500; font-size: 1.6rem;
  margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 2px solid var(--pine);
  display: inline-block;
}
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref-list li {
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline;
}
.ref-list li .yr { font-variant-numeric: tabular-nums; color: var(--ochre); font-weight: 700; font-size: .9rem; }
.ref-list li .ref { line-height: 1.5; }
.ref-list li .ref .venue { font-style: italic; color: var(--pine); }
.ref-list li .ref a { color: var(--ochre); text-underline-offset: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem;
    transform: translateY(-120%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
  }
  .nav-links a { font-size: 1rem; padding-block: .7rem; width: 100%; }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .portrait::after { inset: 10px -10px -10px 10px; }
  .theme { grid-template-columns: 1fr; gap: .4rem; }
  .theme-num { font-size: 1.8rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .pub-list a { grid-template-columns: 1fr; gap: .2rem; }
  .pub-year { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Inner-page variants: grants, awards, talks, seminars, teaching
   ============================================================ */

/* generic intro lead under page head content */
.content-lead { color: var(--ink-soft); max-width: 64ch; margin: 0 0 2.6rem; font-size: 1.05rem; }

/* two-up grid for grants / cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.grant-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pine);
  border-radius: 4px;
  padding: 1.7rem 1.7rem 1.5rem;
}
.grant-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.25; margin: 0 0 .9rem; }
.grant-card .funder { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .9rem; }
.grant-card .joint { color: var(--muted); font-size: .86rem; font-style: italic; margin: .6rem 0 0; }
.grant-meta { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.pill {
  display: inline-block; font-size: .74rem; letter-spacing: .04em;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--pine-tint); color: var(--pine); font-weight: 600;
}
.pill.amount { background: var(--pine); color: var(--cream); }
.pill.year { background: transparent; border: 1px solid var(--ochre); color: var(--ochre); }

/* award rows */
.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.award-list .when { font-variant-numeric: tabular-nums; color: var(--ochre); font-weight: 700; font-size: .9rem; }
.award-list .what { line-height: 1.45; }
.award-list .what strong { font-weight: 600; }
.award-list .what .org { display: block; color: var(--muted); font-size: .9rem; margin-top: 1px; }

/* talks timeline */
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk-list li {
  display: grid; grid-template-columns: 5rem 1fr; gap: 1.4rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.talk-list .t-year { font-family: var(--serif); font-size: 1.5rem; color: var(--ochre); line-height: 1; }
.talk-list .t-role { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); font-weight: 700; margin-bottom: .4rem; }
.talk-list .t-event { font-family: var(--serif); font-size: 1.22rem; font-weight: 500; line-height: 1.25; margin: 0 0 .3rem; }
.talk-list .t-title { color: var(--ink-soft); margin: 0; }

/* institution / seminar lists in columns */
.col-list { columns: 2; column-gap: 3rem; list-style: none; margin: 0; padding: 0; }
.col-list li {
  break-inside: avoid; padding: .55rem 0 .55rem 1.4rem; position: relative;
  border-bottom: 1px solid var(--line); line-height: 1.4;
}
.col-list li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ochre);
}
.col-list .tally { color: var(--muted); font-size: .82rem; }

/* teaching course rows */
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.course-list .course { line-height: 1.35; }
.course-list .level {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pine); font-weight: 600; white-space: nowrap;
  background: var(--pine-tint); padding: .25rem .6rem; border-radius: 4px;
}

@media (max-width: 860px) {
  .col-list { columns: 1; }
  .award-list li { grid-template-columns: 1fr; gap: .2rem; }
  .talk-list li { grid-template-columns: 1fr; gap: .3rem; }
}

/* ============================================================
   Photo backgrounds (hero + page headers)
   Set the image via inline style="--bg:url('file.jpg')".
   Falls back gracefully to solid green if the file is missing.
   ============================================================ */

.hero.has-photo {
  background:
    linear-gradient(100deg,
      rgba(15,44,37,.94) 0%,
      rgba(15,44,37,.80) 42%,
      rgba(22,61,51,.55) 100%),
    var(--bg) center 28% / cover no-repeat;
}

.page-head.has-photo {
  background:
    linear-gradient(rgba(15,44,37,.88), rgba(15,44,37,.80)),
    var(--bg) center 30% / cover no-repeat;
  position: relative;
}

/* slight parallax-ish fixed feel on large screens */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero.has-photo, .page-head.has-photo { background-attachment: fixed, fixed; }
}

/* ============================================================
   Nav dropdowns
   ============================================================ */
.nav-links .has-dropdown { position: relative; }
.nav-links .drop-toggle { display: inline-flex; align-items: center; gap: .34rem; }
.nav-links .caret { font-size: .62em; line-height: 1; transition: transform .25s ease; }
.nav-links .has-dropdown:hover .caret,
.nav-links .has-dropdown:focus-within .caret { transform: rotate(180deg); }

.nav-links .dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -0.9rem;
  min-width: 236px;
  list-style: none;
  margin: 0;
  padding: .45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 22px 44px -26px rgba(22,61,51,.55);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 200;
}
.nav-links .dropdown::before {           /* invisible hover bridge */
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.nav-links .has-dropdown:hover .dropdown,
.nav-links .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-links .dropdown li { width: 100%; }
.nav-links .dropdown a {
  display: block;
  padding: .62rem .8rem;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  border-radius: 5px;
}
.nav-links .dropdown a::after { display: none; }
.nav-links .dropdown a:hover { background: var(--pine-tint); color: var(--pine); }

/* dropdowns inside the mobile stacked menu: show children inline */
@media (max-width: 860px) {
  .nav-links .has-dropdown { width: 100%; display: block; }
  .nav-links .caret { display: none; }
  .nav-links .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 .5rem 1rem; min-width: 0;
  }
  .nav-links .dropdown::before { display: none; }
  .nav-links .dropdown a { padding: .5rem 0; font-size: .98rem; color: var(--muted); }
}
