/*
  AI Initiatives at HKUArts — warm paper + orange accents.
*/

:root {
  --mp-bg: #fff1e5;
  --mp-bg-elevated: #fffaf5;
  --mp-ink: #1a1410;
  --mp-ink-soft: #4a3c34;
  --mp-muted: #7a6558;
  --mp-line: #e8d4c4;
  --mp-line-strong: #d4b8a0;
  /* Accent / heading — defaults (overridden from Site Content) */
  --mp-arts-blue: #E87722;
  --mp-arts-blue-rgb: 232, 119, 34;
  --mp-accent: rgba(232, 119, 34, 0.7);
  --mp-accent-solid: #E87722;
  --mp-accent-hover: #c45f12;
  --mp-accent-soft: rgba(232, 119, 34, 0.12);
  --mp-accent-2: #E87722;
  --mp-warm: #fed7aa;
  --mp-shadow: 0 12px 40px rgba(232, 119, 34, 0.1);
  --mp-radius: 4px;
  --mp-radius-lg: 12px;
  --mp-wrap: 1180px;
  --mp-wrap-wide: 1320px;
  --mp-font: "Instrument Sans", system-ui, sans-serif;
  --mp-display: "Newsreader", Georgia, serif;
  --mp-header-h: 72px;
  --mp-heading: rgba(232, 119, 34, 0.85);
  --mp-icon: var(--mp-accent);
}

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

html {
  scroll-behavior: smooth;
}

body.mp-theme {
  margin: 0;
  font-family: var(--mp-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--mp-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffd7a8 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #ffe4cc 0%, transparent 50%),
    radial-gradient(800px 400px at 85% 100%, rgba(232, 119, 34, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, #fff6ee 0%, var(--mp-bg) 40%, #fff1e5 100%);
  -webkit-font-smoothing: antialiased;
}

/* Headings — HKUArts blue + title weight by level */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.drawer__title,
.page-shell h1,
.stat__num,
.programme__code,
.focal-card h3,
.outline-card h3,
.programme h3,
.event-row h3,
.people-group h3,
.person-card h4,
.post-card h3,
.footer-col h4 {
  color: var(--mp-heading);
}

h1,
.hero__title,
.page-shell h1 {
  font-weight: 700;
}

h2,
.section-title,
.drawer__title,
.involve .section-title {
  font-weight: 600;
}

h3,
h4,
.focal-card h3,
.outline-card h3,
.programme h3,
.event-row h3,
.people-group h3,
.person-card h4,
.post-card h3 {
  font-weight: 600;
}

.stat__num,
.programme__code {
  font-weight: 600;
}

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

a {
  color: var(--mp-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mp-accent-hover);
}

.wrap {
  width: min(100% - 2.5rem, var(--mp-wrap));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - 2.5rem, var(--mp-wrap-wide));
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-accent);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--mp-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 2rem;
  max-width: 48rem;
  color: var(--mp-ink-soft);
  font-size: 1.05rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--alt {
  background: var(--mp-bg-elevated);
  border-block: 1px solid var(--mp-line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--mp-accent-solid);
  color: #fff;
}

.btn--primary:hover {
  background: var(--mp-accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--mp-ink);
  border-color: var(--mp-line-strong);
}

.btn--ghost:hover {
  border-color: var(--mp-accent);
  color: var(--mp-accent);
  background: var(--mp-accent-soft);
}

.btn--lg {
  min-height: 3.15rem;
  padding-inline: 1.45rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mp-accent);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.link-more:hover {
  text-decoration: underline;
}

.link-more svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--mp-icon);
}

/* Shared icon shell — matches Study “Read more” line style + accent colour */
.mp-icon-shell {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--mp-accent-soft);
  color: var(--mp-icon);
  border: 1px solid rgba(var(--mp-arts-blue-rgb), 0.14);
}

.mp-icon-shell svg {
  width: 60px;
  height: 60px;
  display: block;
}

.mp-icon-shell--lg {
  width: 108px;
  height: 108px;
}

.mp-icon-shell--sm {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.mp-icon-shell--sm svg {
  width: 32px;
  height: 32px;
}

.outline-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.outline-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mp-muted);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 241, 229, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mp-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--mp-header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
}

