:root {
  --rs-ink: #171512;
  --rs-ink-soft: #29241e;
  --rs-paper: #f2e8d2;
  --rs-paper-deep: #dfd0b1;
  --rs-cream: #fff8e9;
  --rs-red: #df382f;
  --rs-red-dark: #a81f1d;
  --rs-orange: #f08a35;
  --rs-gold: #f5bb45;
  --rs-sage: #7f9b70;
  --rs-line: rgba(23, 21, 18, 0.18);
  --rs-shadow: 0 24px 70px rgba(46, 32, 18, 0.18);
}

html { scroll-behavior: smooth; }
body.rs-modal-open { overflow: hidden; }

#main-content.red-sox-divi-page {
  color: var(--rs-ink);
  background: var(--rs-paper);
  font-family: "Trebuchet MS", Arial, sans-serif;
  overflow: hidden;
}

.red-sox-divi-page *,
.rs-modal * { box-sizing: border-box; }

.red-sox-divi-page h1,
.red-sox-divi-page h2,
.red-sox-divi-page h3,
.rs-modal h2 {
  padding: 0;
  color: inherit;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.93;
  text-transform: uppercase;
}

.red-sox-divi-page p { padding: 0; }
.red-sox-divi-page a { color: inherit; }

.red-sox-divi-page .et_pb_row {
  width: min(90%, 1240px);
  max-width: 1240px;
}

