/* =============================================================================
   tablet.css — 700px to 1199px refinements. Loaded last, so it wins.

   Additive only. Everything is scoped between 700px and 1199px (plus a
   coarse-pointer guard for large tablets in landscape), so phones and
   desktops are untouched.

     1. Navigator-led sections fit within one tablet screen
     2. Navigation has room on a tablet
     3. Section rhythm and measure
     4. Touch-sized rail targets (any width)

   v2 (29 Sep 2026) removed the layers for retired components (hero pack
   shot, product cards, story gallery, community tiles, where-to-buy rows,
   swipe-rail grids).
   Recoverable from the microsite-v1-final tag.
============================================================================= */

/* ---------------------------------------------------------------------------
   1. NAVIGATOR FIT
   Navigator destinations occupy one available screen. Content may still grow
   naturally for large text settings, so nothing is clipped.
--------------------------------------------------------------------------- */
@media (min-width: 700px) and (max-width: 1199px) {
  html {
    scroll-padding-top: var(--fit-header, 72px);
    scroll-snap-type: y proximity;
  }

  [data-fit][data-fit],
  [data-fit][data-fit-first] {
    min-height: calc(100svh - var(--fit-header, 72px));
    display: grid;
    align-content: center;
    scroll-snap-align: start;
  }

  [data-fit][data-fit-first] {
    min-height: calc(100svh - var(--fit-chrome, 0px));
  }

}

@media (pointer: coarse) and (min-width: 1200px) and (max-width: 1400px) {
  html {
    scroll-snap-type: none;
  }

  [data-fit][data-fit],
  [data-fit][data-fit-first] {
    min-height: 0;
    scroll-snap-align: none;
  }
}

/* ---------------------------------------------------------------------------
   2. NAVIGATION — a tablet has room for the section links
--------------------------------------------------------------------------- */
@media (min-width: 700px) and (max-width: 1199px) {
  /* Dot-only while resting; expands to the same labelled window used on the
     largest desktop when hovered or keyboard-focused. */
  .c1-rail[class] {
    display: flex;
    right: 12px;
    width: 42px;
    min-width: 42px;
    padding: 14px 10px;
    gap: 11px;
    border-radius: 999px;
    overflow: hidden;
    transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
      min-width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
      padding 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
      border-radius 0.45s ease, background-color 0.35s ease;
  }

  .c1-rail[class]:hover,
  .c1-rail[class]:focus-within {
    width: 166px;
    min-width: 166px;
    padding: 20px 18px;
    gap: 14px;
    border-radius: 22px;
    background: rgba(245, 242, 234, 0.9);
  }

  .c1-rail[class] a {
    width: 100%;
    min-height: 20px;
    padding: 2px;
    gap: 0;
    font-size: 0;
    letter-spacing: 0;
    justify-content: center;
  }

  .c1-rail[class] a span:not(.c1-rail__dot) {
    display: block;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: max-width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 0.25s ease 0.05s, transform 0.35s ease;
  }

  .c1-rail[class]:hover a,
  .c1-rail[class]:focus-within a {
    gap: 12px;
    font-size: 9.5px;
    letter-spacing: 0.2em;
    justify-content: flex-end;
  }

  .c1-rail[class]:hover a.is-active,
  .c1-rail[class]:focus-within a.is-active {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .c1-rail[class]:hover a span:not(.c1-rail__dot),
  .c1-rail[class]:focus-within a span:not(.c1-rail__dot) {
    max-width: 112px;
    opacity: 1;
    transform: none;
  }

  .c1-nav__links {
    display: flex;
    gap: 22px;
  }

  .c1-nav__links a {
    font-size: 11px;
  }
}

/* ---------------------------------------------------------------------------
   3. RHYTHM AND MEASURE
--------------------------------------------------------------------------- */
@media (min-width: 700px) and (max-width: 1199px) {
  .c1 {
    --section-y: clamp(30px, 4.5svh, 54px);
  }

  .c1-h2 {
    font-size: clamp(30px, 4.4vw, 42px);
    line-height: 1.12;
  }

  .c1-section__head,
  .c1-stockists__head {
    margin-bottom: 30px;
    max-width: 56ch;
  }

  .c1-lede,
  .c1-story__cell p {
    font-size: clamp(13.5px, 1.65vw, 15.5px);
    line-height: 1.62;
  }
}

@media (min-width: 700px) and (prefers-reduced-motion: reduce) {
  .c1-rail[class],
  .c1-rail[class] a span:not(.c1-rail__dot) {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   4. TOUCH-SIZED RAIL TARGETS
   On a touch screen every rail dot gets a full 44px row, at any width. The
   per-breakpoint rail rules above set 20-26px rows for pointer precision;
   the extra attribute here outranks them all, whatever their media query.
--------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .c1-rail[data-rail][class] {
    gap: 0;
  }

  .c1-rail[data-rail][class] a {
    min-height: 44px;
    padding-block: 0;
  }
}
