/* Code of Conduct Page Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C8922A;
  --gold-light: #F2C96B;
  --gold-pale: #FBF0D9;
  --red: #8B1A1A;
  --red-deep: #5C0E0E;
  --ink: #1A140D;
  --ink-mid: #4A3828;
  --white: #FFFFFF;
  --ff-display: 'Cormorant Garamond', serif;
  --ff-body: 'DM Sans', sans-serif;
}

body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── PAGE BACKGROUND (hero style) ─── */
.page-bg {
  position: fixed; inset: 0; z-index: 0;
  background: var(--ink);
  pointer-events: none;
}
.bg-moon {
  position: absolute; top: -15vw; right: -10vw;
  width: 55vw; max-width: 600px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFF3D6 0%, #F2C96B 30%, #C8922A 60%, #8B4513 85%, #2A1A08 100%);
  opacity: 0.07; filter: blur(2px);
}
.bg-glow-left {
  position: absolute; bottom: 20%; left: -15%;
  width: 50vw; height: 50vw;
  background: radial-gradient(ellipse, rgba(139,26,26,0.12) 0%, transparent 65%);
}
.bg-glow-bottom {
  position: absolute; bottom: -5%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 25vh;
  background: radial-gradient(ellipse, rgba(200,146,42,0.08) 0%, transparent 70%);
}
/* Subtle grid texture */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,146,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,146,42,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── MAIN CONTENT ─── */
main {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 auto;
  padding: 9rem 2rem 7rem;
}

/* Header block */
.coc-header {
  text-align: center;
  margin-bottom: 5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(200,146,42,0.2);
}
.coc-eyebrow {
  font-size: 1.15rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem;
}
.coc-eyebrow::before, .coc-eyebrow::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); vertical-align: middle;
  margin: 0 0.8rem; opacity: 0.5;
}
.coc-eyebrow span {
  display: inline;
}

/* Mobile eyebrow layout */
@media (max-width: 600px) {
  .coc-eyebrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .coc-eyebrow::before, .coc-eyebrow::after {
    display: none;
  }
  .coc-eyebrow span {
    display: block;
  }
  .coc-eyebrow span::before, .coc-eyebrow span::after {
    content: '-';
    display: inline;
    margin: 0 0.6rem;
    color: var(--gold);
    opacity: 0.5;
  }
}
.coc-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300; line-height: 1.0; color: var(--white);
  letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.coc-title em {
  font-style: italic; color: var(--gold-light); display: block;
}
.coc-subtitle {
  font-family: var(--ff-display); font-style: italic;
  font-size: 1.3rem; font-weight: 300;
  color: rgba(255,255,255,0.45); margin-top: 1.2rem;
}
.coc-ornament {
  margin-top: 2rem; letter-spacing: 0.6em;
  color: var(--gold); opacity: 0.4; font-size: 0.75rem;
}

/* Applies-to badge row */
.applies-row {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem;
}
.applies-badge {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(200,146,42,0.35);
  border-radius: 2px; color: rgba(255,255,255,0.5);
}

/* Intro paragraph */
.coc-intro {
  font-size: 1.15rem; line-height: 1.85;
  color: rgba(255,255,255,0.65);
  max-width: 680px; margin: 0 auto;
  margin-bottom: 5rem;
  text-align: center;
}

/* Values block */
.values-block {
  background: rgba(200,146,42,0.06);
  border: 1px solid rgba(200,146,42,0.18);
  border-radius: 2px;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 4rem;
}
.values-label {
  font-size: 1.15rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem; font-weight: 500;
}
.values-title {
  font-family: var(--ff-display); font-size: 1.8rem;
  font-weight: 400; color: var(--white); margin-bottom: 1.5rem;
}
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.value-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.value-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); margin-top: 0.45rem; flex-shrink: 0;
}
.value-text {
  font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.6;
}

/* Section blocks */
.coc-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(200,146,42,0.1);
}
.coc-section:last-of-type { border-bottom: none; }

