/*
 * Rager — site styles, round-2 direction E "Made in Paikuse"
 * (/mnt/disk2/rager/design-previews/round-2/design3.png): white page, large blue sans
 * headline, serif section headings, pale blue range band, square corners.
 * Mapped onto WordPress block markup. Colour, type and spacing tokens mirror theme.json.
 */

:root {
	--paper: #fff;
	--surface: #fff;
	/* Quiet panel behind product photos, cards and tables. */
	--linen: #eef2f4;
	--ink: #142c3d;
	--ink-hover: #24445a;
	--muted: #62707a;
	/* Body copy (descriptions, leads, steps); --muted stays for small helper text. */
	--copy: #3a4750;
	--line: #d4dce0;
	--band-line: #b9d1de;
	--field-line: #8a979e;
	/* --blue passes AA for small text on white and on --mist; --brand (the design's #008FCE) only for large display text. */
	--blue: #00709f;
	--blue-hover: #005a80;
	--brand: #008fce;
	--mist: #eaf4f8;
	--night: #142c3d;
	--error: #a13227;
	--success: #28664e;
	/* One place for the fonts: change a family in theme.json and everything follows. Serif = the heading/display role. */
	--font-serif: var(--wp--preset--font-family--serif);
	--font-sans: var(--wp--preset--font-family--sans);
	--gutter: clamp(1.25rem, 3.9vw, 3.5rem);
	--content: 90rem;
	--section: clamp(4rem, 7.8vw, 7rem);
	--header-height: 104px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	/* Everything with a corner takes the logo's rounded corner; only full-width bands stay square. */
	--radius-sm: 7px;
	--radius: 7px;
	/* Wide pieces (hero photo, footer strip) sit exactly on the content edge, so logo, photo and header button line up. */
	--bleed: 0px;
	/* Lucide icons (lucide.dev, ISC) used as CSS masks; the inline ones come from rager_icon(). */
	--arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
	--arrow-diagonal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E");
	--plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E");
	--minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
	--check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
	--phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
/* No overscroll stretch or bounce at the page edges: pulling down at the top leaves the hero photo still. */
html, body { overscroll-behavior-y: none; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
/* Page titles use the design's large sans; chapter headings (h2, h3) stay serif. */
h1 { font-family: var(--font-sans); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-size: clamp(3rem, 6.4vw, 6rem); overflow-wrap: break-word; hyphens: auto; }
/* Search title repeats the query ("Otsingutulemused päringule: …"): one long Estonian word would not fit a phone at page-title size. */
.wp-block-query-title { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(2.75rem, 4.5vw, 4.5rem); }
h3 { font-size: 2.15rem; }
p { max-width: 62ch; }
p + p { margin-top: 1rem; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; border: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: #b6dbe5; color: var(--ink); }
[hidden] { display: none !important; }
mark { background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.rule { border-top: 1px solid var(--line); }
.arrow, .icon { width: 22px; height: 22px; flex: 0 0 auto; }
.button .icon--plus { width: 20px; height: 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 16px; top: 10px; left: 20px; z-index: 100; background: var(--ink); color: var(--surface); }

/* Chapter labels: small blue uppercase. */
.eyebrow, .is-style-eyebrow, .is-style-chapter { display: block; color: var(--blue); font: 650 .6875rem/1.5 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }

/* A heading gets breathing room only when a small label sits above it. */
:is(.eyebrow, .is-style-eyebrow, .is-style-chapter):not(:empty) + :is(h1, h2) { margin-top: 18px; }

/* ---------- Buttons and text links ---------- */

.button, .wp-block-button__link { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 54px; padding: 14px 23px; background: var(--ink); color: var(--surface); border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 650; line-height: 1.4; border: 1px solid var(--ink); text-align: left; transition: background .2s, border-color .2s, color .2s; }
.button:hover, .wp-block-button__link:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--surface); }
.wp-block-button__link::after { content: ''; width: 22px; height: 22px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.button.light, .is-style-light .wp-block-button__link { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.button.light:hover, .is-style-light .wp-block-button__link:hover { background: var(--linen); border-color: var(--linen); color: var(--ink); }
.button.outline, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.outline:hover, .is-style-outline .wp-block-button__link:hover { background: var(--linen); color: var(--ink); }
/* Phone-number buttons end in a phone instead of the arrow. */
.wp-block-button__link[href^="tel:"] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wp-block-button__link[href^="tel:"]::after { width: 20px; height: 20px; -webkit-mask-image: var(--phone); mask-image: var(--phone); }

.button.brand, .is-style-brand .wp-block-button__link { background: var(--blue); border-color: var(--blue); color: #fff; min-width: min(260px, 100%); }
.button.brand:hover, .is-style-brand .wp-block-button__link:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }

/* Text links: words and a long arrow, no underline (direction E). */
.text-link, .is-style-text-link .wp-block-button__link { display: inline-flex; gap: 3rem; align-items: center; justify-content: flex-start; min-height: 44px; padding: 0; font-size: .8125rem; font-weight: 650; background: none; color: var(--ink); border: 0; width: fit-content; border-radius: 0; }
.text-link:hover, .is-style-text-link .wp-block-button__link:hover { background: none; color: var(--blue); }

.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.wp-block-button { margin: 0; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid rgb(20 44 61 / .1); }
.admin-bar .site-header { top: 32px; }
.nav-row { height: var(--header-height); display: flex; align-items: center; gap: 32px; }
.logo { display: block; width: 172px; flex-shrink: 0; }
/* An uploaded logo of any shape stays inside the header row: it is fitted, never stretched. */
.logo img { width: 100%; height: auto; max-height: 72px; object-fit: contain; object-position: left center; }

/* Notice bar above the header (Rageri sisu → Päis ja menüü → Teavitusriba). */
.site-notice { background: var(--ink); color: var(--surface); font-size: .875rem; line-height: 1.45; }
.site-notice p { margin-block: 0; padding-block: 9px; text-align: center; }
.site-notice a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.site-notice a:hover, .site-notice a:focus-visible { text-decoration-thickness: 2px; }
.desktop-nav { display: flex; gap: clamp(24px, 3.6vw, 72px); margin-inline: auto; align-items: center; }
.lang-switch { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .6875rem; font-weight: 600; color: var(--muted); letter-spacing: .16em; }
.lang-switch [aria-current] { color: var(--ink); font-weight: 800; }
.lang-switch__soon { cursor: help; }
/* A hairline separates the language switch from the menu, like a column rule. */
.nav-row > .lang-switch { margin-right: clamp(8px, 2.2vw, 40px); padding-left: clamp(16px, 2.2vw, 32px); border-left: 1px solid rgb(20 44 61 / .1); min-height: 28px; }
/* Menu set in tracked capitals, echoing the spaced letters of the RAGER wordmark. */
.desktop-nav > a { font-size: .71875rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; display: flex; align-items: center; position: relative; padding-top: 2px; white-space: nowrap; }
/* Hover draws a hairline out from the centre; the current page keeps it and adds the logo's diamond. */
.desktop-nav > a::after { content: ''; height: 1px; position: absolute; bottom: 4px; left: 0; right: 0; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.desktop-nav > a:hover::after, .desktop-nav > a[aria-current=page]::after { transform: scaleX(1); }
.desktop-nav > a[aria-current=page]::before { content: ''; position: absolute; bottom: 1.5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; background: var(--brand); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--surface); z-index: 1; }
.desktop-nav > a[aria-current=page] { color: var(--ink); }
.desktop-nav > a:hover { color: var(--blue); }
/* Header button: tracked capitals like the menu. */
.nav-cta { min-width: 214px; min-height: 52px; justify-content: center; position: relative; overflow: hidden; z-index: 1; font-size: .71875rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; transition: border-color .5s; }
.nav-cta::before, .nav-cta::after { content: ''; position: absolute; top: 0; width: 0; height: 100%; transform: skew(15deg); transition: width .5s; z-index: -1; }
.nav-cta::before { left: -10px; background: var(--blue); }
.nav-cta::after { right: -10px; background: var(--blue); }
.nav-cta:hover::before, .nav-cta:hover::after { width: 58%; }
.nav-cta:hover { background: var(--ink); border-color: var(--blue); }
.mobile-nav { display: none; }

/* ---------- Home: hero ---------- */

.hero { padding-top: clamp(12px, 1.27vw, 19px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; padding-bottom: clamp(28px, 2.6vw, 38px); }
.hero-title { margin-top: clamp(18px, 2.4vw, 36px); font-size: clamp(3rem, 8.3vw, 7.5rem); line-height: .98; letter-spacing: -.028em; }
.hero-title mark { color: var(--brand); }
.hero-badge { padding: clamp(24px, 2.6vw, 40px) clamp(0px, 6vw, 88px) 0 0; }
.hero-badge p { margin: 0; }
.hero-badge__label { font-size: .625rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.hero-badge__year { font: 400 clamp(2.4rem, 3.3vw, 3rem)/1.15 var(--font-serif); color: var(--ink); letter-spacing: 0; }
.hero-photo { position: relative; margin: 0 calc(var(--bleed) * -1); aspect-ratio: 2.43; overflow: hidden; border-radius: var(--radius); background: var(--linen); }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; position: absolute; inset: 0; }
.hero-photo > sunrise-hero { display: block; position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #141e27; }
sunrise-hero > img, sunrise-hero > canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 55%; }
sunrise-hero > canvas { opacity: 0; pointer-events: none; }
sunrise-hero[data-state=loading] > img { filter: brightness(.24) saturate(.65); }
sunrise-hero[data-renderer=webgl] > canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { sunrise-hero[data-state=loading] > img { filter: none; } }
.hero-photo figcaption { --inset: clamp(16px, 1.7vw, 24px); position: absolute; left: var(--inset); bottom: var(--inset); width: min(350px, calc(100% - 2 * var(--inset))); margin: 0; }
.hero-card { position: relative; overflow: hidden; z-index: 1; border-radius: var(--radius-sm); display: grid; gap: 5px; padding: 19px 20px; background: var(--surface); color: var(--ink); transition: color .3s; }
.hero-card strong { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.hero-card span { font-size: .72rem; color: var(--muted); transition: color .3s; }
.hero-card::before, .hero-card::after { content: ''; position: absolute; top: 0; width: 0; height: 100%; transform: skew(15deg); transition: width .5s; z-index: -1; }
.hero-card::before { left: -10px; background: var(--ink-hover); }
.hero-card::after { right: -10px; background: var(--ink-hover); }
.hero-card:hover::before, .hero-card:hover::after { width: 58%; }
.hero-card:hover, .hero-card:hover span { color: var(--surface); }

/* ---------- Home: story and timeline ---------- */

.home-intro { padding-top: clamp(28px, 2.6vw, 36px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6%; }
.intro-grid h2 { margin-top: clamp(20px, 2.2vw, 32px); }
.intro-aside { margin-bottom: clamp(18px, 2vw, 28px); text-align: right; padding-right: 10%; font-size: .6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.intro-copy > p:not(.intro-aside) { font-size: 1.0625rem; line-height: 1.75; color: var(--copy); max-width: 40ch; }
.intro-copy .wp-block-buttons { margin-top: 20px; }
.home-intro .timeline { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px clamp(40px, 8vw, 128px); margin-top: clamp(32px, 3vw, 44px); padding-top: clamp(24px, 2.2vw, 32px); }
.home-intro .timeline p, .home-intro .timeline p + p { display: flex; align-items: baseline; gap: clamp(20px, 3vw, 44px); font-size: .9375rem; font-weight: 500; color: var(--ink); max-width: none; }
.home-intro .timeline strong { display: inline; font: 400 clamp(2rem, 2.6vw, 2.4rem)/1 var(--font-serif); color: var(--brand); }
.digit-one { margin-inline: .05em; }

/* ---------- Home: range band ---------- */

.range-band { background: var(--mist); padding-block: clamp(40px, 3.4vw, 48px) clamp(56px, 5vw, 72px); }
.range-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4.5%; }
.range-head { display: flex; flex-direction: column; }
.range-head h2 { margin-top: clamp(28px, 3.2vw, 44px); }
.range-intro { margin-top: auto; padding-top: 40px; font-size: .9375rem; line-height: 1.75; color: var(--copy); }
.range-list { list-style: none; margin: 0; padding: 0; }
.range-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 13rem) 26px; gap: 16px; align-items: center; min-height: 92px; padding-block: 12px; border-bottom: 1px solid var(--band-line); }
.range-list a::after { content: ''; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--arrow-diagonal) center / contain no-repeat; mask: var(--arrow-diagonal) center / contain no-repeat; transition: transform .25s var(--ease); }
.range-row__title { grid-column: 1; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 550; letter-spacing: -.01em; }
.range-row__note { grid-column: 2; font-size: .75rem; color: var(--muted); }
.range-list a:hover .range-row__title { color: var(--blue); }
.range-list a:hover::after { transform: translate(2px, -2px); }

/* ---------- Home: proof row ---------- */

.proof-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-block: 28px; border-bottom: 1px solid var(--line); gap: 32px; }
.proof { display: grid; align-items: center; justify-items: center; text-align: center; }
.proof-title { font-weight: 600; font-size: .875rem; }
.proof p + p.proof-detail { margin-top: 2px; }
.proof-detail { font-size: .875rem; color: var(--copy); }

/* ---------- Section head ---------- */

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-head > p { max-width: 32ch; color: var(--copy); font-size: 1.0625rem; }

/* ---------- Categories ---------- */

.category-grid { display: grid; grid-template-columns: 1.22fr 1fr 1fr; gap: 24px; align-items: start; }
.category-grid--staggered .category-card:nth-child(2) { padding-top: 56px; }
.category-grid--staggered .category-card:nth-child(3) { padding-top: 104px; }
.category-grid--grid { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.category-card { display: block; }
.category-image { position: relative; background: var(--linen); overflow: hidden; border-radius: var(--radius); aspect-ratio: 1.06; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); mix-blend-mode: multiply; }
.category-card:first-child img { object-position: 52% 50%; }
.category-card:hover img { transform: scale(1.025); }
.category-caption { display: flex; justify-content: space-between; align-items: center; padding-top: 19px; gap: 16px; }
.category-caption h2, .category-caption h3 { font-size: 2rem; }
.category-card p { font-size: .9375rem; color: var(--copy); margin-top: 8px; }
/* Other categories as link chips: same shape as the form chips, filled like the buttons on hover. */
.more-categories { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.more-categories__title { font-size: 2rem; }
.more-categories__links { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8125rem; }
.more-categories a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--field-line); border-radius: var(--radius-sm); font-weight: 600; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.more-categories a::after { content: ''; width: 16px; height: 16px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.more-categories a:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Construction feature ---------- */

.anatomy { background: var(--mist); }
.anatomy-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 8%; align-items: center; }
.anatomy-visual { background: var(--linen); position: relative; border-radius: var(--radius); aspect-ratio: 1.12; display: flex; align-items: center; overflow: hidden; margin: 0; }
.anatomy-visual img { width: 100%; mix-blend-mode: multiply; }
.image-label { position: absolute; left: 24px; bottom: 22px; font-size: .6875rem; letter-spacing: .08em; background: var(--mist); padding: 4px 8px; border-radius: var(--radius-sm); }
.anatomy h2 { margin: 0 0 24px; }
.anatomy .intro { font-size: 1.0625rem; color: var(--copy); max-width: 40ch; }
.spec-list { margin: 24px 0 28px; padding: 0; list-style: none; }
.spec-list li { display: block; padding: 16px 0; border-top: 1px solid var(--band-line); font-size: .875rem; }
.spec-list strong { font-weight: 650; }
.spec-list p { font-size: .9375rem; color: var(--copy); margin-top: 3px; }

/* ---------- Product cards and grids ---------- */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { min-width: 0; }
.product-card > a { display: block; }
.product-photo { background: var(--linen); border-radius: var(--radius); aspect-ratio: 1.12; display: flex; align-items: center; position: relative; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.product-card:hover .product-photo img { transform: scale(1.035); }
.product-info { padding-top: 18px; }
.product-info > .eyebrow { font-size: .625rem; }
.product-title { font-size: 1.8rem; margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-title svg { width: 22px; }
.product-info p { font-size: .875rem; color: var(--copy); margin-top: 10px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; font-size: .6875rem; color: var(--muted); }
/* Firmness: four steps from pehme to väga jäik, filled up to the product's class. */
.firmness { position: relative; display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: .75rem; font-weight: 600; color: var(--ink); }
.firmness__scale { display: inline-flex; gap: 3px; }
.firmness__scale i { width: 14px; height: 5px; border-radius: 2px; background: var(--line); }
.firmness[data-level="1"] i:nth-child(-n+1),
.firmness[data-level="2"] i:nth-child(-n+2),
.firmness[data-level="3"] i:nth-child(-n+3),
.firmness[data-level="4"] i { background: var(--blue); }

/* ---------- Product page: overview, spec table, sliders ---------- */

.product-overview { padding-bottom: 0; }
.overview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8%; align-items: start; }
.overview-text h2, .spec-table h2 { margin: 10px 0 24px; }
.overview-text p { font-size: 1.0625rem; color: var(--copy); max-width: 62ch; }
.overview-text p + p { margin-top: 1.1em; }
.overview-points { background: var(--linen); border-radius: var(--radius); padding: 28px 30px; }
.overview-points h3 { font-size: 1.5rem; margin-bottom: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; background: var(--blue); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
/* Teenused: numbered service cards with examples. */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(28px, 3.4vw, 56px); counter-reset: service; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: minmax(0, 1fr); } }
.service-card { counter-increment: service; display: flex; flex-direction: column; padding-top: 22px; border-top: 1px solid var(--ink); }
.service-card::before { content: counter(service, decimal-leading-zero); margin-bottom: clamp(20px, 2.4vw, 32px); font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.service-card h3 { margin-bottom: 14px; font-size: clamp(1.6rem, 2.2vw, 2rem); }
.service-card > p { margin-bottom: 22px; color: var(--copy); font-size: .9375rem; line-height: 1.7; }
.service-card .check-list { margin-top: auto; }
.spec-table { background: var(--mist); margin-top: var(--section); }
.spec-table h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.spec-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8%; }
.spec-columns h3 { font-size: 1.5rem; margin-bottom: 8px; }
.spec-columns .data-list > div:last-child { border-bottom: 1px solid var(--line); }
.spec-table + .anatomy { background: var(--paper); }
.product-slider { overflow: hidden; }
.slider-buttons { display: flex; gap: 10px; }
.slider-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); cursor: pointer; }
.slider-button svg { width: 20px; }
.slider-button--prev svg { transform: scaleX(-1); }
.slider-button:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slider-button:disabled { opacity: .35; cursor: default; }
.slider-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > .product-card { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
.slider-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---------- Home: advice, story, custom sizes ---------- */

.guide-band { background: var(--linen); }
.guide-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 12%; }
.guide-grid .wp-block-buttons { margin-top: 28px; }
.step { padding: 25px 0; border-top: 1px solid var(--band-line); }
.step:first-child { padding-top: 0; border-top: 0; }
.step h3 { font-size: 1.9rem; margin-bottom: 10px; }
.step p { font-size: 1.0625rem; color: var(--copy); }

.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8%; align-items: center; }
.story-photo { margin: 0; }
.story-photo img { border-radius: var(--radius); aspect-ratio: 1.12; object-fit: cover; width: 100%; }
.story-photo figcaption { font-size: .6875rem; margin-top: 10px; color: var(--muted); }
.story h1, .story h2 { margin: 0 0 24px; }
.story p { font-size: 1.0625rem; color: var(--copy); }
.story .wp-block-buttons { margin-top: 25px; }
.timeline { display: flex; gap: 36px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; }
.timeline p, .timeline p + p { margin: 0; font-size: .6875rem; color: var(--muted); }
.timeline strong { display: block; font: 500 2.4rem/1.2 var(--font-serif); color: var(--ink); }

