/* What we buy: tiles take the photos' 3:2 shape, so no white field above or below (Adam, 14 Oct) */
.vq-cats-ed[data-tiles="overlay"] .vq-tile:not(.vq-tile--more):not(.vq-tile--big){aspect-ratio:3/2}
@media (max-width:63.99em){.vq-cats-ed[data-tiles="overlay"] .vq-tile--big{aspect-ratio:3/2}}
/* Top eBay strip centred now the call line is gone (Adam, 14 Oct) */
.vq-banner .vq-banner__inner.vq-container{justify-content:center}
.vq-banner .vq-banner__facts{justify-content:center;flex-wrap:wrap}
/* Tile arrow discs: centre the arrow again (the phone-hide rule set display:block on desktop) */
@media (min-width:48em){.vq-cats-ed[data-tiles="overlay"] .vq-tile:not(.vq-tile--more):not(.vq-tile--big) span i{display:grid;place-items:center}}


/* Header: the four nav links stay on one row from 1280px up; the wider wordmark left column 2 a fraction short and they wrapped to two rows (Adam, 20 Oct) */
@media (min-width:80em){body:has(.vq-hero-ed) .vq-header{column-gap:16px}body:has(.vq-hero-ed) .vq-nav__list{flex-wrap:nowrap}body:has(.vq-hero-ed) .vq-nav__list a,body:has(.vq-hero-ed) .vq-header__phone-number,body:has(.vq-hero-ed) .vq-header__freepack{white-space:nowrap}}

/* Header 1024 to 1279px: one row too (logo 60px, tighter link padding, smaller number) (Adam, 20 Oct) */
@media (min-width:64em) and (max-width:79.99em){body:has(.vq-hero-ed) .vq-header{column-gap:8px}body:has(.vq-hero-ed) .vq-nav__list{flex-wrap:nowrap;gap:0}body:has(.vq-hero-ed) .vq-nav__list a{padding-inline:8px;white-space:nowrap}body:has(.vq-hero-ed) .vq-header__mark .vq-logo-wordmark{block-size:52px;margin-block:0}body:has(.vq-hero-ed) .vq-header__phone-number{font-size:1.125rem;white-space:nowrap}body:has(.vq-hero-ed) .vq-header__freepack{padding-inline:20px;white-space:nowrap}}
/* Header: the logo keeps its shape (it was squeezed to fit the row) (20 Oct) */
@media (min-width:64em){body:has(.vq-hero-ed) .vq-header__mark .vq-logo-wordmark{inline-size:auto;max-inline-size:none;flex-shrink:0}}
/* Phone: the closing free-pack band had 84px above and below; 24px (Site Builder audit, 20 Oct) */
@media (max-width:47.99em){.vq-cta-ed{padding-block:1.5rem}}
/* Header on pages without the editorial hero (legal pages, /sitemap): the same one-row header as every other page (Launch Check, 20 Oct) */
body:not(:has(.vq-hero-ed)) .vq-header{background:var(--vq-color-surface-page)}
body:not(:has(.vq-hero-ed)) .vq-nav{border-block-start:0}
body:not(:has(.vq-hero-ed)) .vq-nav__list a{font:var(--vq-type-nav);border-radius:var(--vq-radius-pill);padding-inline:var(--vq-space-card-padding-mobile)}
body:not(:has(.vq-hero-ed)) .vq-nav__list a:hover{background:var(--vq-color-surface-reassure)}
body:not(:has(.vq-hero-ed)) .vq-menu__freepack{display:flex}
body:not(:has(.vq-hero-ed)) .vq-header__freepack{display:inline-flex;align-items:center;min-block-size:var(--vq-size-button-height);padding-inline:var(--vq-space-card-gap);border-radius:var(--vq-radius-pill);background:var(--vq-color-action-primary);color:var(--vq-color-text-on-action);font:var(--vq-type-action-label);text-decoration:none;box-shadow:var(--vq-shadow-action)}
body:not(:has(.vq-hero-ed)) .vq-header__freepack:hover{background:var(--vq-color-action-primary-hover)}
@media (max-width:47.99em){body:not(:has(.vq-hero-ed)) .vq-header__phone{display:none}body:not(:has(.vq-hero-ed)) .vq-header__freepack{display:none}}
@media (min-width:64em){body:not(:has(.vq-hero-ed)) .vq-header{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;column-gap:var(--vq-space-card-gap);min-block-size:var(--vq-size-header-row);padding-inline:max(var(--vq-space-card-gap),calc((100vw - var(--vq-size-editorial-wrap)) / 2 + var(--vq-space-card-gap)))}body:not(:has(.vq-hero-ed)) .vq-header .vq-container,body:not(:has(.vq-hero-ed)) .vq-header .vq-header__inner,body:not(:has(.vq-hero-ed)) .vq-nav .vq-container{display:contents}body:not(:has(.vq-hero-ed)) .vq-header .vq-container{max-inline-size:none;padding:0;margin:0}body:not(:has(.vq-hero-ed)) .vq-header__mark{grid-column:1;grid-row:1}body:not(:has(.vq-hero-ed)) .vq-nav{grid-column:2;grid-row:1;justify-self:start}body:not(:has(.vq-hero-ed)) .vq-nav__list{padding-block:0;gap:var(--vq-space-inline-hair)}body:not(:has(.vq-hero-ed)) .vq-header__phone{grid-column:3;grid-row:1}body:not(:has(.vq-hero-ed)) .vq-header__freepack{grid-column:4;grid-row:1}body:not(:has(.vq-hero-ed)) .vq-header__phone-number{font:var(--vq-type-call-number)}}
@media (min-width:80em){body:not(:has(.vq-hero-ed)) .vq-header{column-gap:16px}body:not(:has(.vq-hero-ed)) .vq-nav__list{flex-wrap:nowrap}body:not(:has(.vq-hero-ed)) .vq-nav__list a,body:not(:has(.vq-hero-ed)) .vq-header__phone-number,body:not(:has(.vq-hero-ed)) .vq-header__freepack{white-space:nowrap}}
@media (min-width:64em) and (max-width:79.99em){body:not(:has(.vq-hero-ed)) .vq-header{column-gap:8px}body:not(:has(.vq-hero-ed)) .vq-nav__list{flex-wrap:nowrap;gap:0}body:not(:has(.vq-hero-ed)) .vq-nav__list a{padding-inline:8px;white-space:nowrap}body:not(:has(.vq-hero-ed)) .vq-header__mark .vq-logo-wordmark{block-size:52px;margin-block:0}body:not(:has(.vq-hero-ed)) .vq-header__phone-number{font-size:1.125rem;white-space:nowrap}body:not(:has(.vq-hero-ed)) .vq-header__freepack{padding-inline:20px;white-space:nowrap}}
@media (min-width:64em){body:not(:has(.vq-hero-ed)) .vq-header__mark .vq-logo-wordmark{inline-size:auto;max-inline-size:none;flex-shrink:0}}

