<!-- -->
/* Phone layer (Nov 17 2026). Stefanie: "on mobile should have 'sliding' ... to make viewer experience better".
 *
 * On phones, sets of cards that used to stack one under another become swipe rows: one card on screen, the next one
 * peeking in from the right, a count and two arrow buttons under the row. Long detail folds behind a "Read More"
 * button. Nothing here changes a page above 767px.
 *
 * Approved by Stefanie Nov 18 2026 ("Yes to the mobile optimization previews... change them everywhere on the live
 * site"). Every rule sits under html.ph; a small script in the page head (PHONE_GATE in export.py) adds that class
 * on every visit. Opening a page with ?phone=0 shows that one page without the phone layer, for comparing.
 *
 * How a set becomes a swipe row: add its selector to ALL THREE copies of the list below (the row, its hidden
 * scrollbar, its cards). Keep the three the same.
 * phone.js reads the same rows by the --phs custom property, adds the count and arrows, and keeps them in step.
 */

.phs-nav, .phf-more { display: none; }

/* The cookie notice in the site's own colors and type, every width (it came black, with a serif face and bright blue
   buttons). Accept and Reject look the same as each other on purpose. Sample stage like the rest: under html.ph. */
html.ph .cky-consent-container .cky-consent-bar { background: #fff !important; border: 0 !important; box-shadow: 0 -10px 34px rgba(14, 30, 54, .3) !important; }
html.ph .cky-consent-container .cky-consent-bar,
html.ph .cky-consent-container .cky-consent-bar * { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; }
html.ph .cky-consent-container .cky-title,
html.ph .cky-consent-container .cky-notice-des,
html.ph .cky-consent-container .cky-notice-des * { color: #18355E !important; }
html.ph .cky-consent-container .cky-notice-btn-wrapper .cky-btn { border-radius: 0 !important; font-weight: 700 !important; }
html.ph .cky-consent-container .cky-notice-btn-wrapper :is(.cky-btn-accept, .cky-btn-reject) { background: #18355E !important; border: 2px solid #18355E !important; color: #fff !important; }
html.ph .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize { background: #fff !important; border: 2px solid #18355E !important; color: #18355E !important; }
html.ph .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize::after { border-top-color: #18355E !important; }
html.ph .cky-consent-container .cky-consent-bar > div:last-child { filter: brightness(0); opacity: .6; }  /* the maker's credit was pale grey for a black bar */
/* Nov 18 2026 (B-032): the round "Consent Preferences" badge that stays after a choice sat bottom left over phone menu
   text, in a blue that is not hers. Bottom right, clear of the phone's home bar, in her navy. */
html.ph .cky-btn-revisit-wrapper { left: auto !important; right: 16px !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; background-color: #18355E !important; }
/* its hover label opens to the left now (the CookieYes bottom-right look), 15px, navy */
html.ph .cky-btn-revisit-wrapper.cky-revisit-bottom-left:hover::before { left: auto !important; right: calc(100% + 7px) !important; font-size: 15px !important; line-height: 20px !important; background: #0E1E36 !important; }
html.ph .cky-btn-revisit-wrapper.cky-revisit-bottom-left:hover::after { left: auto !important; right: calc(100% + 2px) !important; border-width: 5px 0 5px 5px !important; border-color: transparent transparent transparent #0E1E36 !important; }

@media (max-width: 767px) {

  /* ---- 1. swipe rows -------------------------------------------------------------------------------------- */
  html.ph :is(
    /* home */
    .gbha ul.chg__rows, .gbha ul.rack, .gbha ul.lp, .gbha ol.wwg__steps, .gbha .xs__doors,
    /* services */
    .sc-wins > .wrap:has(> .sc-win:nth-child(3)), ul.ob__list,
    /* who we help: manufacturers */
    ol.mf-stops, ul.mf-ledger,
    /* client stories */
    .sec .proc, .sec .ledger, .sec[id="website"] .reveal.t3, .gbsp-bk-grid, .gbsp-vid-list, .gbsp-bk-vgrid,
    /* the rest of the site (scan of all 210 pages at 390 wide, Nov 18 2026) */
    .abt-line, .abt-sides, .ba-stats, .bb-stops, .cr-board, .crew-four, .em-haul,
    .em-run__list, .ex-more, .ex-why__stats, .gbhub__sec .gbcat__grid, .gbsp-eps, .gbsp-steps, .gm-films__list,
    .gs-more__list, .gs-steps, .hw-films, .hw-list, .idk-planks, .igl-stage, .igl-svc, .ihw-rail, .ihw-shots,
    .ihw-wins, .ix-cards, .lb-bunks, .lb-tags, .ly-list, .mb-rows, .mb-ways, .mnc-jobs__list, .mrs-pick__list,
    .oa-pick__grid, .pg-rows, .pp-vids, .ptv-prod__grid, .ptv-walk, .pv-strip, .rt-ed__g, .sam-prods,
    .sc-cases, .sr-trio, .st-treads, .ta__rows, .td-roll__cols, .vgrid, .wd-cos, .wd-six__grid, .wl-dir__list, .wl-jobs__list, .wl-posts, .wn-rows, .ws-parts__grid
  ) {
    --phs: 1;
    position: relative;  /* so hidden helper text inside an off-screen card is clipped with its card, not left to widen the page */
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start !important;  /* a short card is not stretched to a tall neighbour (blank boxes) */
    justify-content: flex-start !important;
    gap: 14px !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    padding: 14px 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    list-style: none;
  }
  html.ph :is(
    .gbha ul.chg__rows, .gbha ul.rack, .gbha ul.lp, .gbha ol.wwg__steps, .gbha .xs__doors,
    .sc-wins > .wrap:has(> .sc-win:nth-child(3)), ul.ob__list, ol.mf-stops, ul.mf-ledger,
    .sec .proc, .sec .ledger, .sec[id="website"] .reveal.t3, .gbsp-bk-grid, .gbsp-vid-list, .gbsp-bk-vgrid,
    /* the rest of the site (scan of all 210 pages at 390 wide, Nov 18 2026) */
    .abt-line, .abt-sides, .ba-stats, .bb-stops, .cr-board, .crew-four, .em-haul,
    .em-run__list, .ex-more, .ex-why__stats, .gbhub__sec .gbcat__grid, .gbsp-eps, .gbsp-steps, .gm-films__list,
    .gs-more__list, .gs-steps, .hw-films, .hw-list, .idk-planks, .igl-stage, .igl-svc, .ihw-rail, .ihw-shots,
    .ihw-wins, .ix-cards, .lb-bunks, .lb-tags, .ly-list, .mb-rows, .mb-ways, .mnc-jobs__list, .mrs-pick__list,
    .oa-pick__grid, .pg-rows, .pp-vids, .ptv-prod__grid, .ptv-walk, .pv-strip, .rt-ed__g, .sam-prods,
    .sc-cases, .sr-trio, .st-treads, .ta__rows, .td-roll__cols, .vgrid, .wd-cos, .wd-six__grid, .wl-dir__list, .wl-jobs__list, .wl-posts, .wn-rows, .ws-parts__grid
  )::-webkit-scrollbar { display: none; }

  html.ph :is(
    .gbha ul.chg__rows, .gbha ul.rack, .gbha ul.lp, .gbha ol.wwg__steps, .gbha .xs__doors,
    .sc-wins > .wrap:has(> .sc-win:nth-child(3)), ul.ob__list, ol.mf-stops, ul.mf-ledger,
    .sec .proc, .sec .ledger, .sec[id="website"] .reveal.t3, .gbsp-bk-grid, .gbsp-vid-list, .gbsp-bk-vgrid,
    /* the rest of the site (scan of all 210 pages at 390 wide, Nov 18 2026) */
    .abt-line, .abt-sides, .ba-stats, .bb-stops, .cr-board, .crew-four, .em-haul,
    .em-run__list, .ex-more, .ex-why__stats, .gbhub__sec .gbcat__grid, .gbsp-eps, .gbsp-steps, .gm-films__list,
    .gs-more__list, .gs-steps, .hw-films, .hw-list, .idk-planks, .igl-stage, .igl-svc, .ihw-rail, .ihw-shots,
    .ihw-wins, .ix-cards, .lb-bunks, .lb-tags, .ly-list, .mb-rows, .mb-ways, .mnc-jobs__list, .mrs-pick__list,
    .oa-pick__grid, .pg-rows, .pp-vids, .ptv-prod__grid, .ptv-walk, .pv-strip, .rt-ed__g, .sam-prods,
    .sc-cases, .sr-trio, .st-treads, .ta__rows, .td-roll__cols, .vgrid, .wd-cos, .wd-six__grid, .wl-dir__list, .wl-jobs__list, .wl-posts, .wn-rows, .ws-parts__grid
  ) > * {
    flex: 0 0 var(--phs-w, 84%) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    --phs: 0;  /* the mark is for the row only: custom properties pass down to children otherwise */
  }
  /* small cards: one and a half fit */
  html.ph .gbha .xs__doors { --phs-w: 62%; }

  /* ---- 1b. cards that need a trim to sit well side by side ------------------------------------------------- */
  /* a card stretched to its tallest neighbour keeps its parts at the top, not spread out */
  html.ph [data-phs] > * { align-content: start !important; }
  /* Services: inside a swipe card the service rows show their name and arrow; the one-line note is on the
     service's own page. Keeps each card to about one screen. */
  html.ph .sc-wins > .wrap[data-phs] .sc-doors a { min-height: 56px; padding: 12px 0 10px; }
  html.ph .sc-wins > .wrap[data-phs] .sc-doors span { display: none; }
  html.ph .sc-wins > .wrap[data-phs] .sc-win { gap: 18px !important; }
  /* Manufacturers chain: the pink line that joined the stacked stops has nothing to join in a row */
  html.ph ol.mf-stops::before { display: none; }
  html.ph ol.mf-stops > .mf-stop { padding: 0 !important; border-top: 0 !important; gap: 14px !important; }
  html.ph ol.mf-stops .mf-stop__who { margin-left: 0 !important; }
  /* Then-and-now rows ("Sound familiar?", 39 pages). Stacked, each row paints its navy top edge to edge with a very
     large shadow; side by side that shadow covers the neighbours. In a swipe row each card keeps its own navy top with
     the slanted lower edge, and its own white lower half. */
  html.ph ol.ta__rows { padding-top: 22px !important; }
  html.ph ol.ta__rows > .ta__row { background: #fff; outline: 1px solid #D9DDE3; outline-offset: -1px; }
  html.ph ol.ta__rows .ta__cols { display: block; padding: 0 !important; }
  html.ph ol.ta__rows .ta__then {
    align-items: flex-start; padding: 26px 20px 46px !important; box-shadow: none !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%) !important;
  }
  html.ph ol.ta__rows .ta__then p { font-size: clamp(1.75rem, 7.4vw, 2.1rem); }
  html.ph ol.ta__rows .ta__now { padding: 16px 20px 24px !important; }
  html.ph ol.ta__rows .ta__now::after { display: none; }
  /* client story: the numbered rows sit as cards, so the rule between rows goes */
  html.ph .sec .ledger[data-phs] > .ledger-row { border: 0 !important; }

  /* rows whose cards are within 60px of each other stay even, so boxed cards and their links still line up */
  html.ph [data-phs].phs-even { align-items: stretch !important; }

  /* a keyboard user who lands on the row sees where they are */
  html.ph [data-phs]:focus-visible { outline: 3px solid #FF1894; outline-offset: -3px; }

  /* ---- 2. the count and arrows under a row ---------------------------------------------------------------- */
  html.ph .phs-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 32px;
    min-height: 48px;
    color: inherit;
  }
  html.ph .phs-nav--edge { padding-inline: 20px; }
  html.ph .phs-count {
    font: 700 15px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;  /* her rule: nothing under 15px */
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  html.ph .phs-count b { font-weight: 700; }  /* same color as the words: pink this small is too faint on white */
  html.ph .phs-btns { display: flex; gap: 10px; }
  html.ph .phs-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color .18s ease, opacity .18s ease;
  }
  html.ph .phs-btn svg { width: 22px; height: 22px; stroke: #FF1894; fill: none; stroke-width: 2.6; stroke-linecap: square; }
  html.ph .phs-btn:active { background: rgba(255, 24, 148, .16); }
  html.ph .phs-btn:focus-visible { outline: 3px solid #FF1894; outline-offset: 3px; }
  html.ph .phs-btn[aria-disabled="true"] { opacity: .32; cursor: default; }

  /* ---- 3. fold-away detail -------------------------------------------------------------------------------- */
  html.ph .phf:not(.is-open) {
    max-height: var(--phf-h, 11.5em);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 58%, transparent);
    mask-image: linear-gradient(#000 58%, transparent);
  }
  html.ph .phf-more {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: 700 17px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  html.ph .phf-more span { border-bottom: 2px solid #FF1894; padding-bottom: 4px; }
  html.ph .phf-more:focus-visible { outline: 3px solid #FF1894; outline-offset: 4px; }

  /* ---- 4. the cookie notice ------------------------------------------------------------------------------- */
  /* It stood 292 to 316px tall on a phone (over a third of the first screen) and sat on the hero's call button.
     Same words, same three choices at the same size as each other, in about half the height. */
  html.ph .cky-consent-container .cky-notice-content-wrapper { padding: 12px 0 6px !important; }
  html.ph .cky-consent-container .cky-title {
    position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
    clip-path: inset(50%) !important; white-space: nowrap !important; padding: 0 !important; margin: 0 !important;
  }
  html.ph .cky-consent-container .cky-notice-des,
  html.ph .cky-consent-container .cky-notice-des * { font-size: 15px !important; line-height: 20px !important; }  /* her rule: nothing under 15px */
  html.ph .cky-consent-container .cky-notice-des { padding: 0 16px !important; margin: 0 !important; }
  html.ph .cky-consent-container .cky-notice-des p { margin: 0 !important; }
  html.ph .cky-consent-container .cky-notice-btn-wrapper {
    flex-flow: row nowrap !important; gap: 8px !important; padding: 0 16px !important; margin: 10px 0 0 !important;
  }
  html.ph .cky-consent-container .cky-notice-btn-wrapper .cky-btn {
    flex: 1 1 0 !important; order: 0 !important; width: auto !important; min-width: 0 !important; min-height: 44px !important;
    margin: 0 !important; padding: 8px 4px !important; font-size: 15px !important; line-height: 20px !important; white-space: nowrap !important;
  }
  html.ph .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize { padding-right: 16px !important; }
  html.ph .cky-consent-container .cky-consent-bar > div:last-child { padding: 0 16px 6px !important; }
}

@media (max-width: 359px) {
  html.ph .cky-consent-container .cky-notice-btn-wrapper { gap: 6px !important; padding: 0 12px !important; }
  html.ph .cky-consent-container .cky-notice-btn-wrapper .cky-btn { font-size: 15px !important; }  /* her 15px floor (B-032); was 14px */
  /* Customise is the longest word and carries the menu arrow: a little more room so the arrow never touches the word */
  html.ph .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize { flex-grow: 1.25 !important; padding-right: 22px !important; }
  html.ph .cky-consent-container .cky-notice-des { padding: 0 12px !important; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  html.ph .phs-btn { transition: none; }
}

/* Nov 18 2026 (B-016, IMP-02): the footer's hanging tags, two per row on phones. Stefanie: "Keep the hanging tags, two
   per row on phones. yes do this." One tag per row made the tag block about 2,400px tall at 390. Now the four link
   tags hang in two columns (Services over Who We Help, Explore over Company & Contact, so reading down then across
   follows the page order) and the pink newsletter tag hangs across the full width under them. Same tags, same hang
   line and loops, same colors, 15px links. Each link stays a 44px row (touch.css), now 8px apart. Up to 760px, the
   footer's own phone breakpoint in nav.css: from 761px the footer already hangs three tags per row, and stays so. */
@media (max-width: 760px) {
  html.ph .gbf3-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 12px; row-gap: 64px; }
  html.ph .gbf3-rack .gbf3-tag.is-pink { grid-column: 1 / -1; grid-row: 3; }
  html.ph .gbf3-tag__body { padding-left: 12px; padding-right: 12px; }
  html.ph .gbf3-tag ul { display: flex; flex-direction: column; gap: 8px; }
  html.ph .gbf3-tag a { overflow-wrap: break-word; }
}
/*</head>*/