/* Custom sizes: a white chapter; on inner pages a rule separates it from the content above. */
.custom-band { padding-block: clamp(40px, 4.2vw, 60px) clamp(64px, 6.5vw, 96px); }
.custom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10%; align-items: start; border-top: 1px solid var(--line); padding-top: clamp(40px, 4.2vw, 60px); }
.home .custom-grid { border-top: 0; padding-top: 0; }
.custom-band h2 { margin-top: clamp(24px, 2.4vw, 32px); font-size: clamp(2.6rem, 4vw, 3.6rem); }
.custom-grid > :last-child { padding-top: clamp(24px, 3.4vw, 48px); }
.custom-band p:not(.is-style-chapter) { color: var(--copy); font-size: .9375rem; line-height: 1.75; }
.custom-band .wp-block-buttons { margin-top: 32px; }


/* ---------- Footer ---------- */

.site-footer { background: var(--surface); padding-top: clamp(40px, 4vw, 56px); }
/* Navy strip above the footer (replaces the design's dealer band: Rager sells directly). */
.footer-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px clamp(24px, 6vw, 112px); min-height: 94px; margin-inline: calc(var(--bleed) * -1); padding: 20px clamp(20px, 2.2vw, 30px); background: var(--night); color: var(--surface); border-radius: var(--radius); }
.footer-strip p { margin: 0; max-width: none; }
.footer-strip__title { font: 400 clamp(1.6rem, 2vw, 1.9rem)/1.1 var(--font-serif); }
.footer-strip__text { font-size: .9375rem; color: #d8e4ea; }
.footer-strip__link { display: inline-flex; align-items: center; gap: clamp(24px, 4vw, 64px); min-height: 44px; font-size: .8125rem; font-weight: 650; }
.footer-strip__link:hover { color: #9acee7; }
.footer-strip :focus-visible { outline-color: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; padding-block: 44px; margin-top: clamp(32px, 3vw, 44px); border-top: 1px solid var(--line); }
.site-footer .logo { width: min(100%, 260px); }
.site-footer .logo img { max-height: 110px; }
.footer-heading { font-size: .8125rem; font-weight: 500; margin-bottom: 6px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-links a, .site-footer .contact-details a { display: flex; align-items: center; min-height: 44px; font-size: .8125rem; overflow-wrap: anywhere; }
.site-footer .footer-links a:hover, .site-footer .contact-details a:hover { color: var(--blue); }
.site-footer .contact-details p { font-size: .8125rem; color: var(--muted); }
.footer-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 8px 28px; font-size: .6875rem; color: var(--muted); }
.footer-base p + p { margin-top: 0; }

/* ---------- Page openings ---------- */

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .75rem; color: var(--muted); padding-block: 25px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-intro { padding-block: 35px 54px; }
.page-intro h1 { margin: 0 0 24px; font-size: clamp(3.5rem, 6.5vw, 6rem); }
.page-intro p, .page-intro .page-lead { font-size: 1.125rem; color: var(--copy); max-width: 52ch; }
.page-content { max-width: 720px; padding-bottom: var(--section); }
.page-content > * + * { margin-top: 1rem; }
.page-content h2 { font-size: 2.6rem; margin-top: 2.5rem; }

/* ---------- Catalogue ---------- */

.catalogue-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-block: 1px solid var(--line); padding-block: 20px; margin-bottom: 32px; }
.filter-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: transparent; min-height: 44px; padding: 10px 20px; font-size: .8125rem; }
.filter[aria-pressed=true] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filter:hover { border-color: var(--ink); }
.catalogue-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.catalogue-grid .product-photo { aspect-ratio: 1.55; }
.catalogue-grid .product-title { font-size: 2.2rem; }
.catalogue-grid .product-info p { font-size: .875rem; }
.catalogue-grid .product-meta { font-size: .75rem; }
.comparison { margin-top: 80px; }
.comparison h2 { margin: 0 0 15px; }
.table-wrap { overflow-x: auto; margin-top: 32px; padding-bottom: 8px; }
.comparison table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: .8125rem; }
.comparison th, .comparison td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.comparison thead th { font-weight: 650; background: var(--linen); }
.comparison thead a { text-decoration: underline; text-underline-offset: 3px; }
.comparison tbody th { font-weight: 500; color: var(--muted); }
.comparison > p.muted { font-size: .9375rem; color: var(--copy); }
.comparison caption { text-align: left; margin-bottom: 12px; color: var(--muted); font-size: .75rem; }
.empty { padding: 28px; background: var(--linen); border-radius: var(--radius); }
.empty p + p { margin-top: 12px; }

