/* Home page: the shelf, a tank's first year, stocking 2HR, the guides, the way into where to buy. */

body.twohr.home .fl-page-content { background: var(--background-color-primary); }

/* Hero: tagline, question and the counter left; the shop's shelving unit right. */
body.twohr .twohr-hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 1.5rem clamp(1.75rem, 4vw, 4rem); align-items: center; min-height: calc(100svh - 4.25rem); padding: clamp(0.75rem, 3vh, 2.25rem) 0 clamp(2.25rem, 6vh, 4.5rem); }
body.twohr .twohr-hero h1 { max-width: 8.2em; padding-bottom: 0.14em; }
body.twohr .twohr-hero__lede { max-width: 33rem; margin: clamp(1rem, 2.6vh, 1.75rem) 0 0; }

body.twohr .twohr-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.25rem 0.75rem; margin: clamp(1.375rem, 4vh, 2.75rem) 0 0; }
body.twohr .twohr-ask label { grid-column: 1 / -1; margin: 0; color: var(--text-color-secondary); font-weight: 600; }
body.twohr .twohr-ask__pick { position: relative; display: block; min-width: 0; }
body.twohr .twohr-ask__pick select { appearance: none; -webkit-appearance: none; width: 100%; height: auto; margin: 0; padding: 0.125rem 1.4em 0.25rem 0; border: 0; border-bottom: 3px solid var(--color-red); border-radius: 0; background: transparent; box-shadow: none; color: var(--text-color-primary); font-family: var(--font-sans); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); font-weight: 700; letter-spacing: -0.015em; cursor: pointer; text-overflow: ellipsis; }
body.twohr .twohr-ask__pick::after { content: '\25BE'; position: absolute; right: 0.2em; bottom: 0.45em; color: var(--color-ink); pointer-events: none; }
body.twohr .twohr-ask__step { display: inline-flex; gap: 0.375rem; }
body.twohr .twohr-ask__step button { width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: 2px solid var(--color-ink); background: transparent; color: var(--color-ink); font-family: var(--font-sans); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; touch-action: manipulation; }
@media (hover: hover) { body.twohr .twohr-ask__step button:hover { background: var(--color-ink); color: var(--color-cream); } }
body.twohr .twohr-ask__step button:active { background: var(--color-ink); color: var(--color-cream); transition: none; }

/*
 * The counter. Answering a question takes the pack off the shelf and stands it here, with its
 * name, line and dose. Every answer is stacked in one grid cell, so the counter is always as tall
 * as its longest answer and nothing above it moves when the answer changes.
 */
