/*
 * Aviatory — events pages (pages/events): the virtual aviation side. Loaded before base.css.
 * evh-: the events hero; cm-: the events page and the flight strip; ofp-/ev-: an event's
 * briefing; fpl-/rg-: its sign-up screen.
 */

/* ───────── The events hero: screenshots from our own flights, taking turns (events.js) ───────── */
.evh {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* As tall as the photos are for the width (1920 × 860), so the aircraft stay above the text. */
  min-height: max(560px, 44.8vw);
  overflow: hidden;
  background: #050d16;
  border-bottom: 1px solid rgba(64, 140, 220, 0.18);
}
.evh-photos {
  position: absolute;
  inset: 0;
}
/* Stacked; the active one fades in. Opacity only, so it runs on the compositor. */
.evh-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1s linear;
}
.evh-photo.is-active {
  opacity: 1;
}
/* The text sits on the dark lower left; the photo stays clear above and to the right. */
.evh::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(7, 25, 41, 0.97) 0%, rgba(7, 25, 41, 0.72) 34%, rgba(7, 25, 41, 0) 64%),
    linear-gradient(to right, rgba(7, 25, 41, 0.78) 0%, rgba(7, 25, 41, 0) 58%);
}
.evh-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 36px 52px;
}
/* The breadcrumb on the sky, at the top; the rest at the bottom. */
.evh-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 36px 0;
}
.evh .bp-crumb {
  margin: 0;
}
.evh-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--orange);
}
.evh-title {
  margin: 10px 0 14px;
  font-family: "Space Grotesk", var(--font-sans);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  -webkit-font-smoothing: antialiased;
}
.evh-lede {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.evh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.evh-caption {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 720px) {
  .evh-lede {
    font-size: 15px;
  }
  /* Phones: the photo is a band at the top and the text sits under it, on the page colour. */
  .evh {
    display: block;
    min-height: 0;
    background: #071929;
  }
  .evh-photos {
    bottom: auto;
    height: 300px;
  }
  .evh-photo {
    object-position: 30% top;
  }
  .evh::after {
    background: linear-gradient(to bottom, rgba(7, 25, 41, 0) 150px, #071929 300px);
  }
  .evh-top {
    padding: 22px 20px 0;
  }
  .evh-inner {
    padding: 215px 20px 36px;
  }
}

.cm-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 36px 104px;
}
.cm-section + .cm-section {
  margin-top: 88px;
}
.cm-head {
  margin-bottom: 26px;
}
.cm-head .section-title {
  margin: 8px 0 0;
  font-size: 34px;
}
/* The kind of event, in its accent. */
.cm-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent, var(--brand));
}
.cm-none {
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

/* ───────── The next event: an ATC flight strip ───────── */
.cm-strip {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #11293d, #0c2132);
}
.cm-strip::before {
  content: "";
  background: var(--accent);
}
.cm-strip-body {
  padding: 22px 28px 24px;
}
.cm-strip-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}
.cm-strip-top time {
  color: var(--orange);
}
.cm-dot {
  margin: 0 10px;
  color: var(--text-dimmer);
}
.cm-route {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 22px 0 24px;
}
.cm-end {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cm-icao {
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-bright);
}
.cm-city {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
/* The leg between them: a dashed track with the aircraft on it. */
.cm-leg {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.cm-leg::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px dashed var(--line-3);
}
.cm-leg svg {
  position: relative;
  padding: 0 10px;
  box-sizing: content-box;
  background: #0f2638;
}
.cm-strip-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cm-strip-foot .cm-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}
.cm-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}
.cm-until {
  padding: 4px 9px;
  border: 1px solid rgba(207, 154, 74, 0.45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--orange);
}
.cm-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

