:root {
  --market-ink: #171b1d;
  --market-paper: #f4efe3;
  --market-ivory: #fffaf0;
  --market-red: #8f201c;
  --market-red-dark: #55100e;
  --market-brass: #c99535;
  --market-green: #27463a;
  --market-blue: #143247;
  --market-line: #d7c49b;
}

.market-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(760px, calc(100svh - 88px));
  overflow: hidden;
  background: #1b2425;
  color: #fff;
}

.market-hero picture,
.market-hero picture::after {
  position: absolute;
  inset: 0;
}

.market-hero picture {
  z-index: -2;
}

.market-hero picture::after {
  display: block;
  background:
    linear-gradient(90deg, rgba(9, 17, 20, .9) 0%, rgba(9, 17, 20, .68) 38%, rgba(9, 17, 20, .08) 73%),
    linear-gradient(0deg, rgba(9, 17, 20, .76) 0%, transparent 42%);
  content: "";
}

.market-hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.market-hero__inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 690px);
  align-content: center;
  width: min(1440px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 58px 42px 148px;
}

.market-hero__eyebrow,
.market-section-kicker {
  margin: 0 0 12px;
  color: #f3c867;
  font: 900 12px/1.2 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fffaf0;
  font: 700 clamp(46px, 6vw, 84px)/.98 Georgia, serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.market-hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #f4eee2;
  font-size: 19px;
  line-height: 1.55;
}

.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.market-button {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #e5bb5f;
  border-radius: 4px;
  background: var(--market-red);
  color: #fffaf0;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.market-button:hover,
.market-button:focus-visible {
  background: #b12c26;
  outline: 3px solid rgba(255, 239, 189, .72);
  outline-offset: 2px;
}

.market-button--secondary {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(18, 29, 31, .76);
}

.market-hero__departure {
  position: absolute;
  right: max(22px, calc((100vw - 1440px) / 2 + 32px));
  bottom: 34px;
  left: max(22px, calc((100vw - 1440px) / 2 + 32px));
  display: grid;
  grid-template-columns: 90px minmax(0, 1.4fr) minmax(130px, .65fr) minmax(150px, .7fr) auto;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid #d4aa50;
  border-radius: 6px;
  background: rgba(15, 23, 25, .95);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .42);
}

.market-hero__date {
  display: grid;
  place-content: center;
  padding: 12px;
  background: #eee2c6;
  color: #4a1512;
  text-align: center;
}

.market-hero__date strong {
  font: 700 34px/1 Georgia, serif;
}

.market-hero__date span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-hero__trip,
.market-hero__metric {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 14px 17px;
  border-right: 1px solid rgba(229, 187, 95, .35);
}

.market-hero__trip small,
.market-hero__metric small {
  color: #d9c79f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-hero__trip strong,
.market-hero__metric strong {
  overflow-wrap: anywhere;
  color: #fff8e7;
  font-size: 16px;
}

.market-hero__departure .market-button {
  min-width: 150px;
  border: 0;
  border-radius: 0;
}

.market-intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--market-paper);
  color: var(--market-ink);
}

.market-intro-strip > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 22px max(24px, calc((100vw - 1320px) / 6));
  border-right: 1px solid var(--market-line);
}

.market-intro-strip > div:last-child {
  border-right: 0;
}

.market-intro-strip b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--market-red);
  border-radius: 50%;
  color: var(--market-red);
  font: 700 20px Georgia, serif;
}

.market-intro-strip strong,
.market-intro-strip small {
  display: block;
}

.market-intro-strip small {
  margin-top: 3px;
  color: #665f55;
}

.market-section {
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 72px 32px;
}

.market-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.market-section__heading h2,
.catalog-heading h1,
.event-story h2,
.event-practical h2,
.organization-showcase h1,
.public-reservation-page h1 {
  margin: 0;
  color: var(--market-ink);
  font: 700 clamp(34px, 4vw, 58px)/1.05 Georgia, serif;
  letter-spacing: 0;
}

.market-section__heading h2 {
  color: #f8f0dc;
}

.market-section__heading p:last-child {
  max-width: 560px;
  margin: 0;
  color: #b9c8cf;
  line-height: 1.55;
}

.departure-board {
  display: grid;
  overflow: hidden;
  border: 2px solid #b88b34;
  border-radius: 6px;
  background: #172329;
  color: #f9f0da;
  box-shadow: 0 16px 38px rgba(21, 26, 28, .18);
}

.departure-board__head,
.departure-board__row {
  display: grid;
  grid-template-columns: 130px minmax(210px, 1.1fr) minmax(180px, 1fr) 150px 180px 48px;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
}

.departure-board__head {
  background: #0b1418;
  color: #d5af5a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.departure-board__row {
  min-height: 64px;
  border-top: 1px solid rgba(213, 175, 90, .24);
  color: inherit;
  text-decoration: none;
}

.departure-board__row:hover,
.departure-board__row:focus-visible {
  background: #263a40;
  outline: 2px solid #e9c976;
  outline-offset: -3px;
}

.departure-board__time {
  color: #ffd472;
  font: 700 23px/1 Georgia, serif;
}