body.twohr .twohr-answer { position: relative; display: grid; margin-top: clamp(1rem, 2.6vh, 1.75rem); }
body.twohr .twohr-answer__set { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); align-content: start; gap: 0.375rem 0; visibility: hidden; }
body.twohr .twohr-answer__set.is-on { visibility: visible; }
body.twohr .twohr-answer__set p { margin: 0; opacity: 0; transition: opacity var(--duration-out) linear; }
body.twohr .twohr-answer__set.is-on p { opacity: 1; transition: opacity var(--duration-in) ease 0.12s; }
body.twohr .twohr-counter__item { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
body.twohr .twohr-counter__pack { position: relative; display: flex; align-items: flex-end; height: var(--counter-pack); border-bottom: var(--shelf-edge) solid var(--color-ink); }
body.twohr .twohr-counter__pack::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(-2 * var(--shelf-edge)); height: var(--shelf-edge); background: var(--color-shelf-shadow); }
body.twohr .twohr-counter__pack img { display: block; width: auto; height: 100%; aspect-ratio: 1; margin: 0 0 0 -0.5rem; }
body.twohr .twohr-counter__item p { padding: calc(0.875rem + var(--shelf-edge)) 1.25rem 0 0; font-size: var(--text-size-small); line-height: 1.4; }
body.twohr .twohr-answer__set.is-single .twohr-counter__item p { font-size: var(--text-size-regular); line-height: 1.45; max-width: 30rem; }
body.twohr .twohr-home.is-waiting .twohr-counter__pack img { opacity: 0; }
/* One pack: it stands large on the counter, with its name, line and dose beside it on the same top. */
body.twohr .twohr-answer__set.is-single .twohr-counter__item { position: relative; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; align-items: end; column-gap: clamp(1rem, 2.4vw, 2rem); border-bottom: var(--shelf-edge) solid var(--color-ink); }
body.twohr .twohr-answer__set.is-single .twohr-counter__item::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(-2 * var(--shelf-edge)); height: var(--shelf-edge); background: var(--color-shelf-shadow); }
body.twohr .twohr-answer__set.is-single .twohr-counter__pack { height: var(--counter-pack-single); border-bottom: 0; }
body.twohr .twohr-answer__set.is-single .twohr-counter__pack::after { display: none; }
body.twohr .twohr-answer__set.is-single .twohr-counter__item p { padding: 0 0 1.125rem; }
/* While a pack is carried between shelf and counter it never paints its cream ground over lines or words. */
body.twohr .twohr-home img.is-carried { mix-blend-mode: darken; }
body.twohr .twohr-counter__item strong { display: block; margin-bottom: 0.125rem; font-size: 1.125rem; letter-spacing: -0.01em; }
body.twohr .twohr-counter__use { display: block; margin-top: 0.25rem; color: var(--text-color-secondary); }
body.twohr .twohr-hero .twohr-actions { margin-top: 1.5rem; }
/* On desktop the header already offers the trade account and the login. */
@media (min-width: 1101px) { body.twohr .twohr-hero .twohr-actions { display: none; } }
body.twohr .twohr-nojs { display: none; }
html:not(.twohr-js) body.twohr .twohr-ask, html:not(.twohr-js) body.twohr .twohr-answer, html:not(.twohr-js) body.twohr .twohr-talker { display: none; }
html:not(.twohr-js) body.twohr .twohr-nojs { display: grid; gap: 0.25rem 0; margin: 1.75rem 0 0; }
html:not(.twohr-js) body.twohr .twohr-nojs div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.4rem 0; border-top: 1px solid var(--border-color); }
html:not(.twohr-js) body.twohr .twohr-nojs dt { color: var(--text-color-secondary); font-weight: 400; }
html:not(.twohr-js) body.twohr .twohr-nojs dd { margin: 0; font-weight: 700; text-align: right; }

/* The shelving unit: fully stocked and in full colour. A pack that answers the question leaves a gap
   on its shelf, with its shelf-talker still hanging there. */
body.twohr .twohr-shelves { display: grid; gap: 3.6rem; padding-bottom: 3rem; }
body.twohr .twohr-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(0.375rem, 1vw, 1rem); padding: 0 0.375rem 0.25rem; border-bottom: var(--shelf-edge) solid var(--color-ink); position: relative; }
body.twohr .twohr-shelf::before { content: ''; position: absolute; left: 0; right: 0; bottom: calc(-2 * var(--shelf-edge)); height: var(--shelf-edge); background: var(--color-shelf-shadow); }
body.twohr .twohr-pack { position: relative; margin: 0; animation: twohr-stock 0.6s var(--ease-settle) backwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
body.twohr .twohr-pack img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; max-height: calc((100svh - 18rem) / 3); transform-origin: 50% 100%; transition: opacity 0.3s ease, transform 0.5s var(--ease-snap); }
/* The footprint a pack leaves when it is taken off the shelf. */
body.twohr .twohr-pack::after { content: ''; position: absolute; left: 24%; right: 24%; bottom: -2px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, var(--color-shadow), transparent); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
/* Without the counter (older markup) the answer is lifted forward on the shelf instead. */
html.twohr-js body.twohr .twohr-pack.is-match img { transform: translateY(-6px) scale(1.06); }
html.twohr-js body.twohr .twohr-home.has-counter .twohr-pack.is-match img { opacity: 0; transform: translateY(-16%) scale(0.94); }
html.twohr-js body.twohr .twohr-home.has-counter .twohr-pack.is-match::after { opacity: 1; }
/* The Balance packshot is a shade darker than the cream it was shot on. */
body.twohr img[src*="packs/apt-balance."] { filter: brightness(1.008); }
body.twohr .twohr-talker { position: absolute; left: 50%; top: calc(100% + 0.875rem); z-index: 3; display: grid; min-width: 8.6em; padding: 0.45rem 0.625rem 0.5rem; transform: translateX(-50%) rotate(-12deg); transform-origin: 50% -10px; background: var(--color-red); color: var(--color-white); font-weight: 700; font-size: 0.92rem; line-height: 1.15; text-align: center; border-radius: 2px 2px 4px 4px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.7s cubic-bezier(0.3, 1.7, 0.45, 1); }
body.twohr .twohr-talker::before { content: ''; position: absolute; left: 50%; top: -10px; width: 2px; height: 10px; margin-left: -1px; background: var(--color-ink); }
body.twohr .twohr-talker small { font-weight: 500; font-size: 0.76rem; opacity: 0.92; }
body.twohr .twohr-pack.is-match .twohr-talker { opacity: 1; transform: translateX(-50%) rotate(0deg); }
@keyframes twohr-stock { from { opacity: 0; transform: translateY(-28px); } }