.red-sox-divi-page .rs-kicker {
  margin: 0 0 1rem;
  color: var(--rs-red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Hero and compact in-page navigation */
.red-sox-divi-page .et_pb_section.rs-hero {
  min-height: 780px;
  padding: 0 0 8rem !important;
  color: var(--rs-cream);
  background:
    radial-gradient(circle at 82% 26%, rgba(240, 138, 53, 0.25), transparent 28%),
    linear-gradient(120deg, #171512 0%, #211b17 58%, #382217 100%) !important;
  overflow: hidden;
}

.red-sox-divi-page .et_pb_section.rs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.red-sox-divi-page .et_pb_section.rs-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -8%;
  bottom: -105px;
  left: -8%;
  height: 180px;
  background: var(--rs-paper);
  transform: rotate(-3deg);
}

.rs-topbar-row,
.rs-hero-row { z-index: 2; }

.red-sox-divi-page .rs-topbar-row {
  padding: 1.25rem 0 1rem !important;
}

.rs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rs-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  min-width: 102px;
  height: 56px;
  border: 2px solid currentColor;
  color: var(--rs-cream) !important;
  background: var(--rs-ink);
  font-family: Impact, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transform: rotate(-2deg);
}

.rs-wordmark span { color: var(--rs-red); margin-right: 0.28rem; }
.rs-anchor-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(0.8rem, 2.4vw, 2.4rem); margin-left: auto; }
.rs-anchor-nav a,
.rs-language-switcher a {
  color: var(--rs-cream) !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.rs-anchor-nav a:hover { color: var(--rs-gold) !important; }
.rs-language-switcher { display: flex; gap: 0.3rem; padding-left: 0.8rem; border-left: 1px solid rgba(255, 248, 233, 0.25); }
.rs-language-switcher a { min-width: 32px; padding: 0.45rem 0.35rem; border: 1px solid transparent; text-align: center; }
.rs-language-switcher a:hover,
.rs-language-switcher a[aria-current="page"] { color: var(--rs-ink) !important; border-color: var(--rs-gold); background: var(--rs-gold); }

.red-sox-divi-page .rs-hero-row {
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem !important;
}

.red-sox-divi-page .rs-hero-title h1 {
  margin: 0;
  color: var(--rs-cream);
  font-size: clamp(4.5rem, 7.4vw, 8rem);
  line-height: 0.86;
}
.red-sox-divi-page .rs-hero-title h1 em { color: var(--rs-red); font-style: normal; }
.red-sox-divi-page .rs-hero-title .rs-kicker { color: var(--rs-gold); }
.red-sox-divi-page .rs-hero-lead { max-width: 640px; margin: 1.8rem 0 0; }
.red-sox-divi-page .rs-hero-lead p { color: rgba(255, 248, 233, 0.76); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.68; }

.red-sox-divi-page .rs-hero-row .et_pb_button_module_wrapper {
  display: inline-block;
  margin: 1.2rem 0.65rem 0 0 !important;
}

.red-sox-divi-page .rs-button .et_pb_button,
.red-sox-divi-page .rs-contact-button .et_pb_button,
.rs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.25rem !important;
  border: 2px solid transparent !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.075em !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.red-sox-divi-page .rs-button .et_pb_button::after,
.red-sox-divi-page .rs-contact-button .et_pb_button::after { display: none; }
.red-sox-divi-page .rs-button .et_pb_button:hover,
.red-sox-divi-page .rs-contact-button .et_pb_button:hover,
.rs-button:hover { padding: 0.9rem 1.25rem !important; transform: translateY(-2px); }
.red-sox-divi-page .rs-button-primary .et_pb_button,
.rs-button-primary { color: #fff !important; background: var(--rs-red) !important; box-shadow: 5px 5px 0 var(--rs-gold); }
.red-sox-divi-page .rs-button-primary .et_pb_button:hover,
.rs-button-primary:hover { background: #ef443a !important; }
.red-sox-divi-page .rs-button-ghost .et_pb_button { color: var(--rs-cream) !important; border-color: rgba(255,255,255,0.46) !important; background: transparent !important; }
.red-sox-divi-page .rs-button-ghost .et_pb_button:hover { color: var(--rs-ink) !important; background: var(--rs-cream) !important; }

.rs-facts {
  display: flex;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  padding: 0;
  margin: 2.5rem 0 0;
  list-style: none;
}
.rs-facts li { display: grid; gap: 0.2rem; }
.rs-facts strong { color: var(--rs-cream); font-size: 1.32rem; }
.rs-facts span { color: rgba(255,248,233,0.55); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.red-sox-divi-page .rs-hero-image {
  margin: 1rem 0 0 !important;
  border: 1px solid rgba(255,255,255,0.22);
  background: #101010;
  box-shadow: 0 26px 65px rgba(0,0,0,0.43);
  transform: rotate(2deg);
}
.red-sox-divi-page .rs-hero-image img { width: 100%; }
.red-sox-divi-page .rs-photo-caption { margin: 0 !important; padding: 0.8rem 1rem; color: var(--rs-gold); background: #101010; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; transform: rotate(2deg); }

/* Band */
.red-sox-divi-page .et_pb_section.rs-band { padding: 0 0 7rem !important; background: var(--rs-paper) !important; }
.red-sox-divi-page .rs-band .et_pb_row { z-index: 3; margin-top: -5rem; padding: 0 !important; }
.red-sox-divi-page .rs-band-copy { padding: clamp(2rem, 5vw, 4rem); background: var(--rs-cream); box-shadow: var(--rs-shadow); transform: rotate(-0.45deg); }
.red-sox-divi-page .rs-band-copy h2,
.red-sox-divi-page .rs-section-heading h2,
.red-sox-divi-page .rs-booking-copy h2 { margin: 0; font-size: clamp(2.8rem, 5.3vw, 5.8rem); }
.red-sox-divi-page .rs-band-copy > .et_pb_text_inner > p:not(.rs-kicker) { max-width: 780px; margin: 1.6rem 0 0; color: #5b5144; font-size: 1.03rem; line-height: 1.75; }
.rs-members { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 2.4rem 0 0; border-top: 1px solid var(--rs-line); list-style: none; }
.rs-members li { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.75rem; padding: 1.4rem 1rem 0; border-right: 1px solid var(--rs-line); }
.rs-members li:last-child { border-right: 0; }
.rs-members span { grid-row: 1 / 3; color: var(--rs-red); font-size: 0.72rem; font-weight: 900; }
.rs-members strong { color: var(--rs-ink); font-size: 0.9rem; }
.rs-members small { color: #766958; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* Shows */
.red-sox-divi-page .et_pb_section.rs-shows { padding: 7rem 0 !important; background: var(--rs-paper) !important; }
.red-sox-divi-page .rs-section-heading { margin-bottom: 2rem !important; }
.red-sox-divi-page .rs-section-heading h2 { color: var(--rs-ink); }
.red-sox-divi-page .rs-section-heading > .et_pb_text_inner > p:last-child:not(.rs-kicker) { margin: 1rem 0 0; color: #665a4c; font-size: 1rem; }
.rs-show-list { border: 2px solid var(--rs-ink); background: rgba(255,248,233,0.45); box-shadow: 9px 9px 0 var(--rs-ink); }
.rs-show-item { display: grid; grid-template-columns: 155px 1fr auto; align-items: center; gap: 2rem; min-height: 126px; padding: 1.5rem 2rem; border-bottom: 1px solid var(--rs-line); }
.rs-show-item:last-child { border-bottom: 0; }
.rs-show-item time { display: grid; gap: 0.2rem; color: var(--rs-red-dark); }
.rs-show-item time strong { font-size: 1.05rem; }
.rs-show-item time span,
.rs-show-item p { color: #6e6252; font-size: 0.82rem; }
.rs-show-item h3 { margin: 0 0 0.35rem; color: var(--rs-ink); font-family: inherit; font-size: 1.15rem; letter-spacing: 0.01em; line-height: 1.2; }
.rs-show-item a { font-weight: 900; text-decoration: underline; text-underline-offset: 5px; }
.rs-show-empty { display: flex; align-items: center; gap: 1.2rem; min-height: 165px; padding: 2rem 2.5rem; border: 2px solid var(--rs-ink); background: rgba(255,248,233,0.45); box-shadow: 9px 9px 0 var(--rs-ink); }
.rs-show-empty p { flex: 1; margin: 0; color: #655a4b; line-height: 1.55; }
.rs-show-empty strong { color: var(--rs-ink); font-size: 1.12rem; }
.rs-show-empty a { font-weight: 900; text-decoration: underline; text-underline-offset: 5px; }
.rs-pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--rs-red); box-shadow: 0 0 0 0 rgba(223,56,47,0.5); animation: rs-pulse 2s infinite; }
@keyframes rs-pulse { 70% { box-shadow: 0 0 0 13px rgba(223,56,47,0); } 100% { box-shadow: 0 0 0 0 rgba(223,56,47,0); } }

/* Media: native Divi Image and Video modules */
.red-sox-divi-page .et_pb_section.rs-media { padding: 7rem 0 !important; background: var(--rs-paper-deep) !important; }
.red-sox-divi-page .rs-photo-grid,
.red-sox-divi-page .rs-video-row { padding: 1rem 0 !important; }
.red-sox-divi-page .rs-media-image { overflow: hidden; background: var(--rs-ink); box-shadow: 7px 7px 0 var(--rs-red); }
.red-sox-divi-page .rs-media-image .et_pb_image_wrap,
.red-sox-divi-page .rs-media-image img { display: block; width: 100%; }
.red-sox-divi-page .rs-media-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms ease; }
.red-sox-divi-page .rs-media-image:hover img { transform: scale(1.035); }
.red-sox-divi-page .rs-video-placeholder { position: relative; min-height: 290px; border: 2px dashed rgba(23,21,18,0.42); background: rgba(255,248,233,0.38); }
.red-sox-divi-page .rs-video-placeholder:empty::before,
.red-sox-divi-page .rs-video-placeholder:not(:has(.et_pb_video_box))::before {
  content: "VIDEO · YOUTUBE / VIMEO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(23,21,18,0.58);
  font-family: Impact, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  letter-spacing: 0.04em;
}
.red-sox-divi-page .rs-video-placeholder .et_pb_video_box { position: relative; z-index: 1; }
.red-sox-divi-page .rs-builder-note-row { display: none; padding: 0 !important; }
.et-fb .red-sox-divi-page .rs-builder-note-row,
.et-fb-root-ancestor .red-sox-divi-page .rs-builder-note-row { display: block; }
.red-sox-divi-page .rs-builder-note { padding: 1rem; border-left: 5px solid var(--rs-gold); color: var(--rs-ink); background: var(--rs-cream); }

/* Booking */
.red-sox-divi-page .et_pb_section.rs-booking { padding: 8rem 0 !important; color: var(--rs-cream); background: var(--rs-ink) !important; overflow: hidden; }
.red-sox-divi-page .et_pb_section.rs-booking::before { content: "RS"; position: absolute; left: -3vw; bottom: -7vw; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.045); font-family: Impact, sans-serif; font-size: 30vw; line-height: 0.8; }
.red-sox-divi-page .rs-booking-row { display: flex; align-items: flex-start; }
.red-sox-divi-page .rs-booking-copy h2 { color: var(--rs-gold); }
.red-sox-divi-page .rs-booking-copy > .et_pb_text_inner > p:not(.rs-kicker) { margin: 1.6rem 0; color: rgba(255,248,233,0.7); font-size: 1rem; line-height: 1.72; }
.rs-booking-points { display: grid; gap: 0.65rem; padding: 0; margin: 0 0 2rem; list-style: none; color: var(--rs-cream); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.red-sox-divi-page .rs-contact-button { margin: 0 !important; border-top: 1px solid rgba(255,248,233,0.18); }
.red-sox-divi-page .rs-contact-button:last-child { border-bottom: 1px solid rgba(255,248,233,0.18); }
.red-sox-divi-page .rs-contact-button .et_pb_button { display: flex; justify-content: flex-start; width: 100%; min-height: 48px; padding: 0.75rem 0 !important; color: var(--rs-cream) !important; border: 0 !important; background: transparent !important; text-transform: none; }
.red-sox-divi-page .rs-contact-button .et_pb_button:hover { padding: 0.75rem 0 !important; color: var(--rs-gold) !important; }
.rs-booking-form { padding: clamp(1.5rem, 4vw, 3rem); color: var(--rs-ink); background: var(--rs-cream); box-shadow: 10px 10px 0 var(--rs-red); }
.rs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rs-booking-form label,
.rs-booking-form legend { display: grid; gap: 0.5rem; margin-bottom: 1rem; color: var(--rs-ink); font-size: 0.73rem; font-weight: 900; letter-spacing: 0.06em; line-height: 1.45; text-transform: uppercase; }
.rs-booking-form label small { color: #7a6f60; font-size: 0.61rem; }
.rs-booking-form input[type="text"],
.rs-booking-form input[type="date"],
.rs-booking-form textarea { width: 100%; min-height: 50px; padding: 0.85rem; border: 1px solid #cbbfa9; border-radius: 0; outline: none; color: var(--rs-ink); background: rgba(255,255,255,0.42); font: inherit; text-transform: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.rs-booking-form textarea { resize: vertical; }
.rs-booking-form input:focus,
.rs-booking-form textarea:focus { border-color: var(--rs-red); box-shadow: 0 0 0 3px rgba(223,56,47,0.13); }
.rs-booking-form fieldset { padding: 0; margin: 0 0 1rem; border: 0; }
.rs-choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rs-choice-row label { margin: 0; }
.rs-choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.rs-choice-row span { display: block; padding: 0.65rem 0.8rem; border: 1px solid #cbbfa9; color: #5f5446; cursor: pointer; }
.rs-choice-row input:focus + span { outline: 3px solid rgba(223,56,47,0.18); }
.rs-choice-row input:checked + span { color: #fff; border-color: var(--rs-red-dark); background: var(--rs-red-dark); }
.rs-form-submit { width: 100%; border: 0 !important; cursor: pointer; }
.rs-form-error { min-height: 1.2rem; margin: 0 0 0.35rem; color: var(--rs-red-dark); font-size: 0.76rem; font-weight: 900; }
.rs-form-note { margin: 0.85rem 0 0 !important; color: #7a6f60; font-size: 0.68rem; line-height: 1.5; text-align: center; }

/* Small footer inside the editable Divi layout */
.red-sox-divi-page .et_pb_section.rs-footer { padding: 2.5rem 0 !important; color: rgba(255,248,233,0.62); background: #0d0c0a !important; }
.red-sox-divi-page .rs-footer .et_pb_row { padding: 0 !important; }
.rs-footer-copy { font-size: 0.78rem; text-align: center; }
.rs-footer-copy strong { color: var(--rs-red); }

/* Booking confirmation modal */
.rs-modal[hidden] { display: none; }
.rs-modal { position: fixed; z-index: 1000000; inset: 0; display: grid; place-items: center; padding: 1rem; font-family: "Trebuchet MS", Arial, sans-serif; }
.rs-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(13,12,10,0.84); backdrop-filter: blur(7px); cursor: pointer; }
.rs-modal-panel { position: relative; width: min(650px, 100%); max-height: min(760px, 90vh); padding: clamp(1.8rem, 5vw, 3.5rem); overflow-y: auto; color: var(--rs-ink); background: var(--rs-cream); box-shadow: 12px 12px 0 var(--rs-red); animation: rs-modal-in 180ms ease both; }
@keyframes rs-modal-in { from { opacity: 0; transform: translateY(16px) rotate(-1deg); } }
.rs-modal-close { position: absolute; right: 1rem; top: 0.8rem; border: 0; color: var(--rs-ink); background: transparent; font-size: 2rem; cursor: pointer; }
.rs-modal-panel h2 { margin: 0; padding-right: 2rem; font-size: clamp(2.2rem, 5vw, 4rem); }
.rs-modal-panel [data-red-sox-modal-copy] { margin-top: 1.4rem; color: #5f5446; line-height: 1.7; }
.rs-request-preview { padding: 1rem; margin: 1rem 0; border-left: 4px solid var(--rs-red); white-space: pre-wrap; color: var(--rs-ink); background: #e6dac2; font: 0.86rem/1.55 ui-monospace, monospace; }
.rs-contact-summary { padding: 0.8rem; overflow-wrap: anywhere; color: #594a31; background: rgba(245,187,69,0.2); font-size: 0.76rem; }
.rs-modal-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.rs-modal-actions a,
.rs-modal-actions button { color: #fff !important; background: var(--rs-ink) !important; text-decoration: none; }
.rs-modal-actions .rs-button-primary { background: var(--rs-red) !important; }

@media (max-width: 980px) {
  .red-sox-divi-page .rs-hero-row,
  .red-sox-divi-page .rs-booking-row { display: block; }
  .red-sox-divi-page .rs-hero-row { padding-top: 2.5rem !important; }
  .red-sox-divi-page .rs-hero-row .et_pb_column:first-child { margin-bottom: 3rem; }
  .red-sox-divi-page .rs-hero-title h1 { font-size: clamp(4rem, 12vw, 7rem); }
  .red-sox-divi-page .rs-hero-image,
  .red-sox-divi-page .rs-photo-caption { transform: none; }
  .rs-members { grid-template-columns: 1fr 1fr; }
  .rs-members li:nth-child(2) { border-right: 0; }
  .rs-members li:nth-child(n+3) { margin-top: 1rem; }
  .red-sox-divi-page .rs-booking-row .et_pb_column:first-child { margin-bottom: 3rem; }
}

@media (max-width: 760px) {
  .red-sox-divi-page .et_pb_row { width: calc(100% - 2.5rem); }
  .rs-topbar-inner { align-items: flex-start; flex-wrap: wrap; }
  .rs-anchor-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding: 0.5rem 0; }
  .rs-anchor-nav a { white-space: nowrap; }
  .rs-language-switcher { margin-left: auto; }
  .red-sox-divi-page .et_pb_section.rs-hero { min-height: auto; padding-bottom: 6rem !important; }
  .red-sox-divi-page .rs-hero-title h1 { font-size: clamp(3.4rem, 15vw, 6rem); }
  .rs-facts { gap: 1.1rem; }
  .rs-facts strong { font-size: 1.05rem; }
  .rs-facts span { font-size: 0.56rem; }
  .red-sox-divi-page .rs-band .et_pb_row { margin-top: -2rem; }
  .rs-members { grid-template-columns: 1fr; }
  .rs-members li,
  .rs-members li:nth-child(n+3) { padding: 1rem 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--rs-line); }
  .red-sox-divi-page .et_pb_section.rs-band,
  .red-sox-divi-page .et_pb_section.rs-shows,
  .red-sox-divi-page .et_pb_section.rs-media,
  .red-sox-divi-page .et_pb_section.rs-booking { padding-top: 5rem !important; padding-bottom: 5rem !important; }
  .rs-show-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .rs-show-empty { align-items: flex-start; flex-direction: column; padding: 1.5rem; }
  .red-sox-divi-page .rs-video-placeholder { min-height: 220px; }
  .rs-form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
