/* APU Showcase: portable monitors section ([apu-showcase-monitors]).
   A dark band with use-case tabs and one pick at a time, then a light grid.
   Amazon photos are shown whole and unaltered, never with text on them (Participation §6(a)). */

.apm {
  --apm-bg: #0D121B;
  --apm-bg-2: #172030;
  --apm-ink: #0D1524;
  --apm-light: #EEF2F7;
  --apm-dim: #9AA6B8;
  --apm-line: rgba(255, 255, 255, .09);
  --apm-accent: #2E5BFF;
  --apm-glow: #00C9A7;
  --apm-buy: #FFC83D;
  --apm-buy-hover: #FFB915;
  --apm-cyan: #22D3EE;
  --apm-sky: #3B9BFF;
  --apm-sweep: linear-gradient(90deg, var(--apm-sky) 0%, var(--apm-cyan) 100%);
  --apm-radius: 6px;
  --apm-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --apm-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-block: 0 56px;   /* minmax(0): a scrolling row inside can never widen the section past the screen */
  font-family: var(--apm-font); color: var(--apm-ink);
}
.apm *, .apm *::before, .apm *::after { box-sizing: border-box; }
.apm :is(h2, h3, p, ul) { margin: 0; padding: 0; }
.apm ul { list-style: none; }
.apm a { text-decoration: none; }
.apm img { display: block; max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- band */

/* In the style of a brand-store showcase: heading, a black tab strip, then one wide stage.
   The Amazon photo is shown whole (no crop, recolour or text on it, Participation §6(a));
   the headline sits beside it. */
.apm-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--apm-radius); color: var(--apm-light);
  background: #070C13;
}
.apm-head { display: grid; gap: 6px; justify-items: center; padding: 30px 40px 22px; text-align: center; }
.apm-h { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #FFFFFF; text-wrap: balance; }
.apm-h-plain { color: var(--apm-ink); }
.apm-intro { max-width: 62ch; font-size: 15px; line-height: 1.5; color: var(--apm-dim); }

/* the tab strip: a softly outlined track on the black bar holding pill tabs; the chosen one
   takes a blue-to-cyan glass fill. Every rule is prefixed .apm .apm-tabs so it outranks the
   theme's own button:hover / button:focus colours, which otherwise paint a blue block. */
.apm-tabbar { background: #000000; border-block: 1px solid rgba(255, 255, 255, .06); }
.apm .apm-tabs {
  display: flex; align-items: center; gap: 4px; width: max-content; max-width: calc(100% - 32px);
  margin: 14px auto; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.apm .apm-tabs .apm-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 10px 18px 10px 14px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none; color: rgba(255, 255, 255, .72);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .25s ease, transform .15s ease;
}
.apm .apm-tabs .apm-tab::after { display: none; }
.apm .apm-tabs .apm-tab:hover,
.apm .apm-tabs .apm-tab:focus { background: rgba(255, 255, 255, .08); color: #FFFFFF; box-shadow: none; }
.apm .apm-tabs .apm-tab:active { transform: scale(.97); }
.apm .apm-tabs .apm-tab[aria-selected="true"],
.apm .apm-tabs .apm-tab[aria-selected="true"]:hover,
.apm .apm-tabs .apm-tab[aria-selected="true"]:focus {
  background: linear-gradient(135deg, rgba(59, 155, 255, .26) 0%, rgba(34, 211, 238, .18) 100%);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5), 0 8px 22px -10px rgba(34, 211, 238, .6);
}
.apm .apm-tabs .apm-tab:focus-visible { outline: 2px solid var(--apm-cyan); outline-offset: 2px; }
.apm .apm-tabs .apm-tab:focus:not(:focus-visible) { outline: none; }
.apm-tab-icon { flex: none; width: 17px; height: 17px; color: rgba(255, 255, 255, .5); transition: color .2s ease; }
.apm .apm-tabs .apm-tab:hover .apm-tab-icon { color: rgba(255, 255, 255, .9); }
.apm .apm-tabs .apm-tab[aria-selected="true"] .apm-tab-icon { color: var(--apm-cyan); }
.apm-tab-use { font-size: inherit; font-weight: inherit; line-height: inherit; }

/* the stage: dark teal with a cyan glow behind the photo */
.apm-stage {
  position: relative; padding: 48px 100px 66px;
  background:
    radial-gradient(42% 70% at 26% 52%, rgba(34, 211, 238, .16), rgba(34, 211, 238, 0) 72%),
    radial-gradient(50% 70% at 100% 0%, rgba(59, 155, 255, .16), rgba(59, 155, 255, 0) 70%),
    linear-gradient(158deg, #14323F 0%, #0D2230 42%, #09131D 100%);
}

/* every pick shares one cell, so switching tabs never changes the stage height */
.apm-panels { display: grid; }
.apm-panel {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.apm-panel[hidden] { display: grid; visibility: hidden; opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }

/* one white box for every pick: same size whatever the photo's shape, the photo whole inside it */
.apm-photo {
  justify-self: center; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 540px; height: 340px; padding: 20px 3rem;
  border-radius: 6px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 34px 80px -26px rgba(0, 0, 0, .8), 0 0 90px -20px rgba(34, 211, 238, .28);
}
.apm-photo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .45s ease; }
.apm-photo:hover img { transform: scale(1.02); }

.apm-info { display: grid; align-content: center; gap: 16px; justify-items: start; }
.apm-use { font-family: var(--apm-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--apm-cyan); }
.apm-headline {
  font-size: clamp(28px, 3.1vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance;
  padding-bottom: .06em; color: var(--apm-cyan);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .apm-headline { background: var(--apm-sweep); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.apm-line { max-width: 44ch; font-size: 17px; line-height: 1.5; color: #E4EBF3; }
.apm-id { display: grid; gap: 10px; justify-items: start; width: 100%; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.apm-name { font-size: 15px; font-weight: 700; line-height: 1.35; color: #FFFFFF; }
.apm-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.apm-specs li {
  padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font-family: var(--apm-mono); font-size: 11.5px; line-height: 1.3; color: #DDE3EC;
}

.apm-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.apm-price { display: grid; gap: 2px; }
.apm-price > a { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.apm-price > a:hover { color: var(--apm-buy); }
.apm-asof { font-size: 11px; line-height: 1.4; color: var(--apm-dim); }
.apm .apus-details { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.apm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.apm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s;
}
.apm-btn-amazon { color: var(--apm-ink); background: var(--apm-buy); }
.apm-btn-amazon:hover { color: var(--apm-ink); background: var(--apm-buy-hover); }
.apm-btn-review { color: #FFFFFF; border-color: rgba(255, 255, 255, .32); }
.apm-btn-review:hover { color: #FFFFFF; border-color: #FFFFFF; }
.apm-btn:focus-visible { outline: 2px solid var(--apm-cyan); outline-offset: 2px; }

/* side arrows and dots move through the picks, wrapping at the ends */
.apm.apm .apm-arrow {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; margin: -24px 0 0; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%;
  background: rgba(7, 12, 19, .35); color: #FFFFFF; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.apm.apm .apm-arrow-prev { left: 26px; }
.apm.apm .apm-arrow-next { right: 26px; }
.apm.apm .apm-arrow:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.apm.apm .apm-arrow:focus-visible { outline: 2px solid var(--apm-cyan); outline-offset: 3px; }
.apm-dots { position: absolute; left: 50%; bottom: 24px; display: flex; gap: 8px; transform: translateX(-50%); }
.apm.apm .apm-dot {
  width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .32); cursor: pointer; transition: width .3s ease, background .3s ease;
}
.apm.apm .apm-dot:hover { background: rgba(255, 255, 255, .6); }
.apm.apm .apm-dot[aria-current="true"] { width: 26px; background: var(--apm-sweep); }

/* ---------------------------------------------------------------- mosaic */

.apm-more { display: grid; gap: 20px; }
.apm-more-head { display: grid; gap: 6px; }
.apm-more-h { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--apm-ink); }
.apm-more-intro { font-size: 15px; line-height: 1.5; color: #5B6475; }

/* one large tile on the left, the others to its right; fewer tiles, simpler grid */
.apm-mosaic { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 290px; }
.apm-mosaic.is-4 > :nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.apm-mosaic.is-4 > :nth-child(2) { grid-column: 3 / 5; }
.apm-mosaic.is-3 > :nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.apm-mosaic.is-3 > :nth-child(n+2) { grid-column: 3 / 5; }
.apm-mosaic.is-2 > * { grid-column: span 2; grid-row: span 2; }
.apm-mosaic.is-1 > * { grid-column: 1 / -1; grid-row: span 2; }

.apm-tile {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid #E8EBF0; border-radius: var(--apm-radius);
  background: #FFFFFF;   /* pure white: Amazon photos are on white, so no edge ever shows */
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.apm-tile:hover { transform: translateY(-3px); border-color: #DCE0E7; box-shadow: 0 28px 50px -30px rgba(13, 21, 36, .35); }

/* the label pill, top left, small */
.apm-tile-use {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  color: #FFFFFF; background: var(--apm-ink);
}

/* the photo: the Amazon one sits whole between the pill and the footer, on white */
.apm-tile-photo { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; }
.apm-tile.is-amazon .apm-tile-photo { inset: 54px 22px 84px; }
.apm-tile.is-amazon:first-child .apm-tile-photo { inset: 64px 36px 104px; }
.apm-tile.is-amazon .apm-tile-photo img { width: auto; max-height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.apm-tile.is-amazon:hover .apm-tile-photo img { transform: scale(1.04); }

/* the footer: product name and "Read the review", one link */
.apm-tile-name { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: grid; gap: 3px; color: var(--apm-ink); }
.apm-tile-title { overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.apm-tile:first-child .apm-tile-title { font-size: 19px; }
.apm-tile-more { font-size: 12.5px; font-weight: 600; color: var(--apm-accent); }
.apm-tile-more span { display: inline-block; transition: transform .25s ease; }
.apm-tile:hover .apm-tile-more span { transform: translateX(4px); }
.apm-tile-name:hover .apm-tile-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.apm-tile-name:focus-visible, .apm-tile-photo:focus-visible { outline: 2px solid var(--apm-accent); outline-offset: 3px; border-radius: var(--apm-radius); }

/* your own photo fills the tile; pill and footer become frosted glass so they read on any image */
.apm-tile.is-own .apm-tile-photo { inset: 0; }
.apm-tile.is-own .apm-tile-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.apm-tile.is-own:hover .apm-tile-photo img { transform: scale(1.04); }
.apm-tile.is-own .apm-tile-use { background: rgba(11, 15, 23, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.apm-tile.is-own .apm-tile-name {
  left: 14px; right: auto; bottom: 14px; max-width: calc(100% - 28px); padding: 11px 14px;
  border-radius: var(--apm-radius); background: rgba(11, 15, 23, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FFFFFF;
}
.apm-tile.is-own .apm-tile-more { color: #BFD0FF; }

/* ---------------------------------------------------------------- product rail ([apu-showcase-rail]) */

.apm.apm-rail { gap: 16px; }
/* one line under the whole header, running to the end of the row */
.apm-rail-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 14px; border-bottom: 1px solid #E6E9EF;
}
.apm-rail-titles { display: grid; gap: 4px; }
.apm-rail-h { font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--apm-ink); }
.apm-rail-intro { font-size: 14.5px; line-height: 1.5; color: #5B6475; }
.apm-rail-arrows { display: flex; gap: 8px; }
.apm.apm .apm-rail-arrow {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0;
  border: 1px solid #E1E5EC; border-radius: 999px; background: #FFFFFF; color: var(--apm-ink); cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
}
.apm.apm .apm-rail-arrow svg { width: 18px; height: 18px; }
.apm.apm .apm-rail-arrow:hover { border-color: var(--apm-accent); color: var(--apm-accent); }
.apm.apm .apm-rail-arrow:focus-visible { outline: 2px solid var(--apm-accent); outline-offset: 2px; }
.apm.apm .apm-rail-arrow[disabled] { opacity: .35; cursor: default; border-color: #E1E5EC; color: var(--apm-ink); }

/* the row itself: a quiet, snapping scroller, faded at the right edge while more remains */
.apm-rail-track {
  --apm-rail-gap: 18px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--apm-rail-per, 7) - 1) * var(--apm-rail-gap)) / var(--apm-rail-per, 7));
  gap: var(--apm-rail-gap); overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.apm-rail-track::-webkit-scrollbar { display: none; }
.apm-rail-item {
  position: relative; display: grid; gap: 10px; align-content: start; scroll-snap-align: start;
  padding-bottom: 12px; border-bottom: 1px solid #E6E9EF; transition: border-color .25s;
}
/* the divider between cards, drawn down the middle of the gap */
.apm-rail-item::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: calc(var(--apm-rail-gap) / -2);
  width: 1px; background: #E6E9EF;
}
.apm-rail-item:last-child::after { display: none; }
.apm-rail-bare .apm-rail-item { border-bottom: 0; }   /* a rail that scrolls, or underline="0" */
.apm-rail-item:hover { border-bottom-color: var(--apm-accent); }
.apm-rail-photo {
  display: flex; align-items: center; justify-content: center; height: 140px; padding: 6px;
  border-radius: var(--apm-radius); background: #FFFFFF;
}
.apm-rail-photo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.apm-rail-item:hover .apm-rail-photo img { transform: scale(1.06); }
.apm-rail-cap {
  font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--apm-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.apm-rail-cap:hover { color: var(--apm-accent); }
.apm-rail-cap:focus-visible, .apm-rail-photo:focus-visible { outline: 2px solid var(--apm-accent); outline-offset: 3px; border-radius: var(--apm-radius); }

/* ============================================================
   [apu-showcase-browse]: the editor's pick beside a row of category cards.
   Light strip, meant to sit above the dark band. Amazon photos sit on white,
   carry nothing on them and link only to Amazon; the name links to your hub.
   ============================================================ */
.apm-browse { display: grid; gap: 16px; }
.apm-browse-head { display: grid; gap: 5px; }
.apm-browse-h { font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--apm-ink); }
.apm-browse-intro { font-size: 14.5px; line-height: 1.5; color: #5B6475; max-width: 70ch; }

.apm-browse-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* the feature: one wide banner above the cards, copy left and the photo right */
.apm-browse-feature {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center;
  padding: 22px 26px; border: 0; border-radius: var(--apm-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .45) 57%, rgba(255, 255, 255, .88) 66%, #FFFFFF 71%),
    radial-gradient(80% 140% at 100% 0%, rgba(96, 165, 250, .45) 0%, rgba(96, 165, 250, 0) 62%),
    linear-gradient(104deg, #1E3A8A 0%, #2563EB 58%, #3B82F6 100%);
}
/* a fading border: a cyan edge on the blue side that dissolves into the white fade */
.apm-browse-feature::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  padding: 1.5px; border-radius: inherit;
  background: linear-gradient(90deg, rgba(103, 232, 249, .95) 0%, rgba(125, 211, 252, .7) 30%, rgba(147, 197, 253, .3) 55%, rgba(147, 197, 253, 0) 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* a soft sweep of light across the panel */
.apm-browse-feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(104deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 34%);
}
.apm-browse-copy { order: 1; position: relative; z-index: 1; gap: 10px; max-width: 56ch; }
.apm-browse-shot {
  order: 2; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; height: 196px; padding-right: 22px;
  background: transparent;
}
.apm-browse-shot img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform .25s; }
.apm-browse-shot:hover img { transform: scale(1.04); }
.apm-browse-copy { display: grid; gap: 8px; align-content: start; }
.apm .apm-browse-eyebrow {   /* .apm prefix: outranks the p reset, which stripped the pill's padding */
  justify-self: start; align-self: start; padding: 6px 12px; border-radius: 999px; line-height: 1.35;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  font-family: var(--apm-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #FFFFFF;
}
.apm-browse-name { font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; color: #FFFFFF; text-wrap: balance; }
.apm-browse-line { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 54ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apm-browse-price { display: grid; gap: 2px; margin-top: 2px; }
.apm-browse-price > a { font-size: 27px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.apm-browse-price > a:hover { color: var(--apm-buy); }
.apm-browse-price .apm-asof, .apm-browse-price .apus-details { color: rgba(255, 255, 255, .8); }
.apm-browse-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.apm-browse-actions .apm-btn { padding: 9px 16px; font-size: 13px; }
.apm-browse-btn-review { color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.apm-browse-btn-review:hover { color: #FFFFFF; border-color: #FFFFFF; background: rgba(255, 255, 255, .1); }

/* headline variant (headline=""): works in both looks */
.apm-browse-big { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: #FFFFFF; text-wrap: balance; }
.apm-browse-sub { font-size: 14px; font-weight: 700; line-height: 1.35; color: #FFFFFF; }
.apm-browse-bar { display: block; }

/* look="night" (default since 1.0.62), after a brand-store banner: black, a condensed teal-to-green
   headline, the product name in thin capitals, a short accent bar. The Amazon photo sits whole on a
   white card; only your own photo="" may run edge to edge and fade into the black. */
.apm-browse-feature.is-night {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center;
  min-height: 290px; padding: 28px 44px 28px 28px;
  border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(55% 90% at 88% 16%, rgba(20, 184, 166, .22), rgba(20, 184, 166, 0) 70%),
    radial-gradient(40% 70% at 100% 100%, rgba(34, 197, 94, .14), rgba(34, 197, 94, 0) 70%),
    linear-gradient(90deg, #0C1117 0%, #06080B 55%, #000000 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.apm-browse-feature.is-night::before, .apm-browse-feature.is-night::after { display: none; }
.apm-browse-feature.is-night .apm-browse-shot {
  order: 1; height: 234px; padding: 18px 3rem; border-radius: 6px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 26px 60px -24px rgba(0, 0, 0, .9), 0 0 80px -24px rgba(20, 184, 166, .35);
}
.apm-browse-feature.is-night .apm-browse-copy { order: 2; max-width: none; gap: 10px; justify-items: start; }
.apm .is-night .apm-browse-eyebrow { background: rgba(20, 184, 166, .14); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .38); color: #5EEAD4; }
.apm .is-night :is(.apm-browse-big, .apm-browse-name) {
  font-family: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--apm-font); font-weight: 700;
  text-transform: uppercase; letter-spacing: .005em; line-height: .92; padding-bottom: .04em; color: #2DD4BF;
}
.apm .is-night .apm-browse-big { font-size: clamp(42px, 5.2vw, 76px); }
.apm .is-night .apm-browse-name { font-size: clamp(30px, 3.2vw, 46px); line-height: .98; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .apm .is-night :is(.apm-browse-big, .apm-browse-name) {
    background: linear-gradient(90deg, #0EA5E9 0%, #14B8A6 45%, #22C55E 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.apm .is-night .apm-browse-sub { font-size: clamp(15px, 1.6vw, 22px); font-weight: 400; line-height: 1.25; letter-spacing: .07em; text-transform: uppercase; color: #E5E7EB; }
.is-night .apm-browse-bar { width: 84px; height: 4px; margin: 4px 0 2px; border-radius: 2px; background: linear-gradient(90deg, #14B8A6, #22C55E); }
.apm .is-night .apm-browse-line { color: rgba(255, 255, 255, .74); }
.is-night .apm-browse-price .apm-asof, .is-night .apm-browse-price .apus-details { color: rgba(255, 255, 255, .7); }
.is-night .apm-btn { border-radius: 6px; }
.is-night .apm-browse-btn-review { border-color: rgba(255, 255, 255, .3); }
.is-night .apm-browse-btn-review:hover { border-color: #2DD4BF; background: rgba(45, 212, 191, .08); }
.is-night .apm-btn:focus-visible, .is-night .apm-browse-shot:focus-visible { outline-color: #2DD4BF; }

/* your own photo="": fills the left side edge to edge and dissolves into the black */
.apm-browse-feature.is-night.has-own { min-height: 320px; }
.apm-browse-feature.is-night.has-own .apm-browse-shot {
  position: absolute; inset: 0 auto 0 0; z-index: 0; width: 60%; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none;
}
.is-night.has-own .apm-browse-shot img {
  width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 38%, rgba(0, 0, 0, .55) 68%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 38%, rgba(0, 0, 0, .55) 68%, transparent 100%);
}
.is-night.has-own .apm-browse-shot:hover img { transform: none; }
.apm-browse-feature.is-night.has-own .apm-browse-copy { grid-column: 2; }

/* the row of category cards */
.apm-browse-rail {
  /* per="" sets --apm-browse-want inline; the breakpoints below cap it, so phones never squeeze in four */
  --apm-browse-per: var(--apm-browse-want, 5);
  --apm-browse-gap: 12px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--apm-browse-per, 5) - 1) * var(--apm-browse-gap)) / var(--apm-browse-per, 5));
  gap: var(--apm-browse-gap); overflow-x: auto; padding-bottom: 2px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; list-style: none;
}
.apm-browse-rail::-webkit-scrollbar { display: none; }
.apm-browse-cat {
  display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px; scroll-snap-align: start;
  padding: 12px; border: 1px solid #E6E9EF; border-radius: var(--apm-radius); background: #FFFFFF;
  transition: border-color .25s, box-shadow .25s;
}
.apm-browse-cat:hover { border-color: #C3CCDC; box-shadow: 0 6px 18px rgba(13, 21, 36, .07); }
.apm-browse-cat.is-active { border-color: var(--apm-accent); box-shadow: inset 0 0 0 1px var(--apm-accent); }
.apm-browse-photo { display: flex; align-items: center; justify-content: center; height: 150px; padding: 6px; border-radius: var(--apm-radius); background: #FFFFFF; }
.apm-browse-photo img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform .25s; }
.apm-browse-photo:hover img { transform: scale(1.05); }
.apm-browse-photo-empty { background: #F1F4F9; }
.apm-browse-cat-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--apm-ink); text-decoration: none; text-wrap: balance; }
.apm-browse-cat-name:hover { color: var(--apm-accent); text-decoration: underline; }
.apm-browse-note { font-size: 12px; line-height: 1.4; color: #6B7688; }
.apm-browse-cat-name:focus-visible, .apm-browse-photo:focus-visible, .apm-browse-shot:focus-visible { outline: 2px solid var(--apm-accent); outline-offset: 3px; border-radius: var(--apm-radius); }

/* the name row carries the arrow, as the old hand-built CTA cards did */
.apm-browse-cat-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.apm-browse-arrow { flex: 0 0 auto; width: 15px; height: 15px; opacity: .45; transition: transform .25s, opacity .25s; }
.apm-browse-cat:hover .apm-browse-arrow { opacity: 1; transform: translateX(3px); }

/* theme="dark": the gradient band from the old cross-category section.
   Amazon photos keep their white tile inside it (Participation §6(a)). */
.apm-browse-dark {
  padding: clamp(26px, 3.2vw, 38px) clamp(20px, 3vw, 34px);
  border-radius: var(--apm-radius);
  background:
    radial-gradient(85% 120% at 100% 0%, rgba(96, 165, 250, .42) 0%, rgba(96, 165, 250, 0) 58%),
    radial-gradient(70% 110% at 0% 100%, rgba(15, 30, 80, .75) 0%, rgba(15, 30, 80, 0) 62%),
    linear-gradient(118deg, #101F52 0%, #1B3480 44%, #1D4ED8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.apm-browse-dark .apm-browse-head { justify-items: center; text-align: center; }
.apm-browse-dark .apm-browse-h { color: #FFFFFF; }
.apm-browse-dark .apm-browse-intro { color: rgba(255, 255, 255, .82); }
.apm-browse-dark .apm-browse-cat {
  background: rgba(8, 20, 56, .34); border-color: rgba(255, 255, 255, .22);
  transition: background .25s, border-color .25s, transform .25s;
}
.apm-browse-dark .apm-browse-cat:hover { background: rgba(8, 20, 56, .5); border-color: rgba(255, 255, 255, .3); box-shadow: none; transform: translateY(-3px); }
.apm-browse-dark .apm-browse-cat.is-active { border-color: var(--apm-glow); box-shadow: inset 0 0 0 1px var(--apm-glow); }
.apm-browse-dark .apm-browse-cat-name { color: #FFFFFF; }
.apm-browse-dark .apm-browse-cat-name:hover { color: #FFFFFF; }
.apm-browse-dark .apm-browse-note { color: rgba(255, 255, 255, .78); }
.apm-browse-dark .apm-browse-photo-empty { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.apm-browse-dark .apm-browse-feature { box-shadow: 0 18px 40px rgba(4, 12, 38, .35); }
/* the legal line sits on navy here: the disclosure and price terms must stay clearly legible */
.apm.apm-browse-dark .apus-legal { color: rgba(255, 255, 255, .74); }
.apm.apm-browse-dark .apus-legal-disclosure { color: #FFFFFF; }
.apm.apm-browse-dark .apus-legal a { color: #BAE6FD; }

@media (max-width: 1080px) {
  .apm-browse-feature { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .apm-browse-feature.is-night { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding-right: 32px; }
  .apm-browse-feature.is-night .apm-browse-shot { height: 210px; padding-inline: 2rem; }
  .apm-browse-rail { --apm-browse-per: min(var(--apm-browse-want, 5), 3); }
}
@media (max-width: 760px) {
  .apm-browse-feature { grid-template-columns: minmax(0, 1fr); }
  .apm-browse-shot { order: 2; height: 150px; }
  .apm-browse-feature {
    padding: 18px; gap: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .9) 74%, #FFFFFF 86%),
      linear-gradient(150deg, #1E3A8A 0%, #2563EB 62%, #3B82F6 100%);
  }
  .apm-browse-feature.is-night { grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; padding: 18px; }
  .apm-browse-feature.is-night .apm-browse-shot { height: 200px; padding: 14px 2rem; }
  .apm-browse-feature.is-night.has-own .apm-browse-shot { position: relative; inset: auto; width: auto; height: 220px; margin: -18px -18px 0; }
  .is-night.has-own .apm-browse-shot img {
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  }
  .apm-browse-feature.is-night.has-own .apm-browse-copy { grid-column: auto; }
  .apm .is-night .apm-browse-big { font-size: 44px; }
  .apm-browse-feature::before { background: linear-gradient(180deg, rgba(103, 232, 249, .95) 0%, rgba(125, 211, 252, .6) 35%, rgba(147, 197, 253, 0) 70%); }
  .apm-browse-rail { --apm-browse-per: min(var(--apm-browse-want, 5), 2); --apm-browse-gap: 10px; }
  .apm-browse-photo { height: 116px; }
}

/* progress bar: a line of dots under the rail, lit for the items on screen */
.apm-rail-still .apm-rail-bar, .apm-rail-still .apm-rail-arrows { display: none; }   /* nothing to scroll: no bar, no arrows */
.apm-rail-bar { position: relative; display: grid; grid-auto-flow: column; justify-items: center; align-items: center; padding: 6px 0; }
.apm-rail-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #E6E9EF; transform: translateY(-50%); }
.apm.apm .apm-rail-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.apm.apm .apm-rail-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C7CDD9; box-shadow: 0 0 0 3px #FFFFFF; transition: background .2s, transform .2s; }   /* the white ring keeps the line from cutting through the dot */
.apm.apm .apm-rail-dot:hover::after { background: var(--apm-ink); }
/* the lit run fades from the accent blue through cyan, darkest first */
.apm.apm .apm-rail-dot.is-on::after {
  background: var(--apm-accent);
  background: color-mix(in srgb, var(--apm-accent), var(--apm-glow) calc(var(--apm-t, 0) * 100%));
  opacity: calc(1 - var(--apm-t, 0) * .45);
  transform: scale(1.2);
}
.apm.apm .apm-rail-dot:focus-visible { outline: 2px solid var(--apm-accent); outline-offset: 1px; border-radius: 50%; }

/* ---------------------------------------------------------------- fine print */

.apm .apus-legal { display: block; max-width: 120ch; font-size: 10.5px; line-height: 1.55; color: #6B7385; }
.apm .apus-legal > span { display: inline; }
.apm .apus-legal > span + span::before { content: " "; }   /* the render strips whitespace between tags */
.apm .apus-legal-disclosure { font-weight: 600; color: var(--apm-ink); }
.apm .apus-legal-notice { font-size: 9.5px; letter-spacing: .04em; }

/* theme="clean": a light panel, the category cards first with no outlines, then one white
   strip holding the product slider. Blue only as an accent; space instead of borders. */
.apm.apm-browse-clean {
  gap: 22px; padding: 34px 36px 26px; border: 1px solid #E7EAF0; border-radius: 6px; color: #111827;
  /* a whisper of grey on the left; a blue-to-cyan wash rises from the right edge and the top corner and dissolves by mid-panel */
  background:
    radial-gradient(60% 85% at 100% 0%, rgba(34, 211, 238, .20) 0%, rgba(56, 189, 248, .11) 32%, rgba(59, 130, 246, 0) 68%),
    linear-gradient(270deg, rgba(59, 130, 246, .13) 0%, rgba(34, 211, 238, .07) 22%, rgba(34, 211, 238, 0) 48%),
    linear-gradient(90deg, #F6F7F9 0%, #FAFBFC 30%, #FFFFFF 55%);   /* the faintest grey on the left, easing to white where the wash begins */
}
.apm-browse-clean .apm-browse-head { gap: 10px; }
/* a confident heading: larger, heavier, tighter; .apm.apm keeps theme h2/p sizes out */
.apm.apm-browse-clean .apm-browse-h {
  font-family: var(--apm-font); font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.035em; color: #0B1220; text-wrap: balance;
}
.apm.apm-browse-clean .apm-browse-intro {
  font-family: var(--apm-font); font-size: clamp(15.5px, 1.2vw, 17.5px); font-weight: 500; line-height: 1.55;
  color: #475467; max-width: 62ch;
}
.apm-browse-clean .apm-browse-body { gap: 28px; }

.apm-browse-clean .apm-browse-cat,
.apm-browse-clean .apm-browse-cat:hover,
.apm-browse-clean .apm-browse-cat.is-active { padding: 0; border: 0; background: none; box-shadow: none; gap: 10px; }
.apm-browse-clean .apm-browse-photo {
  height: 150px; padding: 12px; border-radius: 6px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .06), 0 1px 3px rgba(16, 24, 40, .06);
  transition: box-shadow .25s, transform .25s;
}
.apm-browse-clean .apm-browse-cat:hover .apm-browse-photo { box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .22); transform: translateY(-2px); }
/* a category without a photo: the same white tile with a quiet line icon, not an empty box */
.apm-browse-clean .apm-browse-photo-empty {
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C3C8D0' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E") center / 44px no-repeat;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .06), 0 1px 3px rgba(16, 24, 40, .06);
}
.apm-browse-clean .apm-browse-cat-name { font-size: 14.5px; color: #111827; }
.apm-browse-clean .apm-browse-cat-name:hover { color: #2563EB; text-decoration: none; }
.apm-browse-clean .apm-browse-cat.is-active .apm-browse-cat-name { color: #2563EB; }
.apm-browse-clean .apm-browse-note { font-size: 13px; color: #6B7280; }
/* no dotted theme outline after a mouse click; keyboard focus keeps its ring */
.apm-browse-clean :is(a, button):focus:not(:focus-visible) { outline: none; }

/* the slider: one white strip, a soft shadow, no border; arrows sit in its side margins */
.apm-browse-slider {
  position: relative; display: grid; gap: 16px;
}
.apm-browse-slides {
  display: grid; padding: 26px 76px; border-radius: 6px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .05), 0 1px 3px rgba(16, 24, 40, .06), 0 14px 34px -16px rgba(16, 24, 40, .14);
}
.apm-browse-slides > [data-apm-slide] { grid-area: 1 / 1; transition: opacity .35s ease, visibility 0s; }
.apm-browse-slides > [data-apm-slide][hidden] { display: grid; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility 0s .2s; }

.apm-browse-feature.is-clean {
  overflow: visible; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center;
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.apm-browse-feature.is-clean::before, .apm-browse-feature.is-clean::after { display: none; }
.apm-browse-feature.is-clean .apm-browse-shot { order: 1; height: 210px; padding: 0 12px; background: none; }
.apm-browse-feature.is-clean .apm-browse-copy { order: 2; max-width: 62ch; gap: 8px; }
.apm .is-clean .apm-browse-eyebrow {
  padding: 0; border-radius: 0; background: none; box-shadow: none;
  font-family: var(--apm-font); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: #6B7280;
}
.apm .is-clean :is(.apm-browse-name, .apm-browse-big) { font-size: clamp(20px, 1.9vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #111827; }
.apm .is-clean .apm-browse-sub { font-size: 14px; font-weight: 600; color: #374151; }
.apm .is-clean .apm-browse-line { font-size: 15px; line-height: 1.55; color: #4B5563; }
.is-clean .apm-browse-price { margin-top: 4px; }
.is-clean .apm-browse-price > a { font-size: 26px; color: #111827; }
.is-clean .apm-browse-price > a:hover { color: #2563EB; }
.is-clean .apm-browse-price .apm-asof, .is-clean .apm-browse-price .apus-details { color: #6B7280; }
.is-clean .apm-browse-actions { margin-top: 6px; }
.is-clean .apm-btn { border-radius: 999px; padding: 10px 20px; font-size: 13.5px; }
.is-clean .apm-browse-btn-review { color: #111827; border-color: #D1D5DB; }
.is-clean .apm-browse-btn-review:hover { color: #111827; border-color: #111827; background: none; }
.is-clean .apm-btn:focus-visible, .is-clean .apm-browse-shot:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }

.apm.apm .apm-browse-nav {
  position: absolute; top: calc(50% - 16px); z-index: 2; display: grid; place-items: center;
  width: 40px; height: 40px; margin: -20px 0 0; padding: 0; border: 0; border-radius: 50%;
  background: #F3F4F6; color: #111827; cursor: pointer; transition: background .2s, color .2s;
}
.apm.apm .apm-browse-nav-prev { left: 20px; }
.apm.apm .apm-browse-nav-next { right: 20px; }
.apm.apm .apm-browse-nav:hover { background: #111827; color: #FFFFFF; }
.apm.apm .apm-browse-nav:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.apm-browse-dots { display: flex; justify-content: center; gap: 8px; }
.apm.apm .apm-browse-dot {
  width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: #D1D5DB; cursor: pointer; transition: width .3s ease, background .3s ease;
}
.apm.apm .apm-browse-dot:hover { background: #9CA3AF; }
.apm.apm .apm-browse-dot[aria-current="true"] { width: 24px; background: #2563EB; }
.apm.apm .apm-browse-dot:focus-visible { outline: 2px solid #2563EB; outline-offset: 3px; }

/* the clean theme's breakpoints sit after its rules, so they win at narrower widths */
@media (max-width: 1080px) {
  .apm-browse-feature.is-clean { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
  .apm-browse-slides { padding-inline: 68px; }
}
@media (max-width: 760px) {
  .apm.apm-browse-clean { padding: 24px 16px 20px; }
  .apm.apm-browse-clean .apm-browse-h { font-size: 26px; }
  .apm.apm-browse-clean .apm-browse-intro { font-size: 15px; }
  .apm-browse-slides { padding: 18px 18px 22px; }
  .apm-browse-feature.is-clean { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .apm-browse-feature.is-clean .apm-browse-shot { height: 180px; }
  .apm.apm .apm-browse-nav { display: none; }   /* phones: swipe or the dots */
  .apm-browse-clean .apm-browse-photo { height: 116px; }
}

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1080px) {
  .apm-stage { padding: 40px 84px 60px; }
  .apm-panel { gap: 36px; }
  .apm-photo { height: 300px; }
  .apm .apm-tabs { overflow-x: auto; scrollbar-width: none; }   /* the track scrolls when the pills no longer fit */
  .apm .apm-tabs::-webkit-scrollbar { display: none; }
  .apm .apm-tabs .apm-tab { flex: none; }
  .apm-mosaic { grid-auto-rows: 250px; }
  .apm-rail-track { --apm-rail-per: 4; }
}
@media (max-width: 860px) {
  .apm-stage { padding: 30px 22px 56px; }
  .apm-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .apm-photo { max-width: none; height: 270px; }
  .apm.apm .apm-arrow { display: none; }   /* phones: swipe, the dots or the tabs */
}
@media (max-width: 760px) {
  .apm-head { padding: 24px 18px 16px; }
  .apm .apm-tabs { margin-block: 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 5px; }
  .apm .apm-tabs .apm-tab { scroll-snap-align: start; padding: 9px 15px 9px 12px; font-size: 13.5px; }
  .apm-stage { padding: 24px 18px 52px; }
  .apm-headline { font-size: 27px; }
  .apm-line { font-size: 15.5px; }
  .apm-mosaic, .apm-mosaic[class*="is-"] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  /* :nth-child() matches the weight of the desktop placement rules, so these win on phones */
  .apm-mosaic[class*="is-"] > :nth-child(n) { grid-column: auto; grid-row: auto; height: 260px; }
  .apm-mosaic[class*="is-"] > :nth-child(1) { height: 320px; }
  .apm-tile:first-child .apm-tile-title { font-size: 17px; }
  .apm-rail-track { --apm-rail-per: 2; --apm-rail-gap: 14px; }
  .apm-rail-photo { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .apm-browse-slides > [data-apm-slide], .apm.apm .apm-browse-dot, .apm-browse-clean .apm-browse-photo { transition: none; }
  .apm-browse-clean .apm-browse-cat:hover .apm-browse-photo { transform: none; }
  .apm-panel, .apm-panel[hidden], .apm .apm-tabs .apm-tab, .apm.apm .apm-dot { transition: none; }
  .apm .apm-tabs .apm-tab:active { transform: none; }
  .apm-photo img, .apm-tab, .apm-tile, .apm-tile-photo img, .apm-tile-more span, .apm-rail-photo img, .apm.apm .apm-rail-dot::after { transition: none; }
  .apm-photo:hover img, .apm-tile:hover, .apm-tile:hover .apm-tile-photo img, .apm-tile:hover .apm-tile-more span, .apm-rail-item:hover .apm-rail-photo img { transform: none; }
}

/* theme guard: the theme and Elementor style every <button> (colour, padding, capitals, min-height).
   The plugin's button rules above carry .apm.apm so they outrank them; this resets the rest. */
.apm.apm :is(.apm-arrow, .apm-dot, .apm-browse-nav, .apm-browse-dot, .apm-rail-arrow, .apm-rail-dot) {
  text-transform: none; letter-spacing: 0; min-height: 0; line-height: 1; font-size: inherit; text-decoration: none;
}

/* the jump target a legal="short" line points at when a full block below adopts it (1.0.69) */
.apm .apus-legal > .apus-legal-anchor { display: block; height: 0; scroll-margin-top: 120px; }

/* the full Amazon wording, framed so it reads as its own notice (1.0.70); the one-line short form stays plain */
.apm .apus-legal:not(.is-short) {
  width: fit-content; max-width: 100%; padding: 12px 16px;
  border: 1px solid #E5E8EE; border-radius: 6px; background: #F8FAFC;
}
.apm.apm-browse-dark .apus-legal:not(.is-short) { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); }