/* ───────── Upcoming events: a card with a photo each ───────── */
.cm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--accent, var(--brand));
  background: #091a2a;
  transition: border-color 0.2s, transform 0.2s;
}
.cm-card:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.cm-card-photo {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #050d16;
}
.cm-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cm-card:hover .cm-card-photo img {
  transform: scale(1.04);
}
/* A dark foot, so the type reads on any photo. */
.cm-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 25, 41, 0.78) 0%, rgba(7, 25, 41, 0) 55%);
}
.cm-card-photo .cm-type,
.cm-card-photo .cm-status {
  position: absolute;
  z-index: 1;
  padding: 4px 8px;
  background: rgba(7, 25, 41, 0.82);
}
.cm-card-photo .cm-type {
  left: 14px;
  bottom: 12px;
}
.cm-card-photo .cm-status {
  top: 12px;
  right: 12px;
}
.cm-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}
.cm-card-when {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.cm-card .cm-name {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text-bright);
}
.cm-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
/* The whole card and the whole log row are the link: the name's ::after covers it, so a finger needs no aim. */
.cm-card .cm-name::after,
.cm-log .cm-name::after {
  content: "";
  position: absolute;
  inset: 0;
}
.cm-log li {
  position: relative;
}
.cm-log li:hover {
  background: rgba(255, 255, 255, 0.025);
}
.cm-time {
  color: var(--orange);
}
.cm-log .cm-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-bright);
}
.cm-route-text {
  color: var(--text-bright);
}
.cm-net {
  font-size: 11px;
  color: var(--text-mute);
}
.cm-status {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.cm-status.is-next {
  border-color: rgba(95, 168, 140, 0.5);
  color: var(--green);
}
.cm-status.is-cancelled {
  border-color: rgba(190, 58, 52, 0.5);
  color: var(--brand);
}

/* ───────── How we fly ───────── */
.cm-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cm-way {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 22px 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: #091a2a;
}
/* The card's photo fills it from behind, under a dark wash that keeps the text readable. */
.cm-way-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-way::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 25, 41, 0.55) 0%, rgba(7, 25, 41, 0.9) 100%);
}
.cm-way h3 {
  margin: 12px 0 8px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}
.cm-way p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.cm-kit {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  margin-top: 28px;
}
.cm-kit-label {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}
.cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cm-chips li {
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ───────── Logbook ───────── */
.cm-log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.cm-log li {
  display: grid;
  grid-template-columns: 130px 130px minmax(0, 1fr) 150px 140px;
  align-items: center;
  gap: 0 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.cm-count {
  text-align: right;
  color: var(--text);
}

/* ───────── Join ───────── */
.cm-join {
  padding: 40px 40px 44px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #11293d, #0c2132);
}
.cm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cm-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brand);
}
.cm-steps h3 {
  margin: 10px 0 6px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
}
.cm-steps p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mute);
}
.cm-join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ───────── Narrower ───────── */
@media (max-width: 1000px) {
  .cm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Phones: the cards and log entries stack; the strip's codes shrink. */
@media (max-width: 720px) {
  .cm-page {
    padding: 48px 20px 72px;
  }
  .cm-section + .cm-section {
    margin-top: 64px;
  }
  .cm-head .section-title {
    font-size: 28px;
  }
  .cm-strip-body {
    padding: 18px 18px 20px;
  }
  .cm-route {
    gap: 14px;
  }
  .cm-icao {
    font-size: 32px;
  }
  .cm-strip-actions {
    margin-left: 0;
    width: 100%;
  }
  .cm-strip-actions .btn {
    flex: 1;
    justify-content: center;
    padding-left: 18px;
    padding-right: 18px;
  }
  .cm-ways,
  .cm-steps,
  .cm-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .cm-log li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .cm-log .cm-name {
    grid-column: 1 / -1;
  }
  .cm-log .cm-type,
  .cm-log .cm-route-text {
    display: none;
  }
  .cm-join {
    padding: 28px 20px 30px;
  }
}

/* ═════════ An event's page ═════════ */
.ev-layout,
.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 40px;
}

