/* 
   STEM Camp appeal  */
.stem-hero {
  /* Colours from the site Style Guide (/style-guide/) */
  --nr-brown: #a25439;        /* headings */
  --nr-light-brown: #c56747;  /* buttons */
  --nr-dark-brown: #78361f;   /* button hover, dark accents */
  --nr-red: #aa101a;          /* button hover, accents */
  --nr-body: #444444;         /* paragraph copy */
  --nr-sand: #f2ebde;         /* cards, panels */
  --nr-border: #dfc4a0;       /* dividers, borders */
  --nr-near-black: #272727;
  --nr-black: #000000;         /* h1 title */
  /* Text colours for a Cream (#fef8e2) section — overridden below for Tan */
  --hero-heading: var(--nr-brown);
  --hero-text: var(--nr-body);
  padding: 72px 0 88px !important;
  min-height: 0 !important;
}
/* On a Tan (#c99d61) cover, brown/grey text is too low-contrast: use Near Black, like Here We Go */
.stem-hero:has(> .wp-block-cover__background[style*="c99d61"]) {
  --hero-heading: var(--nr-near-black);
  --hero-text: var(--nr-near-black);
}
.stem-hero > .wp-block-cover__background {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='1000' viewBox='0 0 1440 1000' fill='none' stroke='%23a25439' stroke-opacity='0.12' stroke-width='1.5'%3E%3Cpath d='M-20 120 C 200 60, 380 200, 620 140 S 1040 40, 1460 150'/%3E%3Cpath d='M-20 190 C 220 130, 400 270, 640 210 S 1060 110, 1460 220'/%3E%3Cpath d='M-20 260 C 240 200, 420 340, 660 280 S 1080 180, 1460 290'/%3E%3Cpath d='M-20 520 C 180 470, 360 600, 600 560 S 1000 440, 1460 540'/%3E%3Cpath d='M-20 590 C 200 540, 380 670, 620 630 S 1020 510, 1460 610'/%3E%3Cpath d='M-20 660 C 220 610, 400 740, 640 700 S 1040 580, 1460 680'/%3E%3Cpath d='M-20 870 C 260 820, 460 940, 720 900 S 1160 800, 1460 880'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1440px auto;
}
.stem-hero .stem-hero__columns {
  gap: 64px;
  align-items: center;
  margin-bottom: 0;
}

/* Eyebrow / title / lead */
.stem-hero h4.stem-hero__eyebrow {
  margin: 0 0 20px;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 3px !important;
  text-transform: uppercase;
  color: var(--hero-heading);
}
.stem-hero h1.stem-hero__title {
  margin: 0 0 24px;
  padding: 0;
  font-size: clamp(44px, 5.3vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px !important;
  text-transform: none;
  color: var(--nr-black);
}
.stem-hero p.stem-hero__lead {
  max-width: 580px;
  margin: 0 0 28px;
  font-size: 21px !important;
  line-height: 1.55;
  color: var(--hero-text);
}

/* Donate card (Gravity Form 61) */
.stem-hero #gform_wrapper_61 {
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(120, 54, 31, 0.12);
}
.stem-hero #gform_wrapper_61 .gform_description {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 26px !important;
  font-weight: 900;
  text-transform: none;
  color: var(--nr-brown);
}

.stem-hero #gform_wrapper_61 .gform_fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 8px;
}
.stem-hero #gform_wrapper_61 .gfield {
  grid-column: 1 / -1;
  margin: 0;
}
.stem-hero #gform_wrapper_61 .gfield--type-hidden {
  display: none;
}

/* Keep the radios keyboard-focusable (visually hidden instead of display:none) */
.stem-hero #gform_wrapper_61 #field_61_1 input,
.stem-hero #gform_wrapper_61 #field_61_3 input {
  display: block !important;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.stem-hero #gform_wrapper_61 #field_61_1 input:focus-visible + label,
.stem-hero #gform_wrapper_61 #field_61_3 input:focus-visible + label {
  outline: 3px solid var(--nr-light-brown);
  outline-offset: 2px;
}

/* One-time / Monthly segmented toggle */
.stem-hero #gform_wrapper_61 #field_61_1 .gfield_radio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 4px;
  border: 2px solid var(--nr-dark-brown);
  border-radius: 8px;
  overflow: hidden;
}
.stem-hero #gform_wrapper_61 #field_61_1 .gchoice {
  position: relative;
}
.stem-hero #gform_wrapper_61 #field_61_1 .gchoice label {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--nr-dark-brown);
}
.stem-hero #gform_wrapper_61 #field_61_1 input:checked + label {
  background: var(--nr-dark-brown);
  color: #fff;
}