/* ---------- Product detail ---------- */

.product-detail { display: grid; grid-template-columns: 1.13fr 1fr; gap: 7%; padding-block: 20px 80px; align-items: start; }
.gallery-main { background: var(--linen); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1.05; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.gallery-thumbs button { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; width: 100px; height: 80px; padding: 6px; }
.gallery-thumbs button[aria-pressed=true] { border: 2px solid var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-summary h1 { font-size: clamp(3.5rem, 5.5vw, 5.5rem); margin: 0 0 22px; }
.product-summary > p { font-size: 1.0625rem; color: var(--copy); }
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-block: 28px; border-block: 1px solid var(--line); padding-block: 19px; gap: 12px; }
.facts dt { font-size: .625rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-size: .9375rem; font-weight: 600; }
.size-picker { border: 0; padding: 0; margin: 0 0 24px; }
.size-picker legend { padding: 0; margin-bottom: 13px; font-size: .8125rem; font-weight: 650; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sizes label { position: relative; cursor: pointer; }
.sizes input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sizes span { display: block; border: 1px solid var(--field-line); border-radius: var(--radius-sm); padding: 11px 8px; text-align: center; font-size: .8125rem; }
.sizes input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.size-picker .small { margin-top: 12px; color: var(--muted); }
.size-form noscript .button { margin-bottom: 24px; }
.sizes__custom { grid-column: 1 / -1; }
.custom-size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.js .size-form:not(:has(.sizes__custom input:checked)) .custom-size { display: none; }
.custom-size__field span { display: block; margin-bottom: 6px; font-size: .75rem; color: var(--muted); }
.custom-size__field input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background-color: var(--surface); font-size: 1rem; transition: border-color .2s var(--ease); }
.custom-size__field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.custom-size__field input[aria-invalid=true] { border-color: var(--error); }
.custom-size__note { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.product-cta { display: grid; gap: 12px; }
.product-cta .button { width: 100%; }
.product-cta .text-link { justify-self: center; }
.availability { margin-top: 17px; font-size: .75rem !important; }
.availability a { text-decoration: underline; text-underline-offset: 3px; }
.details-block { max-width: 960px; margin: auto; }
.details-block > h2 { margin: 12px 0 30px; }
.accordion { border-top: 1px solid var(--line); }
.accordion:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; padding: 23px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 1rem; font-weight: 600; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; align-self: center; width: 20px; height: 20px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--plus) center / contain no-repeat; mask: var(--plus) center / contain no-repeat; }
.accordion[open] summary::after { -webkit-mask-image: var(--minus); mask-image: var(--minus); }
.accordion-content { padding: 0 0 26px; color: var(--copy); font-size: 1rem; }
.accordion-content .text-link { margin-top: 16px; }
.data-list { margin: 0; }
.data-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.data-list dd { margin: 0; color: var(--ink); }
.data-list dt { color: var(--muted); }