.departure-board__trip {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.departure-board__experience {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.departure-board__poster {
  display: grid;
  width: 54px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d5af5a;
  background: #f1e5ca;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .32);
}

.departure-board__poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.departure-board__poster .m131-monogram {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.departure-board__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.departure-board__trip strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.departure-board__trip small,
.departure-board__organization {
  color: #b9c7c7;
}

.departure-board__price {
  color: #fff;
  font-weight: 900;
}

.availability {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  color: #d8e8d9;
  font-size: 13px;
  font-weight: 800;
}

.availability::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #69b77c;
  box-shadow: 0 0 0 3px rgba(105, 183, 124, .17);
  content: "";
}

.availability--last-seats::before {
  background: #efb548;
}

.availability--sold-out::before {
  background: #c84d43;
}

.availability--interest::before {
  background: #8da5b4;
}

.ride-card .availability,
.event-date-choice .availability {
  color: #27613a;
}

.ride-card .availability--last-seats,
.event-date-choice .availability--last-seats {
  color: #76520c;
}

.ride-card .availability--sold-out,
.event-date-choice .availability--sold-out {
  color: #8a2d27;
}

.ride-card .availability--interest,
.event-date-choice .availability--interest {
  color: #425f70;
}

.departure-board__arrow {
  color: #e3bc63;
  font-size: 25px;
  text-align: right;
}

.market-catalog-cta {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.newsletter-band {
  --newsletter-red: #841d19;
  --newsletter-red-dark: #430c0a;
  --newsletter-brass: #d5aa51;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 70px max(28px, calc((100vw - 1380px) / 2)) 94px;
  background: #e8dfcc;
  color: #f7f0df;
}

.newsletter-band::before,
.newsletter-band::after {
  position: absolute;
  right: 0;
  left: 0;
  content: "";
}

.newsletter-band::before {
  z-index: 0;
  bottom: 0;
  height: 94px;
  background: #d8cdb6;
}

.newsletter-band::after {
  z-index: 1;
  bottom: 44px;
  height: 11px;
  border-top: 3px solid #c7b99d;
  border-bottom: 3px solid #2d3030;
  background: linear-gradient(#696b68, #3e4140);
  box-shadow: 0 5px 0 rgba(87, 79, 65, .25);
}

.newsletter-car {
  position: relative;
  z-index: 2;
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  min-height: 238px;
  align-items: center;
  padding: 34px 42px 48px;
  border: 3px solid var(--newsletter-red-dark);
  border-radius: 28px 28px 5px 5px;
  background: linear-gradient(100deg, #5b100d, #9a2b24 10%, #7c1a16 50%, #982921 90%, #5b100d);
  box-shadow:
    inset 0 0 0 2px rgba(213, 170, 81, .78),
    inset 0 -27px 0 #e5d0a0,
    inset 0 -31px 0 var(--newsletter-brass),
    0 18px 0 #232628,
    0 26px 30px rgba(39, 26, 20, .3);
}

.newsletter-car::before {
  position: absolute;
  z-index: -1;
  top: -15px;
  left: 6%;
  width: 88%;
  height: 17px;
  border: 2px solid #26292a;
  border-bottom: 0;
  border-radius: 55% 55% 0 0;
  background: linear-gradient(#d8d5cc, #888d8b);
  content: "";
}

.newsletter-car::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 5px;
  background: var(--newsletter-brass);
  content: "";
}

.newsletter-car > div {
  min-width: 0;
}

.newsletter-band h2 {
  margin: 2px 0 0;
  color: #fff8e8;
  font: 700 clamp(31px, 3.4vw, 48px)/1.05 Georgia, serif;
  text-shadow: 0 2px 2px #3e0908;
}

.newsletter-band p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #f2e6cb;
  line-height: 1.55;
}

.newsletter-car-light {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-right: 24px;
  border: 4px solid #b8822d;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbd7 0 27%, #ffd66f 31%, #92500b 68%, #321405 72%);
  box-shadow: 0 0 16px rgba(255, 215, 111, .72);
}

.newsletter-car--action {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px 14px;
  align-content: center;
  text-align: center;
}

.newsletter-car--action .newsletter-car-light {
  grid-row: 1 / 4;
  align-self: center;
  margin: 0;
}

.newsletter-car--action > small {
  color: #f1c96e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.newsletter-car--action .market-button {
  width: 100%;
  border: 2px solid #5a100e;
  background: #f5e6c2;
  color: #531310;
  box-shadow: inset 0 0 0 2px var(--newsletter-brass);
}

.newsletter-car--action .market-button:hover,
.newsletter-car--action .market-button:focus-visible {
  background: #fff4d9;
}

.newsletter-car-number {
  color: #fff0d1;
  font: 700 10px Georgia, serif;
  letter-spacing: 0;
}

.newsletter-coupler {
  position: relative;
  z-index: 3;
  align-self: center;
  width: 42px;
  height: 10px;
  border-top: 3px solid #0c0e0f;
  border-bottom: 3px solid #0c0e0f;
  background: #43484a;
}

.newsletter-coupler::before,
.newsletter-coupler::after {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 4px solid #111314;
  border-radius: 50%;
  background: #4c5153;
  content: "";
}

.newsletter-coupler::before {
  left: -7px;
}

.newsletter-coupler::after {
  right: -7px;
}

.newsletter-wheel {
  position: absolute;
  z-index: 3;
  bottom: -42px;
  width: 52px;
  height: 52px;
  border: 8px solid #151718;
  border-radius: 50%;
  background: radial-gradient(circle, #bd8734 0 11%, #4c5153 13% 40%, #0e1011 42%);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .25);
}

.newsletter-wheel--left {
  left: 18%;
}

.newsletter-wheel--right {
  right: 18%;
}

.newsletter-car-rail {
  display: none;
}

.event-newsletter {
  margin-top: 0;
}

.m131-monogram {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
  border: 1px solid currentColor;
  background: #f7ead0;
  color: #791b17;
  font: 900 8px/1 Arial, sans-serif;
  letter-spacing: 0;
}

/* The existing calendar becomes a recognizable M131 cab without changing its data. */
.calendar-section {
  box-sizing: border-box;
  padding-bottom: 92px !important;
  background: #e8dfcc;
}

.calendar-section .section-heading {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 14px;
}

.railcar-calendar {
  max-width: 1376px;
  margin-bottom: 58px !important;
  padding-bottom: 0 !important;
  overflow: visible;
  border: 3px solid #c9a351 !important;
  border-radius: 34px 34px 7px 7px !important;
  background: #841d19 !important;
  box-shadow: 0 25px 55px rgba(45, 27, 19, .3) !important;
}

.railcar-roof {
  min-height: 21px;
  background: linear-gradient(#dad6ca, #8f918d) !important;
}

.railcar-cab {
  position: relative;
  z-index: 3;
  isolation: isolate;
  min-height: 122px;
  border-bottom: 0 !important;
  background: #8b201c !important;
}

.railcar-cab::before,
.railcar-cab::after {
  content: none !important;
}

.railcar-cab-glazing {
  position: absolute;
  z-index: 0;
  top: 208px;
  right: 5%;
  bottom: 76px;
  left: 5%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 15%) minmax(0, 1fr);
  gap: 2.6%;
  opacity: .82;
  pointer-events: none;
}

.railcar-cab-window,
.railcar-gangway-door {
  position: relative;
  overflow: hidden;
  border: 3px solid #4c0b09;
  background: linear-gradient(145deg, #122b36, #365963 72%, #16262c);
  box-shadow: inset 0 0 0 5px #b58e4b;
}

.railcar-cab-window::after,
.railcar-gangway-door i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .24), transparent 36% 70%, rgba(255, 255, 255, .08));
  content: "";
}

.railcar-gangway-door {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
  background: #731511;
  box-shadow: inset 0 0 0 3px #b58e4b;
}

.railcar-gangway-door i {
  position: relative;
  display: block;
  min-width: 0;
  border: 2px solid #3c0908;
  background: linear-gradient(145deg, #142c36, #42616a);
}

.railcar-gangway-door::after {
  position: absolute;
  top: 54%;
  left: 50%;
  width: 6px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  background: #d8b663;
  box-shadow: 0 0 0 2px #4b0b09;
  content: "";
}

.railcar-driver {
  position: absolute;
  top: auto;
  bottom: -4px;
  left: 50%;
  width: 82px;
  height: 158px;
  transform: translateX(-50%);
  filter: brightness(1.18) saturate(1.05);
}

.railcar-driver i {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 48px;
  height: 55px;
  transform: translateX(-50%);
  border: 3px solid #302019;
  border-radius: 46% 46% 43% 43%;
  background: #d9a77f;
  box-shadow: inset 8px 0 0 rgba(117, 71, 49, .18);
}

.railcar-driver i::before {
  position: absolute;
  top: -18px;
  left: -7px;
  width: 56px;
  height: 23px;
  border: 3px solid #141b20;
  border-radius: 50% 50% 24% 24%;
  background: #263b4b;
  box-shadow: inset 0 -6px 0 #d5aa51, 9px 18px 0 -7px #13191e;
  content: "";
}

.railcar-driver i::after {
  position: absolute;
  top: 24px;
  left: 10px;
  width: 25px;
  height: 9px;
  border-top: 3px solid #493027;
  border-radius: 50%;
  content: "";
}

.railcar-driver b {
  position: absolute;
  right: 4px;
  bottom: -18px;
  left: 4px;
  height: 92px;
  border: 4px solid #17232a;
  border-radius: 34px 34px 8px 8px;
  background: linear-gradient(90deg, #1c3341, #38566a 48%, #1b303d);
}

.railcar-driver b::before {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 22px;
  height: 17px;
  transform: translateX(-50%);
  border-bottom: 3px solid #d5aa51;
  content: "";
}

.calendar-heading,
.railcar-headlight,
.railcar-number {
  position: relative;
  z-index: 2;
}

.railcar-cream-stripe {
  position: relative;
  z-index: 3;
  background: #e7d3a4 !important;
  color: #4c1613 !important;
}

.calendar-scroll {
  position: relative;
  z-index: 2;
  background: rgba(7, 25, 43, .55) !important;
}

.event-calendar {
  background: rgba(248, 243, 231, .08) !important;
}

.calendar-section .event-calendar th {
  background: rgba(20, 45, 67, .9);
}

.calendar-section .event-calendar td {
  background: linear-gradient(145deg, rgba(27, 57, 78, .78), rgba(5, 22, 38, .83));
}

.railcar-underframe {
  position: relative;
  z-index: 4;
  display: block;
  box-sizing: border-box;
  height: 64px !important;
  margin: 10px 22px -66px;
  padding: 0 !important;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.railcar-underframe::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 36px;
  border-top: 8px solid #111314;
  border-bottom: 4px solid #0b0d0e;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(#414547, #202325);
  box-shadow: inset 0 9px 0 #565b5d, 0 8px 14px rgba(0, 0, 0, .28);
  content: "";
}

.railcar-underframe::after {
  position: absolute;
  z-index: 3;
  top: 31px;
  left: 50%;
  width: 112px;
  height: 28px;
  transform: translateX(-50%);
  border: 4px solid #101213;
  border-radius: 3px 3px 12px 12px;
  background: linear-gradient(#4b5052, #1c1f20);
  content: "";
}

.railcar-front-track-bed {
  position: absolute;
  z-index: 0;
  top: 45px;
  right: -28px;
  bottom: -62px;
  left: -28px;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 12px,
    rgba(91, 83, 70, .62) 12px 18px
  );
}

.railcar-front-rail {
  position: absolute;
  z-index: 1;
  top: 44px;
  bottom: -64px;
  width: 48%;
  background: linear-gradient(90deg, #303332, #777a75 45%, #323534);
}

.railcar-front-rail--left {
  left: -2%;
  clip-path: polygon(92% 0, 96% 0, 7% 100%, 0 100%);
}

.railcar-front-rail--right {
  right: -2%;
  clip-path: polygon(4% 0, 8% 0, 100% 100%, 93% 100%);
}

.railcar-front-buffer {
  position: absolute;
  z-index: 5;
  top: 22px;
  box-sizing: border-box;
  width: 62px;
  height: 52px;
  border: 8px solid #101213;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #606568 0 9%, #303436 31%, #111314 68%);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .28);
}

.railcar-front-buffer::before {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 21px;
  height: 24px;
  transform: translateX(-50%);
  border: 4px solid #101213;
  background: #333739;
  content: "";
}

.railcar-front-buffer--left {
  left: 18%;
}

.railcar-front-buffer--right {
  right: 18%;
}

.railcar-plaque {
  position: absolute;
  z-index: 6;
  top: 12px;
  left: 50%;
  max-width: 38%;
  transform: translateX(-50%);
  overflow: hidden;
  color: #efd373;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 #000;
  white-space: nowrap;
}

.railcar-front-coupler {
  position: absolute;
  z-index: 7;
  top: 44px;
  left: 50%;
  box-sizing: border-box;
  width: 58px;
  height: 32px;
  transform: translateX(-50%);
  border: 6px solid #0d0f10;
  border-radius: 7px 7px 13px 13px;
  background: linear-gradient(#555a5c, #202324);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .28);
}

.railcar-front-coupler::before {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 13px;
  height: 23px;
  transform: translateX(-50%);
  border: 4px solid #0d0f10;
  border-radius: 3px;
  background: #44494b;
  content: "";
}

.railcar-front-coupler::after {
  position: absolute;
  bottom: -22px;
  left: 50%;
  box-sizing: border-box;
  width: 74px;
  height: 28px;
  transform: translateX(-50%);
  border: 7px solid #111314;
  border-top-color: #34383a;
  border-radius: 50%;
  content: "";
}

.railcar-front-coupler i {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 9px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #9a7134;
}

.railcar-front-hose {
  position: absolute;
  z-index: 6;
  top: 42px;
  box-sizing: border-box;
  width: 54px;
  height: 58px;
  border-bottom: 6px solid #17191a;
}

.railcar-front-hose::after {
  position: absolute;
  bottom: -7px;
  width: 12px;
  height: 18px;
  border: 4px solid #111314;
  border-radius: 4px;
  background: #555a5b;
  content: "";
}

.railcar-front-hose--left {
  left: calc(50% - 105px);
  transform: rotate(13deg);
  border-left: 6px solid #17191a;
  border-radius: 0 0 0 42px;
}

.railcar-front-hose--left::after {
  left: -9px;
}

.railcar-front-hose--right {
  right: calc(50% - 105px);
  transform: rotate(-13deg);
  border-right: 6px solid #17191a;
  border-radius: 0 0 42px;
}

.railcar-front-hose--right::after {
  right: -9px;
}

.events {
  background: #f8f5ed;
}

.events .section-heading {
  max-width: 1376px;
  margin-right: auto;
  margin-left: auto;
}

.events .section-heading h2 {
  color: #321713;
}

.event-grid {
  max-width: 1376px;
  margin: 0 auto;
}

.event-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #cdb98f !important;
  border-radius: 6px !important;
  background: #fffdf8 !important;
  box-shadow: 0 14px 35px rgba(35, 30, 23, .12) !important;
}

.event-card > img {
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
}

.event-card > img.event-card__poster {
  padding: 9px;
  object-fit: contain !important;
  background: #e9dfcc;
}

.event-card-sales {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  padding: 9px 0;
  border-top: 1px solid #ded1b4;
  border-bottom: 1px solid #ded1b4;
}

.event-card-sales strong {
  color: var(--market-red);
}

/* Catalog */
.ride-catalog {
  min-height: 70vh;
  background: #f8f5ed;
  color: var(--market-ink);
}

.catalog-heading {
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 54px 32px 30px;
}

.catalog-heading p {
  max-width: 650px;
  color: #5b5b55;
  font-size: 17px;
  line-height: 1.55;
}

.catalog-filters {
  border-top: 1px solid var(--market-line);
  border-bottom: 1px solid var(--market-line);
  background: #eee5d3;
}

.catalog-filters > summary {
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px 32px;
  color: #4b1714;
  font-weight: 900;
  cursor: pointer;
}

.catalog-filter-form {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 4px 32px 24px;
}

.catalog-filter-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #4a4238;
  font-size: 12px;
  font-weight: 900;
}

.catalog-filter-form input,
.catalog-filter-form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #9f8961;
  border-radius: 3px;
  background: #fffdf8;
  color: #221c17;
  font: inherit;
}

.catalog-filter-flags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter-flags label {
  display: flex;
  min-height: 38px;
  flex-direction: row;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #b9a276;
  border-radius: 4px;
  background: #fff9ed;
  cursor: pointer;
}

.catalog-filter-flags input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--market-red);
}

.catalog-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.catalog-filter-actions a {
  align-self: center;
  color: var(--market-red-dark);
  font-weight: 800;
}

.ride-results {
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 38px 32px 80px;
}

.ride-results__summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.ride-results__summary h2 {
  margin: 0;
  font: 700 30px Georgia, serif;
}

.ride-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ride-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #cab58b;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--market-ink);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 30, 20, .1);
}

.ride-card:hover,
.ride-card:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid #d4a94e;
  outline-offset: 2px;
}