/* Amount buttons + Other on one row */
.stem-hero #gform_wrapper_61 #field_61_3 {
  grid-column: span 5;
}
.stem-hero #gform_wrapper_61 #field_61_4 {
  grid-column: span 1;
  margin: 0;
}
.stem-hero #gform_wrapper_61 #field_61_3 .gfield_radio {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.stem-hero #gform_wrapper_61 #field_61_3 .gchoice {
  position: relative;
}
.stem-hero #gform_wrapper_61 #field_61_3 .gchoice label {
  margin: 0;
  padding: 14px 2px;
  border: 1px solid var(--nr-border);
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  color: var(--nr-body);
}
.stem-hero #gform_wrapper_61 #field_61_3 .gchoice label:hover {
  border-color: var(--nr-light-brown);
}
.stem-hero #gform_wrapper_61 #field_61_3 input:checked + label {
  padding: 13px 1px;
  border: 2px solid var(--nr-light-brown);
  background: var(--nr-sand);
  color: var(--nr-dark-brown);
}
.stem-hero #gform_wrapper_61 #field_61_4 .ginput_container {
  height: 100%;
}
.stem-hero #gform_wrapper_61 #input_61_4 {
  height: 100%;
  min-height: 52px;
  padding: 0 8px !important;
  border: 1px solid var(--nr-border);
  border-radius: 8px;
  font-size: 15px;
}
.stem-hero #gform_wrapper_61 #input_61_4:focus {
  border-color: var(--nr-light-brown);
  box-shadow: 0 0 4px rgba(162, 84, 57, 0.5);
}

/* Note checkbox + Continue button on one row */
.stem-hero #gform_wrapper_61 #field_61_5 {
  margin: 14px 0 0;
}
.stem-hero #gform_wrapper_61 #field_61_5 label {
  font-size: 15px;
}
.stem-hero #gform_wrapper_61 .gform_footer {
  display: flex;
  justify-content: flex-end;
  margin: -38px 0 0;
  padding: 0;
}
.stem-hero #gform_wrapper_61:has(#choice_61_5_1:checked) .gform_footer {
  margin-top: 16px;
}
.stem-hero #gform_wrapper_61 .gform_button {
  width: auto;
  margin: 0;
  padding: 15px 25px;
  border: 2px solid var(--nr-light-brown);
  border-radius: 5px;
  background-color: var(--nr-light-brown);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.stem-hero #gform_wrapper_61 .gform_button::after {
  content: " \2192";
}
.stem-hero #gform_wrapper_61 .gform_button:hover {
  background-color: var(--nr-red) !important;
  border-color: var(--nr-red) !important;
}

/* Arched photo + date badge */
.stem-hero .stem-hero__media {
  position: relative;
  align-self: flex-start !important;
  height: auto;
}
.stem-hero .stem-hero__photo {
  margin: 0;
}
.stem-hero .stem-hero__photo img {
  display: block;
  width: 100%;
  height: clamp(480px, 50vw, 720px);
  object-fit: cover;
  object-position: 60% center;
  border-radius: 220px 220px 16px 16px;
}
.stem-hero .stem-hero__badge {
  position: absolute;
  left: -36px;
  bottom: 48px;
  margin: 0;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--nr-dark-brown);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.stem-hero .stem-hero__badge p {
  margin: 0;
  line-height: 1.2;
  color: #fff;
}
.stem-hero .stem-hero__badge p.stem-hero__badge-label {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.stem-hero .stem-hero__badge p.stem-hero__badge-date {
  font-size: 22px !important;
  font-weight: 900;
}

/* Tablet / phone: WordPress stacks columns below 782px */
@media only screen and (max-width: 781px) {
  .stem-hero {
    padding: 48px 0 56px !important;
  }
  .stem-hero .wp-block-cover__inner-container {
    padding: 0 20px;
  }
  .stem-hero .stem-hero__columns {
    gap: 40px;
  }
  .stem-hero #gform_wrapper_61 {
    padding: 22px;
  }
  .stem-hero #gform_wrapper_61 #field_61_3,
  .stem-hero #gform_wrapper_61 #field_61_4 {
    grid-column: 1 / -1;
  }
  .stem-hero #gform_wrapper_61 #field_61_3 .gfield_radio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stem-hero #gform_wrapper_61 .gform_footer {
    margin-top: 16px;
  }
  .stem-hero #gform_wrapper_61 .gform_button {
    width: 100%;
  }
  .stem-hero .stem-hero__photo img {
    height: 380px;
    border-radius: 160px 160px 16px 16px;
  }
  .stem-hero .stem-hero__badge {
    left: 16px;
    bottom: 16px;
  }
}

