:root {
  /* Match TemplateWebsite site.css: --darkAccent-hsl / --accent-hsl */
  --orange: #a73e26ff;
  --yellow: #f8c761ff;
  --paper: #ebeae0ff;
  --black: #000000ff;
  --white: #ffffffff;
  --container: 1100px;
  /* Sticky header band: matches banner-inner row (~14 + nav row + 12); used for in-page anchors. */
  --header-scroll-offset: 64px;
  --font-heading: "Flamante Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-scroll-offset);
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  background: var(--paper);
  color: var(--black);
  line-height: 1.6;
}

.hero-title,
.section-title,
.hero-h2,
.carousel-slide h3,
.event-slide .event-title,
.tell,
.rcg-mark {
  font-family: var(--font-heading);
}

.hero-title {
  font-weight: 400;
}

.section-title,
.hero-h2,
.tell {
  font-weight: 500;
}

.carousel-slide h3,
.event-slide .event-title {
  font-weight: 600;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--black);
  transform: translateY(-120%);
  transition: transform 180ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid rgba(240, 201, 114, 0.95);
  outline-offset: 3px;
}

/* Sticky banner */
.sticky-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--orange);
  color: var(--white);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
  gap: 16px;
}

.rcg-mark {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--white);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  background: transparent;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  pointer-events: none;
  height: clamp(16px, 4vw, 48px);
  overflow: hidden;
}

.header-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-flat .header-wave {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  background: var(--orange);
  color: var(--white);
  /* Extra bottom padding pulls orange slightly below the hero box edge so a hairline
     gap (subpixels / underline from layout) doesn’t show the page background. */
  padding: 18px 0 22px;
  overflow: hidden;
}

.hero-wave-stack {
  position: relative;
  height: clamp(28px, 6vw, 70px);
  /* Overlap the hero by 1px so orange meets the wave with no seam. */
  margin-top: -1px;
}

.wave-edge {
  line-height: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.wave-edge svg {
  display: block;
  width: 100%;
  height: clamp(28px, 6vw, 70px);
}

.wave-orange svg {
  height: clamp(28px, 6vw, 70px);
  transform: scaleY(-1);
  transform-origin: center;
}

.wave-orange {
  z-index: 2;
}

.wave-yellow {
  top: 5px;
  z-index: 1;
}

.wave-yellow svg {
  height: clamp(28px, 6vw, 70px);
  transform: scaleY(-1);
  transform-origin: center;
}

/* Same token as .yellow-surface — waves were hardcoded in HTML; this ties them to --yellow. */
.hero-wave-stack .wave-yellow path,
.wave-divider-bottom path {
  fill: var(--yellow);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(28px, 4vw, 46px);
  margin: 8px 0 14px;
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-lede {
  max-width: 820px;
  margin: 0 auto 12px;
  text-align: center;
}

.hero-top-text {
  padding-top: 8px;
}

.hero-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.hero-h2 {
  font-size: clamp(20px, 2.3vw, 24px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.hero-block {
  background: transparent;
  border: 0;
  padding: 4px 0;
}

.hero-list {
  margin: 0;
  padding-left: 18px;
}

.hero-list li {
  margin: 8px 0;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

/* Nudge scroll position up vs section ids (scroll-padding handles the header; this adds a bit more). */
#get-involved.hero-cta {
  scroll-margin-top: 20px;
}

.cta-button {
  padding: 14px 22px;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.cta-button:hover {
  filter: brightness(1.05);
}

.scroll-hint {
  margin: 18px 0 0;
  text-align: center;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.75);
}

.scroll-hint-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scroll-hint-link:hover {
  color: var(--orange);
}

.scroll-hint-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

/* Sections */
.section {
  padding: 44px 0;
}

.paper {
  background: var(--paper);
  color: var(--black);
}

.orange-surface {
  background: var(--orange);
  color: var(--white);
}

.orange-surface .section-title {
  color: var(--white);
  text-align: center;
}

.orange-surface .video-caption {
  color: rgba(255, 255, 255, 0.92);
}

.orange-surface .footer-text {
  color: rgba(255, 255, 255, 0.92);
}

.more-links {
  margin-top: 22px;
  text-align: center;
}

.more-line {
  margin: 10px 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
}

.more-links a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.yellow-surface {
  background: var(--yellow);
  color: var(--black);
}

.footer.yellow-surface {
  margin-top: -1px;
}

.yellow-surface .footer-text {
  color: rgba(0, 0, 0, 0.8);
}

.section-title {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

/* Divider before “Tell me more!” — black wave behind orange (same geometry as hero stack). */
.tell-wave-stack {
  position: relative;
  height: clamp(28px, 6vw, 70px);
  line-height: 0;
  margin-top: -1px;
}

.tell-wave-stack .wave-edge svg {
  display: block;
  width: 100%;
  height: clamp(28px, 6vw, 70px);
}

.wave-tell-orange {
  z-index: 2;
}

.wave-tell-black {
  top: -5px;
  z-index: 1;
}

.section.orange-surface.tell-more {
  margin-top: -1px;
  /* Wave sits inside this section so orange runs behind it; no extra orange strip below the wave. */
  padding-bottom: 0;
}

#videos.tell-more .container {
  padding-bottom: 44px;
}

.tell-more .wave-divider-bottom {
  position: relative;
  z-index: 1;
}

#meetups {
  padding-bottom: 47px;
}

.wave-divider-bottom {
  line-height: 0;
}

.wave-divider-bottom svg {
  display: block;
  width: 100%;
  height: clamp(28px, 6vw, 70px);
}

.section-list {
  margin: 0;
  padding-left: 20px;
}

.section-list li {
  margin: 10px 0;
}

/* Carousel */
.carousel {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--paper);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 18px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 18px;
}

.carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 min(760px, 90vw);
  border-radius: 18px;
  padding: 18px 18px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.carousel-slide h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.carousel-external-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.carousel-external-link:hover {
  color: var(--orange);
}

.carousel-external-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.carousel-slide p {
  margin: 10px 0 0;
}

/* Meet-ups: calendar + events carousel */
.meetups-actions {
  display: flex;
  justify-content: center;
  margin: 20px 0 8px;
}

.calendar-btn {
  text-align: center;
}

.events-carousel .carousel-slide {
  flex: 0 0 min(380px, 90vw);
}

.event-slide .event-title {
  font-size: clamp(18px, 2vw, 22px);
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.event-slide .event-date {
  margin: 0;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.78);
}

.event-slide .event-location {
  margin: 10px 0 0;
  font-weight: 500;
}

.event-slide .event-location::before {
  content: "Location: ";
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
}

.event-slide .event-location a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-slide .event-location a:hover {
  color: var(--orange);
}

.event-slide .event-location a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.event-slide .event-desc {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.82);
}

/* Expandable calendar description */
.event-desc-wrap {
  margin-top: 12px;
}

.event-desc-wrap .event-desc--rich {
  margin-top: 0;
}

.event-desc-wrap:not(.event-desc-wrap--expanded) .event-desc--rich {
  max-height: 7.5rem;
  overflow: hidden;
  position: relative;
}

.event-desc-wrap:not(.event-desc-wrap--expanded) .event-desc--rich::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(235, 234, 224, 0), var(--paper));
  pointer-events: none;
}