/* How it works and home steps: each step picture is shown whole inside its frame, never cropped (Adam's rule, vs-49a.1, 21 Oct). The frame keeps its shape; the picture sits centred on the card colour. */
.vq-estep__pic img{object-fit:contain}

/* PHONE FIXES (vs-49a, Cillian 21 Oct). Phones only (max-width 47.99em), our tokens only; desktop is untouched. Our own look is kept: the blue-gradient tiles, our buttons, our colours. */
@media (max-width: 47.99em) {

  /* 1. THE GRADIENT, MUCH LIGHTER: it no longer lies over most of the photo. It is a short band behind the label only (as tall as the label needs, one line or two), full strength under the words so the white label keeps its contrast on a pale photo, fading to nothing in about 1.25rem above them. The photo above is untouched. */
  body .vq-cats-ed[data-tiles="overlay"] .vq-tile:not(.vq-tile--more)::after { display: none; }
  body .vq-cats-ed[data-tiles="overlay"] .vq-tile:not(.vq-tile--more) span {
    padding-block-start: 1.25rem;
    padding-block-end: var(--vq-space-stack-related);
    background: linear-gradient(0deg,
      color-mix(in srgb, var(--vq-color-surface-brand-hover) 70%, transparent) 0,
      color-mix(in srgb, var(--vq-color-surface-brand-hover) 70%, transparent) calc(100% - 1.25rem),
      transparent 100%);
  }

  /* The band runs the full width of the tile and the label has room for its words next to the arrow: a feature tile's label box was capped at 80% (so the band stopped short), and long names such as Camcorders were cut off. */
  body .vq-cats-ed[data-tiles="overlay"] .vq-tile:not(.vq-tile--more) span { max-inline-size: none; padding-inline: var(--vq-space-stack-related); }
  body .vq-cats-ed[data-tiles="overlay"] .vq-tile:not(.vq-tile--more):not(.vq-tile--big) span { font-size: calc(var(--vq-type-small-font-size) * 0.9375); }

  /* 2. THE YELLOW ARROW BUTTONS ON SMALL TILES, which the phone layout had switched off: shown again, a little smaller so the label keeps its room. */
  body .vq-cats-ed[data-tiles="overlay"] .vq-tile:not(.vq-tile--more):not(.vq-tile--big) span i {
    display: grid;
    place-items: center;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    flex: none;
  }

  /* A small tile that would sit alone in its row (it starts a row and the next tile is a feature tile or the closing tile) spans both columns instead of leaving half a row empty. No reordering. */
  body .vq-cats-ed[data-tiles="overlay"] .vq-cats-ed__grid > .vq-tile:not(.vq-tile--big):not(.vq-tile--more):first-child:has(+ :is(.vq-tile--big, .vq-tile--more)),
  body .vq-cats-ed[data-tiles="overlay"] .vq-cats-ed__grid > .vq-tile--big + .vq-tile:not(.vq-tile--big):not(.vq-tile--more):has(+ :is(.vq-tile--big, .vq-tile--more)),
  body .vq-cats-ed[data-tiles="overlay"] .vq-cats-ed__grid > .vq-tile--big + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more):has(+ :is(.vq-tile--big, .vq-tile--more)),
  body .vq-cats-ed[data-tiles="overlay"] .vq-cats-ed__grid > .vq-tile--big + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more):has(+ :is(.vq-tile--big, .vq-tile--more)),
  body .vq-cats-ed[data-tiles="overlay"] .vq-cats-ed__grid > .vq-tile--big + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more):has(+ :is(.vq-tile--big, .vq-tile--more)),
  body .vq-cats-ed[data-tiles="overlay"] .vq-cats-ed__grid > .vq-tile--big + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more) + .vq-tile:not(.vq-tile--big):not(.vq-tile--more):has(+ :is(.vq-tile--big, .vq-tile--more)) {
    grid-column: 1 / -1;
  }

  /* 3. BLANK WHITE GAPS. The cause is that every band has 84px of padding top and bottom on a phone, so two bands in a row leave 168px of nothing. Halved here by the token the bands read. */
  html:root { --vq-space-section-gap-ed-mobile: 2rem; }
  /* A group whose title is empty still drew its heading block: the cameras page had one before its cards. An empty title draws nothing. */
  body .vq-ed-head:has(> .vq-prose-ed__title:empty:only-child) { display: none; }
  body .vq-prose-ed__title:empty { display: none; }

  /* More room for the arrows between the how-it-works steps (the trail's connectors lengthen with the gap). */
  body .vq-trail__list { gap: 6.5rem; }

  /* The eBay strip on ONE slim line that fits from 360 to 390: logo, the five stars, the count and the one link, side by side. */
  body .vq-banner__facts li:first-child {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--vq-space-inline-tight);
    min-inline-size: 0;
  }
  body .vq-banner__logo { block-size: 1.125rem; inline-size: auto; flex: none; }
  body .vq-banner .vq-stars { flex: none; display: inline-flex; }
  body .vq-banner .vq-stars .vq-icon { inline-size: 0.75rem; block-size: 0.75rem; }
  body .vq-banner__link { white-space: nowrap; font-size: calc(var(--vq-type-small-font-size) * 0.8125); line-height: 1.25; min-inline-size: 0; }

  /* Contact page, "What to ask us": the arrow sits to the right of the text, not alone on a line under it. */
  body .vq-ccard--link { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--vq-space-stack-fields); align-items: center; }
  body .vq-ccard--link > :not(.vq-ccard__go) { grid-column: 1; }
  body .vq-ccard--link > .vq-ccard__go { grid-column: 2; grid-row: 1 / span 3; font-style: normal; font-size: var(--vq-type-h3-font-size); line-height: 1; color: var(--vq-color-text-accent); }
}

/* ROUND 3 (vs-iz8 and the Launch Check list). Phones and tablets use the strip, so item 1 holds below 64em; the rest are phones. */
/* ALL WIDTHS (vs-1kd): the strip's list has a 5px negative margin on BOTH sides (room for the focus ring); the right-hand one pushed the page 5px wider than the screen at every width, desktop included. The right margin is now 0 (the list still ends flush with the strip and keeps its 5px of inner padding, so the last link's focus ring still shows); the left margin stays, so the first link still lines up with the text edge. */
.vq-catstrip__list { margin-inline-end: 0; }

@media (max-width: 63.99em) {
  /* 1. THE CATEGORY STRIP stays inside the page. Its list sits 5px outside the strip on each side (negative margins that leave room for the focus ring) and that pushed the page to 395px wide. The strip itself now clips sideways overflow (clip, not hidden, so it cannot scroll by itself); the list inside still scrolls left to right. */
  body .vq-catstrip { overflow-x: clip; }
}