/* 
   STEM Camp appeal — "What STEM Camp looks like"  */
.stem-route {
  --nr-light-brown: #c56747;
  --nr-dark-brown: #78361f;
  --nr-cream: #fef8e2;
  --nr-sand: #f2ebde;
  --nr-border: #dfc4a0;
  --nr-brown: #a25439;
  --nr-body: #444444;
  /* Text colours for a light Cover (e.g. #f2eee8) */
  --route-heading: #000000;
  --route-accent: var(--nr-brown);
  --route-text: var(--nr-body);
  --route-ring: #f2eee8;
  padding: 96px 0 !important;
  min-height: 0 !important;
}
/* If the Cover is set to Dark Brown instead, switch to light text */
.stem-route:has(> .wp-block-cover__background[style*="78361f"]) {
  --route-heading: var(--nr-cream);
  --route-accent: var(--nr-border);
  --route-text: var(--nr-sand);
  --route-ring: var(--nr-dark-brown);
}
.stem-route .stem-route__intro {
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 56px;
}
.stem-route .stem-route__eyebrow {
  margin: 0 0 12px;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 3px !important;
  text-transform: uppercase;
  color: var(--route-accent);
}
/* Works as an H1 or H2 */
.stem-route .stem-route__title {
  margin: 0;
  padding: 0;
  font-size: clamp(40px, 4vw, 56px) !important;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px !important;
  text-transform: none;
  color: var(--route-heading);
}
.stem-route p.stem-route__lead {
  margin: 0;
  font-size: 19px !important;
  line-height: 1.6;
  color: var(--route-text);
}

/* Three stops joined by a dashed trail */
.stem-route .stem-route__stops {
  --route-gap: 32px;
  position: relative;
  gap: var(--route-gap);
  margin-bottom: 0;
}
/* Dashed trail: one curved segment per gap, from the centre of each number
   circle (30px margin + 30px radius = 60px in, 30px down) to the next one's centre */
.stem-route .stem-route__stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  width: calc(100% + var(--route-gap));
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 130 5, 270 55, 400 30' fill='none' stroke='%23a25439' stroke-width='3' stroke-dasharray='10 10' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.stem-route .stem-route__stop:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 130 55, 270 5, 400 30' fill='none' stroke='%23a25439' stroke-width='3' stroke-dasharray='10 10' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
/* Trail continues past the last circle, out to the right edge of the column */
.stem-route .stem-route__stop:last-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 90 8, 190 10, 300 40' fill='none' stroke='%23a25439' stroke-width='3' stroke-dasharray='10 10' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.stem-route:has(> .wp-block-cover__background[style*="78361f"]) .stem-route__stop::after {
  filter: brightness(1.9);
}
.stem-route .stem-route__stop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stem-route p.stem-route__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 0 0 30px;
  border: 4px solid var(--route-ring);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: var(--nr-light-brown);
  font-size: 24px !important;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.stem-route .stem-route__photo {
  margin: 0;
}
.stem-route .stem-route__photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
}
.stem-route .stem-route__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
/* Works as an H3 or H4 */
.stem-route .stem-route__name {
  margin: 0;
  font-size: 30px !important;
  letter-spacing: 0 !important;
  text-transform: none;
  font-weight: 900;
  line-height: 1.1;
  color: var(--route-heading);
}
.stem-route p.stem-route__step {
  margin: 0;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--route-accent);
}
.stem-route p.stem-route__kicker {
  margin: 0;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--route-accent);
}
.stem-route p.stem-route__text {
  margin: 0;
  font-size: 17px !important;
  line-height: 1.6;
  color: var(--route-text);
}

@media only screen and (max-width: 781px) {
  .stem-route {
    padding: 56px 0 !important;
  }
  .stem-route .wp-block-cover__inner-container {
    padding: 0 20px;
  }
  .stem-route .stem-route__intro {
    margin-bottom: 36px;
  }
  .stem-route .stem-route__stops {
    gap: 44px;
  }
  .stem-route .stem-route__stop::after {
    display: none;
  }
  .stem-route p.stem-route__num {
    margin-left: 0;
  }
}

/* 
   STEM Camp appeal — gift tickets */