.ride-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #2c3434;
}

.ride-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ride-card__media img.ride-card__poster {
  box-sizing: border-box;
  padding: 8px;
  object-fit: contain;
  background: #e9dfcc;
}

.ride-card__date {
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  min-width: 72px;
  place-content: center;
  padding: 10px;
  background: #f0e3c3;
  color: #531411;
  text-align: center;
}

.ride-card__date strong {
  font: 700 28px/1 Georgia, serif;
}

.ride-card__date span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ride-card__body {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
}

.ride-card__organization {
  color: #6b6254;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ride-card h3 {
  margin: 0;
  color: #491411;
  font: 700 26px/1.1 Georgia, serif;
}

.ride-card__route {
  margin: 0;
  color: #464844;
  line-height: 1.45;
}

.ride-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #ded1b5;
}

.ride-card__price {
  display: grid;
}

.ride-card__price small {
  color: #6d665b;
}

.ride-card__price strong {
  color: var(--market-red);
  font-size: 21px;
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.catalog-pagination a,
.catalog-pagination span {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid #a98d5b;
  border-radius: 4px;
  background: #fff;
  color: #531411;
  font-weight: 900;
  text-decoration: none;
}

/* Event detail */
.event-experience {
  background: #f8f5ed;
  color: var(--market-ink);
}

.event-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(680px, calc(100svh - 88px));
  align-items: end;
  overflow: hidden;
  background: #1b2526;
  color: #fff;
}

