/* Gear pages (layouts/product.njk): the body widgets of a page (tables, diagrams, duels, decision
   cards, FAQ). The section's own identity, hero and cards live in gear.css, loaded after this file,
   which remaps the --landing-* and --site-accent tokens used here. */
.pd {
  --pd-card: #fbfbf7; --pd-card-2: #f2f2ec; --pd-line: #16191614;
  --pd-radius: 22px; --pd-header: 77px;
  --pd-shadow: 0 1px 0 #ffffffb3 inset, 0 28px 60px -36px #11141052;
  /* Full-width relief uses 100vw, which counts the scrollbar; clip keeps the sticky sub-nav working. */
  overflow-x: clip;
}
.pd .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pd .i-arrow { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pd-buy, .pd-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.pd-buy { background: var(--landing-ink); color: var(--landing-bg); box-shadow: 0 14px 30px -18px #111410; }
.pd-buy .i-arrow { color: var(--site-accent); }
.pd-ghost { border: 1px solid var(--landing-line); background: var(--pd-card); color: var(--landing-ink); }
@media (hover: hover) {
  .pd-buy:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -18px #111410; }
  .pd-ghost:hover { border-color: var(--landing-ink); }
}
.pd-disclose { max-width: 60ch; margin-top: 14px; color: var(--landing-muted); font-size: 12.5px; line-height: 1.5; }


/* Sticky in-page navigation, like a product site's second bar. */
.pd-subnav { position: sticky; top: var(--pd-header); z-index: 50; border-block: 1px solid var(--pd-line); background: color-mix(in srgb, var(--landing-bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pd-subnav-inner { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.pd-subnav-name { font-size: 15px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.pd-subnav ol { display: flex; gap: 4px; margin: 0 auto 0 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.pd-subnav ol a { display: block; padding: 7px 12px; border-radius: 999px; color: var(--landing-muted); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pd-subnav ol a:hover { background: var(--pd-card); color: var(--landing-ink); }
.pd-subnav-buy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--landing-ink); color: var(--landing-bg); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pd-subnav-buy .i-arrow { color: var(--site-accent); }

/* Sections */
.pd-sec { padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--pd-header) + 56px); }
.pd-sec + .pd-sec { border-top: 1px solid var(--pd-line); }
.pd-h2 { max-width: 20ch; font-size: clamp(32px, 4.2vw, 58px); line-height: .98; letter-spacing: -.055em; }
.pd-answer { max-width: 68ch; margin-top: 20px; font-size: clamp(17px, 1.35vw, 19px); }
.pd-answer strong { font-weight: 750; }
.pd-card { border-radius: var(--pd-radius); background: var(--pd-card); box-shadow: var(--pd-shadow); }
.pd-card h3 { font-size: 19px; letter-spacing: -.03em; }
.pd-card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.pd-card ul > li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--pd-line); font-size: 15px; line-height: 1.5; }
.pd-card ul > li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--landing-ink); }
.pd-note { margin-top: 14px; color: var(--landing-muted); font-size: 13px; line-height: 1.5; }
.pd-center { text-align: center; }

.pd-fit { display: grid; gap: 16px; }
.pd-fit .pd-card { padding: 24px 26px 14px; }
.pd-fit-yes ul > li::before { background: var(--site-accent); box-shadow: 0 0 0 1px #16191633; }
.pd-fit-no ul > li::before { background: transparent; border: 1.5px solid var(--landing-muted); }
.pd-method { max-width: 80ch; margin-top: 32px; padding: 16px 20px; border-radius: 14px; background: var(--pd-card-2); color: var(--landing-muted); font-size: 14px; }
.pd-method b { color: var(--landing-ink); }

/* HITS travel diagram, built in HTML so the labels stay readable on a phone. */
.pd-travel { display: grid; gap: 30px; margin-top: 36px; padding: clamp(22px, 3vw, 36px); }
.pd-travel-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px; row-gap: 8px; align-items: center; }
.pd-travel-name { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.pd-travel-note, .pd-scale { grid-column: 2; }
.pd-travel-note { color: var(--landing-muted); font-size: 14px; line-height: 1.5; }
.pd-track { position: relative; height: 14px; border-radius: 999px; background: var(--pd-card-2); box-shadow: inset 0 0 0 1px var(--pd-line); }
.pd-track-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--at) * 100%); border-radius: inherit; background: color-mix(in srgb, var(--landing-ink) 22%, transparent); }
.is-hits .pd-track-fill { background: color-mix(in srgb, var(--site-accent) 80%, transparent); }
.pd-track-mark { position: absolute; top: -6px; left: calc(var(--at) * 100%); width: 3px; height: 26px; border-radius: 2px; background: var(--landing-ink); translate: -50% 0; }
.pd-notches { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); margin: 0; padding: 0; list-style: none; }
.pd-notches li { position: relative; }
.pd-notches li::after { content: ""; position: absolute; right: 0; top: 3px; width: 1px; height: 8px; background: color-mix(in srgb, var(--landing-ink) 30%, transparent); }
.pd-notches li.is-on::after { top: -6px; right: -1px; width: 3px; height: 26px; border-radius: 2px; background: var(--landing-ink); }
.pd-notches li.is-reset::after { top: -4px; height: 22px; width: 0; border-right: 2px dashed var(--landing-ink); background: none; }
.pd-scale { display: flex; justify-content: space-between; color: var(--landing-muted); font-size: 12px; font-weight: 600; }
.pd-travel figcaption { color: var(--landing-muted); font-size: 12.5px; }