@media (max-width: 900px) {
	/* Phones: the question, the answer and the picked pack together; the shelving follows as a strip. */
	body.twohr .twohr-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
	body.twohr .twohr-hero__copy { display: contents; }
	body.twohr .twohr-hero h1 { order: 1; }
	body.twohr .twohr-hero__lede { order: 2; }
	body.twohr .twohr-ask { order: 3; margin-top: 0.5rem; }
	body.twohr .twohr-answer { order: 4; margin-top: 0; }
	body.twohr .twohr-nojs { order: 4; }
	body.twohr .twohr-shelves { order: 5; gap: 1.75rem; padding: 0.5rem 0 1rem; }
	body.twohr .twohr-hero .twohr-actions { order: 6; margin-top: 0; }
	/* Several packs: they stand side by side on the counter, and their words follow underneath. */
	body.twohr .twohr-answer__set { grid-auto-flow: row dense; }
	body.twohr .twohr-answer__set:not(.is-single) .twohr-counter__item { display: contents; }
	body.twohr .twohr-answer__set:not(.is-single) .twohr-counter__item p { grid-column: 1 / -1; padding: 0.625rem 0 0; }
	body.twohr .twohr-answer__set:not(.is-single) .twohr-counter__item:first-child p { padding-top: calc(0.875rem + var(--shelf-edge)); }
	body.twohr .twohr-answer__set:not(.is-on) { display: none; }
	body.twohr .twohr-counter__pack { height: 6rem; }
	body.twohr .twohr-answer__set.is-single .twohr-counter__pack { height: 7.5rem; }
	/* Phones: the words beside a single pack run taller than it, so the pack sits centred against them. */
	body.twohr .twohr-answer__set.is-single .twohr-counter__item { align-items: center; }
	body.twohr .twohr-answer__set.is-single .twohr-counter__item p { font-size: var(--text-size-small); line-height: 1.4; padding-bottom: 0.875rem; }
	body.twohr .twohr-shelf { padding: 0 2px 2px; border-bottom-width: 4px; }
	body.twohr .twohr-shelf::before { bottom: -9px; height: 4px; }
	body.twohr .twohr-pack img { max-height: none; }
	body.twohr .twohr-talker { top: calc(100% + 7px); min-width: 0; padding: 0.2rem 0.375rem 0.25rem; font-size: 0.6875rem; white-space: nowrap; }
	body.twohr .twohr-talker::before { top: -7px; height: 7px; }
	body.twohr .twohr-talker small { display: none; }
}

