:root {
  --merce-navy: #18181b;
  --merce-navy-soft: #3f3f46;
  --merce-paper: rgba(255, 255, 255, 0.88);
  --merce-mist: #eef5f2;
  --merce-cream: #f7f8f8;
  --merce-line: rgba(24, 24, 27, 0.12);
  --merce-orange: #0f766e;
  --merce-orange-deep: #0b5f59;
  --merce-gold: #b4235a;
  --merce-copy: #52525b;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--merce-navy);
  background: linear-gradient(180deg, var(--merce-cream) 0%, #ffffff 48%, var(--merce-mist) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

p,
li {
  color: var(--merce-copy);
}

a {
  color: var(--merce-orange);
}

a:hover {
  color: var(--merce-orange-deep);
}

.nav-shell {
  background: rgba(24, 24, 27, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(24, 24, 27, 0.16);
}

.nav-shell > .container {
  min-height: 4.25rem;
  gap: 1rem;
}

.nav-shell .navbar-nav {
  row-gap: 0.35rem;
}

.nav-shell .nav-link {
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.brandmark {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-banner,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--merce-navy);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 64px rgba(24, 24, 27, 0.18);
}

.hero-banner::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(12, 12, 14, 0.9), rgba(12, 12, 14, 0.44));
}

.hero-banner > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-banner {
  padding: 4.5rem 0;
}

.page-hero {
  display: flex;
  align-items: center;
  min-height: 18rem;
  padding: 0;
}

header.py-4.py-lg-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.page-hero > .container {
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-hero h1 {
  max-width: 54rem;
}

.page-hero .lead {
  max-width: 48rem;
  min-height: 3.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.section-kicker,
.muted-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--merce-orange);
}

.muted-label {
  color: #6b7280;
}

.hero-copy,
.hero-copy p,
.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-card,
.surface-card,
.note-panel,
.sidebar-panel,
.timeline-entry,
.quote-panel {
  border: 1px solid var(--merce-line);
  border-radius: 8px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  color: white;
}

.surface-card,
.note-panel,
.sidebar-panel,
.timeline-entry,
.quote-panel {
  background: var(--merce-paper);
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.08);
}

.surface-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.surface-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(24, 24, 27, 0.12);
}

.metric-chip,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.92rem;
}

.tag-pill {
  border-color: rgba(24, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--merce-navy-soft);
}

.btn-accent {
  border-radius: 8px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--merce-orange), var(--merce-gold));
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

.btn-accent:hover,
.btn-accent:focus {
  color: white;
  background: linear-gradient(135deg, var(--merce-orange-deep), var(--merce-gold));
}

.btn {
  border-radius: 8px;
}

.btn-outline-light:hover {
  color: var(--merce-navy);
}

.list-check {
  padding-left: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.85rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: currentColor;
  color: var(--merce-orange);
}

.photo-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--merce-line);
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.1);
}

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

.video-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--merce-line);
  background: #111827;
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.1);
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  background: #111827;
}

.object-fit-cover {
  object-fit: cover;
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--merce-orange), var(--merce-gold));
}

.timeline-entry {
  position: relative;
  padding: 1.3rem 1.3rem 1.3rem 2rem;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.55rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--merce-orange);
  box-shadow: 0 0 0 0.4rem rgba(201, 108, 58, 0.16);
}

.timeline-entry::after {
  content: "";
  position: absolute;
  left: 1.28rem;
  top: 2.2rem;
  bottom: -1.2rem;
  width: 2px;
    background: rgba(24, 24, 27, 0.08);
}

.timeline-entry:last-child::after {
  display: none;
}

.quote-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 242, 0.95));
}

.footer-shell {
  background: #0d1723;
}

.footer-copy,
.footer-shell .small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-link {
  display: block;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-link:hover {
  color: white;
}

.table-shell {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--merce-line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.08);
}

.table-shell table {
  margin-bottom: 0;
}

.table-shell th {
  color: var(--merce-navy-soft);
}

.stacked-links a {
  display: block;
  margin-bottom: 0.7rem;
  text-decoration: none;
}

.source-thumb {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.source-mini {
  width: 5rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 8px;
}

.source-list dt {
  color: var(--merce-navy-soft);
  font-weight: 800;
}

.source-list dd {
  margin-bottom: 1rem;
  color: var(--merce-copy);
  word-break: break-word;
}

code {
  color: var(--merce-orange-deep);
}

@media (max-width: 991.98px) {
  .hero-banner,
  .page-hero {
    border-radius: 8px;
  }

  .hero-banner {
    padding: 3.4rem 0;
  }

  .page-hero {
    min-height: 16rem;
    padding: 0;
  }

  .page-hero > .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