/* ───────── The briefing: an operational flight plan (OFP) sheet ───────── */
.ofp {
  min-width: 0;
  border: 1px solid var(--line-2);
  background: #0a1c2c;
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.7);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text);
}
.ofp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(to right, rgba(70, 145, 215, 0.08), rgba(255, 255, 255, 0.01));
}
.ofp-tag {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.ofp-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-bright);
}
.ofp-rel {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.ofp-id {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 12px 22px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-bright);
}
.ofp-sec {
  padding: 18px 22px 20px;
}
.ofp-sec + .ofp-sec {
  border-top: 1px dashed var(--line-2);
}
/* "-- NAVLOG ------": a section rule, as printed. */
.ofp-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--orange);
}
.ofp-h::before {
  content: "--";
  letter-spacing: 0;
  color: var(--text-dimmer);
}
.ofp-h::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--line-2);
}
.ofp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.ofp-grid div {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.ofp-grid .is-wide {
  grid-column: span 2;
}
.ofp-grid dt {
  flex: none;
  width: 46px;
  padding-top: 1px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.ofp-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-bright);
}

/* The route between the airports, to copy. */
.ofp-routebox {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
  background: var(--inset);
}
.ofp-ad {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--orange);
}
.ofp-route {
  flex: 1;
  min-width: 0;
  padding: 12px 2px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  word-spacing: 0.3em;
  overflow-wrap: anywhere;
  color: var(--text-bright);
}
.ofp-copy {
  flex-shrink: 0;
  min-width: 88px;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--blue);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.ofp-copy:hover {
  background: rgba(70, 145, 215, 0.1);
}
.ofp-copy.is-done {
  color: var(--green);
}

.ofp-scroll {
  overflow-x: auto;
}
.ofp-navlog {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ofp-navlog th {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: left;
  color: var(--text-dim);
}
.ofp-navlog td {
  padding: 7px 10px;
  border-bottom: 1px dotted var(--line);
  white-space: nowrap;
  color: var(--text);
}
.ofp-navlog td:nth-child(2) {
  color: var(--text-bright);
}
.ofp-navlog th:nth-child(n + 4),
.ofp-navlog td:nth-child(n + 4) {
  text-align: right;
}
.ofp-navlog td:last-child {
  color: var(--orange);
}

.ofp-fpl {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--blue);
  background: rgba(70, 145, 215, 0.05);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-bright);
}
.ofp-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--text-dim);
}

.ofp-notices,
.ofp-schedule {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ofp-notices li,
.ofp-schedule li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
}
.ofp-notices li + li {
  margin-top: 12px;
}
.ofp-schedule li + li {
  margin-top: 6px;
}
.ofp-ref,
.ofp-schedule time {
  color: var(--orange);
}
.ofp-notices p {
  margin: 0;
  text-transform: uppercase;
  color: var(--text-bright);
}
.ofp-schedule span {
  text-transform: uppercase;
  color: var(--text-bright);
}

.ofp-wx {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ofp-wx a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  letter-spacing: 0.1em;
  color: var(--text-bright);
  transition: border-color 0.15s;
}
.ofp-wx a:hover {
  border-color: rgba(70, 145, 215, 0.5);
}
.ofp-wx span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.ofp-dispatch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ofp-dispatch .btn {
  padding: 12px 20px;
  font-size: 11.5px;
}
.ofp-end {
  padding: 14px 22px 18px;
  border-top: 1px dashed var(--line-2);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--text-dim);
}
.ofp-end::before {
  content: "*** ";
}
.ofp-end::after {
  content: " ***";
}
.ofp-pending {
  padding: 36px 22px 40px;
}
.ofp-pending strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--orange);
}
.ofp-pending p {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--text-mute);
}

/* ───────── Who is flying ───────── */
.ev-aside,
.rg-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ev-card {
  padding: 22px 24px 24px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #11293d, #0c2132);
}
.ev-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}
.ev-slots {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-bright);
}
.ev-bar {
  height: 4px;
  margin-top: 8px;
  background: var(--line-2);
}
.ev-bar span {
  display: block;
  width: var(--fill);
  height: 100%;
  background: var(--green);
}
.ev-roster {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.ev-roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 60px;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.ev-callsign {
  color: var(--text-bright);
}
.ev-net {
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.ev-empty {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
}
.ev-back {
  margin-top: 72px;
}

/* ═════════ The sign-up screen: an ICAO flight plan form ═════════ */
.fpl {
  border: 1px solid var(--line-2);
  background: #0a1c2c;
  font-family: var(--font-mono);
}
.fpl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(to right, rgba(70, 145, 215, 0.08), rgba(255, 255, 255, 0.01));
}
.fpl-title {
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-bright);
}
.fpl-title span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--blue);
}