.stem-tickets {
  --tk-bg: #78361f;            /* Dark Brown: matches the Cover, used for the ticket notches */
  --tk-cream: #fef8e2;
  --tk-sand: #f2ebde;
  --tk-border: #dfc4a0;
  --tk-brown: #a25439;
  --tk-light-brown: #c56747;
  --tk-red: #aa101a;
  --tk-near-black: #272727;
  padding: 96px 0 !important;
  min-height: 0 !important;
}

/* Intro */
.stem-tickets .stem-tickets__intro {
  margin-bottom: 40px;
}
.stem-tickets .stem-tickets__eyebrow {
  margin: 0 0 12px;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 3px !important;
  text-transform: uppercase;
  color: var(--tk-border);
}
.stem-tickets .stem-tickets__title {
  margin: 0 0 14px;
  padding: 0;
  font-size: clamp(40px, 4.4vw, 64px) !important;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px !important;
  text-transform: none;
  color: var(--tk-cream);
}
.stem-tickets p.stem-tickets__lead {
  max-width: 640px;
  margin: 0;
  font-size: 19px !important;
  line-height: 1.55;
  color: var(--tk-sand);
}

/* Rows of two */
.stem-tickets .wp-block-columns.stem-tickets__row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.stem-tickets .stem-tickets__row > .wp-block-column {
  min-width: 0;
  margin: 0;
}

/* A ticket */
/* The class works on either the outer Column or the Columns inside it */
.stem-tickets .wp-block-column.stem-ticket {
  display: flex;
  margin: 0;
}
.stem-tickets :is(.wp-block-columns.stem-ticket, .stem-ticket > .wp-block-columns) {
  position: relative;
  flex: 1 1 auto;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  min-height: 170px;
  margin: 0 !important;
  border-radius: 18px;
  background: var(--tk-cream);
  color: var(--tk-near-black);
}
.stem-tickets :is(.stem-ticket__photo, .stem-ticket__info, .stem-ticket__price) {
  margin: 0 !important;
}
.stem-tickets .stem-ticket__photo {
  flex: 0 0 170px !important;
  align-self: stretch;
}
.stem-tickets .stem-ticket__photo figure,
.stem-tickets .stem-ticket__photo figure > a {
  display: block;
  height: 100%;
  margin: 0 !important;
}
.stem-tickets .stem-ticket__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 18px 0 0 18px;
}
.stem-tickets .stem-ticket__info {
  flex: 1 1 auto !important;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border-right: 3px dashed var(--tk-border);
}
.stem-tickets .stem-ticket__label {
  margin: 0 0 8px;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  color: var(--tk-brown);
}
.stem-tickets p.stem-ticket__text {
  margin: 0;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tk-near-black);
}
.stem-tickets .stem-ticket__price {
  position: relative;
  flex: 0 0 180px !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
}
/* Ticket notches, cut out of the section background */
.stem-tickets .stem-ticket__price::before,
.stem-tickets .stem-ticket__price::after {
  content: "";
  position: absolute;
  left: -15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tk-bg);
}
.stem-tickets .stem-ticket__price::before {
  top: -14px;
}
.stem-tickets .stem-ticket__price::after {
  bottom: -14px;
}
.stem-tickets p.stem-ticket__amount {
  margin: 0;
  font-size: 34px !important;
  font-weight: 900;
  line-height: 1;
  color: #000;
}
/* The shortcode's <a class="donate-button"> (USD [donate_link] and KES [donate_link_kes]) */
.stem-tickets .stem-ticket__price p:has(> .donate-button) {
  margin: 0;
  font-size: inherit !important;
}
.stem-tickets .donate-button {
  display: inline-block;
  max-width: 100%;
  padding: 8px 12px;
  background-color: var(--tk-light-brown);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
}
.stem-tickets .donate-button:hover,
.stem-tickets .donate-button:focus-visible {
  background-color: var(--tk-red);
  color: #fff;
}