.pd-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pd-trio .pd-card { padding: 24px; }
.pd-trio p { margin-top: 8px; color: var(--landing-muted); font-size: 15px; line-height: 1.55; }
.pd-callout { margin-top: 28px; padding: clamp(22px, 3vw, 32px); border-left: 4px solid var(--site-accent); border-radius: 0 var(--pd-radius) var(--pd-radius) 0; background: var(--pd-card-2); }
.pd-callout h3 { font-size: 21px; letter-spacing: -.03em; }
.pd-callout p { max-width: 75ch; margin-top: 10px; font-size: 15.5px; }

/* Comparison tables: the first column stays put when a phone scrolls the table sideways. */
.pd-table-wrap { margin-top: 32px; overflow-x: auto; border-radius: var(--pd-radius); background: var(--pd-card); box-shadow: var(--pd-shadow); }
.pd-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.pd-table th, .pd-table td { padding: 15px 20px; border-top: 1px solid var(--pd-line); text-align: left; vertical-align: top; }
.pd-table thead th { border-top: 0; padding-block: 20px 14px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.pd-table tbody th { position: sticky; left: 0; width: 26%; background: var(--pd-card); color: var(--landing-muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.pd-table td.is-better { font-weight: 650; }
.pd-table td.is-better::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--site-accent); box-shadow: 0 0 0 1px #16191633; vertical-align: 1px; }

.pd-decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pd-decide .pd-card { padding: 24px; }
.pd-decide .is-pick { outline: 2px solid var(--landing-ink); outline-offset: -2px; }
.pd-decide-if { color: var(--landing-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pd-decide-then { margin: 8px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.045em; }
.pd-decide p:last-child { color: var(--landing-muted); font-size: 14.5px; line-height: 1.5; }
.pd-price { margin-top: 14px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-price span { margin-left: 6px; color: var(--landing-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.pd-decide .pd-price + .pd-buy { margin-top: 10px; }

/* Duel: the two brand photos side by side, dimensions under each. */
.pd-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(16px, 4vw, 56px); max-width: 760px; margin: 44px auto 0; }
.pd-versus-item { display: grid; justify-items: center; gap: 14px; margin: 0; }
/* Opt-in for duels whose names wrap unevenly on a phone: line the photos up by their top instead of the captions. */
.pd-versus.is-top { align-items: start; }
.pd-versus-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--pd-radius); background: #07090c; }
.pd-versus-item figcaption { display: grid; gap: 2px; text-align: center; }
.pd-versus-item figcaption b { font-size: 16px; letter-spacing: -.02em; }
.pd-versus-item figcaption span { color: var(--landing-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pd-versus-vs { align-self: center; color: var(--landing-muted); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.pd-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pd-sides .pd-card { padding: 26px 28px 16px; }
.pd-sides li b { font-weight: 750; }
.pd-verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-radius: var(--pd-radius); background: var(--landing-ink); color: var(--landing-bg); }
.pd-verdict > div { padding: clamp(24px, 3vw, 36px); }
.pd-verdict > div + div { border-left: 1px solid color-mix(in srgb, var(--landing-bg) 18%, transparent); }
.pd-verdict-label { margin-bottom: 8px; color: var(--site-accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pd-verdict p:not(.pd-verdict-label) { font-size: 17px; line-height: 1.5; }
.pd-verdict .pd-buy { margin-top: 20px; background: var(--landing-bg); color: var(--landing-ink); }

/* Latence block: the only place the brand speaks, on a soft relief. */
.pd-latence { --relief-bleed-y: 0px; }
.pd-latence-card { max-width: 720px; margin-inline: auto; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--landing-line); border-radius: var(--pd-radius); background: color-mix(in srgb, var(--landing-bg) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: center; }
.pd-latence-card .pd-h2 { margin-inline: auto; }
.pd-latence-card p:not(.pd-kicker) { max-width: 60ch; margin: 16px auto 0; font-size: 16px; }
.pd-latence-card .pd-actions { justify-content: center; }

.pd-faq { max-width: 860px; }
.pd-faq details { border-top: 1px solid var(--landing-line); }
.pd-faq details:last-child { border-bottom: 1px solid var(--landing-line); }
.pd-faq summary { position: relative; padding: 20px 44px 20px 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 500; transition: rotate .2s ease; }
.pd-faq details[open] summary::after { rotate: 45deg; }
.pd-faq details p { max-width: 70ch; padding-bottom: 20px; color: var(--landing-muted); }
.pd-faq .pd-h2 { margin-bottom: 28px; }

.pd-buybox { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.pd-buybox-art { aspect-ratio: 1; }
.pd-buybox p:not(.pd-kicker) { margin-top: 10px; color: var(--landing-muted); }
.pd-buybox p.pd-price { margin-top: 16px; color: inherit; }
.pd-buybox .pd-buy { margin-top: 22px; }
.pd-buybox .pd-price + .pd-buy { margin-top: 10px; }
.pd-sources { margin-top: 56px; }
.pd-sources h2 { font-size: 20px; letter-spacing: -.03em; }
.pd-sources ul { margin: 14px 0 0; padding-left: 18px; color: var(--landing-muted); font-size: 14px; line-height: 1.7; }
.pd-sources a { color: var(--landing-ink); }

@media (max-width: 1000px) {
  .pd-trio, .pd-decide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pd { --pd-header: 69px; }
  .pd-subnav-name { display: none; }
  .pd-travel-row { grid-template-columns: 1fr; }
  .pd-travel-note, .pd-scale { grid-column: 1; }
  .pd-sides, .pd-verdict { grid-template-columns: 1fr; }
  .pd-verdict > div + div { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--landing-bg) 18%, transparent); }
  .pd-buybox { grid-template-columns: 1fr; text-align: center; }
  .pd-buybox-art { width: 160px; margin-inline: auto; }
}
@media (max-width: 420px) {
  .pd-actions > a { width: 100%; justify-content: center; }
}

/* Added for the GameSir G7 Pro 8K page: the stick-sensor diagram, built in HTML like the HITS one. */

/* Stick sensors: potentiometer (contact) against Hall and TMR (magnet, no contact). */
.pd-sense { margin-top: 36px; padding: clamp(22px, 3vw, 36px); }
.pd-sense-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
.pd-sense-art { position: relative; height: 132px; border-radius: 16px; background: var(--pd-card-2); box-shadow: inset 0 0 0 1px var(--pd-line); overflow: hidden; }
.pd-sense-art > span { position: absolute; left: 50%; translate: -50% 0; }
.pd-sense-cap { top: 14px; width: 54px; height: 16px; border-radius: 50%; background: var(--landing-ink); }
.pd-sense-shaft { top: 24px; width: 8px; height: 44px; border-radius: 2px; background: color-mix(in srgb, var(--landing-ink) 62%, transparent); }
.pd-sense-wiper { top: 64px; width: 4px; height: 30px; border-radius: 2px; background: var(--landing-ink); }
.pd-sense-track { bottom: 26px; width: 64%; height: 12px; border-radius: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--landing-ink) 48%, transparent) 0 5px, color-mix(in srgb, var(--landing-ink) 22%, transparent) 5px 10px); }
.pd-sense-rub { bottom: 18px; width: 30px; height: 28px; border: 2px dashed var(--landing-ink); border-radius: 50%; }
.pd-sense-magnet { top: 64px; width: 32px; height: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--landing-ink) 50%, color-mix(in srgb, var(--landing-ink) 40%, transparent) 50%); }
.pd-sense-field { top: 58px; width: 84px; height: 62px; border: 1.5px dashed color-mix(in srgb, var(--landing-ink) 32%, transparent); border-radius: 50%; }
.pd-sense-chip { bottom: 18px; width: 42px; height: 12px; border-radius: 2px; background: var(--landing-ink); }
.is-tmr .pd-sense-chip { background: var(--site-accent); }
.pd-sense-name { margin-top: 16px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.pd-sense-tag { margin-top: 2px; color: var(--landing-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pd-sense-note { margin-top: 8px; color: var(--landing-muted); font-size: 14px; line-height: 1.5; }
.pd-sense figcaption { margin-top: 24px; color: var(--landing-muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .pd-sense-grid { grid-template-columns: 1fr; }
  .pd-sense-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .pd-sense-art { grid-row: span 3; }
  .pd-sense-name { margin-top: 0; }
}

/* Added for the Razer Atlas Pro page: the glide spectrum, the thickness profile and the promise-against-reality box. */

/* Glide spectrum: ranges and a marker on one qualitative axis, built on the travel diagram. */
.pd-track-span { position: absolute; inset: 0 auto 0 calc(var(--from) * 100%); width: calc((var(--to) - var(--from)) * 100%); border-radius: inherit; background: color-mix(in srgb, var(--landing-ink) 22%, transparent); }
.is-glass .pd-track-span { background: color-mix(in srgb, var(--site-accent) 80%, transparent); }

/* Thickness profile: side views at one scale, glass dark and rubber base light. */
.pd-slab { display: flex; flex-direction: column; height: calc(var(--mm) * 10px); border-radius: 2px; overflow: hidden; }
.pd-slab > span { display: block; height: calc(var(--mm) * 10px); }
.pd-slab-glass { background: linear-gradient(180deg, color-mix(in srgb, var(--landing-ink) 58%, transparent), color-mix(in srgb, var(--landing-ink) 82%, transparent)); }
.pd-slab-base { background: color-mix(in srgb, var(--landing-ink) 26%, transparent); }
.pd-slab-whole { flex: 1; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--landing-ink) 62%, transparent) 0 6px, color-mix(in srgb, var(--landing-ink) 48%, transparent) 6px 12px); }

/* Promise against reality: one row per claim inside the callout. */
.pd-claims { margin: 18px 0 0; }
.pd-claims > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6px 28px; padding: 16px 0; border-top: 1px solid var(--pd-line); }
.pd-claims dt { font-size: 15.5px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.pd-claims dt small { display: block; margin-top: 4px; color: var(--landing-muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.pd-claims dd { margin: 0; font-size: 15px; line-height: 1.55; }
.pd-claims dd b { font-weight: 750; }
@media (max-width: 760px) {
  .pd-claims > div { grid-template-columns: 1fr; }
}

/* Added for the gaming chair guide: the numbered list of the five adjustments to check. */
.pd-checks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: pd-check; }
.pd-checks > li { padding: 22px 22px 20px; counter-increment: pd-check; }
.pd-checks > li::before { content: counter(pd-check); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--site-accent); color: #111410; font-size: 14px; font-weight: 800; }
.pd-checks b { font-size: 17px; letter-spacing: -.02em; }
.pd-checks p { margin-top: 8px; color: var(--landing-muted); font-size: 14.5px; line-height: 1.5; }
.pd-decide .pd-buy { margin-top: 18px; min-height: 46px; padding: 11px 18px; font-size: 14px; }
@media (max-width: 1000px) {
  .pd-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pd-checks { grid-template-columns: 1fr; }
}

/* Brand photo in the buy box (components/product/photo.njk); shots on white keep a white plate. */
.pd-photo { overflow: hidden; background: #0b0c0a; }
.pd-photo.is-light { background: #fff; }
.pd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-photo.is-light img { object-fit: contain; }
.pd-buybox-art.pd-photo { aspect-ratio: 1; border-radius: 16px; }
