/* MGM Grand Millions — Parallax Storytelling Theme */
/* Palette: #1A1A2E primary, #C9A84C secondary/gold, #E8E8E8 ink */


/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Be Vietnam Pro', 'Noto Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #1A1A2E;
  color: #E8E8E8;
  overflow-x: hidden;
  max-width: 100%;
}

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

a { color: #C9A84C; text-decoration: underline; }
a:hover { color: #e8c870; }

p { margin-bottom: 1rem; }
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #E8E8E8;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ===== SITE WRAPPER ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  height: 64px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #C9A84C;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
}

.brand:hover { color: #e8c870; }

/* Desktop nav */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
}

.primary-nav dl {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: nowrap;
  min-width: 0;
}

.primary-nav dd { margin: 0; min-width: 0; }

.primary-nav dd a {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  height: 64px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #E8E8E8;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.primary-nav dd a:hover {
  color: #C9A84C;
  border-bottom-color: #C9A84C;
}

/* CTA buttons */
.header-ctas {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-signup {
  background: #C9A84C;
  color: #1A1A2E;
  border: 2px solid #C9A84C;
}

.cta-signup:hover {
  background: #e8c870;
  border-color: #e8c870;
  color: #1A1A2E;
}

.cta-login {
  background: transparent;
  color: #C9A84C;
  border: 2px solid #C9A84C;
}

.cta-login:hover {
  background: rgba(201,168,76,0.12);
  color: #e8c870;
}

/* Menu toggle — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #E8E8E8;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== HERO (PARALLAX) ===== */
.parallax-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-hero.parallax-hero--sm { min-height: 55vh; }
.parallax-hero.parallax-hero--xs { min-height: 38vh; }

/* Home hero */
.hero { min-height: 100vh; }

.hero-bg {
  position: absolute;
  inset: -20% 0;
  background:
    linear-gradient(135deg, #1A1A2E 0%, #0d0d1f 40%, #1f1230 70%, #1A1A2E 100%);
  will-change: transform;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.07) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  padding: 6rem 1.5rem 8rem;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.hero-content--article { justify-content: flex-start; }

.hero-text {
  max-width: 680px;
  text-align: right;
}

.hero-text--left { text-align: left; }

.hero-h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #E8E8E8;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: #E8E8E8;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(232,232,232,0.75);
  max-width: 560px;
  margin-left: auto;
  margin-bottom: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-text--left .hero-sub { margin-left: 0; }

/* Slant divider */
.slant-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #1A1A2E;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 0.6rem;
}

/* ===== MAIN CONTENT ===== */
main { flex: 1; width: 100%; }

.page-article { width: 100%; }

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  width: 100%;
}

/* Aside left layout */
.content-with-aside {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 80px; min-width: 0; }

.sidebar-inner {
  padding: 1.25rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #C9A84C;
  margin-bottom: 1rem;
}

.sidebar-nav { list-style: none; padding: 0; }
.sidebar-nav dt { margin: 0; border-top: 1px solid rgba(232,232,232,0.08); }
.sidebar-nav dt:first-child { border-top: none; }
.sidebar-nav dt a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: #E8E8E8;
  text-decoration: none;
  transition: color 0.15s;
  min-height: 44px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sidebar-nav dt a:hover { color: #C9A84C; }

.sidebar-img { margin-top: 1.5rem; border-radius: 8px; overflow: hidden; }

/* ===== GLASSMORPHISM CARDS ===== */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}

.glass-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-2px);
}

/* ===== CHILD GRID / CHILD ARTICLES ===== */
.child-grid,
.child-articles,
.topics-section {
  margin-top: 3rem;
}

.child-grid h2,
.child-articles h2,
.topics-section h2 {
  margin-bottom: 1.5rem;
  color: #C9A84C;
}

/* div > article direct children for contract */
.child-articles,
.child-grid {
  display: block;
}

