/* PDXCCF C4 Cookie Competition page. Loads after pdxccf-core.css.
   Every color pairing below was chosen from already-verified-safe combinations
   (cream/ink on cocoa-900, ink/muted on paper, dark ink on solid orange) --
   no new orange-dark-on-light guesses after the Makers page bug. */

.c4-hero {
  position: relative;
  display: grid;
  min-height: min(860px, 94svh);
  place-items: center start;
  overflow: hidden;
  background: var(--cocoa-950);
  color: var(--cream);
}

.c4-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(33 16 11 / 92%) 0%, rgb(33 16 11 / 62%) 46%, rgb(33 16 11 / 18%) 78%),
    linear-gradient(0deg, rgb(33 16 11 / 78%) 0%, transparent 55%),
    url("../images/cccc/hero-c4-scatter.jpg") center 60% / cover no-repeat;
  content: "";
  transform: scale(1.01);
}

.c4-hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(255 210 118 / 78%) 0 1.5px, transparent 2px);
  background-position: 1rem 1rem;
  background-size: 7rem 5rem;
  content: "";
  opacity: .2;
  pointer-events: none;
}

.c4-hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-block: 7rem 3rem;
}

.c4-hero .eyebrow { color: var(--orange); }

.c4-hero h1 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.02;
}

.c4-hero .hero-lede {
  max-width: 640px;
  margin: 1.2rem 0 0;
  color: rgb(255 248 237 / 88%);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
}

.c4-hero .hero-dates {
  margin: 1.4rem 0 0;
  font-size: .95rem;
  color: var(--orange);
}

.c4-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.divisions,
.awards,
.key-dates,
.faq {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.divisions { background: var(--cream); }
.awards { background: var(--paper); }
.key-dates { background: var(--cream); }
.faq { background: var(--paper); }

.divisions .display-title,
.how-to-enter .display-title,
.awards .display-title,
.judges .display-title,
.key-dates .display-title,
.faq .display-title {
  max-width: 20ch;
  margin: 0 0 2.5rem;
}

.division-grid,
.award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.award-grid { grid-template-columns: repeat(2, 1fr); }

.division-card,
.award-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.division-card h3,
.award-card h3 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -.005em;
}

.division-card p,
.award-card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

.how-to-enter {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--cocoa-900);
  color: var(--cream);
}

.how-to-enter .eyebrow { color: var(--orange); }

.step-list {
  max-width: 42rem;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.step-list li {
  position: relative;
  padding: .9rem 0 .9rem 2.6rem;
  border-bottom: 1px solid rgb(255 248 237 / 14%);
  color: rgb(255 248 237 / 88%);
}

.step-list li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: .85rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgb(255 248 237 / 40%);
  border-radius: 50%;
  place-items: center;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 900;
}

.step-list strong { color: var(--cream); }
.step-list a { color: var(--orange); text-underline-offset: .2rem; }

.guidelines-link {
  margin: 1.5rem 0 0;
  font-size: .92rem;
}

.guidelines-link a { color: var(--orange); text-underline-offset: .2rem; }

.awards-cta { margin-top: 2rem; }

.judges {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--cream);
}

.judges-lede { max-width: 44rem; margin: 1rem 0 2.5rem; }

.judge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.judge-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.judge-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .8rem;
}

.judge-photo {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.judge-name {
  margin: 0;
  font-weight: 850;
  font-size: 1.02rem;
}

.judge-name a { color: var(--ink); text-underline-offset: .2rem; }

.judge-title {
  margin: .1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}

.judge-title a { color: var(--muted); text-underline-offset: .2rem; }

.judge-bio {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

.date-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.date-card {
  padding: 1.6rem;
  border-radius: 1rem;
  background: var(--cocoa-900);
  color: var(--cream);
}

.date-card h3 {
  margin: 0 0 .6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -.005em;
}

.date-card p {
  margin: 0;
  font-size: .9rem;
  color: rgb(255 248 237 / 82%);
}

.date-card a { color: var(--orange); text-underline-offset: .2rem; }

.add-to-calendar-label {
  margin: 1rem 0 .5rem;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(255 248 237 / 55%);
}

.date-card .button-small {
  border-color: rgb(255 248 237 / 30%);
  color: var(--cream);
}

.date-card .button-small:hover {
  border-color: var(--orange);
  background: rgb(255 248 237 / 10%);
}

.faq-list {
  max-width: 46rem;
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 1.2rem 2rem 1.2rem 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.02rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange-dark);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 0 0 1.3rem;
  max-width: 40rem;
  color: var(--muted);
}

.c4-cta {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--cream);
}

.c4-cta-card {
  max-width: 42rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) * 1.1);
  background: var(--orange);
}

.c4-cta-card h2 {
  margin: 0 0 .9rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -.01em;
  color: var(--cocoa-950);
}

.c4-cta-card p {
  margin: 0 0 1.5rem;
  color: var(--cocoa-950);
}

.c4-cta-card p a {
  color: inherit;
  font-weight: 850;
  text-underline-offset: .2rem;
}

@media (max-width: 860px) {
  .division-grid,
  .award-grid,
  .judge-grid,
  .date-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .c4-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }

  .c4-hero::before {
    background:
      linear-gradient(0deg, rgb(33 16 11 / 90%) 0%, rgb(33 16 11 / 40%) 55%, rgb(33 16 11 / 55%)),
      url("../images/cccc/hero-c4-scatter.jpg") 60% center / cover no-repeat;
  }
}