.brand__logo {
  width: auto;
  height: 36px;
  max-width: 112px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.brand__name {
  font-family: var(--mp-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--mp-heading);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

/* Site title — hero, footer bottom */
.hero__title,
.footer-bottom span:last-child {
  color: var(--mp-accent);
}

.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--mp-ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--mp-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* Never let the CTA squash into a circle */
.header-actions .btn,
.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}

/*
  Phones + tablets (hamburger visible): hide header Study CTA.
  It lives in the mobile menu instead — avoids the crushed circular button.
*/
@media (max-width: 1099px) {
  .header-actions .btn,
  .header-cta {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 1099px) {
  .brand {
    gap: 0.75rem;
  }

  .brand__logo {
    height: 42px;
    max-width: 160px;
  }

  .brand__name {
    font-size: 1rem;
  }
}

@media (min-width: 1100px) {
  .brand {
    flex: 0 1 auto;
    gap: 0.85rem;
  }

  .brand__logo {
    height: 44px;
    max-width: 200px;
  }

  .brand__name {
    font-size: 1.05rem;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
  }

  .header-actions .btn,
  .header-cta {
    display: inline-flex !important;
    min-height: 2.85rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
  }
}

.nav-toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mp-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--mp-ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--mp-line);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  color: var(--mp-ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--mp-line);
}

.mobile-nav__cta {
  margin-top: 0.35rem;
  font-weight: 600 !important;
  color: var(--mp-accent-solid) !important;
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .header-actions .btn--ghost-desktop {
    display: inline-flex;
  }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #2a1810;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img,
.hero__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(42, 24, 16, 0.2) 0%, rgba(42, 24, 16, 0.68) 72%, rgba(42, 24, 16, 0.9) 100%),
    linear-gradient(90deg, rgba(42, 24, 16, 0.55) 0%, transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 2.5rem, var(--mp-wrap-wide));
  margin: 0 auto;
  padding: 4.5rem 0 3.25rem;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-brand-color, rgba(255, 255, 255, 0.8));
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--mp-display);
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--hero-title-color, var(--mp-accent));
}

.hero__mission {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: clamp(0.98rem, 2.8vw, 1.08rem);
  line-height: 1.6;
  color: var(--hero-mission-color, rgba(255, 255, 255, 0.9));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn--primary {
  background: #fff;
  color: var(--mp-ink);
}

.hero .btn--primary:hover {
  background: var(--mp-accent-soft);
  color: var(--mp-accent-solid);
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hero__dots {
  position: absolute;
  z-index: 4;
  right: max(1.25rem, calc((100% - var(--mp-wrap-wide)) / 2));
  bottom: 1.5rem;
  display: flex;
  gap: 0.45rem;
}

.hero__dot {
  width: 2rem;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero__dot.is-active {
  background: #fff;
}

/* ========== Stats ========== */
.stats {
  background: var(--mp-bg-elevated);
  border-bottom: 1px solid var(--mp-line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.75rem 0;
}

@media (min-width: 800px) {
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.stat {
  padding: 0.35rem 0.25rem;
}

.stat__num {
  font-family: var(--mp-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.stat__label {
  margin-top: 0.35rem;
  color: var(--mp-muted);
  font-size: 0.92rem;
}

/* ========== About ========== */
.about__body {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  color: var(--mp-ink-soft);
  font-size: 1.05rem;
}

/* ========== Focal areas ========== */
.focal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .focal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .focal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#focal-areas .eyebrow {
  color: var(--fa-eyebrow, var(--mp-accent));
}

#focal-areas .section-title {
  color: var(--fa-title, var(--mp-heading));
}

#focal-areas .section-lede {
  color: var(--fa-lede, var(--mp-ink-soft));
}

.focal-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  height: 100%;
  width: 100%;
  padding: 1.4rem 1.25rem 1.35rem;
  background: var(--mp-bg-elevated);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.focal-card:hover {
  border-color: rgba(var(--mp-arts-blue-rgb), 0.35);
  box-shadow: var(--mp-shadow);
}

.focal-card__icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.focal-card__icon.mp-icon-shell {
  width: 108px;
  height: 108px;
}

.focal-card__body {
  flex: 1;
  min-width: 0;
}

.focal-card__num {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--mp-muted);
}

.focal-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--mp-display);
  font-size: 1.45rem;
}

.focal-card p {
  margin: 0;
  color: var(--mp-ink-soft);
  font-size: 0.96rem;
}

/* ========== Project / plan cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.outline-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.35rem 1.3rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--mp-line-strong);
  border-radius: var(--mp-radius-lg);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.outline-card:hover {
  border-color: var(--mp-accent);
  background: rgba(255, 255, 255, 0.65);
}

.outline-card[data-drawer-open],
.programme[data-drawer-open] {
  cursor: pointer;
}

.outline-card h3 {
  margin: 0;
  font-family: var(--mp-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.outline-card p {
  margin: 0;
  color: var(--mp-ink-soft);
  flex: 1;
}

.outline-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--mp-line);
  margin-top: 0.25rem;
}

.outline-card__convenors {
  font-size: 0.88rem;
  color: var(--mp-muted);
}

/* ========== Study programmes ========== */
.programme-grid {
  display: grid;
  gap: 1.5rem;
}

.programme {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--mp-bg-elevated);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  text-decoration: none;
  color: inherit;
}

