/* Carnaby & Oak - opening-section vertical rhythm (v27, Nov 14 2026).
   One consistent top origin, and one eyebrow-to-title interval, on every
   public page. Only top spacing of the FIRST hero is adjusted. Bottom padding,
   hanging gallery CTA, photos, booking links, lower sections and UI untouched. */
:root{
  --co-first-hero-top: clamp(145px, 10.35vw, 185px);
  --co-first-eyebrow-gap: 12px;
}

/* Keep every hero's EXISTING section padding, height and bottom padding.
   Normalize only the top position of its text block. This avoids moving the
   art, hanging sign, or the surrounding page sections. */
body.compact-rhythm main > section.garden-hero .hero-copy{
  --co-hero-existing-top:clamp(22px,3vw,36px);
}
body.compact-rhythm main > section.whats-latest-hero .whats-latest-copy,
body.compact-rhythm main > section.co-classes-compact-hero .co-classes-intro-copy,
body.compact-rhythm.birthday-page main > section.birthday-landing-hero .birthday-landing-copy{
  --co-hero-existing-top:clamp(30px,4vw,54px);
}
body.compact-rhythm.membership-page main > section.co-join-compact-hero .co-join-hero-copy{
  --co-hero-existing-top:clamp(51px,5vw,78px);
}
body.compact-rhythm.about-page main > section.about-hero .about-hero-copy{
  --co-hero-existing-top:47px;
}
body.compact-rhythm main > section:first-of-type :is(
  .hero-copy,.whats-latest-copy,.co-classes-intro-copy,
  .birthday-landing-copy,.co-join-hero-copy,.about-hero-copy
){
  box-sizing:border-box;
  padding-top: max(0px,calc(var(--co-first-hero-top) - var(--co-hero-existing-top,0px))) !important;
  align-self:start !important;
  top:0 !important; /* remove prior one-off visual nudges */
}
body.compact-rhythm main > section.garden-hero .hero-copy{
  justify-content:flex-start !important;
}
body.compact-rhythm main > section.co-classes-compact-hero .classes-colour-inner{
  align-items:start !important;
}
/* Play has no text wrapper: adjust only its top padding. */
body.compact-rhythm main > section.play-shoes-hero.page-hero{
  padding-top:var(--co-first-hero-top) !important;
  justify-content:flex-start !important;
}
/* Gallery intentionally has no eyebrow, but its title uses the same origin. */
body.compact-rhythm.co-gallery-body main > section.co-tour-hero .co-tour-hero-copy{
  padding-top:var(--co-first-hero-top) !important;
}

/* Older Birthday and Membership styles are unusually specific. Use
   page-qualified selectors so both follow the SAME text alignment/gap. */
body.compact-rhythm.birthday-page main > section.birthday-landing-hero > .birthday-landing-copy{
  padding-top:max(0px, calc(var(--co-first-hero-top) - var(--co-hero-existing-top,54px))) !important;
  top:0 !important;
  align-self:start !important;
}
body.compact-rhythm.membership-page main > section.co-join-compact-hero.page-hero .co-join-hero-copy{
  padding-top:max(0px, calc(var(--co-first-hero-top) - var(--co-hero-existing-top,78px))) !important;
  top:0 !important;
  align-self:start !important;
}
body.compact-rhythm.birthday-page main > section.birthday-landing-hero .birthday-landing-copy > .eyebrow,
body.compact-rhythm.membership-page main > section.co-join-compact-hero.page-hero .co-join-hero-copy > .eyebrow{
  display:block !important;
  margin:0 0 var(--co-first-eyebrow-gap) !important;
  line-height:1.4 !important;
}
body.compact-rhythm.birthday-page main > section.birthday-landing-hero .birthday-landing-copy > h1,
body.compact-rhythm.membership-page main > section.co-join-compact-hero.page-hero .co-join-hero-copy > h1{
  margin-top:0 !important;
}

/* Apply the same clean space BELOW the small intro label (not above it).
   Keep all existing label typography, colors and the home yellow dash. */
body.compact-rhythm main > section:first-of-type :is(
  .hero-copy > .kicker,
  .whats-latest-copy > .whats-hero-kicker,
  .co-classes-intro-copy > .eyebrow,
  .birthday-landing-copy > .eyebrow,
  .co-join-hero-copy > .eyebrow,
  .about-hero-copy > .about-eyebrow,
  .play-hero-eyebrow
){
  margin-top:0 !important;
  margin-bottom:var(--co-first-eyebrow-gap) !important;
  line-height:1.4 !important;
}
body.compact-rhythm main > section:first-of-type :is(
  .hero-copy > h1,
  .whats-latest-copy > h1,
  .co-classes-intro-copy > h1,
  .birthday-landing-copy > h1,
  .co-join-hero-copy > h1,
  .about-hero-copy > h1,
  .play-shoes-hero > h1
){
  margin-top:0 !important;
}

/* Mobile v28: make the first content label a compact, SHARED distance below
   the navbar; each page retains its untouched artwork, horizontal gutter and
   bottom padding. The sign itself is never repositioned. */
@media (max-width:760px){
  :root{ --co-first-hero-top:clamp(94px,16vw,100px); --co-first-eyebrow-gap:12px; }
  body.compact-rhythm main > section.garden-hero .hero-copy{--co-hero-existing-top:36px;}
  /* What's On and Birthday have 18px more built-in top space than Classes. */
  body.compact-rhythm main > section.whats-latest-hero .whats-latest-copy,
  body.compact-rhythm.birthday-page main > section.birthday-landing-hero .birthday-landing-copy{
    --co-hero-existing-top:44px;
  }
  body.compact-rhythm main > section.co-classes-compact-hero .co-classes-intro-copy{
    --co-hero-existing-top:26px;
  }
  body.compact-rhythm.membership-page main > section.co-join-compact-hero .co-join-hero-copy{
    --co-hero-existing-top:39px;
  }
  body.compact-rhythm.about-page main > section.about-hero .about-hero-copy{--co-hero-existing-top:clamp(23px,calc(3.125vw + 6.25px),30px);}
}
