/* =============================================================
   Mining World Congress — Theme CSS
   Faithful port of the approved mineral-tech design system.
   Source: mockup-sandbox/mining-world-motion/_group.css
   ============================================================= */

/* ── Design tokens ── */
.mwm {
  --void: #071013;
  --ink:  #e9f0ed;
  --muted:#a9b9b5;
  --line: rgba(233,240,237,.2);
  --acid: #d7ff54;
  --aqua: #8ee6d4;

  background: var(--void);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  min-height: 100dvh;
}

.mwm * { box-sizing: border-box; }

/* ── Typography ── */
.mwm .display { font-family: "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.mwm .mono    { font-family: "DM Mono", monospace; }
.mwm .hair    { border-color: var(--line); }

/* Reset body margin that WordPress sometimes adds */
body.mwm { margin: 0; padding: 0; }

/* ── Links ── */
.mwm a { color: inherit; text-decoration: none; }

/* ── Navigation ── */
.mwm .mwm-nav {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,4vw,64px);
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  background: linear-gradient(#071013cc, transparent);
}

.mwm .mwm-nav[style*="position:relative"],
.mwm .mwm-nav[style*="position: relative"] {
  position: relative !important;
  inset: auto !important;
  background: var(--void) !important;
}

.mwm .mark {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 500 11px/1.05 "DM Mono";
  letter-spacing: .12em;
}
.mwm .mark i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-style: normal;
  transform: rotate(45deg);
}
.mwm .mark i span { transform: rotate(-45deg); }

.mwm .navlinks { display: flex; gap: 28px; align-items: center; }
.mwm .navlinks a,
.mwm .navreg,
.mwm .eyebrow {
  font: 500 10px "DM Mono";
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mwm .navlinks a { color: #d1ded9; }
.mwm .navlinks a:hover { color: var(--acid); }

.mwm .navreg,
.mwm .cta {
  background: var(--acid);
  color: #071013;
  padding: 14px 18px;
  border: 0;
  font: 500 10px "DM Mono";
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity .2s;
}
.mwm .navreg:hover,
.mwm .cta:hover { opacity: .88; }

.mwm .hamb {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
}

/* ── Mobile drawer ── */
.mwm .mobile-drawer {
  position: fixed;
  inset: 76px 0 0;
  background: #071013ee;
  backdrop-filter: blur(12px);
  z-index: 40;
  display: none;
  flex-direction: column;
  padding: 32px clamp(20px,4vw,64px);
  border-top: 1px solid var(--line);
}
.mwm .mobile-drawer.is-open { display: flex; }
.mwm .mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mwm .mobile-drawer-inner a {
  font: 500 24px "Space Grotesk";
  color: var(--ink);
  letter-spacing: -.03em;
}
.mwm .mobile-drawer-inner a.cta { font-size: 12px; margin-top: 8px; align-self: flex-start; }

/* ── Hero ── */
.mwm .hero {
  min-height: 760px;
  height: 100dvh;
  max-height: 980px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(110px,14vh,170px) clamp(20px,7vw,120px) 70px;
}
.mwm .hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.12);
}
.mwm .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #071013ed 0%, #071013a8 45%, #07101342 100%),
    linear-gradient(0deg,  #071013ee 0%, transparent 45%);
}
.mwm .hero-grid {
  position: absolute;
  inset: 76px clamp(20px,4vw,64px) 34px;
  z-index: 1;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  pointer-events: none;
}
.mwm .hero-grid::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  border-left: 1px solid var(--line);
  opacity: .4;
}
.mwm .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.mwm .eyebrow { color: var(--acid); }
.mwm h1 {
  font-size: clamp(4.2rem, 11vw, 10.5rem);
  line-height: .79;
  margin: 24px 0 32px;
  font-weight: 600;
}
.mwm .hero-copy p {
  max-width: 480px;
  color: #d4dfdc;
  font-size: 16px;
  line-height: 1.6;
}
.mwm .hero-meta {
  position: absolute;
  z-index: 2;
  right: clamp(20px,7vw,120px);
  bottom: 70px;
  width: 240px;
  border-left: 1px solid var(--acid);
  padding-left: 18px;
}
.mwm .hero-meta strong {
  display: block;
  font: 500 27px/1.05 "Space Grotesk";
  margin: 12px 0 8px;
}
.mwm .hero-meta span { color: var(--muted); font-size: 12px; }

/* ── Ticker ── */
.mwm .ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px clamp(20px,4vw,64px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--aqua);
  font: 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ── Sections ── */
