@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap
}

/* Desktop and tablet scale fixed design lengths through rem; phones retain the original scale. */
:root {
  font-size: 90%;
  --display: Arial,Helvetica,sans-serif;
  --support: Inter,Arial,Helvetica,sans-serif;
  --ink: #141411;
  --paper: #f6f4ed;
  --lime: #d5ff00;
  --yellow: #ffdc36;
  --pink: #ef87dd;
  --blue: #85b8ee;
  --green: #49c99a;
  --orange: #ff7848;
  --line: 2px solid var(--ink)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--support)
}

a {
  color: inherit;
  text-decoration: none
}

button,input,select {
  font: inherit;
  color: inherit
}

button {
  cursor: pointer
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #1554c9;
  outline-offset: 0.25rem
}

button:hover,a:not(.brand):hover {
  filter: brightness(.95)
}

.wrap {
  width: 91.25%;
  max-width: 94.375rem;
  margin: auto
}

.sr {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip: rect(0,0,0,0)
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 10;
  background: white;
  padding: 0.75rem
}

.skip:focus {
  top: 0.75rem
}

.top {
  background: var(--paper);
  border-bottom: var(--line)
}

.top .wrap {
  height: 4.0625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem
}

.brand {
  display: inline-block;
  vertical-align: middle;
  width: 9.4375rem;
  max-width: 100%
}

.brand img {
  display: block;
  width: 100%;
  height: auto
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase
}

.nav a:last-child {
  border: var(--line);
  padding: 0.625rem 0.875rem;
  background: var(--lime)
}

.hero {
  --hero-art-width: min(49cqw,100%,68rem);
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  color: var(--paper);
  background: linear-gradient(to bottom,rgba(20,20,17,.12) 56%,rgba(20,20,17,.46) 80%,rgba(20,20,17,.35)),url("../images/detty-december-hero-photo.jpg") center 78% / cover no-repeat var(--ink);
  border-bottom: var(--line);
  padding: clamp(3.5rem,9.1vw,12rem) 0 clamp(2.5rem,6.2vw,8rem)
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")
}

.hero h1 {
  display: flex;
  justify-content: center;
  margin: 0
}

.hero-title-art {
  display: block;
  flex: none;
  width: var(--hero-art-width);
  height: auto;
  margin-block-end: calc(var(--hero-art-width) * -.0302)
}

.hero h2 {
  margin: clamp(.85rem,1.85vw,2.5rem) auto 0;
  max-inline-size: 48ch;
  color: #F7F4ED;
  font-family: var(--display);
  font-size: calc(clamp(1.75rem,3.25vw,3.4rem) * .64);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.625rem;
  border: var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase
}

.ticker {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--line);
  overflow: hidden;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap
}

.ticker>div {
  width: max-content;
  display: flex;
  animation: move var(--ticker-duration,28s) linear infinite
}

.ticker-group {
  display: flex
}

.ticker-unit {
  flex: none;
  padding-inline-end: 1.65em
}

@keyframes move {
  to {
    transform: translateX(-50%)
  }
}

.section {
  padding: 3.375rem 0
}

.sectionhead {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.25rem
}

