:root {
  --mjm-bg: #0b0b0b;
  --mjm-panel: #141414;
  --mjm-panel-2: #1c1c1c;
  --mjm-text: #f5f5f5;
  --mjm-muted: #b8b8b8;
  --mjm-yellow: #ffcc00;
  --mjm-yellow-soft: #fff1a8;
  --mjm-red: #c62c2c;
  --mjm-border: rgba(255, 204, 0, 0.18);
  --mjm-shadow: 0 18px 40px rgba(0,0,0,0.34);
  --mjm-radius: 18px;
  --mjm-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mjm-portal-theme {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(198,44,44,0.16), transparent 30%),
    radial-gradient(circle at left top, rgba(255,204,0,0.18), transparent 28%),
    var(--mjm-bg);
  color: var(--mjm-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--mjm-yellow); text-decoration: none; }
a:hover { color: #ffe267; }
img { max-width: 100%; height: auto; }

.container { width: min(calc(100% - 2rem), var(--mjm-width)); margin: 0 auto; }
.site-main { min-height: 65vh; }
.section { padding: 3.5rem 0; }
.section--alt { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.site-branding { display: flex; align-items: center; gap: 1rem; }
.site-logo img { max-height: 68px; width: auto; }
.site-title {
  display: inline-block;
  color: var(--mjm-yellow);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.site-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mjm-muted);
}
.site-nav { margin-left: auto; }
.mjm-menu,
.mjm-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.mjm-menu a,
.mjm-footer-menu a {
  color: var(--mjm-text);
  font-weight: 700;
}
.mjm-menu a:hover,
.mjm-footer-menu a:hover,
.current-menu-item > a { color: var(--mjm-yellow); }

.hero { padding: 4.5rem 0 3rem; }
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}
.hero__content--wide { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr); }
.hero h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.03;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.hero__lead {
  max-width: 68ch;
  font-size: 1.08rem;
  color: var(--mjm-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--mjm-yellow-soft);
  font-weight: 800;
}
.card {
  background: linear-gradient(180deg, rgba(26,26,26,0.96), rgba(15,15,15,0.96));
  border: 1px solid var(--mjm-border);
  border-radius: var(--mjm-radius);
  padding: 1.35rem;
  box-shadow: var(--mjm-shadow);
}
.content-card { padding: 1.5rem; }
.hero__panel { align-self: stretch; }
.hero__panel--metrics { border-color: rgba(198,44,44,0.28); }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.25rem;
}
.split--portal { align-items: start; }
.portal-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.portal-card .button { margin-top: auto; align-self: flex-start; }
.location-callout--alert {
  border-color: rgba(198,44,44,0.4);
  box-shadow: 0 18px 40px rgba(198,44,44,0.12);
}
.action-card { min-height: 210px; display: flex; flex-direction: column; }
.action-card .button { margin-top: auto; align-self: flex-start; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary {
  background: var(--mjm-yellow);
  color: #111111;
  box-shadow: 0 12px 26px rgba(255, 204, 0, 0.22);
}
.button--primary:hover { color: #111111; background: #ffd633; }
.button--secondary {
  background: transparent;
  color: var(--mjm-text);
  border: 1px solid rgba(255,255,255,0.16);
}
.button--secondary:hover { border-color: var(--mjm-yellow); color: var(--mjm-yellow); }

.check-list,
.workflow-list {
  margin: 0;
  padding-left: 1.15rem;
}
.check-list li,
.workflow-list li { margin-bottom: 0.5rem; }
.dashboard-header { text-align: center; }
.content-area { max-width: 880px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(5,5,5,0.96);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 1.25rem;
  padding: 2rem 0 1.4rem;
}
.site-footer__title { margin-top: 0; }
.site-footer__bottom {
  padding: 1rem 0 1.5rem;
  color: var(--mjm-muted);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .hero__content,
  .hero__content--wide,
  .split,
  .site-footer__grid,
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding-top: 3rem; }
  .section { padding: 2.6rem 0; }
  .mjm-menu,
  .mjm-footer-menu { gap: 0.75rem; }
  .card,
  .content-card { padding: 1.1rem; }
  .button { width: 100%; }
  .hero__actions { flex-direction: column; }
}