/* A tank's first year */
body.twohr .section_year { background: var(--background-color-secondary); border-top: 1px solid var(--border-color); }
body.twohr .twohr-year__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
body.twohr .twohr-year__head p { margin: 0; max-width: 34rem; }
body.twohr .twohr-timeline ol { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--color-line); }
body.twohr .twohr-timeline button { position: relative; width: 100%; display: flex; gap: 0.5rem; align-items: baseline; padding: 0.875rem 0.5rem 0.5rem 0; border: 0; background: none; color: var(--text-color-secondary); font-family: var(--font-sans); font-size: var(--text-size-small); font-weight: 600; text-align: left; cursor: pointer; }
body.twohr .twohr-timeline button span { font-size: var(--text-size-tiny); opacity: 0.7; }
body.twohr .twohr-timeline button::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--color-red); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform 0.45s var(--ease-settle); }
body.twohr .twohr-timeline button[aria-current] { color: var(--text-color-primary); }
body.twohr .twohr-timeline button[aria-current]::before { transform: scaleX(var(--fill, 1)); }
body.twohr .twohr-stages { position: relative; }
body.twohr .twohr-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
html.twohr-js body.twohr .twohr-stage { display: none; }
html.twohr-js body.twohr .twohr-stage.is-active { display: grid; animation: twohr-fade 0.5s var(--ease-settle) both; }
html:not(.twohr-js) body.twohr .twohr-stage + .twohr-stage { margin-top: 3rem; }
@keyframes twohr-fade { from { opacity: 0; transform: translateY(10px); } }
body.twohr .twohr-stage__media { position: relative; min-width: 0; }
body.twohr .twohr-stage__media > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transform: scale(var(--crop, 1)); transform-origin: var(--crop-at, 50% 50%); }
/* The 4ft tank: frame the planted water only, between the light above and the black stand below. */
body.twohr .twohr-stage__media > img[src*="photo/tank-full-4ft."] { --crop: 1.38; --crop-at: 50% 14%; }
body.twohr .twohr-stage__media:has(> img) { overflow: hidden; border-radius: var(--radius); }
body.twohr .twohr-stage__media > p { margin: 0.5rem 0 0; color: var(--text-color-secondary); }
body.twohr .twohr-stage__body > p { margin: 0 0 1rem; }
body.twohr .twohr-stage__body h3 { margin: 0.25rem 0 1rem; }
body.twohr .twohr-stage__packs { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; }
body.twohr .twohr-stage__packs li { display: grid; gap: 0.25rem; align-content: start; }
/* Packs stand on a shelf line and rise from behind it. */
/* On the paper ground each pack stands in a cream bay, the colour it was photographed on. */
body.twohr .twohr-stage__pack { display: flex; justify-content: center; overflow: hidden; background: var(--color-cream); border-radius: var(--radius) var(--radius) 0 0; border-bottom: 2px solid var(--color-ink); margin-bottom: 0.375rem; }
body.twohr .twohr-stage__packs img { display: block; width: 100%; max-width: 9rem; height: auto; }
html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__pack img { animation: twohr-rise 0.8s var(--ease-snap) both; animation-delay: calc(0.15s + var(--k) * 0.1s); }
html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__media > img { animation: twohr-settle 1.4s var(--ease-snap) both; }
html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__body > * { animation: twohr-lift 0.6s var(--ease-snap) 0.2s both; }
@keyframes twohr-rise { from { transform: translateY(102%); } }
@keyframes twohr-settle { from { transform: scale(calc(var(--crop, 1) * 1.06)); } }
@keyframes twohr-lift { from { opacity: 0; transform: translateY(12px); } }
body.twohr .twohr-stage__packs span { color: var(--text-color-secondary); font-size: var(--text-size-small); }
/* One pack in a stage: it stands large on the counter with its name and dose beside it, as in the hero. */
body.twohr .twohr-stage__packs:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); margin-top: 1.75rem; }
body.twohr .twohr-stage__packs li:only-child { position: relative; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: clamp(1rem, 2.4vw, 2rem); row-gap: 0.25rem; border-bottom: var(--shelf-edge) solid var(--color-ink); }
body.twohr .twohr-stage__packs li:only-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(-2 * var(--shelf-edge)); height: var(--shelf-edge); background: var(--color-shelf-shadow); }
body.twohr .twohr-stage__packs li:only-child .twohr-stage__pack { grid-row: 1 / span 2; width: var(--stage-pack-single); margin: 0; border-bottom: 0; }
body.twohr .twohr-stage__packs li:only-child img { max-width: none; }
body.twohr .twohr-stage__packs li:only-child strong { align-self: end; font-size: 1.25rem; letter-spacing: -0.01em; }
body.twohr .twohr-stage__packs li:only-child span { align-self: start; padding-bottom: 1.125rem; font-size: var(--text-size-regular); line-height: 1.45; color: var(--text-color-secondary); }
body.twohr .twohr-year__more { margin: 2rem 0 0; color: var(--text-color-secondary); }