/* A row of boxes; the 1px gaps show the background through as the form's ruling. */
.fpl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0 22px;
  border: 1px solid var(--line-2);
  background: var(--line-2);
}
.fpl-head + .fpl-row {
  margin-top: 22px;
}
.fpl-row + .fpl-row {
  border-top: 0;
}
.fpl-box {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 8px 12px 10px;
  background: var(--inset);
  transition: box-shadow 0.15s;
}
.fpl-box.is-grow {
  flex: 2 1 200px;
}
.fpl-box.is-full {
  flex: 1 1 100%;
}
.fpl-box:focus-within {
  box-shadow: inset 0 0 0 1px rgba(70, 145, 215, 0.6);
}
.fpl-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
/* The item number, boxed as on the form. */
.fpl-label b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 16px;
  padding: 0 3px;
  border: 1px solid var(--line-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-bright);
}
.fpl-in {
  width: 100%;
  padding: 6px 0 7px;
  border: 0;
  border-bottom: 1px dashed var(--line-3);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.fpl-opt {
  letter-spacing: 0.14em;
  color: var(--text-dimmer);
}
textarea.fpl-in {
  min-height: 52px;
  line-height: 1.5;
  resize: vertical;
}
/* The event list: its options on the form's colour, not the browser's white. */
.fpl-in option {
  background: var(--inset);
  color: var(--text-bright);
}
.fpl-in::placeholder {
  color: var(--text-dimmer);
}
.fpl-in:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.fpl-in.is-text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
}