.section-num {
  font-family: var(--ff-display); font-size: 0.95rem;
  font-weight: 300; color: rgba(200,146,42,0.5);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-heading {
  font-family: var(--ff-display); font-size: 2rem;
  font-weight: 400; color: var(--gold-light);
  margin-bottom: 1.2rem; line-height: 1.2;
}
.section-body {
  font-size: 1.1rem; color: rgba(255,255,255,0.6);
  line-height: 1.85;
}
.section-body + .section-body { margin-top: 1rem; }

/* Sub-list inside sections */
.coc-list {
  list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.coc-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.7;
}
.coc-list li::before {
  content: '—'; color: var(--gold); flex-shrink: 0;
  font-family: var(--ff-display); margin-top: 0.05rem;
}

/* Lettered sub-items (a, b, c …) */
.coc-lettered {
  list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; counter-reset: letter-counter;
}
.coc-lettered li {
  display: flex; gap: 0.8rem;
  font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.7;
  counter-increment: letter-counter;
}
.coc-lettered li::before {
  content: counter(letter-counter, lower-alpha) ".";
  color: var(--gold-light); flex-shrink: 0;
  font-family: var(--ff-display); font-size: 1.1rem;
  min-width: 1.4rem;
}

/* Harassment categories */
.harassment-types {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 1.5rem;
}
.h-type {
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(200,146,42,0.12);
  border-radius: 2px;
  background: rgba(139,26,26,0.06);
  transition: background 0.25s, border-color 0.25s;
}
.h-type:hover {
  background: rgba(139,26,26,0.12);
  border-color: rgba(200,146,42,0.25);
}
.h-type-label {
  font-size: 1.15rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem; font-weight: 500;
}
.h-type-desc {
  font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.6;
}

/* Discipline consequences */
.discipline-list {
  list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.discipline-list li {
  display: flex; align-items: center; gap: 1rem;
  font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.6;
}
.discipline-list li::before {
  content: ''; display: block; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}

/* Reporting box */
.reporting-box {
  background: rgba(200,146,42,0.06);
  border: 1px solid rgba(200,146,42,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1.8rem 2rem;
  margin-top: 1.5rem;
}
.reporting-box .rb-title {
  font-family: var(--ff-display); font-size: 1.3rem;
  color: var(--gold-light); margin-bottom: 1rem; font-weight: 400;
}

/* Commitment closing block */
.commitment-block {
  text-align: center;
  margin-top: 5rem; padding: 4rem 2rem;
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 2px;
  background: rgba(200,146,42,0.04);
  position: relative; overflow: hidden;
}
.commitment-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.commitment-ornament {
  font-size: 2rem; margin-bottom: 1.5rem; opacity: 0.6;
}
.commitment-quote {
  font-family: var(--ff-display); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300; color: var(--white);
  line-height: 1.45; max-width: 580px; margin: 0 auto 1.5rem;
}
.commitment-text {
  font-size: 1rem; color: rgba(255,255,255,0.4);
  max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.btn-gold {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.9rem 2.4rem;
  background: var(--gold); color: var(--ink);
  border-radius: 2px; text-decoration: none; transition: background 0.25s;
}
.btn-gold:hover { background: var(--gold-light); }

/* Footer strip */
.coc-footer {
  position: relative; z-index: 2;
  text-align: center; padding: 2.5rem 2rem;
  border-top: 1px solid rgba(200,146,42,0.12);
  font-size: 0.72rem; color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}
.coc-footer a {
  color: rgba(200,146,42,0.5); text-decoration: none;
  transition: color 0.2s;
}
.coc-footer a:hover { color: var(--gold-light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr; }
  .harassment-types { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main { padding: 8rem 1.4rem 5rem; }
  .coc-header { margin-bottom: 3rem; }
  .values-block { padding: 1.8rem 1.4rem; }
  .commitment-block { padding: 2.5rem 1.4rem; }
}