body.twohr .twohr-compare-pick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
body.twohr .twohr-compare-pick button { min-height: 2.5rem; padding: 0 0.875rem; border-radius: 999px; border: 2px solid var(--color-ink); background: transparent; color: var(--color-ink); font-family: var(--font-sans); font-weight: 600; font-size: var(--text-size-small); cursor: pointer; }
body.twohr .twohr-compare-pick button[aria-pressed='true'] { background: var(--color-ink); color: var(--color-cream); }
body.twohr .twohr-compare { position: relative; width: min(100%, 26rem); aspect-ratio: 600 / 1070; max-height: 70svh; border-radius: var(--radius); overflow: hidden; background: #111; }
body.twohr .twohr-compare__pair { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
body.twohr .twohr-compare__pair.is-on { opacity: 1; }
body.twohr .twohr-compare__pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.twohr .twohr-compare__after { clip-path: inset(0 0 0 var(--pos)); }
body.twohr .twohr-compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
body.twohr .twohr-compare__tag { position: absolute; top: 0.75rem; z-index: 2; padding: 0.25rem 0.55rem; border-radius: 3px; background: rgba(0, 0, 0, 0.55); color: var(--color-white); font-size: var(--text-size-tiny); font-weight: 600; }
body.twohr .twohr-compare__tag.is-before { left: 0.75rem; }
body.twohr .twohr-compare__tag.is-after { right: 0.75rem; }
body.twohr .twohr-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
body.twohr .twohr-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--color-white); z-index: 2; pointer-events: none; }
body.twohr .twohr-compare__handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 50%; background: var(--color-white); color: var(--color-ink); display: grid; place-items: center; font-weight: 700; }
body.twohr .twohr-compare:has(.twohr-compare__range:focus-visible) { outline: 3px solid var(--color-red); outline-offset: 4px; }

/* Desktop: the sequence pins under the header and the scroll position picks the stage. */
@media (min-width: 900px) and (min-height: 600px) {
	html.twohr-js body.twohr .twohr-year__scroller { height: calc(var(--n) * 70svh + 100svh); }
	html.twohr-js body.twohr .twohr-year__pin { position: sticky; top: var(--twohr-head, 4.25rem); height: calc(100svh - var(--twohr-head, 4.25rem)); display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 1rem 0 2rem; }
	html.twohr-js body.twohr .twohr-timeline ol { margin-bottom: 1.25rem; }
	html.twohr-js body.twohr .twohr-timeline button::before { transition: transform 0.12s linear; }
	html.twohr-js body.twohr .twohr-stages { display: grid; min-height: 0; }
	html.twohr-js body.twohr .twohr-stage, html.twohr-js body.twohr .twohr-stage.is-active { display: grid; grid-area: 1 / 1; min-height: 0; height: 100%; animation: none; }
	/* A stage change in two beats: the outgoing words clear before the incoming ones arrive,
	   while the pictures crossfade underneath. */
	html.twohr-js body.twohr .twohr-stage { visibility: hidden; transition: visibility 0s linear var(--duration-slide); }
	html.twohr-js body.twohr .twohr-stage.is-active { visibility: visible; transition: visibility 0s; }
	/* Each picture frame clips its own contents; the next stage's picture pushes in from the side the rail is
	   heading to, and the last one leaves the other way, so two pictures never share the frame. */
	html.twohr-js body.twohr .twohr-stage__media { overflow: hidden; container-type: inline-size; }
	html.twohr-js body.twohr .twohr-stage__media > * { translate: calc(100cqw + 2 * var(--frame-inset)) 0; transition: translate var(--duration-slide) var(--ease-settle); }
	/* A photograph moves half the frame plus half its own width, which clears the frame whatever its size. */
	html.twohr-js body.twohr .twohr-stage__media > img { translate: calc(50cqw + 50%) 0; }
	html.twohr-js body.twohr .twohr-stage.is-before .twohr-stage__media > * { translate: calc(-100cqw - 2 * var(--frame-inset)) 0; }
	html.twohr-js body.twohr .twohr-stage.is-before .twohr-stage__media > img { translate: calc(-50cqw - 50%) 0; }
	html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__media > * { translate: 0 0; }
	/* The push is the picture's motion here, so the slow settle-in zoom is left to phones. */
	html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__media > img { animation: none; }
	html.twohr-js body.twohr .twohr-stage__body { opacity: 0; transition: opacity var(--duration-out) linear; }
	html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__body { opacity: 1; transition: opacity var(--duration-in) ease 0.2s; }
	html.twohr-js body.twohr .twohr-stage__media { height: 100%; min-height: 0; }
	html.twohr-js body.twohr .twohr-stage__media > img { height: 100%; aspect-ratio: auto; border-radius: 0; }
	/* The 4ft tank (1400 x 778): rows 30 to 594 are the planted water, between the light and the stand. The
	   photo is shown at its own pixel size, centred in a frame exactly that tall, so it is never enlarged. */
	html.twohr-js body.twohr .twohr-stage__media:has(> img[src*="photo/tank-full-4ft."]) { align-self: center; height: min(100%, 564px); border-radius: var(--radius); }
	html.twohr-js body.twohr .twohr-stage__media > img[src*="photo/tank-full-4ft."] { --crop: 1; height: 564px; object-fit: none; object-position: 50% -30px; }
	html.twohr-js body.twohr .twohr-stage__media:has(.twohr-compare) { display: flex; gap: 1rem; align-items: stretch; padding: var(--frame-inset) var(--frame-inset) 1.875rem; }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare { order: 1; flex: none; height: 100%; width: auto; max-width: 62%; max-height: none; }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare-pick { order: 2; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 1rem; margin: 0; }
	html.twohr-js body.twohr .twohr-stage__media:has(.twohr-compare) > p { position: absolute; left: var(--frame-inset); bottom: 0; margin: 0; }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare-pick button { position: relative; flex: 1 1 0; display: flex; align-items: flex-end; width: 100%; min-height: 0; padding: 0.875rem 1rem; border: 0; border-radius: var(--radius); background-color: var(--color-ink); background-repeat: no-repeat; background-position: bottom, center; background-size: 100% 4.75rem, cover; color: var(--color-cream); font-size: var(--text-size-small); line-height: 1.25; text-align: left; overflow: hidden; }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare-pick button[data-pair="bba"] { background-image: linear-gradient(var(--color-ink), var(--color-ink)), url('../img/photo/fix-bba-before.jpg'); }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare-pick button[data-pair="dust"] { background-image: linear-gradient(var(--color-ink), var(--color-ink)), url('../img/photo/fix-green-dust-before.jpg'); }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare-pick button::before { content: ''; position: absolute; inset: 0 0 4.75rem; background: var(--color-ink); opacity: 0.55; transition: opacity 0.3s ease; }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare-pick button[aria-pressed='true'] { outline: 3px solid var(--color-ink); outline-offset: 3px; }
	html.twohr-js body.twohr .twohr-stage__media .twohr-compare-pick button[aria-pressed='true']::before { opacity: 0; }
}