/* Network: VATSIM or IVAO, then that network's ID. */
.fpl-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.fpl-ind {
  flex: 0 0 96px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--orange);
}
.fpl-choices {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.fpl-choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fpl-choices label {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.fpl-choices label:hover {
  border-color: var(--line-3);
  color: var(--text-bright);
}
.fpl-choices input:checked + label {
  border-color: rgba(70, 145, 215, 0.6);
  background: rgba(70, 145, 215, 0.14);
  color: var(--text-bright);
}
.fpl-choices input:focus-visible + label {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
/* Only the chosen network's ID. */
.fpl-if-vatsim,
.fpl-if-ivao {
  display: none;
}
.fpl:has(#fp-net-vatsim:checked) .fpl-if-vatsim,
.fpl:has(#fp-net-ivao:checked) .fpl-if-ivao {
  display: flex;
}
.fpl-consent {
  margin-top: 24px;
  padding: 22px;
  border-top: 1px solid var(--line-2);
}
.rg-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.rg-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}
.rg-check label {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.rg-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fpl .turnstile-wrap {
  min-height: 65px;
  margin-top: 6px;
}
.rg-submit {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}


/* Sent, or no event taking sign-ups: a panel instead of the form. */
.rg-panel {
  padding: 36px 36px 40px;
  border: 1px solid var(--line-2);
  border-top: 1.5px solid rgba(70, 145, 215, 0.22);
  background: var(--bg-deep);
}
.rg-panel.is-sent {
  border-top: 2px solid var(--green);
}
.rg-panel .section-title {
  margin: 10px 0 12px;
  font-size: 32px;
}
.rg-panel p {
  max-width: 56ch;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}
/* Why an event asked for (?event=) is not in the list. */
.rg-notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--orange);
  background: rgba(207, 154, 74, 0.08);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
/* An event cancelled in the panel, above its briefing. */
.ev-cancelled {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-left: 2px solid var(--brand);
  background: rgba(190, 58, 52, 0.1);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-bright);
}
.ev-cancelled strong {
  margin-right: 10px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  color: var(--brand);
}
/* A refused sign-up: what to fix. */
.rg-notice.is-error {
  border-left-color: var(--brand);
  background: rgba(190, 58, 52, 0.08);
}
.rg-actions {
  margin-top: 26px;
}
.rg-next {
  padding: 20px 22px;
  border: 1px dashed var(--line-2);
}
.rg-next ol {
  margin: 12px 0 0;
  padding-left: 18px;
}
.rg-next li {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-mute);
}
.rg-next li + li {
  margin-top: 8px;
}

/* Narrower: one column. */
@media (max-width: 1000px) {
  .ev-layout,
  .rg-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ev-aside {
    position: static;
  }
  .rg-aside {
    display: contents;
  }
}
@media (max-width: 720px) {
  .ofp-head,
  .ofp-id,
  .ofp-sec {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ofp-rel {
    margin-left: 0;
  }
  .ofp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ofp-routebox {
    flex-direction: column;
  }
  .ofp-ad {
    display: none;
  }
  .ofp-route {
    padding: 12px 14px;
  }
  .ofp-copy {
    min-height: 44px;
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }
  .ofp-notices li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .ofp-schedule li {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }
  .fpl-head {
    padding: 16px;
  }
  .fpl-row {
    margin-left: 14px;
    margin-right: 14px;
  }
  .fpl-head + .fpl-row {
    margin-top: 16px;
  }
  .fpl-sub {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .fpl-ind {
    flex-basis: 100%;
  }
  .fpl-consent {
    padding: 18px 14px;
  }
  .fpl .rg-submit {
    padding-left: 18px;
    padding-right: 18px;
  }
  .rg-panel {
    padding: 28px 22px 30px;
  }
  .rg-panel .section-title {
    font-size: 26px;
  }
  .ev-back {
    margin-top: 56px;
  }
}

/* ═════════ A flown event: what happened (pages/events/flown) ═════════ */
/* A shorter hero than the events page: the photo is the backdrop for the title and the numbers. */
.evh.is-flown {
  min-height: max(440px, 32vw);
}
.evh.is-flown .evh-photo {
  object-position: center 30%;
}
.evh.is-flown .evh-inner {
  padding-bottom: 40px;
}
/* No cover photo yet: the hero is just its text. */
.evh.is-plain {
  min-height: 0;
  background: #071929;
}
.evh.is-plain .evh-inner {
  padding-top: 96px;
}
.fl-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-bright);
}
/* The numbers, in a row under the title. */
.fl-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  margin: 24px 0 0;
}
.fl-stats div {
  margin-right: 26px;
  padding-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.fl-stats div:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}
.fl-stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #8fb6d6;
}
.fl-stats dd {
  margin: 6px 0 0;
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-bright);
}

/* Below: the story and photos, and who flew beside them. */
.fl-page {
  padding-top: 56px;
}
.fl-main {
  min-width: 0;
}
.fl-story p {
  max-width: 64ch;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
}
.fl-story p + p {
  margin-top: 14px;
}
.fl-block {
  margin-top: 40px;
}
/* "-- GALLERY ------", as the briefing's sections. */
.fl-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--orange);
}
.fl-h::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--line-2);
}
.fl-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fl-shot,
.fl-map {
  margin: 0;
}
.fl-shot a,
.fl-map a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #050d16;
}
.fl-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 860;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fl-shot a:hover img {
  transform: scale(1.03);
}
.fl-map img {
  display: block;
  width: 100%;
  height: auto;
}
.fl-shot figcaption,
.fl-map figcaption {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}
.fl-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.fl-roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
}
@media (max-width: 720px) {
  .evh.is-flown {
    min-height: 0;
  }
  .evh.is-plain .evh-inner {
    padding-top: 72px;
  }
  .fl-stats div {
    margin-right: 18px;
    padding-right: 18px;
  }
  .fl-stats dd {
    font-size: 24px;
  }
  .fl-page {
    padding-top: 40px;
  }
  .fl-story p {
    font-size: 16px;
  }
  .fl-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}
