/* =========================================================
   ZENTRIX DESIGN AWARDS · RULES PAGE · rules.css
   (layered on top of style.css — brand tokens reused)
   ========================================================= */

/* Active rules link in nav */
.nav-links a.is-active { color: var(--neon); }
.nav-links a.is-active [data-underline]::after { transform: scaleX(1); }

/* Body padding to clear fixed nav + search bar */
.rules-page { padding-top: 0; }

/* =========================================================
   HERO OVERRIDES (match main site, less tall)
   ========================================================= */
.rules-hero { min-height: auto; padding-bottom: 40px; padding-top: 140px; }
.rules-hero .hero-title { font-size: clamp(56px, 12vw, 168px); }
.rules-hero-sub {
  margin-top: clamp(32px, 5vw, 56px);
}
.rules-hero-deco {
  color: var(--neon);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: spin 32s linear infinite;
}
@media (max-width: 1024px) {
  .rules-hero-sub { grid-template-columns: 1fr; }
  .rules-hero-deco { justify-content: flex-end; }
}

/* Nav clearance for anchor jumps */
.rules-section { scroll-margin-top: 100px; }
.rules-hero { scroll-margin-top: 80px; }

/* =========================================================
   RULES PROSE
   ========================================================= */
.rules-body {
  max-width: 960px;
  overflow: hidden;
}
.rules-prose {
  color: var(--text-soft);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.7;
}
.rules-prose p { margin: 0 0 18px; }
.rules-prose p:last-child { margin-bottom: 0; }
.rules-prose strong { color: var(--white); font-weight: 700; }
.rules-prose-emphasis {
  color: var(--white);
  border-left: 2px solid var(--neon);
  padding-left: 18px;
  font-weight: 500;
}
.rules-prose--after { margin-top: 36px; }

.rules-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.rules-prose li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
}
.rules-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--neon);
}

.rules-sub {
  margin: 28px 0 12px;
  font-weight: 700;
  font-size: clamp(17px, 1.35vw, 20px);
  letter-spacing: -0.01em;
  color: var(--white);
}
.rules-sub:first-child { margin-top: 0; }

/* Categories grid on rules page — slightly tighter */
.rules-cat-grid { margin-bottom: 32px; }
.rules-cat-grid .cat-card { min-height: 260px; padding: 28px; }
.rules-cat-grid .cat-title { font-size: clamp(22px, 2.8vw, 32px); }

/* =========================================================
   JUDGING overrides (reveal safe defaults for rules page)
   ========================================================= */
.rules-section .judge-row { opacity: 1; transform: none; transition: background .25s; }
.rules-section .judge-row .judge-body,
.rules-section .judge-row .judge-pct,
.rules-section .judge-row .judge-idx { opacity: 1; transform: none; }

/* =========================================================
   PRIZES inverted inner (wrap for padding control)
   ========================================================= */
.rules-inv-inner {
  padding-top: 0;
  padding-bottom: 0;
}
.section-invert.rules-section { padding: var(--pad-y) 0; }
.section-invert.rules-section .section-head { padding-top: 0; padding-bottom: 0; margin-bottom: 20px; }
.section-invert.rules-section .h2 { margin-bottom: 36px; }
.section-invert.rules-section .rules-body { max-width: var(--max); margin: 0 auto; width: 100%; }
.rules-prize-col { display: grid; gap: 12px; margin-bottom: 40px; }
.rules-prose--invert {
  color: rgba(23,23,23,0.85);
  max-width: 760px;
}
.rules-prose--invert strong { color: var(--black); }
.rules-prose--invert li::before { background: var(--black); }
.rules-prose--invert .rules-prose-emphasis { color: var(--black); border-left-color: var(--black); }

/* =========================================================
   TIMELINE on rules page — add dashed line like main site
   ========================================================= */
.rules-timeline { color: var(--white); }
.rules-timeline::before {
  content: "";
  position: absolute; left: 9px; top: 12px; bottom: 12px; width: 1px;
  border-left: 1px dashed rgba(255,255,255,0.18);
  background: none;
}
.rules-timeline .t-dot { background: var(--black); border-color: var(--neon); }
.rules-timeline .t-item.highlight .t-dot { background: var(--neon); border-color: var(--white); box-shadow: 0 0 0 4px rgba(214,255,63,0.14); }
.rules-timeline .t-date {
  color: var(--neon);
  border-bottom: 1px dashed rgba(214,255,63,0.35);
}
.rules-timeline .t-text { color: var(--text-soft); }
.rules-timeline .t-item.highlight .t-text { color: var(--white); font-weight: 700; }

/* =========================================================
   DISQUALIFICATION list
   ========================================================= */
.dq-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dq-item {
  position: relative;
  padding: 18px 22px 18px 24px;
  background: var(--ink-700);
  border: 1px solid var(--rule);
  border-left: 3px solid #FF4444;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
  transition: transform .25s var(--ease-out), background .25s, border-left-color .25s, box-shadow .25s;
}
.dq-item:hover {
  transform: translateX(3px);
  background: var(--ink-600);
  border-left-color: #FF6666;
  box-shadow: -2px 0 14px rgba(255, 68, 68, 0.15);
}

/* =========================================================
   GENERAL TERMS list
   ========================================================= */
.terms-list { display: grid; gap: 32px; max-width: 960px; }
.terms-item { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.terms-item:last-child { border-bottom: 0; padding-bottom: 0; }
.terms-heading {
  margin: 0 0 10px;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 19px);
  letter-spacing: -0.01em;
}
.terms-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   CONTACT
   ========================================================= */
.rules-contact .rules-body { max-width: 900px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 24px;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  background: var(--ink-700);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.contact-block:hover {
  border-color: rgba(214, 255, 63, 0.5);
  background: var(--ink-600);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -28px var(--neon-glow);
}
.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}
.contact-value {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.rules-cta { margin: 28px 0 20px; justify-content: center; }
.rules-back {
  display: inline-block;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s;
}
.rules-back:hover { color: var(--neon); }

/* =========================================================
   LAST UPDATED
   ========================================================= */
.rules-updated {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 0 var(--pad-x);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .rules-hero { padding-top: 160px; padding-bottom: 20px; }
  .rules-section { scroll-margin-top: 100px; }
  .rules-hero .hero-title { font-size: clamp(48px, 16vw, 96px); }
  .terms-item p { font-size: 14px; }
  .dq-item { font-size: 14px; padding: 16px 18px 16px 20px; }
}
@media (max-width: 480px) {
  .rules-hero { padding-top: 140px; }
  .rules-hero-deco { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dq-item,
  .contact-block { transition: none !important; animation: none !important; }
  .rules-hero-deco { animation: none !important; }
}