.event-hero > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 15, 17, .94), rgba(8, 15, 17, .12) 72%);
  content: "";
}

.event-hero__inner {
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 60px 32px 40px;
}

.event-hero__organization {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #f0c86e;
  font-weight: 900;
  text-decoration: none;
}

.event-hero__organization img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.event-hero h1 {
  max-width: 950px;
  margin: 14px 0;
  color: #fffaf0;
  font: 700 clamp(42px, 6vw, 78px)/1 Georgia, serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.event-hero__summary {
  max-width: 780px;
  color: #f1e8d7;
  font-size: 18px;
  line-height: 1.55;
}

.event-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.event-hero__facts span {
  padding: 7px 9px;
  border: 1px solid rgba(237, 203, 127, .55);
  border-radius: 3px;
  background: rgba(12, 24, 27, .72);
  color: #fff7e5;
  font-size: 13px;
  font-weight: 800;
}

.event-booking-band {
  border-bottom: 1px solid var(--market-line);
  background: #efe4cf;
}

.event-booking-band__inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: 42px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 42px 32px;
}

.event-dates {
  align-self: start;
  align-content: start;
}

.event-dates h2,
.booking-panel h2,
.event-gallery h2,
.event-faq h2,
.organization-showcase h2 {
  margin: 0 0 18px;
  color: #4e1512;
  font: 700 31px/1.1 Georgia, serif;
}