.child-articles > article,
.child-grid > article,
.topics-section > article {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.child-articles > article h3,
.child-grid > article h3,
.topics-section > article h3 {
  margin-bottom: 0.5rem;
}

.child-articles > article h3 a,
.child-grid > article h3 a,
.topics-section > article h3 a {
  color: #E8E8E8;
  text-decoration: none;
  font-size: 1.1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.child-articles > article h3 a:hover,
.child-grid > article h3 a:hover,
.topics-section > article h3 a:hover {
  color: #C9A84C;
}

.child-articles > article p,
.child-grid > article p,
.topics-section > article p {
  font-size: 0.92rem;
  color: rgba(232,232,232,0.75);
  margin-bottom: 0.75rem;
}

.card-date { font-size: 0.8rem; color: rgba(232,232,232,0.5); }

.read-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #C9A84C;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.read-link:hover { color: #e8c870; }

/* ===== MAIN COPY BODY ===== */
.main-copy {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.main-copy h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.main-copy h3 { margin-top: 1.75rem; }

.main-copy a { color: #C9A84C; text-decoration: underline; }
.main-copy a:hover { color: #e8c870; }

.main-copy table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.main-copy table th {
  background: rgba(201,168,76,0.15);
  color: #C9A84C;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.main-copy table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(232,232,232,0.08);
  white-space: nowrap;
}

.main-copy table tr:hover td { background: rgba(255,255,255,0.03); }

.main-copy blockquote {
  border-left: 3px solid #C9A84C;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(201,168,76,0.06);
  border-radius: 0 6px 6px 0;
  color: rgba(232,232,232,0.85);
  font-style: italic;
}

/* ===== BYLINE ===== */
.byline {
  font-size: 0.85rem;
  color: rgba(232,232,232,0.6);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.byline time { font-style: normal; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(232,232,232,0.5);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.breadcrumb a { color: rgba(201,168,76,0.7); text-decoration: none; }
.breadcrumb a:hover { color: #C9A84C; }

/* ===== STAGE BADGE ===== */
.stage-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.stage-awareness { background: rgba(201,168,76,0.2); color: #C9A84C; }
.stage-consideration { background: rgba(100,180,255,0.15); color: #7ec8f5; }
.stage-decision { background: rgba(100,220,140,0.15); color: #6dda8e; }

/* ===== AUTHOR SECTION ===== */
.author-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 10px;
}

.author-credentials {
  font-size: 0.88rem;
  color: rgba(232,232,232,0.6);
  margin-bottom: 0.75rem;
}

.author-bio { color: rgba(232,232,232,0.85); }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(10,10,22,0.98);
  border-top: 1px solid rgba(201,168,76,0.15);
  margin-top: auto;
  width: 100%;
  overflow-x: hidden;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid rgba(232,232,232,0.07);
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
  color: #C9A84C;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(232,232,232,0.5);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.footer-subscribe label {
  display: block;
  font-size: 0.85rem;
  color: rgba(232,232,232,0.7);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.sub-row { display: flex; gap: 0.5rem; }

.sub-row input {
  flex: 1;
  min-height: 44px;
  padding: 0 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  color: #E8E8E8;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.sub-row input:focus { border-color: #C9A84C; }

.sub-row button {
  min-height: 44px;
  padding: 0 1rem;
  background: #C9A84C;
  color: #1A1A2E;
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.sub-row button:hover { background: #e8c870; }

.footer-contact { font-size: 0.88rem; }
.footer-contact p { margin-bottom: 0.4rem; }
.footer-contact a {
  color: rgba(232,232,232,0.6);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-contact a:hover { color: #C9A84C; }

/* Footer columns (nav dl) */
.footer-cols {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid rgba(232,232,232,0.07);
}

.footer-col { margin: 0; }

.footer-col-head {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 1rem;
}

.footer-col dd { margin: 0; }
.footer-col dt { margin: 0; }

.footer-col dd a,
.footer-col dt a {
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: rgba(232,232,232,0.6);
  text-decoration: none;
  min-height: 44px;
  transition: color 0.15s;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.footer-col dd a:hover,
.footer-col dt a:hover { color: #C9A84C; }

/* Footer nav dl (structure lottery requirement) */
.footer-nav-dl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(232,232,232,0.07);
}

.footer-bottom-nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.footer-bottom-nav-dl dt {
  margin: 0;
}

.footer-bottom-nav-dl dt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem 0 0;
  font-size: 0.82rem;
  color: rgba(232,232,232,0.5);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.footer-bottom-nav-dl dt a:hover { color: #C9A84C; }

/* Footer bottom */
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
}

.rg-notice {
  font-size: 0.78rem;
  color: rgba(232,232,232,0.4);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.footer-bottom-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(232,232,232,0.35);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== STAGGER ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .glass-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s;
  }

  .glass-card.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .child-articles > article:nth-child(1) { transition-delay: 0.05s; }
  .child-articles > article:nth-child(2) { transition-delay: 0.12s; }
  .child-articles > article:nth-child(3) { transition-delay: 0.19s; }
  .child-articles > article:nth-child(4) { transition-delay: 0.26s; }
  .child-articles > article:nth-child(5) { transition-delay: 0.33s; }
}

/* ===== TOPIC HERO VARIATION ===== */
.topic-hero .hero-content { justify-content: flex-start; }
.topic-hero .hero-text { text-align: left; max-width: 760px; }
.article-hero .hero-content { padding-top: 4rem; padding-bottom: 6rem; }

/* ===== INNER HERO (about / privacy) ===== */
.inner-hero .hero-content { padding-top: 3.5rem; padding-bottom: 5rem; }
.inner-hero .hero-text { text-align: left; max-width: 680px; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .content-with-aside {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
  }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .footer-contact { grid-column: 1 / -1; }

  .primary-nav dd a { padding: 0 0.4rem; font-size: 0.72rem; }

  .brand { max-width: 140px; }
}

/* Mobile */
@media (max-width: 768px) {
  .site-header { height: 60px; }

  .header-inner {
    gap: 0.4rem;
    padding: 0 0.75rem;
  }

  .menu-toggle {
    display: flex;
    order: -1;
    flex-shrink: 0;
  }

  /* Fix: brand must have a 44px tap target on mobile */
  .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.88rem;
    flex: 1;
    text-align: center;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-content: center;
  }

  .primary-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14,14,30,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 199;
    flex-direction: column;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav dl {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .primary-nav dd {
    width: 100%;
  }

  .primary-nav dd a {
    height: auto;
    min-height: 52px;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(232,232,232,0.08);
    border-right: none;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
  }

  .header-ctas { gap: 0.3rem; flex-shrink: 0; }

  .cta {
    padding: 0 0.5rem;
    font-size: 0.68rem;
    min-height: 44px;
    flex-shrink: 0;
  }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding: 4rem 1.25rem 5rem; justify-content: flex-start; }
  .hero-text { text-align: left; max-width: 100%; }
  .hero-sub { margin-left: 0; }

  /* Content */
  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .content-section { padding: 1.5rem 1.25rem 3rem; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1.5rem;
    gap: 1.5rem;
  }

  .footer-top .footer-contact { grid-column: auto; }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }

  .footer-bottom { padding: 1rem 1.25rem 1.5rem; }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-row { flex-direction: column; }
  .sub-row input { width: 100%; }
  .sub-row button { width: 100%; }

  .slant-divider { height: 40px; }

  .footer-nav-dl { padding: 0.75rem 1.25rem 0; }

  .footer-bottom-nav-dl {
    flex-wrap: wrap;
    gap: 0;
  }

  .footer-bottom-nav-dl dt a {
    min-height: 44px;
    font-size: 0.8rem;
    padding: 0 0.75rem 0 0;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  h2 { font-size: 1.3rem; }

  .cta { padding: 0 0.4rem; font-size: 0.65rem; }
}

/* ===== WILL-CHANGE for parallax ===== */
.parallax-layer { will-change: transform; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}