.mwm .section {
  padding: clamp(64px,9vw,130px) clamp(20px,7vw,120px);
}
.mwm .section-inner {
  max-width: 1240px;
  margin: auto;
}
.mwm .split {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 10vw;
}
.mwm h2 {
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  line-height: .88;
  margin: 18px 0;
  font-weight: 500;
}
.mwm .lede {
  color: #c8d4d0;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.25;
  max-width: 760px;
}
.mwm .darkband { background: #0d1b1d; }

/* ── Stats row ── */
.mwm .statrow {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.mwm .stat {
  padding: 22px 16px 0 0;
  border-right: 1px solid var(--line);
}
.mwm .stat:last-child { border: 0; padding-left: 16px; }
.mwm .stat b {
  color: var(--acid);
  font: 500 clamp(27px,4vw,48px) "Space Grotesk";
}
.mwm .stat span {
  display: block;
  color: var(--muted);
  font: 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 8px;
}

/* ── Agenda tease (home) ── */
.mwm .agenda-tease {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-top: 1px solid var(--line);
}
.mwm .agenda-tease article {
  min-height: 250px;
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}
.mwm .agenda-tease article + article { padding-left: 22px; }
.mwm .agenda-tease h3 { font: 500 29px "Space Grotesk"; margin: 60px 0 12px; }
.mwm .agenda-tease p  { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ── Speaker strip (home) ── */
.mwm .speaker-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 52px;
}
.mwm .speaker {
  min-height: 260px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #122528;
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s;
}
.mwm .speaker:hover { transform: translateY(-6px); border-color: var(--acid); }
.mwm .initial { font: 500 60px "Space Grotesk"; color: var(--aqua); }
.mwm .speaker-portrait {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 14px 0;
  border: 1px solid var(--line);
  filter: saturate(.82) contrast(1.06);
}
.mwm .speaker h3 { font: 500 20px "Space Grotesk"; margin: 0; }
.mwm .speaker p  { color: var(--muted); font-size: 11px; line-height: 1.4; margin: 7px 0 0; }

/* ── Page header ── */
.mwm .pagehead {
  padding: 150px clamp(20px,7vw,120px) 70px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 0, #153a3d, transparent 45%);
}
.mwm .pagehead h1 {
  font-size: clamp(4rem, 10vw, 9rem);
  max-width: 900px;
  margin: 22px 0 0;
}

/* ── Agenda full page ── */
.mwm .schedule {
  max-width: 1240px;
  margin: auto;
  padding: 30px clamp(20px,7vw,120px) 100px;
}
.mwm .day {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
}
.mwm .daynum  { color: var(--acid); font: 500 58px "Space Grotesk"; line-height: 1; }
.mwm .daylabel {
  color: var(--muted);
  font: 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 8px;
}
.mwm .session {
  display: grid;
  grid-template-columns: 90px 1fr 30px;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(233,240,237,.12);
  align-items: center;
}
.mwm .session time  { color: var(--aqua); font: 11px "DM Mono"; }
.mwm .session h3    { font: 500 18px "Space Grotesk"; margin: 0; }
.mwm .session small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.mwm .session b     { color: var(--acid); font-size: 18px; }

/* Day tab buttons */
.mwm .day-tab-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 16px;
  font: 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mwm .day-tab-btn.is-active {
  background: var(--acid);
  color: var(--void);
}

/* Day panel hide/show */
.mwm .day-panel[hidden] { display: none; }

/* ── Speaker roster (full page) ── */
.mwm .roster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 50px;
}
.mwm .roster .speaker { min-height: 230px; background: #0d1b1d; }

/* ── Footer ── */
.mwm .footer {
  padding: 28px clamp(20px,4vw,64px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── WordPress alignment helpers ── */
.mwm .wp-block-image img { max-width: 100%; height: auto; }
.mwm figure { margin: 0; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .mwm .navlinks,
  .mwm .navreg { display: none; }
  .mwm .hamb   { display: block; }

  .mwm .hero {
    min-height: 720px;
    padding: 120px 20px 120px;
  }
  .mwm .hero-grid { inset: 76px 20px 25px; }
  .mwm .hero-meta {
    left: 20px;
    right: auto;
    bottom: 28px;
    width: 210px;
  }

  .mwm .split                    { grid-template-columns: 1fr; gap: 25px; }
  .mwm .statrow                  { margin-top: 35px; }

  .mwm .agenda-tease,
  .mwm .speaker-strip            { grid-template-columns: 1fr; }

  .mwm .agenda-tease article {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  .mwm .agenda-tease article + article { padding-left: 0; }
  .mwm .agenda-tease h3 { margin: 35px 0 10px; }

  .mwm .day     { grid-template-columns: 1fr; gap: 16px; }
  .mwm .session { grid-template-columns: 62px 1fr 20px; gap: 10px; }

  .mwm .footer  { flex-direction: column; gap: 12px; }
  .mwm .roster  { grid-template-columns: 1fr; }
  .mwm .ticker  { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }

  .mwm .pagehead { padding-top: 110px; padding-bottom: 48px; }
}
