/*
  Public OPEN CITY page (/open-city/). Mostly built from the shared event
  styles (events.css, learn.css); this file adds what is particular to it.
*/

/* ---------- Hero ---------- */

.ol-hero .ev-featured__inner {
  min-height: clamp(27rem, 46vw, 42rem);
  padding-block: clamp(2.5rem, 5.5vw, 5rem);
}

/* the city-in-hand cut-out, sitting on the bottom-left of the band */
.ol-hero__art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(45vw, 44rem);
  height: auto;
}

.ol-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.ol-cta {
  padding: 1em 1.9em;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  color: var(--des-ink);
  border-color: var(--des-ink);
  border-radius: 0.55em;
}

.ol-cta--dark:hover,
.ol-cta--dark:focus-visible {
  color: var(--des-blue);
  border-color: var(--des-blue);
}

.ol-hero__datenote {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(0.7rem, 0.95vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}


/* ---------- What it is ---------- */

.ol-about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.ol-prose p {
  max-width: 34em;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}

.ol-facts {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ol-facts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--des-white);
  border: 2px solid var(--des-blue);
  border-radius: 0.9rem;
  box-shadow: 0.35rem 0.35rem 0 rgba(58, 79, 224, 0.12);
}

.ol-facts strong {
  flex: 0 0 auto;
  min-width: 2.2em;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1;
  color: var(--des-blue);
}

.ol-facts span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


/* ---------- Categories ---------- */

.ol-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.75rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.ol-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(13rem, 21vw, 18rem);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  overflow: hidden;
  background: var(--des-white);
  border: 2px solid var(--des-blue);
  border-radius: 1rem;
  transition: translate 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.ol-cat:hover {
  translate: 0 -0.4rem;
  box-shadow: 0 1.4rem 2rem -1.2rem rgba(36, 52, 176, 0.45);
}

.ol-cat:nth-child(2) {
  background: var(--des-lime);
  border-color: var(--des-ink);
}

.ol-cat__letter {
  position: absolute;
  top: -0.12em;
  right: 0.12em;
  font-size: clamp(6rem, 13vw, 11rem);
  line-height: 1;
  color: var(--des-blue);
  opacity: 0.16;
  pointer-events: none;
}

.ol-cat h3 {
  position: relative;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.ol-cat p {
  position: relative;
  max-width: 20em;
  margin: 0;
  line-height: 1.45;
}

.ol-cat .ol-cat__lock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--des-blue-deep);
}

.ol-cat__lock svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ol-locked {
  max-width: 44em;
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  color: #4a4a55;
}


/* ---------- How it works ---------- */

.ol-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: clamp(1.75rem, 3.5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ol-steps li {
  position: relative;
}

/* dashes joining one number to the next */
.ol-steps li + li::before {
  content: "";
  position: absolute;
  top: 1.95rem;
  right: calc(100% - 0.2rem);
  width: calc(100% - 4.6rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--des-ink) 0 0.5rem, transparent 0.5rem 1.1rem);
}

.ol-steps__num {
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--des-blue);
  background: var(--des-lime);
  border: 2px solid var(--des-blue);
  border-radius: 50%;
}

.ol-steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1;
  text-transform: uppercase;
}

.ol-steps p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ol-center {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}


/* ---------- Questions ---------- */

.ol-narrow {
  max-width: calc(52rem + 2 * var(--des-gutter));
}

.ol-faq {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 2px solid var(--des-blue);
}

.ol-faq details {
  border-top: 2px solid var(--des-blue);
}

.ol-faq summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.ol-faq summary::after {
  content: "+";
  position: absolute;
  top: 0.75rem;
  right: 0.25rem;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--des-blue);
  transition: rotate 0.4s var(--ease-out);
}

.ol-faq details[open] summary::after { rotate: 45deg; }

.ol-faq p {
  max-width: 40em;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.ol-contact {
  margin: 1.5rem 0 0;
}

.ol-contact a {
  font-weight: 600;
  color: var(--des-blue-deep);
}


/* ---------- Sign up band ---------- */

.ol-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6.5rem);
  text-align: center;
}

.ol-final h2 {
  margin: 0 0 1rem;
  line-height: 1;
}

.ol-final .ev-featured__big,
.ol-final .ev-featured__script {
  display: inline;
}

.ol-final p {
  max-width: 34em;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.ol-final .ol-hero__actions {
  justify-content: center;
}


/* ---------- Tablets and phones ---------- */

@media (max-width: 59.99em) {
  .ol-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ol-steps li {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    column-gap: 1.1rem;
  }

  .ol-steps__num {
    grid-row: 1 / 3;
    margin: 0;
  }

  .ol-steps h3 { align-self: end; }

  .ol-steps li + li::before {
    top: -1.25rem;
    right: auto;
    left: 1.95rem;
    width: 2px;
    height: 1rem;
    background: repeating-linear-gradient(var(--des-ink) 0 0.3rem, transparent 0.3rem 0.55rem);
  }
}

@media (max-width: 47.99em) {
  .ol-hero {
    display: flex;
    flex-direction: column;
  }

  .ol-hero .ev-featured__inner {
    min-height: 0;
    padding-block: 2.5rem 1.5rem;
  }

  .ol-hero__art {
    position: static;
    order: 2;
    width: 94%;
  }

  .ol-hero__actions .ev-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .ol-about {
    grid-template-columns: 1fr;
  }

  .ol-cats {
    grid-template-columns: 1fr;
  }

  .ol-cat {
    min-height: 0;
  }
}


/* ---------- Small fixes ---------- */

/* month above the day, like the other event bands */
.ol-hero .ev-featured__date > span {
  display: block;
}

.ol-final .ev-featured__script {
  margin-left: 0.2em;
}
