/*
 * The custom bike page, 2026 (template-parts/bike-2026.php): a bike as a
 * magazine spread. Loaded after css/product-2026.css, whose tokens, section
 * heads, Finer Details, stories, cards and brand band it wears (.rg-p26);
 * everything here is the bike page's own and scoped under .rg-b26.
 */

/* ---- The head: the name and the way in on the left, the bike on the right ---- */
.rg-b26 .rg-b26-head { background: var(--ink); color: var(--cream); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); column-gap: var(--gap); align-items: stretch; padding: 40px var(--gutter) 48px; }
.rg-b26 .rg-b26-head-tx { display: flex; flex-direction: column; min-width: 0; }
.rg-b26 p.rg-b26-over { margin: 0 0 18px; font: 400 15px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
body .rg-b26 h1.rg-b26-ttl { margin: 0; font-size: clamp(72px, 8.6vw, 124px) !important; line-height: .86 !important; font-weight: 700; letter-spacing: -.005em; text-transform: uppercase; color: var(--cream); overflow-wrap: break-word; }
body .rg-b26 h1.rg-b26-ttl.is-long { font-size: clamp(60px, 6.4vw, 92px) !important; line-height: .88 !important; }
.rg-b26 p.rg-b26-sub { margin: 24px 0 0; font: 500 20px/1.35 var(--mono-med); letter-spacing: 0; color: var(--cream); }

.rg-b26 .rg-b26-act { margin-top: auto; padding-top: 40px; }
.rg-b26 p.rg-b26-price { margin: 0 0 20px; padding-top: 20px; border-top: 1px solid var(--cream); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rg-b26 p.rg-b26-price span { font: 400 15px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.rg-b26 p.rg-b26-price strong { font: 500 26px/1 var(--mono-med); letter-spacing: .02em; color: var(--cream); }
.rg-b26 p.rg-b26-price strong * { font: inherit; letter-spacing: inherit; color: inherit; }
.rg-b26 .rg-b26-band button.rg-b26-go,
.rg-b26 .rg-b26-band a.rg-b26-go,
.rg-b26 .rg-b26-head .rg-b26-go { width: 100%; height: 56px; padding: 0 28px; border: 1.5px solid var(--cream); border-radius: 100px; background: var(--cream); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 14px; font: 500 18px/1 var(--mono-med); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; box-shadow: none; transition: background .15s, color .15s; }
.rg-b26 .rg-b26-band button.rg-b26-go:hover,
.rg-b26 .rg-b26-band a.rg-b26-go:hover,
.rg-b26 .rg-b26-head .rg-b26-go:hover { background: transparent; color: var(--cream); }
.rg-b26 .rg-b26-go svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* 12px between the pills (8px read as cramped on a phone, Pete 2026-10-03). */
.rg-b26 .rg-b26-two { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rg-b26 .rg-b26-two a { height: 52px; border: 1.5px solid var(--cream); border-radius: 100px; display: flex; align-items: center; justify-content: center; font: 500 16px/1 var(--mono-med); letter-spacing: .05em; text-transform: uppercase; color: var(--cream); transition: background .15s, color .15s; }
.rg-b26 .rg-b26-two a:hover { background: var(--cream); color: var(--ink); }

.rg-b26 .rg-b26-hero { min-width: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 5 / 4; background: #262626; }
.rg-b26 .rg-b26-hero img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.rg-b26 .rg-b26-hero.is-studio { background: var(--cream); }
/* Multiplied, so a photo shot on white doesn't sit as a white box with cream bars above and below. */
.rg-b26 .rg-b26-hero.is-studio img { object-fit: contain; mix-blend-mode: multiply; border-radius: 4px; }
/* Chrome paints nothing for a multiplied, letterboxed image inside a rounded
   overflow:hidden box (blanked the ELARA's hero), so the image takes the corners. */
.rg-b26 .rg-b26-hero.is-studio { overflow: visible; }

/* ---- The opening: the statement and the lead, beside the specifications ---- */
.rg-b26 .rg-b26-open { padding-top: 80px; }
.rg-b26 p.rg-b26-statement { margin: 0; font: 700 64px/.95 var(--display); text-transform: uppercase; text-wrap: balance; color: var(--ink); }
.rg-b26 p.rg-b26-by { margin: 16px 0 0; font: 400 15px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rg-b26 .rg-b26-lead { margin: 36px 0 0; max-width: 700px; font: 400 20px/1.55 var(--body); text-wrap: pretty; }
.rg-b26 .rg-b26-lead.is-first { margin-top: 0; font-size: 24px; line-height: 1.45; }
.rg-b26 .rg-b26-lead p { margin: 0 0 14px; font: inherit; }
.rg-b26 .rg-b26-lead p:last-child { margin-bottom: 0; }

body .rg-b26 h2.rg-b26-h2s { margin: 0 0 16px; font-size: 32px !important; line-height: 1 !important; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.rg-b26 .rg-b26-specs dl { margin: 0; border-top: 1px solid var(--ink); }
.rg-b26 .rg-b26-specs dl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.rg-b26 .rg-b26-specs dt { margin: 0; font: 400 14px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rg-b26 .rg-b26-specs dd { margin: 0; font: 400 16px/1.45 var(--body); }
.rg-b26 .rg-b26-chart { margin-top: 8px; }

/* ---- A spread: one wide photo, one tall ---- */
.rg-b26 .rg-b26-sec-spread { padding-top: 96px; }
.rg-b26 .rg-b26-spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.rg-b26 .rg-b26-fig { margin: 0; min-width: 0; }
.rg-b26 .rg-b26-fig.is-wide { grid-column: span 2; }
.rg-b26 .rg-b26-fig img { display: block; width: 100%; height: clamp(420px, 43vw, 620px); max-width: none; object-fit: cover; border-radius: 4px; }
.rg-b26 .rg-b26-fig figcaption { margin-top: 10px; font: 400 14px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.rg-b26 p.rg-b26-from { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rg-b26 p.rg-b26-from > span { font: 400 14px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* The story title reads as a link, as in the write-up: body type, underlined, an arrow (Pete, 2026-10-03: the mono title looked like a heading). */
.rg-b26 p.rg-b26-from { flex-direction: column; align-items: flex-start; }
.rg-b26 p.rg-b26-from a { font: 400 17px/1.45 var(--body); letter-spacing: 0; text-transform: none; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; border: 0; }
.rg-b26 p.rg-b26-from a svg { display: inline-block; width: 16px; height: 16px; margin-left: 8px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .15s; }
.rg-b26 p.rg-b26-from a:hover svg { transform: translateX(3px); }
.rg-b26 .rg-b26-nw { white-space: nowrap; }

/* The bike's own photos, as a pair of equals. */
.rg-b26 .rg-b26-spread.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-b26 .rg-b26-spread.is-even .rg-b26-fig.is-wide { grid-column: auto; }
.rg-b26 .rg-b26-spread.is-even .rg-b26-fig img { height: auto; aspect-ratio: 4 / 3; }
/* A studio shot on white is shown whole on a tinted ground, never cropped. */
.rg-b26 .rg-b26-fig.is-studio img,
.rg-b26 .rg-b26-strip figure.is-studio img,
.rg-b26 .rg-b26-portrait.is-studio img { object-fit: contain; mix-blend-mode: multiply; }
.rg-b26 .rg-b26-fig.is-studio,
.rg-b26 .rg-b26-strip figure.is-studio,
.rg-b26 .rg-b26-portrait.is-studio { background: var(--cream-2); border-radius: 4px; }
.rg-b26 .rg-b26-band .rg-b26-fig.is-studio { background: var(--cream); }
.rg-b26 .rg-b26-band .rg-b26-fig.is-studio img { mix-blend-mode: normal; }

/* ---- The write-up: two columns, a pull quote, a portrait ---- */
.rg-b26 .rg-b26-more h2.rg-p26-h2 { margin-bottom: 36px; }
.rg-b26 .rg-b26-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; align-items: stretch; }
.rg-b26 .rg-b26-prose { grid-column: 1 / -1; min-width: 0; font: 400 17px/1.6 var(--body); }
.rg-b26 .rg-b26-story.has-portrait .rg-b26-prose { grid-column: 1 / 3; }
.rg-b26 .rg-b26-cols { column-count: 2; column-gap: 20px; }
.rg-b26 .rg-b26-cols p { margin: 0 0 20px; font: inherit; }
.rg-b26 .rg-b26-cols p:last-child { margin-bottom: 0; }
.rg-b26 .rg-b26-cols a { border-bottom: 1px solid currentColor; }
/* A run too short for two columns reads as one measure, so no sentence breaks across the gutter. */
.rg-b26 .rg-b26-cols.is-one { column-count: 1; max-width: 760px; }
/* A short write-up reads as one measure of larger type, not two thin columns. */
.rg-b26 .rg-b26-story.is-short .rg-b26-prose { font-size: 20px; line-height: 1.55; }
.rg-b26 .rg-b26-story.is-short .rg-b26-cols { column-count: 1; max-width: 760px; }
.rg-b26 blockquote.rg-b26-pull { margin: 44px 0; padding: 28px 0 0; border: 0; border-top: 1px solid var(--ink); background: none; }
.rg-b26 blockquote.rg-b26-pull:last-child { margin-bottom: 0; }
/* In the tan, as the old template's quote was (.quote h5, #AA8765), so it stands off the black body. */
.rg-b26 blockquote.rg-b26-pull p { margin: 0; max-width: 66%; font: 700 46px/.98 var(--display); text-transform: uppercase; text-wrap: balance; color: var(--tan); }
.rg-b26 .rg-b26-story.has-portrait blockquote.rg-b26-pull p { max-width: none; }
.rg-b26 blockquote.rg-b26-pull::before,
.rg-b26 blockquote.rg-b26-pull::after,
.rg-b26 blockquote.rg-b26-pull footer::before { content: none; }
.rg-b26 blockquote.rg-b26-pull footer { margin: 14px 0 0; padding: 0; background: none; text-align: left; font: 400 15px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Who said it, then the Review story it's from. The story sits outside the
   label voice (Matter, sentence case) so the name stays the loud part. */
.rg-b26 .rg-b26-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
/* Tracking leaves a trailing space after the name's last letter; take it back so the gap reads as one word space. */
.rg-b26 .rg-b26-by > span:first-child { margin-right: -.14em; }
.rg-b26 .rg-b26-by__in { font: 400 15px/1.45 var(--body); letter-spacing: 0; text-transform: none; }
.rg-b26 .rg-b26-by__in a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rg-b26 .rg-b26-by__in a:hover { color: var(--ink); }
.rg-b26 .rg-b26-band .rg-b26-by__in a:hover { color: var(--cream); }
.rg-b26 .rg-b26-portrait { margin: 0; min-width: 0; }
.rg-b26 .rg-b26-portrait img { display: block; width: 100%; height: 100%; min-height: 560px; max-height: 900px; max-width: none; object-fit: cover; border-radius: 4px; }
.rg-b26 .rg-b26-story.is-short .rg-b26-portrait img { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
/* A studio shot isn't stretched to the write-up's height (it floated in an empty
   panel): it keeps its own shape and travels down beside the reading. */
.rg-b26 .rg-b26-portrait.is-studio { align-self: start; position: sticky; top: calc(var(--rg-header-h, 96px) + 24px); }
.rg-b26 .rg-b26-portrait.is-studio img { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5; }

/* ---- The dark band: a second statement, a second spread ---- */
.rg-b26 .rg-b26-band { margin-top: var(--sec); background: var(--ink); color: var(--cream); padding-block: 96px; }
.rg-b26 p.rg-b26-band-tx { margin: 0; max-width: 1240px; font: 700 84px/.94 var(--display); text-transform: uppercase; text-wrap: balance; color: var(--cream); }
.rg-b26 p.rg-b26-band-by { margin: 28px 0 0; font: 400 15px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.rg-b26 .rg-b26-band button.rg-b26-go,
.rg-b26 .rg-b26-band a.rg-b26-go { width: auto; display: inline-flex; margin-top: 36px; text-decoration: none; }
.rg-b26 .rg-b26-band-ph { margin-top: 72px; }
.rg-b26 .rg-b26-band-ph:first-child { margin-top: 0; }
.rg-b26 .rg-b26-band .rg-b26-fig figcaption,
.rg-b26 .rg-b26-band p.rg-b26-from > span { color: var(--muted-d); }

/* ---- The bike's own photos that nothing above has used ---- */
.rg-b26 .rg-b26-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rg-b26 .rg-b26-strip[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-b26 .rg-b26-strip figure { margin: 0; min-width: 0; }
.rg-b26 .rg-b26-strip img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; max-width: none; object-fit: cover; border-radius: 4px; }

@media (max-width: 1180px) {
	.rg-b26 p.rg-b26-statement { font-size: 48px; }
	.rg-b26 p.rg-b26-band-tx { font-size: 60px; }
	.rg-b26 blockquote.rg-b26-pull p { font-size: 36px; }
}

@media (max-width: 900px) {
	/* The head stacks: the name, the bike, then the way in. */
	.rg-b26 .rg-b26-head { display: flex; flex-direction: column; padding: 24px var(--gutter) 32px; }
	.rg-b26 .rg-b26-head-tx { display: contents; }
	.rg-b26 p.rg-b26-over { order: 1; margin-bottom: 12px; font-size: 14px; }
	body .rg-b26 h1.rg-b26-ttl,
	body .rg-b26 h1.rg-b26-ttl.is-long { order: 2; font-size: clamp(44px, 14vw, 64px) !important; line-height: .9 !important; }
	.rg-b26 p.rg-b26-sub { order: 3; margin-top: 16px; font-size: 17px; }
	.rg-b26 .rg-b26-hero { order: 4; margin: 24px calc(var(--gutter) * -1) 0; border-radius: 0; aspect-ratio: 4 / 3; }
	.rg-b26 .rg-b26-act { order: 5; margin-top: 0; padding-top: 24px; }
	.rg-b26 p.rg-b26-price { padding-top: 0; border-top: 0; }
	.rg-b26 p.rg-b26-price strong { font-size: 24px; }
	.rg-b26 .rg-b26-head .rg-b26-go { height: 52px; font-size: 16px; }
	.rg-b26 .rg-b26-band button.rg-b26-go,
	.rg-b26 .rg-b26-band a.rg-b26-go { height: 52px; font-size: 16px; margin-top: 24px; }

	.rg-b26 .rg-b26-open { padding-top: 44px; row-gap: 40px; }
	.rg-b26 p.rg-b26-statement { font-size: 36px; line-height: .98; }
	.rg-b26 .rg-b26-lead { margin-top: 22px; font-size: 18px; }
	.rg-b26 .rg-b26-lead.is-first { font-size: 20px; }

	.rg-b26 .rg-b26-sec-spread { padding-top: 56px; }
	.rg-b26 .rg-b26-spread { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
	.rg-b26 .rg-b26-fig.is-wide { grid-column: auto; }
	.rg-b26 .rg-b26-fig img { height: auto; aspect-ratio: 4 / 3; }
	.rg-b26 .rg-b26-fig.is-tall img { aspect-ratio: 4 / 5; }
	.rg-b26 p.rg-b26-from { margin-top: 16px; }

	.rg-b26 .rg-b26-more h2.rg-p26-h2 { margin-bottom: 22px; }
	.rg-b26 .rg-b26-story { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.rg-b26 .rg-b26-story.has-portrait .rg-b26-prose { grid-column: auto; }
	.rg-b26 .rg-b26-prose,
	.rg-b26 .rg-b26-story.is-short .rg-b26-prose { font-size: 17px; line-height: 1.6; }
	.rg-b26 .rg-b26-cols { column-count: 1; }
	.rg-b26 blockquote.rg-b26-pull { margin: 32px 0; padding-top: 22px; }
	.rg-b26 blockquote.rg-b26-pull p { max-width: none; font-size: 30px; line-height: 1; }
	.rg-b26 .rg-b26-portrait img { height: auto; min-height: 0; aspect-ratio: 4 / 5; }

	.rg-b26 .rg-b26-band { padding-block: 56px; }
	.rg-b26 p.rg-b26-band-tx { font-size: 40px; line-height: .96; }
	.rg-b26 p.rg-b26-band-by { margin-top: 18px; font-size: 14px; }
	.rg-b26 .rg-b26-band-ph { margin-top: 40px; }

	.rg-b26 .rg-b26-strip,
	.rg-b26 .rg-b26-strip[data-n="2"] { display: flex; gap: 12px; margin-inline: 0; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; }
	.rg-b26 .rg-b26-strip::-webkit-scrollbar { display: none; }
	.rg-b26 .rg-b26-strip figure { flex: none; width: 78%; scroll-snap-align: start; }
}