@media (max-width: 860px) {
	body.twohr .twohr-year__head { grid-template-columns: 1fr; }
	body.twohr .twohr-timeline { overflow-x: auto; margin: 0 calc(-1 * var(--space-gutter)); padding: 0 var(--space-gutter); scrollbar-width: none; }
	body.twohr .twohr-timeline ol { display: flex; gap: 0.25rem; width: max-content; }
	body.twohr .twohr-timeline li { flex: none; }
	body.twohr .twohr-timeline button { padding-right: 1rem; white-space: nowrap; min-height: 2.75rem; }
	body.twohr .twohr-stage { grid-template-columns: 1fr; }
	body.twohr .twohr-compare { width: min(100%, 22rem); }
	body.twohr .twohr-stage__packs li:only-child .twohr-stage__pack { width: 7.5rem; }
	body.twohr .twohr-stage__packs li:only-child span { font-size: var(--text-size-small); padding-bottom: 0.875rem; }
}

/* Stocking 2HR */
body.twohr .twohr-stockist { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.75rem, 5vw, 5rem); }
body.twohr .twohr-standard { margin: 0 0 2rem; padding: 0; border: 0; }
body.twohr .twohr-standard p { margin: 0; color: var(--text-color-primary); font-weight: 800; font-size: clamp(3rem, 1.4rem + 3.4vw, 4.25rem); line-height: 0.96; letter-spacing: -0.035em; text-wrap: balance; }
body.twohr .twohr-standard footer { margin-top: 1rem; font-weight: 600; color: var(--text-color-secondary); }
/* The 3 Aces are dealt into a fan when the section arrives; pointing at an ace lifts its card. */
body.twohr .twohr-stockist__lead { align-self: start; }
body.twohr .twohr-aces { position: relative; height: clamp(15rem, 25vw, 22rem); max-width: 36rem; }
body.twohr .twohr-aces__card { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 5 / 7; margin: calc(-0.5 * 36% * 7 / 5) 0 0 -18%; background: var(--color-cream); border: 1px solid var(--border-color); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transform-origin: 50% 120%; transition: transform 0.6s var(--ease-snap); }
body.twohr .twohr-aces__card img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 12% 4%; }
body.twohr .twohr-aces.is-dealt .twohr-aces__card, html:not(.twohr-js) body.twohr .twohr-aces__card { transform: translateX(calc((var(--i) - 1) * var(--ace-spread))) translateY(calc((var(--i) - 1) * (var(--i) - 1) * 5%)) rotate(calc((var(--i) - 1) * 7deg)); }
body.twohr .twohr-aces.is-dealt[data-ace='0'] .twohr-aces__card:nth-child(1),
body.twohr .twohr-aces.is-dealt[data-ace='1'] .twohr-aces__card:nth-child(2),
body.twohr .twohr-aces.is-dealt[data-ace='2'] .twohr-aces__card:nth-child(3) { transform: translateX(calc((var(--i) - 1) * var(--ace-spread))) translateY(-11%) rotate(calc((var(--i) - 1) * 3deg)); z-index: 3; box-shadow: 0 22px 40px var(--color-shadow); }
@media (min-width: 901px) { body.twohr .twohr-stockist__lead { position: sticky; top: calc(var(--twohr-head, 4.25rem) + 2rem); } }
body.twohr .twohr-stockist__body h2 { margin-bottom: 1rem; font-size: var(--heading-h3); letter-spacing: -0.02em; }
body.twohr .twohr-quote-line { font-family: var(--font-quote); font-style: italic; color: var(--text-color-primary); margin: 0 0 0.75rem; }
body.twohr .twohr-stockist__body > p { margin: 0 0 1rem; }
body.twohr .twohr-ace-list { margin: 0 0 1.75rem; border-top: 2px solid var(--color-ink); }
body.twohr .twohr-ace-list div { padding: 0.875rem 0; border-bottom: 1px solid var(--border-color); cursor: default; }
body.twohr .twohr-ace-list div:focus-visible { outline-offset: 2px; }
body.twohr .twohr-ace-list dt { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
body.twohr .twohr-ace-list dd { margin: 0.25rem 0 0; color: var(--text-color-secondary); }
body.twohr .twohr-stockist h3 { margin: 0 0 0.75rem; }
body.twohr .twohr-terms { margin: 0 0 1.75rem; padding: 0; list-style: none; border-top: 2px solid var(--color-ink); }
body.twohr .twohr-terms li { padding: 0.625rem 0; border-bottom: 1px solid var(--border-color); }
body.twohr .twohr-steps { margin: 0 0 1.75rem; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
body.twohr .twohr-steps li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0 0.625rem; align-items: start; }
body.twohr .twohr-steps li span { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--color-ink); display: grid; place-items: center; font-weight: 700; font-size: var(--text-size-tiny); }
body.twohr .twohr-steps p { margin: 0; }
body.twohr .twohr-stockist .twohr-stock { margin-bottom: 1.75rem; }
@media (max-width: 900px) {
	body.twohr .twohr-stockist { grid-template-columns: 1fr; }
	body.twohr .twohr-aces { height: 14rem; max-width: 22.5rem; margin: 0 auto; }
}