.event-date-list {
  display: grid;
  gap: 9px;
}

.event-date-choice {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #b99c68;
  border-radius: 5px;
  background: #fffaf0;
  color: #261e18;
  text-decoration: none;
}

.event-date-choice[aria-current="true"] {
  border: 2px solid var(--market-red);
  background: #fffdf8;
}

.event-date-choice time {
  display: grid;
  color: var(--market-red);
  text-align: center;
}

.event-date-choice time strong {
  font: 700 25px/1 Georgia, serif;
}

.event-date-choice__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.event-date-choice__copy strong {
  overflow-wrap: anywhere;
}

.booking-panel {
  align-self: start;
  overflow: hidden;
  border: 2px solid #b98c38;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 17px 36px rgba(46, 34, 20, .15);
}

.booking-panel__cab {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 26px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--market-red);
  color: #fff4dc;
  text-align: center;
}

.booking-panel__cab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: #e3d0a3;
  content: "";
}

.booking-panel__lamp {
  width: 20px;
  height: 20px;
  border: 3px solid #c49a48;
  border-radius: 50%;
  background: #fff0a8;
  box-shadow: 0 0 13px rgba(255, 220, 116, .8);
}

.booking-panel__cab strong {
  font: 700 20px Georgia, serif;
}

.booking-form {
  display: grid;
  gap: 14px;
  padding: 19px;
}

.booking-form > label,
.booking-contact-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
}

.booking-form input:not([type=checkbox]),
.booking-form select,
.booking-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #a18b62;
  border-radius: 3px;
  background: #fff;
  color: #231a15;
  font: inherit;
}

.booking-ticket-list {
  display: grid;
  gap: 8px;
}

.booking-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 84px;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #dfd1b4;
  background: #f8f1e3;
}

.booking-ticket strong,
.booking-ticket small {
  display: block;
}

.booking-ticket__price {
  color: var(--market-red);
  font-weight: 900;
}

.booking-ticket input {
  text-align: center;
}

.booking-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.booking-contact-grid label:first-child,
.booking-contact-grid label:last-child {
  grid-column: 1 / -1;
}

.booking-consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px !important;
  align-items: start;
  font-size: 12px !important;
  line-height: 1.4;
}

.booking-consent input {
  width: 19px !important;
  min-height: 19px !important;
  margin-top: 1px;
  accent-color: var(--market-red);
}

.booking-errors {
  margin: 0;
  padding: 11px 13px;
  border-left: 4px solid #b62821;
  background: #ffe8df;
  color: #661713;
  font-weight: 800;
}

.booking-panel .market-button {
  width: 100%;
}

.booking-payment-note {
  margin: 0;
  color: #625c52;
  font-size: 12px;
  line-height: 1.45;
}

.event-content-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr);
  gap: 54px;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 72px 32px;
}

.event-story,
.event-practical {
  min-width: 0;
}

.event-richtext {
  color: #393c39;
  font-size: 17px;
  line-height: 1.7;
}

.event-richtext img {
  max-width: 100%;
  height: auto;
}

.event-practical {
  align-self: start;
  padding-left: 24px;
  border-left: 3px solid var(--market-brass);
}

.event-feature-list {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.event-feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid #dfd5c2;
}

.event-timetable,
.event-consist,
.event-map,
.event-gallery,
.event-faq,
.event-interest {
  padding: 64px max(24px, calc((100vw - 1320px) / 2));
}

.event-timetable,
.event-gallery,
.event-interest {
  background: #eee4d1;
}

.event-timetable-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf8;
}

.event-timetable-table th,
.event-timetable-table td {
  padding: 11px;
  border-bottom: 1px solid #ded2b9;
  text-align: left;
}

.event-consist-grid,
.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-consist-grid article,
.event-gallery-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #d0bd94;
  border-radius: 5px;
  background: #fffdf8;
}

.event-consist-grid img,
.event-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-consist-grid div,
.event-gallery-grid figcaption {
  padding: 12px;
}

.event-map-frame {
  position: relative;
  overflow: hidden;
  height: min(520px, 65vh);
  border: 2px solid #ba923f;
  border-radius: 6px;
  background: #dbe2df;
}

#event-route-map {
  width: 100%;
  height: 100%;
}

.event-faq details {
  max-width: 950px;
  margin: 0 auto;
  border-bottom: 1px solid #d5c7aa;
}

.event-faq summary {
  padding: 16px 3px;
  color: #4e1512;
  font-weight: 900;
  cursor: pointer;
}

.event-faq details p {
  margin: 0;
  padding: 0 3px 17px;
  color: #4f504b;
  line-height: 1.55;
}

.event-poster-support {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 42px max(24px, calc((100vw - 1100px) / 2));
  background: #263b3a;
  color: #fff7e6;
}

.event-poster-support img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
}

.event-poster-support h2 {
  color: #fff6df;
  font: 700 36px Georgia, serif;
}

.event-mobile-booking {
  display: none;
}

/* Organization pages */
.organization-showcase {
  background: #f8f5ed;
  color: var(--market-ink);
}