.sectionhead h2 {
  font-family: var(--display);
  font-size: clamp(2.75rem,7.5vw,6.5rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .87;
  margin: 0;
  text-transform: uppercase
}

.sectionhead p {
  margin: 0;
  max-width: 20.625rem;
  font-size: 0.9375rem;
  line-height: 1.45
}

.destinations {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border: 2px solid transparent
}

.destination {
  position: relative;
  background: var(--tile);
  border: 0;
  border-right: var(--line);
  min-height: 8.875rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.875rem;
  justify-content: space-between;
  gap: 0.875rem
}

@media (width > 810px) {
  .destination:nth-child(4n) {
    border-right: 0
  }
  .destination:nth-child(n+5) {
    border-top: var(--line)
  }
}

.destination strong {
  overflow-wrap: anywhere
}

/* Retain the grid's border space and paint exterior edges only beside cards. */
.destination::after {
  content: "";
  position: absolute;
  inset: -2px -2px var(--tile-bottom,0) var(--tile-left,0);
  border: 0 solid var(--ink);
  border-width: var(--tile-top-line,0) var(--tile-right-line,0) var(--tile-bottom-line,0) var(--tile-left-line,0);
  pointer-events: none
}

@media (width > 810px) {
  .destination:nth-child(-n+4) {
    --tile-top-line: 2px
  }
  .destination:nth-child(4n+1) {
    --tile-left: -2px;
    --tile-left-line: 2px
  }
  .destination:nth-child(4n) {
    --tile-right-line: 2px
  }
  .destination:nth-last-child(-n+4) {
    --tile-bottom: -2px;
    --tile-bottom-line: 2px
  }
}

@media (max-width:810px) {
  .destination:nth-child(-n+2) {
    --tile-top-line: 2px
  }
  .destination:nth-child(2n+1) {
    --tile-left: -2px;
    --tile-left-line: 2px
  }
  .destination:nth-child(2n) {
    --tile-right-line: 2px
  }
  .destination:nth-last-child(-n+2) {
    --tile-bottom: -2px;
    --tile-bottom-line: 2px
  }
}

@media (min-width:811px) {
  .destination {
    min-height: clamp(10rem,12.3vw,12.8125rem)
  }
  .destination strong {
    max-inline-size: 9ch
  }
}

.desttop,.destbottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.375rem
}

.desttop {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase
}

.arrow {
  font-size: 1.5rem;
  line-height: 1
}

.destination strong {
  font-family: var(--display);
  font-size: clamp(1.5625rem,3.3vw,3.0625rem);
  letter-spacing: -.07em;
  line-height: .9;
  text-transform: uppercase
}

.destbottom {
  font-size: 0.75rem;
  font-weight: 700
}

.calendar {
  border-top: var(--line);
  padding-top: 2.25rem
}

.calendar .sectionhead h2 {
  font-size: clamp(3rem,9vw,7.875rem)
}

.calendar .sectionhead {
  margin-bottom: 1.5625rem
}

/* Calendar filters and view controls */
.filterbar {
  border: var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--yellow);
  padding: 0.625rem;
  gap: 0.625rem
}

.pills,.controls,.view {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  flex-wrap: wrap
}

.pill,.view button {
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 6.1875rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap
}

.pill[aria-pressed=true],.view button[aria-pressed=true] {
  background: var(--ink);
  color: var(--paper)
}

.date-control {
  position: relative;
  width: 9.25rem;
  min-width: 0
}

.date-trigger,.search-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 6.1875rem;
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 500
}

.date-trigger {
  justify-content: space-between
}

.date-trigger span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.controls svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.date-trigger svg {
  transition: transform .16s ease
}

.date-trigger[aria-expanded=true] svg {
  transform: rotate(180deg)
}

.search-control {
  width: 9.625rem
}

.search-control input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  outline: none
}

.search-control:focus-within,.date-trigger:focus-visible,.date-option:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0.125rem
}

.controls .search-control input:focus-visible {
  outline: none
}

.date-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 1.125rem;
  background: var(--paper);
  box-shadow: 0 0.3125rem 0.875rem rgba(20,20,17,.12);
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity .16s ease,transform .16s ease,visibility 0s linear .16s
}

.date-trigger[aria-expanded=true]+.date-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s
}

.date-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 6.1875rem;
  cursor: pointer;
  white-space: nowrap
}

.date-option+.date-option {
  margin-top: 0.25rem
}

.date-option:hover {
  background: rgba(20,20,17,.07)
}

.date-option[aria-selected=true] {
  background: var(--ink);
  color: var(--paper)
}

.date-option:not([aria-selected=true]) svg {
  visibility: hidden
}

@media (prefers-reduced-motion:reduce) {
  .date-menu,.date-trigger svg {
    transition: none
  }
}