.contact-card { background: var(--linen); border-radius: var(--radius); padding: 36px; align-self: start; position: sticky; top: 120px; }
.contact-card h2 { font-size: 2.65rem; margin: 16px 0 20px; }
.contact-card p { font-size: 1rem; color: var(--copy); }
.contact-card a { display: block; overflow-wrap: anywhere; }
.contact-card .phone { font: 500 2rem/1.2 var(--font-serif); margin-top: 28px; }
.contact-card .email { font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; margin: 10px 0 20px; }
.contact-card .text-link { display: inline-flex; margin-top: 16px; }
.contact-card__address { margin-top: 28px; padding-top: 22px; }

/* ---------- Selection guide ---------- */

.guide-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; padding-block: 25px 72px; }
.guide-hero h1 { font-size: clamp(3.5rem, 5.8vw, 5.5rem); margin: 20px 0 25px; }
.guide-hero p { font-size: 1.125rem; color: var(--copy); }
.guide-hero .wp-block-buttons { margin-top: 25px; }
.guide-hero__photo { margin: 0; }
.guide-hero__photo img { border-radius: var(--radius); aspect-ratio: 1.15; object-fit: cover; width: 100%; }
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 8%; padding-bottom: 80px; }
.article-nav { position: sticky; top: 120px; align-self: start; font-size: .8125rem; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.article-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.article-nav a:hover { color: var(--blue); }
.article-body { max-width: 720px; }
.article-step { padding-block: 40px; border-top: 1px solid var(--line); }
.article-step h2 { font-size: 3rem; margin: 12px 0 25px; }
.article-step p { font-size: 1.125rem; color: var(--copy); }
.article-step .wp-block-buttons { margin-top: 22px; }
.article-step ul { font-size: 1.125rem; padding-left: 20px; color: var(--copy); margin: 16px 0 0; }
.article-step li { margin-block: 10px; }
.article-callout { background: var(--mist); border-radius: var(--radius); padding: 28px; margin-top: 26px; }
.article-callout p { font-size: .875rem; color: var(--ink); }
.article-actions { margin-top: 28px !important; }

/* ---------- Company ---------- */

.company-hero { padding-block: 25px 72px; }
.company-work { border-top: 1px solid var(--line); }
.company-work .section-head { align-items: start; }
.company-work .section-head > div:last-child { font-size: 1.125rem; max-width: 52ch; color: var(--copy); }
.company-work .section-head .wp-block-buttons { margin-top: 20px; }
.company-contact { display: grid; grid-template-columns: minmax(0, 560px); justify-content: end; }
.company-contact .contact-card { position: static; }

/* ---------- Contact and factory enquiry ---------- */

.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 6%; padding-bottom: 96px; align-items: start; }
.form-heading { font-size: 2.4rem; margin-bottom: 24px; }
.contact-aside { background: var(--linen); border-radius: var(--radius); padding: 36px; }
.contact-aside .steps { margin-bottom: 12px; }
.contact-aside__contacts { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--band-line); }
.contact-list > div { grid-template-columns: .9fr 1.1fr; font-size: .875rem; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list .contact-phone { font: 500 1.35rem/1.3 var(--font-serif); text-decoration: none; }
.contact-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-phone .pg { display: inline-block; }
.contact-phone .pg-2, .contact-phone .pg-3 { min-width: 2.3ch; }
.contact-phone .digit-one { margin-inline: .12em; }

/* Home: closing band with the steps on the left and the form card on the right. */
.factory-band { background: var(--mist); }
.factory-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8%; align-items: start; }
.factory-intro { position: sticky; top: calc(var(--header-height) + 32px); }
.factory-intro h2 { margin: 0 0 22px; }
.factory-lead { font-size: 1.125rem; color: var(--copy); max-width: 44ch; }
.factory-intro .steps { margin-top: 34px; }
.factory-intro .contact-details { display: grid; gap: 2px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--band-line); font-size: .875rem; }
.factory-intro .contact-details a { width: fit-content; }
.factory-intro .contact-details a:first-child { font: 500 1.75rem/1.3 var(--font-serif); }
.factory-intro .contact-details p { color: var(--muted); font-size: .8125rem; }
.steps--compact .step { padding: 18px 0; }
.steps--compact .step:first-child { padding-top: 0; }
.steps--compact .step h3 { font-size: 1.45rem; margin-bottom: 4px; }
.steps--compact .step p { font-size: 1rem; }