.event-desc-toggle {
  display: inline-flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-desc-toggle:hover {
  color: var(--orange);
}

.event-desc-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.event-desc--rich p {
  margin: 0.55em 0 0;
}

.event-desc--rich p:first-child {
  margin-top: 0;
}

.event-desc--rich ul,
.event-desc--rich ol {
  margin: 0.5em 0;
  padding-left: 1.35em;
}

.event-desc--rich li {
  margin: 0.25em 0;
}

.event-desc--rich blockquote {
  margin: 0.5em 0;
  padding-left: 0.9em;
  border-left: 3px solid rgba(0, 0, 0, 0.15);
}

.event-desc--rich h2,
.event-desc--rich h3,
.event-desc--rich h4 {
  font-size: 1em;
  margin: 0.65em 0 0.35em;
  line-height: 1.25;
}

.event-desc--rich h2:first-child,
.event-desc--rich h3:first-child,
.event-desc--rich h4:first-child {
  margin-top: 0;
}

.event-desc--rich a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-slide .muted,
.muted {
  color: rgba(0, 0, 0, 0.55);
}

.event-slide code {
  font-size: 0.85em;
}

.events-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
}

.events-status:empty,
.events-status[hidden] {
  display: none;
}

/* Videos */
.video-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

.video-item {
  display: grid;
  gap: 10px;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.08);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

/* Make Tell me more videos nearly full width */
#videos .container {
  width: min(1500px, calc(100% - 24px));
}

#videos .video-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

#videos .video-item {
  gap: 8px;
}

#videos .video-caption {
  font-size: 16px;
}

/* Tell me more / links */
.footer {
  padding: 30px 0 50px;
}

.footer-text {
  text-align: center;
  margin: 0;
  color: rgba(0, 0, 0, 0.8);
}

/* Mobile nav */
@media (max-width: 740px) {
  :root {
    --header-scroll-offset: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: var(--header-scroll-offset);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(155, 69, 47, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .video-row {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }
}