/* Voices and guides */
body.twohr .section_voices { background: var(--color-ink); color: var(--color-cream); }
body.twohr .twohr-voices { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(1.75rem, 5vw, 4.5rem); }
body.twohr .twohr-voices__quotes { display: grid; gap: 2.25rem; }
body.twohr .twohr-voices figure { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem 1.25rem; margin: 0; }
body.twohr .twohr-voices figure img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; grid-row: span 2; }
body.twohr .twohr-voices blockquote { margin: 0; padding: 0; border: 0; }
body.twohr .twohr-voices blockquote p { margin: 0; font-family: var(--font-quote); font-style: italic; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.35; color: var(--color-cream); }
body.twohr .twohr-voices figcaption { font-size: var(--text-size-small); opacity: 0.8; }
body.twohr .twohr-voices__guides h3 { color: var(--color-cream); margin-bottom: 0.75rem; }
body.twohr .twohr-voices__guides ul { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid rgba(248, 244, 232, 0.25); }
body.twohr .twohr-voices__guides li a { display: grid; gap: 0.125rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(248, 244, 232, 0.25); text-decoration: none; color: var(--color-cream); }
body.twohr .twohr-voices__guides li a span { opacity: 0.75; font-size: var(--text-size-small); }
body.twohr .twohr-voices__guides li a:has(.twohr-guide__photo) { grid-template-columns: var(--guide-thumb) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 1rem; align-items: start; }
body.twohr .twohr-voices__guides li a > .twohr-guide__photo { grid-row: 1 / span 2; display: block; width: var(--guide-thumb); aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); opacity: 1; }
body.twohr .twohr-guide__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-snap); }
body.twohr .twohr-voices__guides li a:has(.twohr-guide__photo) > strong { align-self: end; }
@media (hover: hover) { body.twohr .twohr-voices__guides li a:hover strong { text-decoration: underline; } body.twohr .twohr-voices__guides li a:hover .twohr-guide__photo img { transform: scale(1.06); } }
body.twohr .section_voices .twohr-link { color: var(--color-cream); }
@media (max-width: 900px) { body.twohr .twohr-voices { grid-template-columns: 1fr; } }

