/* orewavet — the locations cloud edge and the after-hours separator band.
   Brand skin (theme model, phase 0): static file served at /themes/<id>/skin.css, hoisted into <head> by the tenant layout. Every rule lives in
   `@layer brand` (declared after Tailwind's utilities in globals.css) and every selector starts with `[data-tenant="<id>"]`. */
@layer brand {
  /* Orewa: the home's locations band (the one that opens onto the tinted services band) ends in a 320px tail holding the cloud
     edge that rises into the services band. The authored /contact page's locations block has no services band after it. */
  [data-tenant="orewavet"] [data-reveal='locations']:has(+ [data-reveal='service']) [data-block='locations'] {
    position: relative;
    isolation: isolate;
  }
  @media (min-width: 768px) {
    [data-tenant="orewavet"] [data-reveal='locations']:has(+ [data-reveal='service']) [data-block='locations'] {
      padding-bottom: 320px;
    }
  }
  [data-tenant="orewavet"] [data-reveal='locations']:has(+ [data-reveal='service']) [data-block='locations']::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 139px;
    pointer-events: none;
    background: url('/themes/orewavet/assets/locations-wave.svg') 0 0 / 100% 100% no-repeat;
  }
  /* The after-hours speech-bubble band is 800px tall with its copy centred over the artwork (and a 208x48 CTA). */
  [data-tenant="orewavet"] [data-block='imageSeparator'] {
    display: flex;
    align-items: center;
    min-height: 800px;
  }
  [data-tenant="orewavet"] [data-block='imageSeparator'] > div:not([aria-hidden]) {
    width: 100%;
  }
  [data-tenant="orewavet"] [data-block='imageSeparator'] a[data-action='primary'] {
    height: 48px;
    min-width: 208px;
  }
  /* The after-hours copy is white on the blue band as on live (the on-primary token resolves to black on Orewa; RD-Q-3). */
  [data-tenant="orewavet"] [data-block='imageSeparator'] p {
    color: white;
  }
  /* App band: the kicker is Jaldi 700, no transform (14/21 from md; the phone keeps its 12px), the summary 18/27 from md (RD-Q-5). */
  [data-tenant="orewavet"] [data-block='appPromo'] [data-eyebrow] {
    font-weight: 700;
    text-transform: none;
  }
  @media (min-width: 768px) {
    [data-tenant="orewavet"] [data-block='appPromo'] [data-eyebrow] {
      font-size: 14px;
      line-height: 21px;
    }
    [data-tenant="orewavet"] [data-block='appPromo'] [data-body] {
      font-size: 18px;
      line-height: 27px;
    }
    /* OUR TEAM heading sits on the 1280 column (x80) inside the full-width band, not the 91px gutter (RD-Q-6). The carousel below is a
       sibling and keeps its own frame and -78px arrows. */
    [data-tenant="orewavet"] [data-block='groupList'] > div:first-child {
      padding-inline: 80px;
    }
  }
  /* Home CTAs (live pill, RD-Q-4): Jaldi 600 and a full radius on the hero REQUEST APPOINTMENT, the after-hours GLENFIELD and the
     wellness-promo CREATE NOW. The components keep their boxes (h-10 / 171, h-12 / 208, h-10 w-40); padding and border sit inside them. */
  [data-tenant="orewavet"] [data-block='heroCarousel'] [data-action='primary'],
  [data-tenant="orewavet"] [data-block='imageSeparator'] [data-action='primary'],
  [data-tenant="orewavet"] [data-block='wellnessHeroPromo'] [data-action='primary'] {
    border-radius: 9999px;
    font-weight: 600;
  }
  [data-tenant="orewavet"] [data-block='heroCarousel'] [data-action='primary'],
  [data-tenant="orewavet"] [data-block='wellnessHeroPromo'] [data-action='primary'] {
    padding: 12px 16px;
  }
  /* Phone hero pill: the legacy `cta` label, Jaldi 700 12px/12px (C-4c); the 600 14/20 above holds from md up. */
  @media (max-width: 767.98px) {
    [data-tenant="orewavet"] [data-block='heroCarousel'] [data-action='primary'] {
      font-size: 12px;
      font-weight: 700;
      line-height: 12px;
    }
  }
  [data-tenant="orewavet"] [data-block='wellnessHeroPromo'] [data-action='primary'] {
    border: 1px solid var(--color-secondary);
  }
  [data-tenant="orewavet"] [data-block='imageSeparator'] [data-action='primary'] {
    font-size: 12px;
    line-height: 16px;
  }
  /* /contact (locations fill mode, RD-Q-8): the block that owns the page h1 is the only one whose inner container holds an h1 directly.
     The live CONTACT US pill is Jaldi 600 with a 1px transparent border and 12px 24px padding (the component's h-10 keeps the 40px box),
     and the live desktop title sits 16px lower than the component's own spacing puts it (on a phone dev is 8px low, so no shift there). */
  [data-tenant="orewavet"] [data-block='locations']:has(> div > h1) [data-card] [data-action='primary'] {
    border: 1px solid transparent;
    font-weight: 600;
    padding: 12px 24px;
  }
  /* On a phone the live pill is Jaldi 12px/12px in a 110x38 box (the component's 14/20 type and h-10 give 123x40). */
  @media (max-width: 767.98px) {
    [data-tenant="orewavet"] [data-block='locations']:has(> div > h1) [data-card] [data-action='primary'] {
      font-size: 12px;
      height: auto;
      line-height: 12px;
    }
  }
  @media (min-width: 768px) {
    [data-tenant="orewavet"] [data-block='locations']:has(> div > h1) > div {
      padding-top: 16px;
    }
  }
  /* The clinic page's WHERE TO FIND US band (the only locations band holding ul[data-hours]) carries white phone / email / address lines on the
     brand blue as on live; the on-primary token resolves to black on Orewa (RD-Q-3). The h3 stays brand yellow. */
  [data-tenant="orewavet"] [data-block='locations']:has(ul[data-hours]) a[href^='tel:'],
  [data-tenant="orewavet"] [data-block='locations']:has(ul[data-hours]) a[href^='mailto:'],
  [data-tenant="orewavet"] [data-block='locations']:has(ul[data-hours]) p {
    color: white;
  }
  /* Service pages (cards c): the live page leaves 160px under the sidebar card; the wrapper's own pb-8 supplies 32 of it, so the card
     carries the other 128. It only shows where the sidebar is the tallest column (emergency-and-after-hours, home-visits) — a longer
     body column (cat-boarding) already sets the section height. */
  @media (min-width: 1024px) {
    [data-tenant="orewavet"] [data-block='serviceDetail'] > [data-card] {
      margin-bottom: 128px;
    }
  }
  /* Home OUR SERVICES (cards c): the second row is straight at rest, as on live (live only staggers it with scroll parallax). The component
     steps cards 7-10 down 16/43/63/71px with lg-only utilities; zero them here (the brand layer outranks utilities). Those offsets also
     set the row's height (tallest offset 63px + card), so the row keeps that 63px as bottom margin on all five cards: the band stays
     1180/1276 and the cards stay equal height. */
  @media (min-width: 1024px) {
    [data-tenant="orewavet"] [data-block='service'] [data-card]:nth-child(n + 7):nth-child(-n + 10) {
      margin-top: 0;
    }
    [data-tenant="orewavet"] [data-block='service'] [data-card]:nth-child(n + 6):nth-child(-n + 10) {
      margin-bottom: 63px;
    }
  }
  /* Header (live, RD-O2B-2): nav items are Jaldi 700 14px/14px; the Download app and Book appointment pills are Jaldi 600 14/20 with the live
     vertical padding (10px / 8px, from md where live was measured; the component keeps its h-9 / h-8 boxes, 114x36 and 134x32), and Book appointment's label is white on the
     yellow (the on-secondary token resolves to black on Orewa). */
  @media (min-width: 768px) {
    [data-tenant="orewavet"] header [data-nav-item] {
      line-height: 14px;
    }
    [data-tenant="orewavet"] header [data-action='secondary'],
    [data-tenant="orewavet"] header [data-action='primary'] {
      font-weight: 600;
      line-height: 20px;
    }
    [data-tenant="orewavet"] header [data-action='secondary'] {
      padding: 10px 16px;
    }
    [data-tenant="orewavet"] header [data-action='primary'] {
      padding: 8px 16px;
      color: white;
    }
  }
  /* Footer (RD-O2B-3): Download app and Subscribe are Jaldi 600 (the component's font-bold is 700); Download app carries a 1px yellow
     border and 16px 24px padding inside its 130x48 box, Subscribe 12px 16px inside 86x44. Both keep the component's colours and boxes. */
  @media (min-width: 768px) {
    [data-tenant="orewavet"] footer [data-action='primary'] {
      border: 1px solid var(--color-secondary);
      font-weight: 600;
      line-height: 20px;
      padding: 16px 24px;
    }
    [data-tenant="orewavet"] footer form button {
      font-weight: 600;
      line-height: 20px;
      padding: 12px 16px;
    }
  }
  /* News chips (live, RD-O2B-4): idle category chips are 1px primary-blue bordered, primary-blue text, 4px 8px; the active All chip keeps its filled style. */
  [data-tenant="orewavet"] [data-block='newsList'] button[data-chip]:not([aria-pressed='true']) {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 4px 8px;
  }
  /* The /news listing (cards c) sits on the tinted surface band. */
  [data-tenant="orewavet"] main[data-route="news"] {
    background: var(--color-surface-alt);
  }
}