.resultmeta {
  display: flex;
  justify-content: flex-end;
  margin: 0.625rem 0
}

.monthgroup {
  margin: 0 0 1.625rem
}

.month {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  text-transform: uppercase;
  font-weight: 900;
  gap: 0.625rem
}

.month strong {
  font-family: var(--display);
  font-size: clamp(1.3125rem,3vw,2.4375rem);
  letter-spacing: -.045em
}

.month span {
  font-size: 0.6875rem;
  letter-spacing: .06em
}

.eventgrid {
  --event-columns: 3;
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(var(--event-columns),minmax(0,1fr));
  border-left: var(--line)
}

.event {
  background: var(--tile);
  border-right: var(--line);
  border-bottom: var(--line);
  min-width: 0;
  padding: 0.875rem 1rem 0.75rem;
  position: relative;
  isolation: isolate
}

.event:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")
}

.eventtop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.625rem
}

.date {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.08em
}

.date b {
  font-size: clamp(4.14625rem,7.49vw,6.55375rem)
}

.date span {
  font-size: 1.136875rem;
  letter-spacing: -.03em
}

.place {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 800;
  text-align: right;
  max-width: 8.4375rem
}

.event h3 {
  font-family: var(--display);
  font-size: clamp(1.375rem,3vw,2.5rem);
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 1.375rem 0 0.75rem;
  font-weight: 900;
  overflow-wrap: anywhere
}

.eventfoot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  border-top: 0.0625rem solid var(--ink);
  padding-top: 0.5625rem
}

.detailbtn {
  background: none;
  border: 0;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.125rem
}

.detailbtn b {
  font-size: 1.375rem;
  line-height: 1
}

.listview .eventgrid {
  grid-template-columns: 1fr
}

.listview .event {
  background: var(--paper);
  padding: 0.75rem 1rem;
  border-left: 0.75rem solid var(--tile)
}

.listview .eventtop {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: start;
  gap: 0.5rem
}

.listview .date b {
  font-size: 2.875rem
}

.listview .date span {
  font-size: 0.875rem
}

.listview .place {
  text-align: left
}

.listview .event h3 {
  margin: 0;
  font-size: clamp(1.125rem,2.8vw,2rem)
}

.listview .eventfoot {
  border: 0;
  margin: 0;
  padding: 0;
  justify-content: flex-end
}

.empty {
  border: var(--line);
  padding: 2.25rem;
  background: var(--pink)
}

.empty h3 {
  font-family: var(--display);
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -.05em
}

/* Season panel and footer */
.about {
  border-top: var(--line);
  background: radial-gradient(ellipse at 14% 20%,#f9f9e5 0,transparent 48%),radial-gradient(ellipse at 82% 18%,#fbf971 0,transparent 40%),radial-gradient(ellipse at 55% 95%,#f8b4db 0,transparent 54%),#a8e7de;
  padding: 2.5rem 0
}

.about .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 2.5rem
}

.about h2 {
  font-family: var(--display);
  font-size: clamp(2.625rem,7vw,6.125rem);
  line-height: .88;
  letter-spacing: -.075em;
  margin: 0;
  text-transform: uppercase
}

.about p {
  font-size: 1.1875rem;
  line-height: 1.35;
  max-width: 26.25rem
}

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5625rem 0
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem
}

