/* Gear section identity (/materiel, layouts/product.njk), loaded after product.css. "Encre, cuivre et
   vert-de-gris": blue-black ink, a copper accent and its patina, a contour map that runs down the page
   under a fine grain. Each colour has one job. Copper is the decision: buying, the verdict, our pick,
   the kickers. Verdigris (--gx-mes) is the measure: dimension lines, spot heights, data bars. It sits
   near 172° in OKLCH, about as far from the copper (58°) as from the ink (259°), at the copper's
   lightness with a little less chroma, so it never competes with a buy button.
   Same rules as the rest of Latence: no dots or pills, no shadows or glows, no frames around
   blocks (air and tone separate them), corners 0 to 2 px, nothing under 12 px. The section stays
   dark whatever the site theme; Latence only signs the masthead and its own block. */

/* Tokens: the section remaps the site tokens product.css reads, so every widget follows. */
.pd {
  --gx-bg: #0e1116; --gx-bg-top: #171c25; --gx-tone: #141922; --gx-tone-2: #232b37;
  --gx-ink: #eef1f5; --gx-muted: #98a2b1; --gx-rule: #2c3442; --gx-bar: #4a5464;
  --gx-acc: #d9935c; --gx-on-acc: #1a1008;
  --gx-mes: #6fbda5; --gx-mes-deep: #19604e;
  --landing-bg: var(--gx-bg); --landing-ink: var(--gx-ink); --landing-muted: var(--gx-muted); --landing-line: var(--gx-rule);
  --site-accent: var(--gx-acc);
  --pd-card: var(--gx-tone); --pd-card-2: var(--gx-tone-2); --pd-line: var(--gx-rule);
  --pd-radius: 2px; --pd-shadow: none;
  position: relative; isolation: isolate; counter-reset: gx-sec;
  background: url(/img/materiel/topo-page.svg) repeat-y center 900px / 1280px 2400px, linear-gradient(var(--gx-bg-top), var(--gx-bg) 900px);
  color: var(--gx-ink); color-scheme: dark;
}
/* Fine grain over the whole section: breaks the flat dark and the banding of the gradients. */
.pd::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Site chrome on these pages (header, footer, cookie notice) takes the same ink and copper. */
body:has(.pd) {
  --landing-bg: #0e1116; --landing-ink: #eef1f5; --landing-muted: #98a2b1; --landing-line: #2c3442; --landing-nav-border: #3a4454;
  --site-panel: #0b0e12; --site-panel-soft: #141922; --site-accent: #d9935c; --site-accent-ink: #1a1008; --site-link: #d9935c;
  background: #0e1116; color-scheme: dark;
}
body:has(.pd) .site-header { background: #0b0e12; }
body:has(.pd) .landing-theme-toggle { display: none; }
body:has(.pd) .nav-cta { border-radius: 2px; }
body:has(.pd) .latence-cookie-banner { --cookie-paper: #141922; --cookie-ink: #eef1f5; --cookie-muted: #98a2b1; --cookie-line: #2c3442; --cookie-acid: #d9935c; --cookie-action-ink: #1a1008; --cookie-shadow: none; border-radius: 2px; color-scheme: dark; }
body:has(.pd) .latence-cookie-actions button { border-radius: 2px; }
body:has(.pd) .latence-cookie-manage-floating { border-color: #2c3442; border-radius: 2px; background: #141922; color: #eef1f5; }
.pd a:focus-visible { outline: 1.5px solid var(--gx-acc); outline-offset: 3px; }

/* Buttons: copper for buying, a tone for the rest. */
.gx-buy, .gx-alt, .pd .pd-buy, .pd .pd-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 2px; box-shadow: none; font-size: 14.5px; font-weight: 800; text-decoration: none; }
.gx-buy, .pd .pd-buy { background: var(--gx-acc); color: var(--gx-on-acc); }
.gx-alt, .pd .pd-ghost { background: var(--gx-tone-2); color: var(--gx-ink); font-weight: 700; }
.gx-buy .i-arrow, .pd .pd-buy .i-arrow { color: inherit; }
@media (hover: hover) {
  .gx-buy:hover, .pd .pd-buy:hover { background: #e3a473; transform: none; box-shadow: none; }
  .gx-alt:hover, .pd .pd-ghost:hover { background: #2c3644; }
}

/* Masthead: the section's name and categories, Latence as a signature. */
.gx-mast { border-bottom: .75px solid var(--gx-rule); background: #0b0e12; }
.gx-mast-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); min-height: 52px; }
.gx-mast-name { color: var(--gx-ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.gx-mast-nav { display: flex; gap: 2px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.gx-mast-nav a { padding: 8px 12px; border-radius: 2px; color: var(--gx-muted); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gx-mast-nav a:hover { background: var(--gx-tone-2); color: var(--gx-ink); }
.gx-mast-sign { color: var(--gx-muted); font-size: 12.5px; white-space: nowrap; }
.gx-mast-sign b { color: var(--gx-ink); }

/* Product hero: copy left; photo on the summit of the contour map, measures pinned around it. */
.gx-hero { position: relative; padding-block: clamp(32px, 4vw, 64px) 28px; }
.gx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/materiel/topo-hero.svg) no-repeat calc(50% + 0px) 0 / 1280px 760px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.gx-hero-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.gx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--gx-muted); font-size: 13px; }
.gx-crumbs a { color: inherit; text-decoration: none; }
.gx-crumbs a:hover { color: var(--gx-ink); text-decoration: underline; }
.gx-title { margin-top: 16px; font-size: clamp(44px, 5.4vw, 68px); font-weight: 800; line-height: .94; letter-spacing: -.06em; }
.gx-line { margin-top: 16px; color: var(--gx-muted); font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.gx-verdict { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--gx-acc); }
.gx-verdict-label { color: var(--gx-acc); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gx-verdict-text { margin-top: 6px; font-size: 17px; line-height: 1.5; }
.gx-verdict-text strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.008em; }
.gx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.gx-price { flex-basis: 100%; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gx-price span { margin-left: 6px; color: var(--gx-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.gx-disclose { margin-top: 12px; color: var(--gx-muted); font-size: 12px; line-height: 1.45; }
.gx-summit { display: grid; grid-template-columns: 1fr minmax(0, 360px) 1fr; grid-template-rows: auto auto auto; align-items: center; column-gap: 20px; }
.gx-shot { grid-column: 2; grid-row: 2; margin: 0; overflow: hidden; border-radius: 2px; background: #07090c; }
.gx-shot.is-light { background: #fff; }
.gx-shot img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.gx-shot.is-light img { object-fit: contain; }
.gx-cotes { display: contents; margin: 0; }
.gx-cote { display: flex; flex-direction: column-reverse; gap: 3px; padding-left: 12px; border-left: 1.5px solid var(--gx-mes); }
.gx-cote:nth-child(1) { grid-column: 1 / 3; grid-row: 1; align-self: end; justify-self: start; margin-bottom: 20px; }
.gx-cote:nth-child(2) { grid-column: 2 / 4; grid-row: 1; align-self: end; justify-self: end; margin-bottom: 44px; }
.gx-cote:nth-child(3) { grid-column: 1 / 3; grid-row: 3; justify-self: start; margin-top: 28px; }
.gx-cote:nth-child(4) { grid-column: 2 / 4; grid-row: 3; justify-self: end; margin-top: 12px; }
.gx-cote:nth-child(even) { padding: 0 12px 0 0; border-left: 0; border-right: 1.5px solid var(--gx-mes); text-align: right; }
.gx-cote dd { margin: 0; color: var(--gx-mes); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gx-cote dd small { margin-left: 3px; color: var(--gx-muted); font-size: 14px; letter-spacing: 0; }
.gx-cote dt { max-width: 26ch; color: var(--gx-muted); font-size: 12px; line-height: 1.4; }

/* Page body: tone bands instead of rules, numbered kickers, punchline first. */
/* Small titles (under 28 px): 700 and a light tracking. The 800 weight and the -.03 to -.055em
   tracking of the display titles glue Inter's letters together at these sizes; only the large
   titles (.gx-title, .pd-h2, .gx-hub-title, .gx-feature-name) keep them. */
.pd h3, .pd .pd-sources h2, .pd .pd-decide-then { font-weight: 700; line-height: 1.25; letter-spacing: -.014em; }
.pd .pd-decide-then { font-size: 23px; }
.pd .pd-travel-name, .pd .pd-sense-name, .pd .pd-subnav-name, .pd .pd-table thead th, .pd .pd-checks b, .pd .pd-faq summary, .pd .pd-versus-item figcaption b { font-weight: 700; letter-spacing: -.006em; }
.pd sup { font-size: max(12px, .75em); line-height: 0; }
.pd .pd-sec { background: transparent; }
.pd .pd-sec + .pd-sec { border-top: 0; }
.pd .pd-sec { --sec-bg: var(--gx-bg); }
.pd .pd-sec:nth-of-type(even) { --sec-bg: #12171e; background: #141922b3; }
.pd .pd-subnav { border-block: .75px solid var(--gx-rule); background: #0e1116e6; }
.pd .pd-subnav ol a { border-radius: 2px; }
.pd .pd-subnav-buy { border-radius: 2px; background: var(--gx-acc); color: var(--gx-on-acc); }
.pd .pd-subnav-buy .i-arrow { color: inherit; }
.pd .pd-kicker { margin-bottom: 12px; color: var(--gx-acc); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pd .pd-sec:not(.pd-latence, .pd-related) > .container > .pd-kicker::before { content: counter(gx-sec, decimal-leading-zero) "  "; counter-increment: gx-sec; white-space: pre; }
.pd:has(.gx-hub-hero) .pd-kicker::before { content: none; }
.pd .pd-h2 { max-width: 24ch; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: .98; letter-spacing: -.055em; }
.pd .pd-answer { max-width: 70ch; margin-top: 18px; font-size: 17px; line-height: 1.65; }
.pd .pd-answer strong { display: block; margin-bottom: 6px; font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: -.008em; }
/* Open layout: no filled boxes. A block is a hairline on top and air around it; the only tones
   left are the section bands, the photos, the light plate of the lineup and the buttons. */
.pd .pd-card { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.pd .pd-fit .pd-card, .pd .pd-sides .pd-card, .pd .pd-decide .pd-card, .pd .pd-checks > li { padding: 18px 0 0; border-top: .75px solid var(--gx-bar); }
.pd .pd-fit { gap: 36px; }
.pd .pd-sides, .pd .pd-decide { gap: 36px 44px; }
.pd .pd-travel, .pd .pd-sense, .pd .pd-buybox { padding: 0; }
.pd .pd-card h3 { font-size: 19px; }
.pd .pd-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pd .pd-fit { gap: 12px; }
.pd .pd-fit-yes h3, .pd .pd-fit-no h3 { color: var(--gx-ink); }
.pd .pd-card ul > li { padding-left: 0; }
.pd .pd-card ul > li:first-child { border-top: 0; }
.pd .pd-card ul > li::before { content: none; }
.pd .pd-callout { margin-top: 44px; padding: 2px 0 2px 22px; border-left-width: 2px; border-radius: 0; background: none; }
.pd .pd-callout h3 { font-size: 20px; }
.pd .pd-table-wrap { border-radius: 0; background: none; box-shadow: none; }
.pd .pd-table th:first-child { padding-left: 0; }
.pd .pd-table thead th { border-bottom: .75px solid var(--gx-bar); }
.pd .pd-table tbody tr:first-child > * { border-top: 0; }
.pd .pd-table th, .pd .pd-table td { border-top: .75px solid var(--gx-rule); }
.pd .pd-table thead th { border-top: 0; color: var(--gx-ink); }
.pd .pd-table tbody th { background: none; }
.pd .pd-table td.is-better { color: var(--gx-acc); font-weight: 700; }
.pd .pd-table td.is-better::before { content: none; }
.pd .pd-decide .is-pick { outline: 0; border-top: 2px solid var(--gx-acc); }
.pd .pd-decide .is-pick::before { content: "Notre choix"; display: block; margin-bottom: 10px; color: var(--gx-acc); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pd .pd-decide-if { font-size: 12px; }
@media (min-width: 1001px) { .pd .pd-decide:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pd .pd-track, .pd .pd-track-fill, .pd .pd-track-span { border-radius: 1px; }
.pd .pd-track { background: var(--gx-tone-2); box-shadow: none; }
.pd .is-hits .pd-track-fill, .pd .is-glass .pd-track-span, .pd .is-tmr .pd-sense-chip { background: var(--gx-mes); }
.pd .pd-sense-art { border-radius: 2px; }
.pd .pd-sense-tag, .pd .pd-scale, .pd .pd-travel figcaption, .pd .pd-sense figcaption, .pd .pd-note, .pd .pd-claims dt small { font-size: 12px; }
.pd .pd-checks > li::before { width: auto; height: auto; margin-bottom: 10px; border-radius: 0; background: none; color: var(--gx-acc); font-size: 26px; font-weight: 700; letter-spacing: -.02em; place-items: start; }
.pd .pd-sides .pd-card ul > li b { color: var(--gx-ink); }
.pd .pd-verdict { gap: 44px; border-radius: 0; background: none; color: var(--gx-ink); }
.pd .pd-verdict > div { padding: 18px 0 0; border-top: .75px solid var(--gx-bar); }
.pd .pd-verdict > div:first-child { border-top: 2px solid var(--gx-acc); }
.pd .pd-verdict .pd-buy { background: var(--gx-acc); color: var(--gx-on-acc); }
.pd .pd-verdict > div + div { border-left: 0; }
.pd .pd-verdict-label { color: var(--gx-acc); }
.pd .pd-verdict .pd-ghost { background: #2c3644; }
/* The questions start on the left edge like every other section, on a reading width. */
.pd .pd-faq { max-width: none; }
.pd .pd-faq details { max-width: 860px; border-top-width: .75px; }
.pd .pd-faq details:first-of-type { border-top: 0; }
.pd .pd-faq details:last-child { border-bottom: 0; }
.pd .pd-faq summary::after { color: var(--gx-acc); }
.pd .pd-buybox { border-radius: 0; background: none; }
.pd .pd-buybox-art.pd-photo { border-radius: 2px; }

/* The Latence block: same ink and copper as the section; Latence speaks through its words only. */
.pd .pd-latence { --relief-bleed-y: 0px; background: var(--gx-tone); }
.pd .pd-latence-card { border: 0; border-radius: 2px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pd .pd-latence .pd-h2 { margin-inline: auto; }

/* Cards (components/product/gear-card.njk): photo, then the "worth it?" answer and the score. */
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 20px; margin-top: 28px; }
.gx-card { position: relative; display: flex; flex-direction: column; }
.gx-card-shot { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: #07090c; }
.gx-card-shot.is-light { background: #fff; }
.gx-card-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gx-card-shot.is-light img { object-fit: contain; }
.gx-card-meta { margin-top: 14px; color: var(--gx-muted); font-size: 12px; }
.gx-card-name { margin-top: 4px; font-size: 22px; font-weight: 700; line-height: 1.18; letter-spacing: -.018em; }
.gx-card-name a { color: inherit; text-decoration: none; }
.gx-card-name a::after { content: ""; position: absolute; inset: 0; }
.gx-card-line { margin-top: 6px; color: var(--gx-muted); font-size: 15px; line-height: 1.4; }
.gx-card-worth { margin-top: 12px; padding-left: 12px; border-left: 1.5px solid var(--gx-acc); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.gx-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 14px; color: var(--gx-muted); font-size: 12.5px; }
.gx-card-foot b { color: var(--gx-mes); font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gx-card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--gx-ink); font-weight: 700; }
.gx-card:has(a:focus-visible) { outline: 1.5px solid var(--gx-acc); outline-offset: 6px; }
.gx-card a:focus-visible { outline: none; }
@media (hover: hover) {
  .gx-card:hover .gx-card-name { color: var(--gx-acc); }
}
.gx-all { margin-top: 24px; }
.gx-all a { display: inline-flex; align-items: center; gap: 8px; color: var(--gx-ink); font-size: 15px; font-weight: 700; }

/* Hub (/materiel): headline on the contour map, the featured page, categories, comparisons. */
.gx-hub-hero { position: relative; padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.gx-hub-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/materiel/topo-hero.svg) no-repeat calc(50% + 0px) 0 / 1280px 760px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.gx-hub-kicker { color: var(--gx-acc); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gx-hub-title { max-width: 16ch; margin-top: 14px; font-size: clamp(44px, 6vw, 80px); font-weight: 800; line-height: .94; letter-spacing: -.06em; }
.gx-hub-lede { max-width: 60ch; margin-top: 18px; color: var(--gx-muted); font-size: 18px; line-height: 1.6; }
.gx-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(32px, 4vw, 52px); }
.gx-feature-shot { display: block; overflow: hidden; border-radius: 2px; background: #07090c; }
.gx-feature-shot img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.gx-feature-name { margin-top: 6px; font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: .98; letter-spacing: -.055em; }
.gx-feature-name a { color: inherit; text-decoration: none; }
.gx-feature-line { margin-top: 10px; color: var(--gx-muted); font-size: 18px; font-weight: 600; line-height: 1.4; }
.gx-feature .gx-verdict { margin-top: 22px; }
.gx-feature .gx-actions { margin-top: 24px; }
.gx-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.gx-cat-head p { color: var(--gx-muted); font-size: 13px; }
.gx-duels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin: 28px 0 0; padding: 0; list-style: none; }
.gx-duels li + li { border-top: .75px solid var(--gx-rule); }
.gx-duels li:nth-child(2) { border-top: 0; }
.gx-duels a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 16px 0; color: var(--gx-ink); text-decoration: none; }
.gx-duels-n { grid-row: span 2; color: var(--gx-acc); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gx-duels b { font-size: 16px; font-weight: 700; line-height: 1.3; }
.gx-duels-line { grid-column: 2; color: var(--gx-muted); font-size: 14px; }
.gx-duels .i-arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--gx-muted); }
.gx-duels a:hover b { color: var(--gx-acc); }

/* Lineup (components/product/lineup.njk): our own cut-outs side by side, all at the same scale.
   --mm is the size of one millimetre: the row fills the width up to a cap, and scrolls sideways
   on a phone rather than shrink the products. Shots sit on row 1, their labels on row 2. The plate
   is light, like a studio backdrop: most of these products are black and would vanish on the ink of
   the section. Each measure is written where it is taken, as on a technical drawing: a dimension
   line (.pd-dim: a hairline, a tick at each end, the figure in the middle) under the product for
   its width, and one up its left side for its length, in the deep verdigris that reads on the
   plate. The lines are exactly as long as the product is drawn. */
.pd-lineup { margin: 44px 0 0; container-type: inline-size; }
.pd-lineup-scroll { --mm: clamp(var(--mm-min, 1.9px), calc((100cqw - 88px) / var(--span)), var(--mm-max, 3.1px)); overflow-x: auto; padding: clamp(28px, 4vw, 48px) 44px 28px; border-radius: 2px; background: linear-gradient(#f1f3f6, #dfe3e9); color: #0e1116; scrollbar-width: thin; scrollbar-color: #98a2b1 transparent; }
.pd-lineup-row { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: center; column-gap: calc(var(--gap) * var(--mm)); width: max-content; min-width: 100%; margin: 0; padding: 0; list-style: none; }
.pd-lineup-item { display: contents; }
.pd-lineup-shot { position: relative; align-self: end; width: calc(var(--w) * var(--mm)); }
.pd-lineup-shot img { display: block; width: 100%; height: auto; }
.pd-dim { display: flex; align-items: center; gap: 6px; color: var(--gx-mes-deep); font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-dim::before, .pd-dim::after { content: ""; flex: 1; block-size: 9px; border: 0 solid; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.pd-dim::before { border-inline-start-width: 1px; }
.pd-dim::after { border-inline-end-width: 1px; }
.pd-dim-w { height: 12px; margin-top: 10px; }
.pd-dim-l { position: absolute; inset: 0 100% 22px auto; margin-right: 9px; writing-mode: vertical-rl; rotate: 180deg; }
.pd-dim-l::before, .pd-dim-l::after { background-size: 1px 100%; }
.pd-lineup-item p { display: grid; align-self: start; gap: 2px; width: 0; min-width: 100%; margin-top: 16px; text-align: center; }
.pd-lineup-item p b { font-size: 14.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.006em; }
.pd-lineup-item p span { color: #4a5464; font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.pd-lineup-item.is-pick p b { color: #9a5422; }
.pd-lineup figcaption { max-width: 72ch; margin: 14px auto 0; color: var(--gx-muted); font-size: 12px; line-height: 1.5; text-align: center; }

/* Per-game advice (.gx-games). */
.pd .gx-games { margin-top: 44px; }
.pd .gx-games > div { grid-template-columns: 240px minmax(0, 70ch); padding: 22px 0; }
@media (max-width: 760px) { .pd .gx-games > div { grid-template-columns: 1fr; } }
.pd .gx-games dt { font-size: 20px; letter-spacing: -.014em; }

/* Weight bars (.gx-bars): one row per weight band, the mice of the page named on their band. */
.gx-bars { max-width: 900px; margin: 40px 0 32px; }
.gx-bars h3 { max-width: 46ch; font-size: 17px; }
.gx-bars ol { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.gx-bars li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 44px minmax(0, 250px); align-items: center; column-gap: 16px; font-size: 14.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.gx-bars li span { color: var(--gx-muted); }
.gx-bars li i { height: 10px; border-radius: 1px; background: linear-gradient(to right, var(--gx-mes) calc(var(--p) * 100%), var(--gx-tone-2) 0); }
.gx-bars li b { color: var(--gx-mes); font-weight: 700; text-align: right; }
.gx-bars li em { font-style: normal; font-weight: 600; }
@media (max-width: 760px) {
  .gx-bars li { grid-template-columns: 96px minmax(0, 1fr) 40px; row-gap: 4px; }
  .gx-bars li em { grid-column: 2 / -1; }
  .gx-bars li em:empty { display: none; }
}

/* A category with one or two pages fills the row: one wide card, or two halves. */
@media (min-width: 761px) {
  .gx-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-grid > .gx-card:only-child { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 40px; }
  .gx-grid > .gx-card:only-child .gx-card-shot { grid-row: 1 / span 7; }
  .gx-grid > .gx-card:only-child .gx-card-meta { margin-top: 0; align-self: end; }
  .gx-grid > .gx-card:only-child .gx-card-name { font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
}

@media (max-width: 1000px) {
  /* The table scrolls sideways from here: its sticky first column needs the band colour. */
  .pd .pd-table tbody th { background: var(--sec-bg); }
  .gx-hero-grid, .gx-feature, .pd .pd-brief { grid-template-columns: 1fr; }
  .gx-duels { grid-template-columns: 1fr; }
  .gx-duels li:nth-child(2) { border-top: .75px solid var(--gx-rule); }
}
@media (max-width: 640px) {
  .gx-mast-sign { display: none; }
  /* Touch targets: at least 44 px high on a phone, without moving the layout. */
  .gx-mast-name { display: inline-flex; align-items: center; min-height: 44px; }
  .gx-mast-nav a { padding-block: 12px; }
  .pd .pd-subnav ol a { display: inline-flex; align-items: center; min-height: 44px; }
  .pd .pd-subnav-buy { min-height: 44px; }
  .gx-crumbs a, .gx-all a { padding-block: 12px; margin-block: -12px; }
  .gx-summit { grid-template-columns: 1fr 1fr; row-gap: 22px; column-gap: 16px; }
  .gx-shot { grid-column: 1 / -1; grid-row: 1; }
  .gx-cote:nth-child(n) { grid-column: auto; grid-row: auto; justify-self: stretch; align-self: start; margin: 0; padding: 0 0 0 12px; border-left: 1.5px solid var(--gx-mes); border-right: 0; text-align: left; }
  .gx-cote dd { font-size: 26px; }
  /* On a phone the product shows under its name, before the verdict, not after the buttons. */
  .gx-hero-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 0; }
  .gx-hero-copy, .gx-summit { display: contents; }
  .gx-hero-copy > *, .gx-hero .gx-shot { grid-column: 1 / -1; }
  .gx-crumbs { order: 1; }
  .gx-title { order: 2; }
  .gx-line { order: 3; }
  .gx-hero .gx-shot { order: 4; grid-row: auto; margin-top: 24px; }
  .gx-verdict { order: 5; }
  .gx-actions { order: 6; }
  .gx-disclose { order: 7; }
  .gx-hero .gx-cote:nth-child(n) { order: 8; margin-top: 24px; }
}