/* Where to buy: the regions, each a way into the Where to buy page. */
body.twohr .twohr-where-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
body.twohr .twohr-where-teaser h2 { margin-bottom: 0.75rem; }
body.twohr .twohr-where-teaser p { margin: 0 0 1.5rem; max-width: 30rem; }
body.twohr .twohr-where-teaser .twohr-actions { margin: 0; }
body.twohr .twohr-where-teaser__regions { list-style: none; margin: 0; padding: 0.25rem 0 0; }
body.twohr .twohr-where-teaser__regions li { position: relative; }
/* The road between stations; the last stretch, to Online, is dashed as on the Where page. */
body.twohr .twohr-where-teaser__regions li:not(:last-child)::after { content: ''; position: absolute; left: calc(var(--station) / 2 - var(--rail) / 2); top: calc(50% + var(--station) / 2); height: calc(100% - var(--station)); width: var(--rail); background: var(--color-ink); }
body.twohr .twohr-where-teaser__regions li:nth-last-child(2)::after { background: repeating-linear-gradient(to bottom, var(--color-ink) 0 6px, transparent 6px 12px); }
body.twohr .twohr-where-teaser__regions a { display: flex; align-items: center; gap: 1rem; min-height: 3.25rem; padding: 0.375rem 0; text-decoration: none; font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem); letter-spacing: -0.01em; }
body.twohr .twohr-where-teaser__regions a::before { content: ''; flex: none; box-sizing: border-box; width: var(--station); height: var(--station); border-radius: 50%; border: 3px solid var(--color-ink); background: var(--color-cream); transition: background-color 0.25s ease; }
body.twohr .twohr-where-teaser__regions li:last-child a::before { border-width: var(--rail); }
body.twohr .twohr-where-teaser__regions a::after { content: '\2192'; margin-left: 0.25rem; opacity: 0; transform: translateX(-0.375rem); transition: opacity 0.25s ease, transform 0.3s var(--ease-snap); }
body.twohr .twohr-where-teaser__regions a:focus-visible::after { opacity: 1; transform: none; }
body.twohr .twohr-where-teaser__regions a:focus-visible::before { background: var(--color-ink); }
@media (hover: hover) {
	body.twohr .twohr-where-teaser__regions a:hover::after { opacity: 1; transform: none; }
	body.twohr .twohr-where-teaser__regions a:hover::before { background: var(--color-ink); }
}
@media (max-width: 900px) { body.twohr .twohr-where-teaser { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	body.twohr .twohr-pack { animation: none; }
	html.twohr-js body.twohr .twohr-pack img, html.twohr-js body.twohr .twohr-pack.is-match img, html.twohr-js body.twohr .twohr-home.has-counter .twohr-pack.is-match img { transform: none; }
	body.twohr .twohr-answer__set p, body.twohr .twohr-answer__set.is-on p { transition: none; }
	body.twohr .twohr-talker, body.twohr .twohr-pack.is-match .twohr-talker { transform: translateX(-50%); }
	body.twohr .twohr-aces__card, body.twohr .twohr-guide__photo img, body.twohr .twohr-timeline button::before { transition: none; }
	html.twohr-js body.twohr .twohr-stage__media > * { transition: none; }
	html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__pack img,
	html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__media > img,
	html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__body > * { animation: none; }
	html.twohr-js body.twohr .twohr-stage, html.twohr-js body.twohr .twohr-stage.is-active, html.twohr-js body.twohr .twohr-stage__media, html.twohr-js body.twohr .twohr-stage__body, html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__media, html.twohr-js body.twohr .twohr-stage.is-active .twohr-stage__body { transition: none; animation: none; }
}