/* "Any amount" card */
.stem-tickets .stem-tickets__any {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 170px;
  padding: 24px;
  border: 2px dashed rgba(223, 196, 160, 0.45);
  border-radius: 18px;
  text-align: center;
}
/* In case the Heading + Paragraph sit inside a nested Columns block */
.stem-tickets .stem-tickets__any :is(.wp-block-columns, .wp-block-column) {
  display: block;
  width: 100%;
  margin: 0 !important;
}
.stem-tickets .stem-tickets__any :is(h2, h3, h4, h5, h6) {
  margin: 0 0 8px;
  padding: 0;
  font-size: 26px !important;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  text-align: center;
  color: var(--tk-cream);
}
.stem-tickets .stem-tickets__any p {
  margin: 0;
  font-size: 16px !important;
  line-height: 1.5;
  text-align: center;
  color: var(--tk-sand);
}
.stem-tickets .stem-tickets__any p:empty {
  display: none;
}
/* Clickable card: link the heading (or any text) in the editor and the whole card follows it */
.stem-tickets .stem-tickets__any {
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.stem-tickets .stem-tickets__any a {
  color: inherit;
  text-decoration: none;
}
.stem-tickets .stem-tickets__any a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}
.stem-tickets .stem-tickets__any:has(a):hover,
.stem-tickets .stem-tickets__any:has(a:focus-visible) {
  border-color: var(--tk-border);
  background-color: rgba(254, 248, 226, 0.06);
}
.stem-tickets .stem-tickets__any a:focus-visible {
  outline: none;
}
.stem-tickets .stem-tickets__any a:focus-visible::after {
  outline: 2px solid var(--tk-cream);
  outline-offset: 3px;
}

@media only screen and (max-width: 781px) {
  .stem-tickets {
    padding: 56px 0 !important;
  }
  .stem-tickets .wp-block-cover__inner-container {
    padding: 0 20px;
  }
  /* Stack the two tickets in each row */
  .stem-tickets .wp-block-columns.stem-tickets__row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  /* Beat WordPress's stack-on-mobile flex-basis:100% inside the ticket */
  .stem-tickets .wp-block-columns > .wp-block-column.stem-ticket__photo {
    flex: 0 0 110px !important;
  }
  .stem-tickets .wp-block-columns > .wp-block-column.stem-ticket__info {
    flex: 1 1 0 !important;
  }
  .stem-tickets .stem-ticket__info {
    padding: 16px;
  }
  .stem-tickets p.stem-ticket__text {
    font-size: 16px !important;
  }
  .stem-tickets .wp-block-columns > .wp-block-column.stem-ticket__price {
    flex: 0 0 140px !important;
  }
  .stem-tickets p.stem-ticket__amount {
    font-size: 26px !important;
  }
  .stem-tickets .donate-button {
    white-space: normal;
  }
  /* A blank filler column (no ticket inside) would leave a gap once stacked */
  .stem-tickets .stem-tickets__row > .wp-block-column:not(:has(.stem-ticket__price)):not(.stem-tickets__any) {
    display: none;
  }
}
/* Phones: flip the ticket vertical (photo on top, tear line across, price below) */
@media only screen and (max-width: 600px) {
  .stem-tickets :is(.wp-block-columns.stem-ticket, .stem-ticket > .wp-block-columns) {
    flex-direction: column;
  }
  .stem-tickets .wp-block-columns > .wp-block-column.stem-ticket__photo {
    flex: 0 0 auto !important;
    width: 100%;
  }
  .stem-tickets .stem-ticket__photo img {
    height: 190px;
    min-height: 0;
    border-radius: 18px 18px 0 0;
  }
  .stem-tickets .wp-block-columns > .wp-block-column.stem-ticket__info {
    flex: 0 0 auto !important;
  }
  .stem-tickets .stem-ticket__info {
    padding: 20px 20px 18px;
    border-right: 0;
    border-bottom: 3px dashed var(--tk-border);
  }
  .stem-tickets .wp-block-columns > .wp-block-column.stem-ticket__price {
    flex: 0 0 auto !important;
    width: 100%;
  }
  .stem-tickets .stem-ticket__price {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 20px 18px;
  }
  .stem-tickets .stem-ticket__price::before,
  .stem-tickets .stem-ticket__price::after {
    top: -16px;
    bottom: auto;
  }
  .stem-tickets .stem-ticket__price::before {
    left: -14px;
  }
  .stem-tickets .stem-ticket__price::after {
    left: auto;
    right: -14px;
  }
  .stem-tickets .donate-button {
    white-space: nowrap;
    padding: 10px 16px;
  }
}

.stem-hero,
.stem-route,
.stem-tickets {
  padding-left: 40px !important;
  padding-right: 40px !important;
}
@media only screen and (max-width: 781px) {
  .stem-hero,
  .stem-route,
  .stem-tickets {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .stem-hero .wp-block-cover__inner-container,
  .stem-route .wp-block-cover__inner-container,
  .stem-tickets .wp-block-cover__inner-container {
    padding-left: 0;
    padding-right: 0;
  }
}