.organization-directory--market {
  box-sizing: border-box;
  min-height: 70vh;
  max-width: none;
  margin: 0;
  padding: 62px max(24px, calc((100vw - 1260px) / 2)) 90px;
  background: #f8f5ed;
  color: var(--market-ink);
}

.organization-directory--market > header {
  max-width: 820px;
  margin-bottom: 34px;
}

.organization-directory--market > header h1 {
  margin: 0;
  color: #431512;
  font: 700 clamp(42px, 6vw, 72px)/1 Georgia, serif;
}

.organization-directory--market > header > p:last-child {
  color: #52534e;
  font-size: 18px;
  line-height: 1.6;
}

.organization-directory--market .organization-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.organization-directory--market .organization-directory-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 15px;
  border: 1px solid #cbb68d;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--market-ink);
  text-decoration: none;
  box-shadow: 0 11px 28px rgba(37, 29, 19, .09);
}

.organization-directory--market .organization-directory-card:hover,
.organization-directory--market .organization-directory-card:focus-visible {
  outline: 3px solid #d1a64c;
  outline-offset: 2px;
}

.organization-directory-card__logo {
  display: grid;
  width: 100px;
  height: 88px;
  place-items: center;
  background: #eee4d1;
}

.organization-directory-card__logo img {
  max-width: 88px;
  max-height: 78px;
  object-fit: contain;
}

.organization-directory--market .organization-directory-card > span:nth-child(2) {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.organization-directory--market .organization-directory-card strong {
  color: #4a1512;
  font: 700 26px/1.1 Georgia, serif;
}

.organization-directory--market .organization-directory-card small {
  overflow-wrap: anywhere;
  color: #5d5d57;
  line-height: 1.45;
}

.organization-directory__join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 46px;
  padding: 30px;
  border-top: 3px solid var(--market-brass);
  background: #e9dfca;
}

.organization-directory__join h2 {
  margin: 0;
  color: #451512;
  font: 700 34px Georgia, serif;
}

.organization-directory__join p {
  max-width: 760px;
  margin-bottom: 0;
  line-height: 1.55;
}

.organization-showcase__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 70px max(32px, calc((100vw - 1320px) / 2));
  background: #e9dfcb;
}

.organization-showcase__hero img {
  width: min(240px, 28vw);
  max-height: 220px;
  object-fit: contain;
}

.organization-showcase__lead {
  max-width: 760px;
  color: #4b4b46;
  font-size: 18px;
  line-height: 1.55;
}

.organization-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.organization-story,
.organization-rides,
.organization-fleet,
.organization-gallery,
.organization-people-public {
  box-sizing: border-box;
  width: min(1320px, 100%);
  margin: 0 auto !important;
  padding: 62px 32px;
}

.organization-rides,
.organization-gallery {
  width: 100%;
  max-width: none;
  padding-right: max(32px, calc((100vw - 1320px) / 2));
  padding-left: max(32px, calc((100vw - 1320px) / 2));
  background: #eee4d1;
}

/* Public reservation status */
.public-reservation-page {
  min-height: 70vh;
  padding: 60px 24px 90px;
  background: #eee5d4;
  color: var(--market-ink);
}

.reservation-ticket {
  overflow: hidden;
  width: min(900px, 100%);
  margin: 0 auto;
  border: 2px solid #ba913c;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(44, 35, 24, .18);
}

.reservation-ticket__head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 15px;
  align-items: center;
  padding: 24px;
  background: var(--market-red);
  color: #fff5dc;
  text-align: center;
}

.reservation-ticket__head .booking-panel__lamp {
  justify-self: center;
}

.reservation-ticket__body {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.reservation-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-left: 5px solid var(--market-green);
  background: #e7efe7;
}

.reservation-status--cancelled {
  border-color: var(--market-red);
  background: #f6e2dc;
}

.reservation-status strong,
.reservation-status small {
  display: block;
}

.reservation-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reservation-summary-grid > div {
  padding: 14px;
  border-bottom: 1px solid #d9c9a8;
}

.reservation-summary-grid small,
.reservation-summary-grid strong {
  display: block;
}

.reservation-items {
  width: 100%;
  border-collapse: collapse;
}

.reservation-items th,
.reservation-items td {
  padding: 11px;
  border-bottom: 1px solid #dfd1b4;
  text-align: left;
}

.reservation-items td:last-child,
.reservation-items th:last-child {
  text-align: right;
}

.signup-page {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 70px;
  align-items: center;
  min-height: calc(100svh - 90px);
  padding: 70px max(28px, calc((100vw - 1260px) / 2));
  background:
    linear-gradient(90deg, rgba(246, 241, 230, .98), rgba(246, 241, 230, .89)),
    url("../img/marketplace-hero-desktop.webp") center / cover;
  color: var(--market-ink);
}

.signup-page__intro h1 {
  max-width: 760px;
  margin: 0;
  color: #3f1412;
  font: 700 clamp(44px, 6vw, 76px)/1 Georgia, serif;
}

.signup-page__intro > p {
  max-width: 650px;
  color: #4e504c;
  font-size: 18px;
  line-height: 1.65;
}

.signup-page__intro ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: #344a3e;
  font-weight: 800;
}

.signup-form-shell {
  overflow: hidden;
  border: 2px solid #b78c38;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(39, 29, 19, .2);
}

.signup-form-shell > header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: var(--market-red);
  color: #fff4dc;
  text-align: center;
}

.signup-form-shell > header strong {
  font: 700 23px Georgia, serif;
}

.signup-form,
.signup-result {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.signup-form > label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
}

.signup-form input:not([type=checkbox]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 11px;
  border: 1px solid #9f8961;
  border-radius: 3px;
  background: #fff;
  color: #231a15;
  font: inherit;
}

.signup-form > p {
  margin: 0;
  color: #645e54;
  font-size: 12px;
  line-height: 1.45;
}

.signup-result h2 {
  margin: 0;
  color: #4d1512;
  font: 700 34px Georgia, serif;
}