@media (max-width:810px) {
  .wrap {
    width: 95%
  }
  .eventgrid {
    --event-columns: 2
  }
  .destinations {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .destination:nth-child(2n) {
    border-right: 0
  }
  .destination:nth-child(n+3) {
    border-top: var(--line)
  }
  .nav {
    gap: 0.75rem
  }
  .section {
    padding: 2.375rem 0
  }
}

@media (max-width:600px) {
  .wrap {
    width: calc(100% - 1.5rem)
  }
  .top .wrap {
    height: 3.375rem
  }
  .brand {
    width: 7.8125rem
  }
  .nav a:not(:last-child) {
    display: none
  }
  .nav a:last-child {
    font-size: 0.625rem;
    padding: 0.5rem
  }
  .hero {
    --hero-art-width: min(100%,max(49cqw,21rem));
    background-position: center,43% 70%;
    padding: clamp(2.5rem,10vw,3.5rem) 0 clamp(2.5rem,10vw,3.5rem)
  }
  .hero h2 {
    font-size: calc(clamp(1.4rem,5.7vw,2rem) * .64)
  }
  .hero h2 br {
    display: none
  }
  .sectionhead {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem
  }
  .sectionhead h2 {
    font-size: 3.3125rem
  }
  .calendar .sectionhead h2 {
    font-size: 4rem
  }
  .destination {
    min-height: 7.25rem;
    padding: 0.625rem
  }
  .destination strong {
    font-size: 1.875rem
  }
  .filterbar {
    padding: 0.5rem
  }
  .controls {
    width: 100%
  }
  .date-control,.search-control {
    flex: 1;
    min-width: 0
  }
  .pills {
    gap: 0.3125rem
  }
  .pill {
    padding: 0.4375rem 0.5625rem;
    font-size: 0.6875rem
  }
  .resultmeta {
    font-size: 0.625rem
  }
  .eventgrid {
    --event-columns: 2
  }
  .event {
    padding: 0.625rem
  }
  .date b {
    font-size: 3.4775rem
  }
  .date span {
    font-size: 0.8025rem
  }
  .eventtop {
    flex-wrap: wrap;
    gap: 0.5rem
  }
  .place {
    text-align: left;
    font-size: 0.625rem;
    max-width: none
  }
  .event h3 {
    font-size: 1.375rem;
    margin: 0.75rem 0
  }
  .detailbtn {
    font-size: 0.5625rem;
    gap: 0.1875rem
  }
  .detailbtn b {
    font-size: 1.125rem
  }
  .listview .event {
    padding: 0.625rem
  }
  .listview .eventfoot {
    grid-column: 2;
    justify-content: flex-start
  }
  .listview .event h3 {
    font-size: 1.3125rem
  }
  .listview .date b {
    font-size: 2.375rem
  }
  .about .wrap {
    grid-template-columns: 1fr;
    gap: 0.75rem
  }
  .about h2 {
    font-size: 3.5625rem
  }
  .footer .wrap {
    align-items: flex-start
  }
}

@media (max-width:350px) {
  .eventgrid {
    --event-columns: 1
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
  .ticker>div {
    animation: none
  }
}

/* Late responsive typography overrides */
.about .wrap>div {
  min-width: 0
}

.about h2 {
  overflow-wrap: normal
}

@media (max-width:600px) {
  .about h2 {
    font-size: clamp(2rem,12.6vw,3.5625rem)
  }
  .event h3 {
    font-size: 1.25rem
  }
  .event:has([data-detail="event-accra-freetheyouth-rave"]) h3 {
    font-size: 1.125rem
  }
  .calendar .sectionhead h2 {
    font-size: clamp(2.6875rem,15vw,4rem)
  }
  .destination strong {
    font-size: clamp(1.4375rem,7.6vw,1.875rem)
  }
}

.text-symbol::after {
  display: none
}

@media (hover:none) and (pointer:coarse) {
  .text-symbol>span {
    display: none
  }
  .text-symbol::after {
    display: inline;
    content: attr(data-text-symbol);
    font-family: Inter,Arial,"Segoe UI Symbol","Apple Symbols","Noto Sans Symbols 2","Noto Sans Symbols",sans-serif;
    font-variant-emoji: text
  }
}

.design-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem;
  background: var(--yellow);
  font-size: 0.859375rem;
  line-height: 1.1875rem;
  font-weight: 500
}

.design-credit img {
  display: block;
  width: 5.15625rem;
  height: auto
}

/* Only the details row contributes additional height when expanded. */
.event-main {
  display: grid;
  grid-template-rows: 4.875rem minmax(0,1fr) auto;
  height: clamp(17.75rem,18.9vw,18.5rem);
  container-type: inline-size
}

@media (min-width:811px) and (max-width:1008px) {
  .event-main {
    height: 19rem
  }
}

.event-main .eventtop {
  min-width: 0
}

.event-main .eventfoot {
  margin-top: 0;
  min-height: 2.25rem;
  gap: 0
}

@container (width < 18.125rem) {
  .event-main .eventfoot {
    min-height: 3.375rem
  }
}

@container (width < 13.4375rem) {
  .event-main .eventtop {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start
  }
}

.event-info,.contact-submit {
  border: 1.5px solid var(--ink);
  border-radius: 6.1875rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600
}

.event-info {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5625rem;
  min-height: 1.625rem;
  font-size: 0.6875rem;
  white-space: nowrap
}

.event-info:disabled {
  opacity: 1;
  cursor: default
}

.event-info:disabled:hover {
  filter: none
}

.event-info:any-link:hover,.contact-submit:hover {
  background: #34342e;
  filter: none
}

.event-info:any-link:active,.contact-submit:active {
  transform: scale(.97)
}

.event-info svg,.contact-close svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.detailbtn b {
  transition: transform .275s ease
}

.detailbtn[aria-expanded=true] b {
  transform: rotate(45deg)
}

.event-details {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: 0fr;
  opacity: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  transition: grid-template-rows .3s ease,opacity .3s ease
}

.event-details.open {
  grid-template-rows: 1fr;
  opacity: 1
}

.event-details-inner {
  min-height: 0;
  overflow: hidden
}

.event-details-copy {
  padding: 0.625rem 0 0.125rem
}

.listview .event-main {
  height: 5rem;
  grid-template-columns: 12.5rem minmax(0,1fr) 11.25rem;
  grid-template-rows: 1fr;
  gap: 0.75rem;
  align-items: center
}

.listview .event-main .eventfoot {
  min-height: 2.75rem;
  justify-content: space-between
}

@media (max-width:810px) {
  .event-main {
    height: 16.875rem
  }
  .listview .event-main {
    grid-template-columns: 8.75rem minmax(0,1fr) 11.25rem
  }
}

@media (max-width:600px) {
  .event-main {
    height: 16.25rem;
    grid-template-rows: 4.25rem minmax(0,1fr) auto
  }
  .event-info {
    padding: 0 0.375rem;
    font-size: 0.625rem
  }
  .listview .event-main {
    height: 7.0625rem;
    grid-template-columns: 5.125rem minmax(0,1fr);
    grid-template-rows: 3.75rem 2.8125rem;
    gap: 0.5rem
  }
  .listview .event-main .eventfoot {
    grid-column: 1/-1
  }
}

@media (max-width:350px) {
  .event-main {
    height: 13.4375rem
  }
}

/* Contact dialog and validation states */
#contact-trigger {
  border-radius: 6.1875rem
}