a.programme--link {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.programme--link:hover {
  border-color: var(--mp-accent);
  box-shadow: var(--mp-shadow);
}

@media (min-width: 880px) {
  .programme {
    grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
  }
}

.programme__media {
  min-height: 220px;
  background: var(--mp-line);
}

.programme__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.programme__body {
  padding: 1.5rem 1.4rem 1.45rem;
}

.programme__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: var(--mp-muted);
}

.programme__code {
  margin: 0 0 0.25rem;
  font-family: var(--mp-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.programme h3 {
  margin: 0 0 0.75rem;
  font-family: var(--mp-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.programme__intro {
  margin: 0 0 1rem;
  color: var(--mp-ink-soft);
}

.programme__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.programme__points li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--mp-warm);
  color: var(--mp-ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ========== Event vertical list ========== */
.event-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--mp-line);
}

.event-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1.25rem;
  width: 100%;
  padding: 1.2rem 0;
  border: 0;
  border-bottom: 1px solid var(--mp-line);
  background: transparent;
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.event-row:hover {
  background: rgba(255, 255, 255, 0.55);
}

@media (min-width: 800px) {
  .event-row {
    grid-template-columns: 7.5rem 1fr auto;
    align-items: start;
  }
}

.event-row__date {
  font-family: var(--mp-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--mp-accent);
  line-height: 1.25;
}

.event-row__nature {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-muted);
}

.event-row h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
}

.event-row__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mp-muted);
}

.event-row__cta {
  align-self: center;
  white-space: nowrap;
}

.subsection {
  margin-top: 3rem;
}

/* ========== People ========== */
.people-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.people-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--mp-line-strong);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--mp-ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.people-filters button.is-active {
  background: var(--mp-accent-solid);
  color: #fff;
  border-color: transparent;
}

.people-filters button.is-active:hover {
  background: var(--mp-accent-hover);
  color: #fff;
}

.people-filters button:not(.is-active):hover {
  border-color: var(--mp-accent);
  color: var(--mp-accent);
  background: var(--mp-accent-soft);
}

.people-group {
  margin-bottom: 2.25rem;
}

.people-group h3 {
  margin: 0 0 1rem;
  font-family: var(--mp-display);
  font-size: 1.35rem;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.person-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem;
  background: var(--mp-bg-elevated);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.person-card:hover {
  border-color: var(--mp-accent);
  box-shadow: var(--mp-shadow);
}

.person-card__photo {
  width: 110px;
  height: 140px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--mp-line);
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.person-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--mp-muted);
}

.person-card__bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mp-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.person-card.is-hidden {
  display: none;
}

/* ========== Get involved ========== */
.involve {
  background:
    linear-gradient(
      135deg,
      #c45f12 0%,
      var(--mp-accent-solid, #E87722) 48%,
      #f0a35a 100%
    );
  color: #fff;
}

.involve .eyebrow {
  color: #fff;
  opacity: 0.85;
}

.involve .section-title {
  color: #fff;
}

.involve .section-lede {
  color: rgba(255, 255, 255, 0.88);
}

.involve__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.involve__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.involve__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--mp-radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.involve .mp-icon-shell {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--mp-accent-solid, #E87722);
}

.involve__highlight strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  color: #fff;
}

.involve__highlight span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.involve a.btn--primary {
  background: #fff;
  color: var(--mp-accent-solid, #E87722);
}

.involve a.btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--mp-accent-hover, #c45f12);
}