.signup-result p {
  color: #4f514d;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .market-hero__departure {
    grid-template-columns: 80px minmax(0, 1fr) minmax(120px, .6fr) auto;
  }

  .market-hero__metric--availability {
    display: none;
  }

  .departure-board__head,
  .departure-board__row {
    grid-template-columns: 110px minmax(190px, 1.2fr) minmax(160px, 1fr) 130px 48px;
  }

  .departure-board__organization {
    display: none;
  }

  .catalog-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ride-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup-page {
    grid-template-columns: 1fr 440px;
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .market-hero {
    min-height: calc(100svh - 72px);
  }

  .market-hero picture::after {
    background:
      linear-gradient(0deg, rgba(8, 15, 17, .93) 0%, rgba(8, 15, 17, .56) 57%, rgba(8, 15, 17, .18) 100%);
  }

  .market-hero picture img {
    object-position: center center;
  }

  .market-hero__inner {
    align-content: end;
    padding: 30px 20px 180px;
  }

  .market-hero h1 {
    max-width: 11ch;
    font-size: clamp(40px, 12vw, 59px);
  }

  .market-hero__lead {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 14px;
    font-size: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .market-actions {
    margin-top: 18px;
  }

  .market-actions .market-button {
    flex: 1 1 145px;
  }

  .market-hero__departure {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .market-hero__date {
    padding: 8px;
  }

  .market-hero__date strong {
    font-size: 27px;
  }

  .market-hero__trip {
    padding: 10px;
    border-right: 0;
  }

  .market-hero__trip strong {
    font-size: 14px;
  }

  .market-hero__metric {
    display: none;
  }

  .market-hero__departure .market-button {
    min-width: 92px;
    padding: 8px;
    font-size: 13px;
  }

  .market-intro-strip {
    grid-template-columns: 1fr;
  }

  .market-intro-strip > div {
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--market-line);
  }

  .market-intro-strip > div:last-child {
    border-bottom: 0;
  }

  .market-section {
    padding: 48px 16px;
  }

  .newsletter-band {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 58px 16px 100px;
    background: #e8dfcc;
  }

  .newsletter-band::before {
    height: 100px;
  }

  .newsletter-band::after {
    display: none;
  }

  .newsletter-car {
    height: 300px;
    min-height: 300px;
    padding: 30px 20px 50px;
  }

  .newsletter-car--message {
    align-items: center;
  }

  .newsletter-car-light {
    width: 24px;
    height: 24px;
    margin: 4px 14px 0 0;
    border-width: 3px;
  }

  .newsletter-band h2 {
    font-size: clamp(31px, 9.6vw, 42px);
  }

  .newsletter-coupler {
    width: 10px;
    height: 52px;
    justify-self: center;
    border: 0;
    border-right: 3px solid #0c0e0f;
    border-left: 3px solid #0c0e0f;
  }

  .newsletter-coupler::before,
  .newsletter-coupler::after {
    left: 50%;
    transform: translate(-50%, 0);
  }

  .newsletter-coupler::before {
    top: -7px;
  }

  .newsletter-coupler::after {
    top: auto;
    right: auto;
    bottom: -7px;
  }

  .newsletter-car--action {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 300px;
  }

  .newsletter-car--action .market-button {
    width: 100%;
  }

  .newsletter-wheel {
    bottom: -35px;
    width: 43px;
    height: 43px;
    border-width: 7px;
  }

  .newsletter-car-rail {
    position: absolute;
    z-index: 1;
    top: calc(100% + 32px);
    right: -16px;
    left: -16px;
    display: block;
    height: 11px;
    border-top: 3px solid #c7b99d;
    border-bottom: 3px solid #2d3030;
    background: linear-gradient(#696b68, #3e4140);
    box-shadow: 0 5px 0 rgba(87, 79, 65, .25);
  }

  .market-section__heading {
    align-items: start;
    flex-direction: column;
  }

  .departure-board__head {
    display: none;
  }

  .departure-board__row {
    grid-template-columns: 75px minmax(0, 1fr) 26px;
    grid-template-rows: auto auto auto;
    gap: 9px;
    min-height: 142px;
    padding: 12px 10px;
  }

  .departure-board__time {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    font-size: 18px;
  }

  .departure-board__organization,
  .departure-board__price {
    display: none;
  }

  .departure-board__row > .departure-board__trip:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .departure-board__experience {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }

  .departure-board__poster {
    width: 40px;
    height: 52px;
  }

  .departure-board__experience strong {
    font-size: 13px;
  }

  .departure-board__row > .departure-board__trip:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .departure-board__row > .departure-board__trip:nth-child(3) strong {
    color: #d9c79f;
    font-size: 12px;
  }

  .departure-board__row > .departure-board__trip:nth-child(3) small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .departure-board__row > .availability {
    grid-column: 2;
    grid-row: 3;
    color: #d8e8d9;
    font-size: 11px;
  }

  .departure-board__arrow {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
  }

  .calendar-section {
    padding-top: 48px !important;
    padding-bottom: 88px !important;
  }

  .calendar-section .section-heading {
    width: calc(100% - 32px);
  }

  .railcar-calendar {
    margin-bottom: 50px !important;
    border-radius: 24px 24px 5px 5px !important;
  }

  .railcar-cab {
    min-height: 112px;
  }

  .railcar-cab-glazing {
    top: 196px;
    right: 14px;
    bottom: 66px;
    left: 14px;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 6px;
    opacity: .76;
  }

  .railcar-cab-window,
  .railcar-gangway-door {
    border-width: 2px;
    box-shadow: inset 0 0 0 3px #b58e4b;
  }

  .railcar-gangway-door {
    gap: 2px;
    padding: 4px;
  }

  .railcar-driver {
    top: auto;
    bottom: -3px;
    width: 56px;
    height: 118px;
  }

  .railcar-driver i {
    width: 35px;
    height: 41px;
    border-width: 2px;
  }

  .railcar-driver i::before {
    top: -14px;
    left: -6px;
    width: 41px;
    height: 18px;
    border-width: 2px;
    box-shadow: inset 0 -5px 0 #d5aa51, 7px 14px 0 -6px #13191e;
  }

  .railcar-driver i::after {
    top: 18px;
    left: 7px;
    width: 19px;
  }

  .railcar-driver b {
    bottom: -12px;
    height: 70px;
  }

  .railcar-underframe {
    height: 58px !important;
    margin: 10px 8px -62px;
  }

  .railcar-underframe::before {
    height: 32px;
    border-top-width: 7px;
  }

  .railcar-underframe::after {
    top: 28px;
    width: 82px;
    height: 23px;
  }

  .railcar-front-track-bed {
    top: 40px;
    right: -12px;
    bottom: -52px;
    left: -12px;
  }

  .railcar-front-rail {
    top: 39px;
    bottom: -54px;
  }

  .railcar-front-buffer {
    top: 19px;
    width: 46px;
    height: 40px;
    border-width: 6px;
  }

  .railcar-front-buffer::before {
    top: -17px;
    width: 16px;
    height: 20px;
    border-width: 3px;
  }

  .railcar-front-buffer--left {
    left: 13%;
  }

  .railcar-front-buffer--right {
    right: 13%;
  }

  .railcar-front-coupler {
    top: 38px;
    width: 46px;
    height: 28px;
    border-width: 5px;
  }

  .railcar-front-coupler::before {
    top: -21px;
    width: 11px;
    height: 20px;
    border-width: 3px;
  }

  .railcar-front-coupler::after {
    bottom: -18px;
    width: 58px;
    height: 23px;
    border-width: 6px;
  }

  .railcar-front-hose {
    top: 37px;
    width: 38px;
    height: 48px;
  }

  .railcar-front-hose--left {
    left: calc(50% - 75px);
  }

  .railcar-front-hose--right {
    right: calc(50% - 75px);
  }

  .railcar-plaque {
    top: 10px;
    max-width: 42%;
    font-size: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-heading {
    padding: 38px 18px 22px;
  }

  .catalog-filters > summary {
    padding: 16px 18px;
  }

  .catalog-filter-form {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    padding: 0 18px 20px;
  }

  .catalog-filter-form label:nth-child(5),
  .catalog-filter-form label:nth-child(6) {
    grid-column: 1 / -1;
  }

  .catalog-filter-flags {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-filter-actions .market-button {
    width: 100%;
  }

  .ride-results {
    padding: 28px 16px 60px;
  }

  .ride-results__summary {
    align-items: start;
    flex-direction: column;
  }

  .ride-card-grid {
    grid-template-columns: 1fr;
  }

  .event-hero {
    min-height: calc(100svh - 72px);
  }

  .event-hero__inner {
    padding: 45px 18px 34px;
  }

  .event-hero h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .event-hero__summary {
    font-size: 16px;
  }

  .event-booking-band__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 16px;
  }

  .event-date-choice {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .event-date-choice > .availability {
    grid-column: 2;
  }

  .booking-contact-grid {
    grid-template-columns: 1fr;
  }

  .booking-contact-grid label,
  .booking-contact-grid label:first-child,
  .booking-contact-grid label:last-child {
    grid-column: 1;
  }

  .booking-ticket {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .booking-ticket__price {
    grid-column: 1;
    grid-row: 2;
  }

  .booking-ticket input {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .event-content-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 50px 18px;
  }

  .event-practical {
    padding: 0;
    border-top: 3px solid var(--market-brass);
    border-left: 0;
  }

  .event-timetable,
  .event-consist,
  .event-map,
  .event-gallery,
  .event-faq,
  .event-interest {
    padding: 48px 18px;
  }

  .event-consist-grid,
  .event-gallery-grid {
    grid-template-columns: 1fr;
  }

  .event-poster-support {
    grid-template-columns: 1fr;
    padding: 42px 18px;
  }

  .event-poster-support img {
    max-height: 360px;
  }

  .event-mobile-booking {
    position: fixed;
    z-index: 1600;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border: 1px solid #d8ae55;
    border-radius: 6px;
    background: rgba(17, 27, 29, .96);
    color: #fff6e3;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
  }

  .event-mobile-booking small,
  .event-mobile-booking strong {
    display: block;
  }

  .event-mobile-booking .market-button {
    min-height: 44px;
  }

  .organization-showcase__hero {
    grid-template-columns: 1fr;
    padding: 48px 20px;
  }

  .organization-directory--market {
    padding: 45px 16px 70px;
  }

  .organization-directory--market .organization-directory-grid {
    grid-template-columns: 1fr;
  }

  .organization-directory--market .organization-directory-card {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 96px;
    padding: 10px;
  }

  .organization-directory-card__logo {
    width: 76px;
    height: 72px;
  }

  .organization-directory-card__logo img {
    max-width: 68px;
    max-height: 64px;
  }

  .organization-directory--market .organization-directory-card strong {
    font-size: 21px;
  }

  .organization-directory__join {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .organization-showcase__hero img {
    grid-row: 1;
    width: min(180px, 55vw);
  }

  .organization-story,
  .organization-rides,
  .organization-fleet,
  .organization-gallery,
  .organization-people-public {
    padding: 48px 18px;
  }

  .public-reservation-page {
    padding: 30px 12px 70px;
  }

  .reservation-ticket__head {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    padding: 17px 12px;
  }

  .reservation-ticket__body {
    padding: 20px 15px;
  }

  .reservation-summary-grid {
    grid-template-columns: 1fr;
  }

  .reservation-items th:nth-child(2),
  .reservation-items td:nth-child(2) {
    display: none;
  }

  .signup-page {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 45px 16px 70px;
    background: #f3ecdf;
  }

  .signup-page__intro h1 {
    font-size: clamp(40px, 12vw, 58px);
  }
}

@media (max-width: 420px) {
  .catalog-filter-form,
  .catalog-filter-flags,
  .catalog-filter-actions {
    grid-template-columns: 1fr;
  }

  .catalog-filter-form label:nth-child(5),
  .catalog-filter-form label:nth-child(6) {
    grid-column: 1;
  }

  .market-hero__eyebrow {
    margin-bottom: 8px;
  }
}