.form-card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 48px); }
.form-card .form-errors, .form-card .form-success { background: var(--paper); }

.enquiry-form { display: grid; gap: 32px; }
.form-step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-step + .form-step { padding-top: 30px; border-top: 1px solid var(--line); }
.form-step > legend { float: left; width: 100%; padding: 0; font: 500 1.7rem/1.1 var(--font-serif); letter-spacing: -.015em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--field-line); border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 600; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid--offer { grid-template-columns: minmax(0, 1fr) 96px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field label, .custom-size-fields legend { font-size: .8125rem; font-weight: 650; }
.field .opt { margin-left: 4px; font-size: .75rem; font-weight: 400; color: var(--muted); }
.field-hint { margin-top: -2px; }
.enquiry-form input:not([type=radio]), .enquiry-form select, .enquiry-form textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background-color: var(--surface); font-size: 1rem; transition: border-color .2s var(--ease); }
.enquiry-form input:not([type=radio]):hover, .enquiry-form select:hover, .enquiry-form textarea:hover { border-color: var(--ink); }
.enquiry-form select { appearance: none; padding-right: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23142c3d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.enquiry-form ::placeholder { color: var(--muted); opacity: .8; }
.enquiry-form textarea { min-height: 150px; resize: vertical; }
.enquiry-form [aria-invalid=true] { border: 2px solid var(--error); }
.field-error { color: var(--error); font-size: .8125rem; font-weight: 600; }
.field-error::before { content: ''; display: inline-block; width: 1.15em; height: 1.15em; margin-right: .4em; vertical-align: -.22em; background: currentColor; -webkit-mask: var(--alert) center / contain no-repeat; mask: var(--alert) center / contain no-repeat; }
.custom-size-fields { min-width: 0; border: 0; padding: 0; margin: 0; }
.custom-size-fields legend { padding: 0; margin-bottom: 12px; }
.custom-size-fields .small { margin-top: 8px; }
.form-context { display: grid; gap: 4px; padding: 18px 22px; background: var(--mist); border-radius: var(--radius-sm); font-size: .875rem; }
.form-errors, .form-success { padding: 22px 25px; background: var(--surface); border-radius: var(--radius-sm); border-left: 4px solid var(--error); font-size: .875rem; }
.form-errors ul { margin: 10px 0 0; padding-left: 20px; }
.form-errors a { color: var(--error); text-decoration: underline; text-underline-offset: 3px; }
.form-success { border-left-color: var(--success); }
.form-success strong { display: block; color: var(--success); font: 500 1.6rem/1.2 var(--font-serif); margin-bottom: 8px; }
.form-success .text-link { margin-top: 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-actions .button { min-width: 280px; min-height: 58px; }
.form-actions .button[disabled] { opacity: .7; cursor: progress; }
.form-privacy { flex-basis: 100%; margin: 0; }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--offer .text-link { margin-top: 2px; font-size: .75rem; }
.factory-phone__number { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Enquiry list: product rows, add buttons, header count, notice ---------- */

.quote-rows { display: grid; gap: 12px; container-type: inline-size; }
.quote-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.quote-row fieldset { min-width: 0; margin: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.quote-row__title { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: .6875rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quote-row__grid { clear: both; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr) 88px auto; gap: 14px 16px; align-items: end; }
.quote-remove { min-height: 52px; padding: 0 4px; background: none; border: 0; font-size: .8125rem; font-weight: 650; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quote-remove:hover { color: var(--error); }
.quote-row__custom { margin-top: 14px; }
.quote-row__custom .form-grid { grid-template-columns: 1fr 1fr; }
.quote-row__custom .small { margin-top: 8px; }
.quote-rows__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.quote-rows__more .small { margin: 0; }
.quote-add { gap: 10px; }
.quote-add span { font-size: 1.1rem; line-height: 1; }
@container (max-width: 560px) {
	.quote-row__grid { grid-template-columns: minmax(0, 1fr) 88px; }
	.quote-row__grid .field--product { grid-column: 1 / -1; }
	.quote-remove { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
}

.product-card > .card-quote { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 8px; font-size: .8125rem; font-weight: 650; color: var(--blue); }
.card-quote:hover { color: var(--ink); }
.card-quote .icon { order: -1; }

.nav-cta { gap: 10px; }
.mobile-nav summary { position: relative; }
.mobile-nav summary .quote-count { position: absolute; top: -6px; right: -10px; }
.quote-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--blue); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0; }
/* Centre the digits themselves (cap height to baseline), not the font's line box, which sits them low. */
.quote-count [data-quote-count-number] { text-box: trim-both cap alphabetic; }

.quote-toast { position: fixed; z-index: 60; right: var(--gutter); bottom: 20px; width: min(420px, calc(100vw - 2 * var(--gutter))); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 8px; padding: 18px 18px 18px 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--success); border-radius: var(--radius-sm); box-shadow: 0 14px 40px rgba(20, 44, 61, .18); }
.quote-toast__text { margin: 0; align-self: center; font-size: .9375rem; font-weight: 600; line-height: 1.45; }
.quote-toast__link { grid-column: 1 / -1; width: 100%; min-height: 50px; }
.quote-toast__close { grid-column: 2; grid-row: 1; width: 44px; height: 44px; margin: -10px -8px 0 0; background: none; border: 0; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.quote-toast__close:hover { color: var(--ink); background: var(--linen); }

/* ---------- Clearance ---------- */

.offers { padding-bottom: 96px; }
.offers-updated { margin-bottom: 40px; }
.offer-group + .offer-group { margin-top: 64px; }
.offer-group h2 { font-size: clamp(2.2rem, 3vw, 2.8rem); margin-bottom: 18px; }
.offer-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 240px) 120px 80px; gap: 12px 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.offer-row:has(.offer-row__thumb) { grid-template-columns: 72px minmax(0, 1fr) minmax(200px, 240px) 120px 80px; }
.offer-row__thumb { width: 72px; height: 72px; object-fit: cover; background: var(--linen); border-radius: var(--radius-sm); }
.offer-row h3 { font-size: 1.55rem; letter-spacing: -.01em; }
.offer-row__main p { margin-top: 4px; font-size: .9375rem; color: var(--copy); max-width: 56ch; }
.offer-row__facts { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 20px; }
.offer-row__facts dt { font-size: .625rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.offer-row__facts dd { margin: 3px 0 0; font-size: .9375rem; font-weight: 600; }
.offer-price { font: 500 1.75rem/1 var(--font-serif); text-align: right; white-space: nowrap; }
.offer-price span { margin-left: 3px; font: 400 .75rem var(--font-sans); color: var(--muted); }
.offer-row__action { justify-self: end; }
.offer-status { display: inline-block; margin-top: 8px; padding: 3px 9px; background: var(--linen); border-radius: var(--radius-sm); font-size: .6875rem; font-weight: 650; }
.offer-row--sold { opacity: .55; }
.offer-row--sold .offer-status { background: var(--ink); color: var(--surface); }
.offers-empty { max-width: 720px; }

/* ---------- Search and 404 ---------- */

.not-found h1 { margin: 18px 0 24px; }
.not-found .wp-block-buttons { margin-top: 28px; }
.search-results { list-style: none; padding: 0; margin: 32px 0 0; }
.search-results > li { padding: 20px 0; border-top: 1px solid var(--line); }
.search-results h2 { font-size: 2rem; }
.site-search { margin-top: 24px; max-width: 560px; }
.rager-editor-notice { padding: 16px; background: var(--mist); border-radius: var(--radius-sm); font-size: .8125rem; }

/* ---------- Responsive ---------- */

/* Compact header: five menu items need it from 1240 px down. */
@media (max-width: 1240px) {
	.desktop-nav { gap: 20px; }
	.nav-row { gap: 16px; }
	.nav-row > .lang-switch { margin-right: 0; }
	.nav-cta { min-width: 0; padding-inline: 18px; letter-spacing: .12em; }
	.desktop-nav > a { letter-spacing: .12em; }
}

@media (max-width: 1100px) {
	.hero-photo { aspect-ratio: 2.1; }
	.range-list a { grid-template-columns: minmax(0, 1fr) minmax(0, 10rem) 24px; }
	.product-grid { gap: 16px; }
	.product-title { font-size: 1.65rem; }
	.footer-grid { gap: 28px; }
	.category-caption h2, .category-caption h3 { font-size: 1.75rem; }
	.anatomy-grid { gap: 6%; }
	.offer-row { grid-template-columns: minmax(0, 1fr) auto 110px 70px; }
	.offer-row:has(.offer-row__thumb) { grid-template-columns: 64px minmax(0, 1fr) auto 110px 70px; }
}

@media (max-width: 900px) {
	:root { --header-height: 74px; }
	.desktop-nav, .nav-cta, .nav-row > .lang-switch { display: none; }
	.mobile-menu .lang-switch { padding-top: 20px; font-size: .8125rem; }
	.nav-row { justify-content: space-between; }
	.logo { width: 139px; }
	.mobile-nav { display: block; margin-left: auto; }
	/* Burger: three rounded bars in a 44px target, turning into an X when the menu is open.
	   The negative margin puts the bars' right edge on the content edge. */
	.mobile-nav > summary { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; list-style: none; border-radius: var(--radius-sm); }
	.mobile-nav > summary::-webkit-details-marker { display: none; }
	.burger { position: relative; display: block; width: 24px; height: 16px; }
	.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: top .25s var(--ease), transform .25s var(--ease), opacity .2s var(--ease); }
	.burger span:nth-child(1) { top: 0; }
	.burger span:nth-child(2) { top: 7px; }
	.burger span:nth-child(3) { top: 14px; }
	.mobile-nav[open] .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
	.mobile-nav[open] .burger span:nth-child(2) { opacity: 0; }
	.mobile-nav[open] .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
	.mobile-menu { position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100dvh - var(--header-height)); overflow: auto; background: var(--surface); padding: 24px var(--gutter) 32px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px #142c3d0d; }
	/* A closed menu takes no layout at all; otherwise its items can widen the page on some templates (seen on search). */
	.mobile-nav:not([open]) .mobile-menu { display: none; }
	.mobile-menu a { display: flex; min-height: 52px; align-items: center; border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
	.mobile-menu .button { letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; }
	.mobile-menu a[aria-current=page] { color: var(--blue); }
	.mobile-menu .button { margin-top: 24px; justify-content: space-between; border-bottom: 1px solid var(--ink); }
	/* Hero: the year badge moves under the headline as one row. */
	.hero-head { grid-template-columns: 1fr; gap: 20px; }
	.hero-badge { display: flex; align-items: baseline; gap: 12px; padding: 0; }
	.hero-badge__year { font-size: 2rem; }
	.hero-photo { aspect-ratio: 1.7; }
	.intro-grid, .range-grid, .custom-grid { grid-template-columns: 1fr; gap: 28px; }
	.intro-aside { display: none; }
	.intro-copy > p:not(.intro-aside) { max-width: 56ch; }
	.custom-grid > :last-child { padding-top: 0; }
	.range-intro { padding-top: 16px; }
	.footer-strip { grid-template-columns: 1fr auto; }
	.footer-strip__text { grid-row: 2; grid-column: 1 / -1; }
	.proof-row { gap: 16px; }
	.proof-title { font-size: .8125rem; }
	.proof-detail { font-size: .8125rem; }
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
	.anatomy-grid { gap: 5%; }
	.anatomy h2 { font-size: 3rem; }
	.anatomy-visual { aspect-ratio: .88; }
	.story { gap: 5%; }
	.timeline { gap: 20px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
	.contact-card, .contact-aside { padding: 25px; }
	.article-layout { grid-template-columns: 180px 1fr; gap: 6%; }
	.category-grid--grid { grid-template-columns: repeat(2, 1fr); }
	/* Exactly three cards (the home page) stay in one equal row until phone width. */
	.category-grid--grid:has(> .category-card:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.contact-layout { grid-template-columns: 1fr; gap: 48px; }
	.factory-layout { grid-template-columns: 1fr; gap: 44px; }
	.factory-intro { position: static; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
	html { scroll-padding-top: 6rem; }
	/* Phone: headline, then the photo edge to edge with the white box sitting under it. */
	.hero-title { font-size: clamp(2.6rem, 12.4vw, 4rem); }
	.hero-photo { margin-inline: calc(var(--gutter) * -1); aspect-ratio: auto; overflow: visible; background: none; }
	.hero-photo > img { position: static; aspect-ratio: 1.15; object-position: 64% 50%; }
	/* The sunrise is built for the whole photo: keep its native ratio so the sun and the bed both stay in frame. */
	.hero-photo > sunrise-hero { position: relative; aspect-ratio: 1942 / 809; }
	/* The link box joins the photo as its bottom bar, so photo and link read as one hero. */
	.hero-photo { border-radius: 0; }
	.hero-photo figcaption { position: static; width: auto; margin: 0; }
	.hero-card { grid-template-columns: minmax(0, 1fr) 22px; column-gap: 16px; border-radius: 0; padding: 18px var(--gutter) 20px; background: var(--ink); color: var(--surface); }
	.hero-card strong, .hero-card span { grid-column: 1; }
	.hero-card span { color: var(--band-line); }
	.hero-card::before { display: none; }
	.hero-card::after { content: ''; grid-column: 2; grid-row: 1 / span 2; align-self: center; position: static; width: 22px; height: 22px; transform: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: none; }
	.hero-card:hover::after { width: 22px; }
	.hero-card:hover, .hero-card:hover span { color: var(--surface); }
	.hero-card:hover span { color: var(--band-line); }
	.home-intro .timeline { display: grid; grid-template-columns: 1fr; gap: 0; justify-content: stretch; }
	.home-intro .timeline p { padding-block: 12px; border-bottom: 1px solid var(--line); }
	.range-list a { grid-template-columns: minmax(0, 1fr) 24px; min-height: 76px; gap: 2px 16px; }
	.range-row__note { grid-column: 1; grid-row: 2; }
	.range-list a::after { grid-column: 2; grid-row: 1 / span 2; }
	.footer-strip { grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); padding: 28px var(--gutter); border-radius: 0; }
	.footer-strip__text { grid-row: auto; }
	.proof-row { grid-auto-flow: row; grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
	.proof { padding: 16px 0; border-bottom: 1px solid var(--line); }
	.proof:last-child { border-bottom: 0; }
	.proof-title { font-size: .75rem; }
	.proof p + p.proof-detail { margin-top: 2px; }
	.section-head { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
	.category-grid { display: flex; flex-direction: column; gap: 30px; }
	.category-card { width: 100%; }
	.category-grid--staggered .category-card:nth-child(2), .category-grid--staggered .category-card:nth-child(3) { padding-top: 0; }
	.category-image { aspect-ratio: 1.4; }
	.category-caption h2, .category-caption h3 { font-size: 2rem; }
	.category-caption { padding-top: 14px; }
	.more-categories { gap: 14px; margin-top: 32px; padding-top: 24px; }
	.more-categories__title { flex-basis: 100%; font-size: 1.75rem; }
	.more-categories__links { gap: 8px; }
	.anatomy-grid { display: flex; flex-direction: column; gap: 34px; }
	.anatomy-visual { width: 100%; aspect-ratio: 1.16; }
	.anatomy h2 { font-size: 2.9rem; }
	.image-label { font-size: .625rem; left: 18px; bottom: 18px; }
	.product-grid { gap: 32px 16px; }
	.product-photo { aspect-ratio: .95; }
	.product-title { font-size: 1.6rem; display: block; }
	.product-title .arrow { display: none; }
	.product-info p { font-size: .8125rem; line-height: 1.7; }
	.product-meta { font-size: .625rem; gap: 8px; flex-wrap: wrap; }
	.product-info > .eyebrow { font-size: .5625rem; }
	.guide-grid { grid-template-columns: 1fr; gap: 36px; }
	.step h3 { font-size: 1.75rem; }
	.steps { margin-top: 10px; }
	.story { grid-template-columns: 1fr; gap: 34px; }
	.story-photo img { aspect-ratio: 1.24; }
	.timeline { justify-content: space-between; gap: 12px; }
	.custom-grid { grid-template-columns: 1fr; gap: 24px; }
	.custom-band { padding-block: 48px; }
	.custom-band h2 { font-size: 2.9rem; }
	.footer-grid { gap: 36px 24px; padding-block: 40px; }
	.footer-brand { grid-column: 1 / -1; }
	.site-footer .logo { width: 200px; }
	.site-footer .footer-links a, .site-footer .contact-details a, .site-footer .contact-details p { font-size: .75rem; }
	.footer-base { font-size: .625rem; gap: 12px; }
	.breadcrumbs { font-size: .6875rem; padding-block: 20px; }
	.page-intro { padding-block: 22px 36px; }
	.page-intro h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
	.catalogue-top { gap: 16px; }
	.filter { padding-inline: 16px; }
	.catalogue-grid { grid-template-columns: 1fr; gap: 38px; }
	.catalogue-grid .product-title { display: flex; }
	.catalogue-grid .product-title .arrow { display: block; }
	.comparison { margin-top: 56px; }
	.comparison th, .comparison td { padding: 15px; }
	.comparison h2 { font-size: 2.7rem; }
	.product-detail { grid-template-columns: 1fr; gap: 32px; padding-top: 0; padding-bottom: 48px; }
	.gallery-main { aspect-ratio: 1.2; }
	.gallery-thumbs button { width: 85px; height: 65px; }
	.product-summary h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
	.facts { margin-block: 24px; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product-cta .button { min-height: 56px; }
	.accordion summary { font-size: .9375rem; }
	.data-list > div { grid-template-columns: 1fr 1.1fr; gap: 18px; font-size: .8125rem; }
	.contact-card { position: static; padding: 30px; }
	.guide-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 18px; padding-bottom: 45px; }
	.guide-hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
	.guide-hero__photo img { aspect-ratio: 1.4; }
	.article-layout { grid-template-columns: 1fr; gap: 35px; padding-bottom: 40px; }
	.article-nav { position: static; grid-template-columns: 1fr 1fr; gap: 0 20px; font-size: .75rem; }
	.article-step { padding-block: 32px; }
	.article-step h2 { font-size: 2.65rem; }
	.article-callout { padding: 22px; }
	.category-grid--grid { display: flex; }
	.form-grid { grid-template-columns: 1fr; }
	.form-grid--offer { grid-template-columns: minmax(0, 1fr) 96px; }
	.quote-toast { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
	.form-step > legend { font-size: 1.5rem; }
	.chip span { padding: 9px 14px; }
	.form-actions .button { width: 100%; min-width: 0; }
	.form-card { padding: 26px 20px; margin-inline: calc(var(--gutter) * -.5); }
	.offer-row, .offer-row:has(.offer-row__thumb) { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
	.offer-row__thumb { display: none; }
	.offer-row__main { grid-column: 1 / -1; }
	.offer-row__facts { gap: 20px; }
	.offer-row__action { grid-column: 1 / -1; justify-self: start; }
	.offer-row h3 { font-size: 1.4rem; }
	.field--offer { grid-column: 1 / -1; }
	.company-hero { padding-top: 0; }
	.company-contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

/* Hover colour only with a real pointer, so it does not stick after a tap on touch screens. */
@media (hover: hover) and (max-width: 900px) {
	.mobile-nav > summary:hover .burger span { background: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
	.filter, .sizes span, .chip span, .more-categories a, .gallery-thumbs button { border: 1px solid CanvasText; }
	.filter[aria-pressed=true], .sizes input:checked + span, .chip input:checked + span, .gallery-thumbs button[aria-pressed=true] { outline: 3px solid Highlight; }
	.wp-block-button__link::after { background: ButtonText; }
}

/* Product page sections, narrower screens. */
@media (max-width: 900px) {
	.overview-grid { grid-template-columns: 1fr; gap: 36px; }
	.spec-columns { grid-template-columns: 1fr; gap: 32px; }
	.slider-track > .product-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
	.overview-points { padding: 22px 20px; }
	.slider-track { gap: 16px; }
	.slider-track > .product-card { flex-basis: 72%; }
}

/* ---------- /tooted/ and category pages: category list beside the products ---------- */

.shop-layout { display: grid; grid-template-columns: minmax(230px, 280px) 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.shop-nav { position: sticky; top: calc(var(--header-height) + 24px); }
.shop-nav ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shop-nav li + li { border-top: 1px solid var(--line); }
.shop-nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.shop-nav a:hover { background: var(--mist); }
.shop-nav a.is-active { background: var(--ink); color: var(--paper); }
.shop-nav__count { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.shop-nav a.is-active .shop-nav__count { color: var(--band-line); }
.shop-nav li.shop-nav__child { border-top-style: dashed; }
.shop-nav__child a { padding-block: 11px; padding-left: 34px; font-size: .875rem; font-weight: 500; }
/* A row with a small picture (chosen in the admin). The picture reaches into the row's own
   padding (negative margin), so the row stays exactly as tall as a text-only one. */
.shop-nav__label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shop-nav__thumb { flex-shrink: 0; width: 32px; height: 32px; margin-block: -6px; object-fit: cover; border-radius: var(--radius-sm); background: var(--linen); }
.shop-products { min-width: 0; }

/* Leiunurk: the same list beside the price lists; its rows jump to a group on the page.
   The price rows fold into their narrow layout by the room they have, not by the window. */
.shop-layout--offers > .offers { min-width: 0; container: offers / inline-size; }
/* A group the list jumps to stops level with the top of the list, not tight under the header. */
.shop-layout--offers .offer-group { scroll-margin-top: 16px; }
@container offers (max-width: 720px) {
	.offer-row, .offer-row:has(.offer-row__thumb) { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
	.offer-row__thumb { display: none; }
	.offer-row__main { grid-column: 1 / -1; }
	.offer-row__action { grid-column: 1 / -1; justify-self: start; }
}
.shop-products .product-grid, .shop-products .catalogue-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.shop-products .catalogue-top { margin-bottom: 28px; }

@media (max-width: 1100px) {
	.shop-products .product-grid, .shop-products .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
	.shop-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.shop-nav { position: static; min-width: 0; }
	.shop-nav ul { display: flex; overflow-x: auto; scrollbar-width: none; border: 0; border-radius: 0; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.shop-nav li + li { border-top: 0; }
	.shop-nav a { border: 1px solid var(--field-line); border-radius: var(--radius-sm); white-space: nowrap; padding: 11px 16px; }
	.shop-nav a.is-active { border-color: var(--ink); }
	.shop-nav__child a { padding: 11px 16px; font-weight: 600; }
	.shop-nav__thumb { width: 26px; height: 26px; margin-block: -4px; }
}
@media (max-width: 640px) {
	.shop-products .product-grid, .shop-products .catalogue-grid { gap: 32px 16px; }
}

/* Product sliders sit closer together than full page sections. */
.product-slider { padding-block: clamp(2rem, 4vw, 3.25rem); }
.product-slider .section-head { margin-bottom: 24px; }
.product-slider .section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.anatomy + .product-slider { padding-top: clamp(2.5rem, 5vw, 4rem); }
.product-slider + .product-slider { padding-top: 0; }
.product-slider:last-of-type { padding-bottom: clamp(3rem, 6vw, 5rem); }

.spec-table + .product-slider { padding-top: clamp(2.5rem, 5vw, 4rem); }
.product-slider:last-of-type { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Phone: two product cards per row need a smaller title and a stacked meta line. */
@media (max-width: 640px) {
	.product-title, .catalogue-grid .product-title { font-size: 1.35rem; gap: 8px; }
	.product-title svg { width: 18px; flex: none; }
	.product-info p { font-size: .8125rem; }
	.product-meta, .catalogue-grid .product-meta { flex-direction: column; gap: 3px; font-size: .6875rem; }
	.slider-track > .product-card .product-title { font-size: 1.5rem; }
}

/* ---------- Home: first screen height ---------- */

/* The home first screen is exactly one screen high: header, photo and story text, with the timeline's
   rule just below the bottom edge. --hero-rest is everything on that screen except the photo; site.js
   measures it. The fallbacks are the values measured at 1440 px and 390 px, for when the script does not run.
   On phones the photo is the image above the dark link bar, so the image gets the height.
   Kept at the end so it overrides the photo ratios set for narrower screens. */
@media (min-width: 641px) { .hero-photo { aspect-ratio: auto; height: max(320px, calc((100svh - var(--hero-rest, 430px)) / var(--zoom, 1))); } }
@media (max-width: 640px) { .hero-photo > sunrise-hero, .hero-photo > img { aspect-ratio: auto; height: max(200px, calc((100svh - var(--hero-rest, 532px)) / var(--zoom, 1))); } }

/* ---------- Big screens: scale the whole page up ---------- */

/* On a wide monitor the page at 100 % browser zoom is small and lost in empty margins; visitors had to
   zoom to 125 % to get it right. This does that zoom for them, in steps, up to 125 % (no more, however wide
   the screen: 150 % looked too big on a 2560 px monitor). --zoom is also used to turn the measured hero height back into page units. */
@media (min-width: 1600px) { html { --zoom: 1.0625; zoom: 1.0625; } }
@media (min-width: 1760px) { html { --zoom: 1.125; zoom: 1.125; } }
@media (min-width: 1900px) { html { --zoom: 1.25; zoom: 1.25; } }