.involve a.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.involve a.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.involve__email {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.involve__email:hover {
  color: rgba(255, 255, 255, 0.88);
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 32rem;
}

.newsletter input[type="email"] {
  flex: 1 1 14rem;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.newsletter .btn {
  background: #fff;
  color: var(--mp-accent-solid, #E87722);
  border: 0;
}

.newsletter .btn:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--mp-accent-hover, #c45f12);
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ========== Connected ========== */
.connected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connected-list a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ========== Video & posts ========== */
#videos-posts .eyebrow {
  color: var(--vp-eyebrow, var(--mp-accent));
}

#videos-posts .section-title {
  color: var(--vp-title, var(--mp-heading));
}

#videos-posts .post-card__meta {
  color: var(--vp-meta, var(--mp-muted));
}

#videos-posts .post-card h3 {
  color: var(--vp-card-title, var(--mp-heading));
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .posts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card__media {
  overflow: hidden;
  border-radius: var(--mp-radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--mp-line);
  margin-bottom: 0.75rem;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

a.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card--static {
  cursor: default;
}

.post-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--mp-muted);
}

.post-card h3 {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ========== Footer ========== */
.site-footer {
  background: #2a1810;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 1.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.footer-social span {
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.25rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .brand__sub {
  color: #fff;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ========== Inner pages ========== */
.page-shell {
  padding: 2.5rem 0 4rem;
}

.page-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.page-shell h1 {
  margin: 0 0 1rem;
  font-family: var(--mp-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--mp-muted);
  font-size: 0.95rem;
}

.page-body {
  max-width: 46rem;
  color: var(--mp-ink-soft);
}

.page-register {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mp-line);
}

.page-register h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.page-hero-media {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--mp-radius-lg);
  max-width: 46rem;
}

.page-hero-media__img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin: 0 0 1.1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2rem 0 0.75rem;
  font-family: var(--mp-display);
  color: var(--mp-heading);
}

.entry-content h2 {
  font-size: 1.55rem;
}

.entry-content h3 {
  font-size: 1.25rem;
}

.entry-content a {
  color: var(--mp-accent-solid);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mp-radius);
}

.entry-content blockquote {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--mp-accent);
  background: var(--mp-accent-soft);
  color: var(--mp-ink);
}

.posts-grid--archive {
  margin-top: 2rem;
}

.posts-pagination {
  margin-top: 2.5rem;
}

.posts-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.posts-pagination a,
.posts-pagination span {
  font-weight: 600;
  text-decoration: none;
}

.posts-pagination .current {
  color: var(--mp-accent-solid);
}

.page-links {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.page-person {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .page-person {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.page-person__photo {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  background: var(--mp-line);
}

.page-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer logo — transparent on dark footer */
.site-footer .brand__logo {
  background: transparent;
  border-radius: 0;
  padding: 0;
  height: 48px;
  max-width: 220px;
}

.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Detail drawer (half page) ========== */
body.drawer-open {
  overflow: hidden;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.drawer[hidden] {
  display: block !important;
  visibility: hidden;
}

.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 24, 16, 0.42);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 560px);
  height: 100%;
  max-height: 100vh;
  background: #fff;
  box-shadow: -16px 0 48px rgba(74, 40, 16, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .drawer__panel {
    width: min(50vw, 640px);
  }
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__top {
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 1rem 0;
  flex-shrink: 0;
}

.drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--mp-line);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mp-ink);
  cursor: pointer;
}

.drawer__close:hover {
  border-color: var(--mp-accent);
  color: var(--mp-accent);
}

.drawer__scroll {
  overflow: auto;
  padding: 0.5rem 1.5rem 2.5rem;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.drawer__title {
  margin: 0 0 0.85rem;
  font-family: var(--mp-display);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.drawer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-bottom: 1.15rem;
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.drawer__content {
  color: var(--mp-ink-soft);
  font-size: 1.02rem;
}

.drawer__content p {
  margin: 0 0 1rem;
}

.drawer__image {
  margin: 0 0 1.15rem;
  overflow: hidden;
  border-radius: var(--mp-radius-lg);
  background: var(--mp-line);
  aspect-ratio: 4 / 3;
}

.drawer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mp-line);
}

.admin-bar .drawer__panel {
  top: 32px;
  height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .drawer__panel {
    top: 46px;
    height: calc(100% - 46px);
  }
}