.contact-dialog {
  width: min(30rem,calc(100% - 1.75rem));
  max-height: calc(100% - 1.75rem);
  margin: auto;
  padding: clamp(1.25rem,5vw,2rem);
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--support);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity .22s ease,transform .22s ease,display .22s allow-discrete,overlay .22s allow-discrete
}

.contact-dialog[open] {
  opacity: 1;
  transform: none
}

.contact-dialog::backdrop {
  background: rgba(20,20,17,.48);
  opacity: 0;
  transition: opacity .22s ease,display .22s allow-discrete,overlay .22s allow-discrete
}

.contact-dialog[open]::backdrop {
  opacity: 1
}

@starting-style {
  .contact-dialog[open] {
    opacity: 0;
    transform: translateY(0.5rem)
  }
  .contact-dialog[open]::backdrop {
    opacity: 0
  }
}

.contact-dialog h2 {
  margin: 0 2.375rem 0.5rem 0;
  font-size: clamp(1.625rem,6vw,2.125rem);
  letter-spacing: -.045em
}

#contact-intro {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5
}

.contact-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.125rem;
  height: 2.125rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper)
}

.contact-close svg {
  width: 1rem;
  height: 1rem
}

#contact-form {
  display: grid;
  gap: 0.875rem
}

#contact-form label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600
}

#contact-form input,#contact-form textarea {
  appearance: none;
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 0.625rem 0.8125rem;
  font: 400 1rem/1.4 var(--support)
}

#contact-form input {
  border-radius: 6.1875rem
}

#contact-form textarea {
  border-radius: 1rem;
  resize: vertical
}

.contact-dialog :focus-visible,#contact-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0.1875rem
}

.field-error,.contact-status {
  font-size: 0.75rem;
  line-height: 1.4
}

.field-error:empty {
  display: none
}

.contact-status {
  margin: 0
}

.contact-status:empty {
  margin-top: -0.875rem
}

#contact-form [aria-invalid=true] {
  border-width: 0.125rem
}

.contact-submit {
  justify-self: start;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem
}

@media (prefers-reduced-motion:reduce) {
  .detailbtn b,.event-details,.contact-dialog,.contact-dialog::backdrop {
    transition: none
  }
}

/* Remove independent-columns from #results to restore shared row heights. */
.independent-columns:not(.listview) .eventgrid {
  position: relative;
  align-items: start;
  border-left-color: transparent
}

.independent-columns:not(.listview) .event {
  grid-row: 1;
  grid-column: var(--event-column);
  margin-block-start: var(--event-offset);
  border-color: transparent
}

/* Paint the card outlines as one path so coincident edges share the same pixels. */
.event-grid-outline {
  display: none
}

.independent-columns:not(.listview) .event-grid-outline {
  display: block;
  position: absolute;
  z-index: 1;
  top: -2px;
  left: -2px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
  overflow: visible;
  fill: var(--ink);
  shape-rendering: crispEdges
}

@media (max-width:600px) {
  :root {
    font-size: 100%
  }
}

.date-range {
  gap: .3rem;
  white-space: nowrap
}

.date-range b,.listview .date-range b {
  font-size: clamp(1.45rem,3vw,2.6rem)
}

.date-range span,.listview .date-range span {
  font-size: .75rem
}

.listview .date-range b {
  font-size: 1.45rem
}

@media (max-width:600px) {
  .date-range b,.listview .date-range b {
    font-size: 1.4rem
  }
  .date-range span,.listview .date-range span {
    font-size: .62rem
  }
  .listview .cross-month {
    display: grid;
    grid-template-columns: repeat(3,max-content);
    align-items: baseline;
    row-gap: .22rem
  }
  .listview .cross-month b:nth-of-type(2) {
    grid-column: 1
  }
}

/* Keep the existing desktop section depth when the heading loses a line. */
@media (width > 600px) {
  .about .wrap {
    grid-template-columns: minmax(0,1fr) clamp(17.75rem,42%,30.5rem);
    min-height: max(calc(clamp(2.625rem,7vw,6.125rem) * 2.64),9.86rem)
  }
  .about p {
    max-width: none
  }
  .about .wrap>div:first-child {
    container-type: inline-size
  }
  .about h2 {
    font-size: min(clamp(2rem,6.3vw,5.5rem),10.25cqw)
  }
}

@media (width > 600px) and (width <= 849px) {
  .about .wrap {
    min-height: 11.46rem
  }
}

@media (width > 600px) and (width <= 655px) {
  .about .wrap {
    min-height: 13.06rem
  }
}

@media (max-width:600px) {
  .about p {
    max-width: 30.5rem
  }
}

.hero-photo-credit {
  position: absolute;
  right: clamp(0.625rem,1.2vw,1.25rem);
  bottom: 0.5rem;
  margin: 0;
  color: #F7F4ED;
  font-family: var(--support);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
  text-shadow: 0 1px 3px var(--ink)
}
