/**
 * WC2026 - global design tokens
 * =============================
 *
 * The single source of truth for colour, typography, spacing and layout.
 * Every other stylesheet reads from these custom properties; no component
 * stylesheet may hardcode a hex value, a font size or a pixel gap.
 *
 * Values are lifted from the Figma file "Renovators Paradise Website"
 * (9yM41n2RDqYsIrGrGXziD0). Where Figma has a named variable, the variable
 * name is given in the comment so the two can be kept in sync.
 *
 * Naming: --rp-<category>-<name>. The rp- prefix is intentional - these are
 * Renovators Paradise tokens, not WC2026 tokens, so they survive if the theme
 * is ever renamed or the tokens are reused elsewhere.
 */

/* Nuosu SIL's curly quotes are Yi-width: U+2019 measures 31px at 40px against
 * 9px in Georgia, which is the "huge space" in a title like 1970's Kitchen.
 * wptexturize curls every apostrophe, so the fix is a face that covers only
 * the quote code points and comes FIRST in the display stack - the browser
 * takes it for those characters and falls through to Nuosu SIL for the rest.
 * Every src is local(); on a device with none of them the quote is Nuosu's. */
@font-face {
	font-family: "RP Display Quotes";
	src: local("Georgia"), local("Times New Roman"), local("Noto Serif"), local("Droid Serif");
	unicode-range: U+2018-201F;
}

:root {

	/* ------------------------------------------------------------------
	 * Palette
	 *
	 * Raw values only. Components should reference the semantic aliases
	 * below rather than these, so a palette change is a one-line edit.
	 * ------------------------------------------------------------------ */

	--rp-colour-primary-brown: #3e3c35;         /* Figma: Colour/Primary Brown */
	--rp-colour-light-1:       #faf7f2;         /* Figma: Colour/Light 1 */
	--rp-colour-light-2:       #e1d6c9;         /* Figma: Colour/Light 2 */
	--rp-colour-light-3:       #f0e8dd;         /* Figma: Colour/Light 3 */
	--rp-colour-primary-green: #728b61;         /* Figma: Colour/Primary Green */
	--rp-colour-dark-green:    #404f36;         /* Figma: Colour/Dark Green */
	--rp-colour-white:         #ffffff;
	--rp-colour-muted:         rgba(0, 0, 0, 0.52);

	/*
	 * THE PRODUCT PAGE USES A DIFFERENT TEXT PALETTE FROM THE CARD GRID, and
	 * that is the design's choice, not an oversight here.
	 *
	 * Cards are set in Colour/Primary Brown (#3e3c35). The product detail page
	 * is set in a neutral near-black with grey body copy. Do not "unify" them.
	 *
	 * Neither has a Figma variable - raw hex in the design, raw hex here.
	 */
	--rp-colour-ink:           #141414;         /* product page headings */
	--rp-colour-ink-muted:     #666666;         /* product page body copy, was-price, legal bar */

	/* Dark bands. Neither has a Figma variable — raw hex in the design.
	 * They are close to Dark Green (#404f36) and to each other; they are not
	 * interchangeable. Newsletter is green-toned, footer is near-black. */
	--rp-colour-deep-green:    #2d3624;         /* newsletter band */
	--rp-colour-near-black:    #191813;         /* footer band */
	--rp-colour-sand:          #e5d5c0;         /* footer headings and icons */

	/*
	 * Light 1 and Light 3 are close enough to look like a mistake and far
	 * enough apart to be deliberate. Light 3 is the page; Light 1 is the card
	 * panel sitting on it. Do not collapse them.
	 */

	/* ------------------------------------------------------------------
	 * Semantic colour aliases - use these in components
	 * ------------------------------------------------------------------ */

	--rp-text-heading:         var(--rp-colour-primary-brown);
	--rp-text-body:            var(--rp-colour-primary-brown);
	--rp-text-muted:           var(--rp-colour-muted);

	--rp-surface-page:         var(--rp-colour-light-3);
	--rp-surface-newsletter:   var(--rp-colour-deep-green);
	--rp-surface-footer:       var(--rp-colour-near-black);

	--rp-text-on-dark:         var(--rp-colour-white);
	--rp-text-on-dark-heading: var(--rp-colour-sand);
	--rp-text-legal:           var(--rp-colour-ink-muted);
	--rp-surface-card:         var(--rp-colour-white);
	--rp-surface-card-detail:  var(--rp-colour-light-1);

	--rp-button-bg-hover:      #35422d;         /* dark green darkened ~12% */

	/* LINKS IN AUTHORED COPY. Colour/Dark Green - the design's interactive
	 * colour, since it is the button ground - and already what the account
	 * page's own links use.
	 *
	 * Measured, because the obvious alternative fails:
	 *
	 *                        Light 1   Light 3
	 *   Dark Green #404f36    8.22:1    7.24:1   passes AA comfortably
	 *   Primary Green #728b61 3.52:1    3.10:1   FAILS AA for body text
	 *   Primary Brown #3e3c35 10.33:1   9.09:1   but it IS the body colour
	 *
	 * So Primary Green stays an accent only (the breadcrumb house, the FAQ
	 * chevron), and Primary Brown would make a link indistinguishable from the
	 * text around it.
	 *
	 * There is NO visited colour and that is deliberate - see the rule in
	 * components.css. */
	--rp-link:       var(--rp-colour-dark-green);
	--rp-link-hover: var(--rp-button-bg-hover);

	/* The [read more...] toggle. This colour is NOT from Figma - it comes from
	 * the SvelteKit implementation (lib/read-more.svelte), which hardcodes it.
	 * If the design ever specifies one, replace this and delete the note. */
	--rp-link-subtle:          #899e94;

	--rp-focus-ring:           var(--rp-colour-primary-brown);
	--rp-shadow-dropdown:      0 2px 8px rgb(0 0 0 / 12%);

	/* The slide-out panel. No Figma frame draws it - the values come from the
	 * SvelteKit SlideOutPanel, whose cream (#f6f1ed) is Light 1 here. */
	--rp-surface-panel:        var(--rp-colour-light-1);
	--rp-panel-header-bg:      var(--rp-colour-dark-green);
	--rp-panel-rule:           #e3dcd3;
	--rp-panel-scrim:          rgb(0 0 0 / 35%);
	--rp-shadow-panel:         -8px 0 28px rgb(0 0 0 / 18%);

	/* Form surfaces. Figma "9-Enquire Form" (383:53931), the same values the
	 * SvelteKit constants.scss carries as --surface-input and --field-border.
	 * A panel sits on the page in Light 1; only the inputs inside it are white.
	 * Do not collapse the two - a white field on a white panel is invisible. */
	--rp-surface-input:        var(--rp-colour-white);
	--rp-field-border:         #edeae5;

	/* Figma "9-Enquire Form" (383:53931): Fields/Padding - Vertical 8,
	 * Horizontal Left 12, and Radius/Radius Small (Fields) 0. */
	--rp-field-pad-y:          8px;
	--rp-field-pad-x:          12px;

	/* Errors. A brick red, not the `red` keyword - carried over from the
	 * SvelteKit --sold, which was chosen because keyword red failed WCAG AA on
	 * every surface on this site (4.0:1 against white; this is 6.5:1). The
	 * Figma file has no alert colour at all, so it is a judgement call there
	 * and here. Same value, so the two codebases agree. */
	--rp-colour-error:         #a33b2a;

	/* ------------------------------------------------------------------
	 * Typography
	 *
	 * The design is set in Inter. See wc2026_enqueue_webfont() in
	 * functions.php for how it is loaded, and why you may want to
	 * self-host it before this goes anywhere near production.
	 * ------------------------------------------------------------------ */

	--rp-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
	                  Roboto, Helvetica, Arial, sans-serif;

	--rp-font-weight-regular:   400;
	--rp-font-weight-medium:    500;
	--rp-font-weight-semibold:  600;
	--rp-font-weight-bold:      700;
	--rp-font-weight-extrabold: 800;

	/* Figma: Heading/H5 - Inter Bold 14. The card title overrides the style's
	 * 100% to `normal`; its name box is 17px tall at 14px, and the 81px panel
	 * only adds up with that. */
	--rp-type-heading-sm-size:    14px;
	--rp-type-heading-sm-weight:  var(--rp-font-weight-bold);
	--rp-type-heading-sm-leading: normal;

	/* Figma: Body/Small - Inter Regular 14 / 16 */
	--rp-type-body-sm-size:    14px;
	--rp-type-body-sm-leading: 16px;

	/* The "Stock #" label runs a point smaller than the value beside it.
	 * CARD ONLY - the product page renders that line at a uniform weight. */
	--rp-type-label-sm-size: 13px;

	/* Figma "Card" (141:2125): a 1 x 14 black line between stock # and the
	 * dimensions, 6px either side. */
	--rp-card-meta-pipe-colour: #000;
	--rp-card-meta-pipe-height: 14px;
	--rp-card-meta-pipe-gap:    6px;

	/* Dimensions / availability beside it - black, not Figma's Primary Brown (client, 8 Oct 2026). */
	--rp-card-meta-text-colour: #000;

	/* Figma: Heading/H3 Caps - Inter Bold 20 / 100%, uppercase. Category cards. */
	--rp-type-h3-caps-size:   20px;
	--rp-type-h3-caps-weight: var(--rp-font-weight-bold);

	/* Figma: Heading/H3 - Inter Bold 20 / 100%. The heading of a form panel;
	 * the style the "9-Enquire Form" frame (383:53931) uses for its H1. Same
	 * metrics as H3 Caps without the uppercase, so it is a separate style. */
	--rp-type-h3-size:   20px;
	--rp-type-h3-weight: var(--rp-font-weight-bold);

	/* Figma: Heading/H2 - Inter Bold 24 / 100%. The product page title. */
	--rp-type-h2-size:    24px;
	--rp-type-h2-weight:  var(--rp-font-weight-bold);

	/* Figma: Heading/H4 - Inter Semi Bold 18 / 100%. The stock/availability
	 * line and the dimensions line on the product page. */
	--rp-type-h4-size:    18px;
	--rp-type-h4-weight:  var(--rp-font-weight-semibold);

	/* Figma: Body/Regular - Inter Regular 16 / 22. Product description copy.
	 * Note this is a LARGER size and a TIGHTER ratio than Body/Small used on
	 * cards - 22/16 is 1.375, not the 1.6 that a generic body default would
	 * give you. */
	--rp-type-body-size:    16px;
	--rp-type-body-leading: 22px;

	/* Figma: Body/Large - Inter Regular 18 / 25. Newsletter copy. */
	--rp-type-body-lg-size:    18px;
	--rp-type-body-lg-leading: 25px;

	/* Figma: Body/Xsmall - Inter Regular 12 / 14. The footer legal bar. */
	--rp-type-body-xs-size:    12px;
	--rp-type-body-xs-leading: 14px;

	/* Figma: Heading/H4 Caps - Inter Bold 16 / 100%, uppercase. Footer headings. */
	--rp-type-h4-caps-size:   16px;
	--rp-type-h4-caps-weight: var(--rp-font-weight-bold);

	/* Figma: Button/Primary - Inter Medium 14 / 100%, uppercase.
	 * The site-wide button type. The card's smaller button is the exception,
	 * not the rule - see .rp-btn--compact. */
	--rp-type-button-size:   14px;
	--rp-type-button-weight: var(--rp-font-weight-medium);

	/* Figma: Price/Large - Inter Extra Bold 24 / 100%. The product page price.
	 * SAME DEPARTURE AS THE CARD - client, 15 September 2026: the frame's price
	 * matched the Bold 24 title in size and beat it in weight, so it steps
	 * down to Semi Bold 20 and the title leads. See --rp-type-price-card-*. */
	--rp-type-price-lg-size:   20px;
	--rp-type-price-lg-weight: var(--rp-font-weight-semibold);

	/* [read more...] toggle - 16px, from the SvelteKit implementation */
	--rp-type-link-subtle-size: 16px;

	/* Figma: Price/Regular - Inter Extra Bold 16 / 100%
	 *        Price/Regular Medium - Inter Medium 16 / 100% (the struck-out was-price) */
	--rp-type-price-size:        16px;
	--rp-type-price-leading:     1;
	--rp-type-price-weight:      var(--rp-font-weight-extrabold);
	--rp-type-price-was-weight:  var(--rp-font-weight-medium);
	/* THE CARD INVERTS THE FRAME'S HIERARCHY - client, 15 September 2026. Figma
	 * has the price above the name (Extra Bold 16 over Bold 14); on a catalogue
	 * where many items are "Enquire for price" the name is what is scanned for.
	 * So the title goes to 16 and the price to Semi Bold 14. The product page
	 * keeps Price/Large. */
	--rp-type-price-card-size:   14px;
	--rp-type-price-card-weight: var(--rp-font-weight-semibold);
	--rp-type-card-title-size:   16px;

	/* ------------------------------------------------------------------
	 * Spacing scale
	 *
	 * These are the distinct gap values the design actually uses. Resist
	 * adding more - if a new value is needed, check whether an existing
	 * step will do first.
	 * ------------------------------------------------------------------ */

	--rp-space-3xs:  3px;
	--rp-space-2xs:  4px;
	--rp-space-xs:  10px;
	--rp-space-sm:  12px;
	--rp-space-md:  15px;
	--rp-space-lg:  20px;
	--rp-space-xl:  60px;

	/* ------------------------------------------------------------------
	 * Layout
	 * ------------------------------------------------------------------ */

	--rp-container-max: 1200px;                 /* Figma: content wrapper width */

	/* Figma variables. "Margin" = 120 is the page gutter; "v-padding" = 80 is
	 * the vertical rhythm between full-width bands and the content below them. */
	--rp-page-margin: 120px;
	--rp-v-padding:   80px;

	/* The gap above the breadcrumb. NOT --rp-v-padding: the frames put the
	 * wrapper 40px below whatever is above it - "9-Enquire Form" (383:53931)
	 * and "4-Products Grid" (37:159) both use 40, and 80 was leaving a visibly
	 * empty band at the top of every page.
	 *
	 * "5-Product Variation 1" is the outlier at 80. Not special-cased; if the
	 * product page looks tight, that is the one to revisit. */
	--rp-page-top:    40px;

	/* Site header. Figma "Nav Bar" (96:1377).
	 * Nav/Link is Inter Medium 16 with 2% tracking, which at 16px is 0.32px. */
	--rp-nav-link-size:     16px;
	--rp-nav-link-tracking: 0.32px;
	--rp-nav-gap:           30px;
	--rp-header-padding-y:  24px;
	--rp-header-logo-height: 56px;
	--rp-header-actions-gap: 13px;   /* Figma: icon group gap */
	/* Figma "Footer section" (106:1947) draws the footer lockup at 250 wide,
	 * not the header's 278. Height follows the file. */
	--rp-footer-logo-width:  250px;
	/* 28, matching the SvelteKit header. It was 20 — the size the Figma nav bar
	 * exports were drawn at — which read noticeably smaller than the live site's
	 * on the one row every visitor sees on every page. */
	--rp-nav-icon-size:     28px;
	--rp-nav-chevron-size:  10px;

	/* Header banner — Figma "Clearence", the strip at the top of the Nav Bar
	 * component (982:9656). 37px tall at 1440, 768 AND 402: it is one component
	 * on every frame in the file, so there is no responsive variant to chase.
	 * Type is Button/Primary — Inter Medium 14, tracking 0, uppercase. */
	--rp-header-banner-bg:     var(--rp-colour-dark-green);   /* #404f36 */
	--rp-header-banner-text:   var(--rp-colour-light-3);      /* #f0e8dd */
	--rp-header-banner-size:   14px;
	/* 17px, not `normal`. Figma's text node is 17 tall, which is what makes
	 * the band 37 — and an unpinned line box drifts with whatever font is
	 * resolved, so the strip would change height when Inter swaps in. */
	--rp-header-banner-line:   17px;
	--rp-header-banner-pad-y:  10px;
	--rp-header-banner-pad-x:  40px;
	--rp-header-banner-gap:    8px;    /* text to arrow */
	/* SVG banner: 25 + 2 × 6 keeps the same 37px band. */
	--rp-header-banner-image-height: 25px;
	--rp-header-banner-image-pad-y:  6px;
	--rp-header-banner-image-pad-x-mobile: 16px;   /* below 992px, so the image gets the width */

	/* Flyout panels. 270px is the SvelteKit panel width (Items.svelte), and it is
	 * load-bearing: level 2 is positioned at exactly this offset. */
	/* Slide-out panel: a quarter of the viewport, floored so it stays usable on
	 * a laptop and full width on a phone. From SlideOutPanel.svelte. */
	--rp-panel-width:       25vw;
	--rp-panel-min-width:   340px;

	/* One-field forms (lost password) and their confirmation. */
	--rp-account-narrow-max: 480px;
	/* Log In: around the intro and the rule between Register and Log in. */
	--rp-account-section-gap: 30px;

	--rp-nav-panel-width:   270px;
	--rp-nav-bar-height:    70px;
	--rp-burger-size:       27px;       /* Figma mobile Nav 390:80420 */
	--rp-search-height:     28px;       /* Figma mobile Nav 390:80423 */

	--rp-grid-gap-x: var(--rp-space-lg);        /* 20px - Figma column gap */
	--rp-grid-gap-y: var(--rp-space-xl);        /* 60px - Figma row gap */

	/* Card geometry. The media ratio is what keeps rows aligned when source
	 * photos have wildly different shapes - and on this catalogue they do. */
	/* 4:3 AT EVERY BREAKPOINT - client, 1 September 2026, and it is Figma's own:
	 * the card component's "Product Image" (48:1627) is 277x208.
	 *
	 * Written as 4/3 rather than 277/208 because the client stated the ratio and
	 * the frame's is that ratio with a rounding error (1.3317 against 1.3333).
	 *
	 * It was 285/278 - near-square - and that WAS right when the source was
	 * woocommerce_thumbnail hard-cropped to 1:1 under `cover`, where a 4:3 box
	 * cost 12.5% off the top and bottom of every photo. That is no longer the
	 * source: wc2026_card_image_size() serves uncropped medium_large and the fit
	 * is `contain`, so this shape crops nothing and only changes how much
	 * letterbox a tall product gets. */
	--rp-card-media-ratio:  4 / 3;

	/* Figma's Product Detail is a fixed 81px at both 1440 and 402. It is a floor
	 * here, not a fixed height: it reserves the price slot on cards with no
	 * price, and a card carrying a button simply exceeds it. */
	--rp-card-detail-height: 81px;

	/* Category card. Figma "category-card" (388:62982). */
	--rp-cat-card-ratio:      387 / 350;
	/* Category archives and All Products (client, 13 Oct 2026). */
	--rp-cat-card-ratio-square: 1 / 1;

	/* The hover zoom, shared by the category card and the product card. No frame
	 * draws it - client's call, 14 Aug, 5% then settled at 4%. The scrim and the
	 * title sit still, so the image is the only thing that moves. */
	--rp-card-hover-zoom: 1.04;

	/* Figma "category-card" (141:2166), same at 1440/768/402 (client, 8 Oct 2026):
	 * stops 0 / 58.7% @ 53.37% / 100%, under a 52% layer opacity. Runs to the edge. */
	--rp-cat-card-scrim: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 30.5%) 53.37%, rgb(0 0 0 / 52%));
	--rp-cat-card-text-shadow: 0 1px 3px rgb(0 0 0 / 60%);

	/* Home "Shop by Category" card. Figma "Product Category" (89:1681): fades to #0d0d0d
	 * at 52%. Band is the title plus equal padding, not Figma's 46px (client, 9 Oct 2026). */
	--rp-cat-card-compact-scrim: linear-gradient(to bottom, rgb(13 13 13 / 0%), rgb(13 13 13 / 52%));

	/* Button geometry. Figma "Button" (106:2825 / 419:82513): 80px horizontal,
	 * 17px vertical, 180px minimum. --compact is the card's tighter variant. */
	--rp-button-padding-x:     80px;
	--rp-button-padding-y:     17px;
	--rp-button-min-width:     180px;
	--rp-button-compact-width: 100px;
	--rp-button-compact-pad-x: var(--rp-space-sm);
	--rp-button-compact-pad-y: var(--rp-space-2xs);

	/* Product gallery. Figma "Product image" (85:5012).
	 *
	 * The #f2f2f2 panel behind thumbnails and arrows has NO Figma variable -
	 * checked, get_variable_defs returns nothing for that subtree. It is a raw
	 * hex in the design, so it is a raw hex here. Colour/Light 2 DOES exist now
	 * (#e1d6c9, above) and is not it - a warm cream, not this grey. */
	--rp-colour-gallery-panel: #f2f2f2;

	/* EXACTLY 4:3, so a 4:3 photograph fills the well with no band at any width.
	 * Client, 1 September 2026 - the same ratio as the listing card, and the
	 * same reason.
	 *
	 * It was Figma's Frame 138, 570/427 = 1.33489. That is 4:3 with a rounding
	 * error, and the error is visible: `contain` fits by the short axis, so a
	 * true 4:3 file left ~1.1% of the grey panel showing down each side.
	 *
	 * THE FIT STAYS `contain`. A photo that is not 4:3 letterboxes rather than
	 * being cropped - this catalogue is one-off stock shot at every shape, and
	 * the ends of a tall sash window are not ours to throw away. Zero padding is
	 * a promise about 4:3 sources, not about all of them. */
	--rp-gallery-main-ratio: 4 / 3;
	--rp-gallery-thumb-width: 78px;             /* Figma: 78x101 thumb */
	--rp-gallery-thumb-height: 101px;           /* Figma: Frame 7 */
	--rp-gallery-thumbs-per-strip: 4;           /* widest a thumb grows: a quarter of the strip */
	--rp-gallery-arrow-width: 29px;
	--rp-gallery-icon-size: 20px;
	--rp-gallery-gap: var(--rp-space-lg);       /* Figma 20.237, rounded */
	/* Image caption, on the main image and in the lightbox (SvelteKit .pswp__rp-caption). */
	--rp-gallery-caption-inset: 16px;
	--rp-gallery-caption-pad: 6px 13px;
	--rp-gallery-caption-radius: 6px;
	--rp-gallery-caption-bg: rgb(255 255 255 / 90%);
	--rp-gallery-caption-text: #000;
	/* Lightbox caption: a strip under the photo, and the room kept for it (read by lightbox.js). */
	--rp-lightbox-caption-pad: 12px 16px;
	--rp-lightbox-caption-bg: #fff;
	--rp-lightbox-caption-reserve: 64px;
	--rp-gallery-step-size: 40px;               /* arrows on the main image */
	--rp-check-size: 18px;                      /* checkbox box (.rp-check__input) */

	/* Delivery calculator. Figma "7-Product Variation 3" (381:52524), node
	 * 419:82250 - identical at all three frames, only the column width changes.
	 *
	 * The panel's own metrics, NOT the "9-Enquire Form" field standard: this
	 * block is drawn on a different frame, with a 4px radius and a 5px inset
	 * where a form field has none and 8/12. See CLAUDE.md.
	 *
	 * The hairline and the notice green are raw hex in the design - #a3a3a3 is
	 * the same 0.5px rule that brackets the product description. */
	--rp-delivery-gap:        24px;
	--rp-delivery-pad-y:      var(--rp-space-lg);   /* 20px */
	--rp-delivery-pad-x:      24px;
	--rp-delivery-space-above: 30px;
	--rp-delivery-radius:     4px;
	--rp-delivery-field-pad:  5px;
	--rp-delivery-border:     rgb(0 0 0 / 10%);
	--rp-delivery-rule:       #a3a3a3;
	--rp-delivery-map-ratio:  776 / 539;
	/* Neutral info notices (Fragile, Australia-wide postage): client reference, 26 Oct 2026. */
	--rp-delivery-info-bg:    var(--rp-colour-light-3);
	--rp-delivery-info-panel-bg: var(--rp-colour-light-1);   /* on the Light 3 page, where Light 3 vanishes */
	--rp-delivery-info-pad:   var(--rp-space-lg);
	--rp-delivery-info-pad-phone: var(--rp-space-sm);   /* under 600px */
	--rp-delivery-info-gap:   var(--rp-space-sm);
	--rp-delivery-info-icon:  22px;
	--rp-delivery-info-line-gap: var(--rp-space-xs);
	/* Checkout only: the map confirms the route, it should not push Continue off screen. */
	--rp-checkout-map-ratio:  16 / 7;

	/* Brochure page blocks. No Figma frame draws these - the 2026 artwork has no
	 * delivery page (figma-todo.md section 14). Values come from the theme's own
	 * scale; every background colour is content-managed per block.
	 *
	 * Display/Page Title is the one thing that IS from the design: Nuosu SIL 40. */
	--rp-band-pad-y:        var(--rp-v-padding);   /* 80px - top */
	--rp-band-pad-bottom:   var(--rp-space-lg);    /* 20px - bottom, client 11 Aug */

	/* THE H1 GAP - the one dial under every page title (10; was 20 - client, 29 Oct 2026).
	 * Also read by the Be Inspired gaps and h1 panel titles; not by .rp-product__title. */
	--rp-h1-space-after: var(--rp-space-xs);

	/* Bottom air under a page_heading that also carries copy (20; was 40 - client, 29 Oct 2026).
	 * Carried by the copy, not by the band - see .rp-page-heading__content. */
	--rp-page-heading-pad-bottom: var(--rp-space-lg);
	--rp-page-title-size:   40px;
	--rp-page-title-family: "RP Display Quotes", "Nuosu SIL", Georgia, serif;

	/* Every serif page title and the home section headings (client, 8 Oct 2026; was Dark Green). */
	--rp-page-title-colour: var(--rp-colour-primary-green);

	/* ONE LEADING FOR EVERY PAGE TITLE, and it is why --rp-h1-space-after alone
	 * was not enough. Half the leading sits INSIDE the h1, below the letters, so
	 * a title at 1.2 shows more white under it than one at 1.1 on the identical
	 * margin. These were 1.1, 1.2 and `normal` (53px) across four templates -
	 * three different-looking gaps from one number. Client, 12 Aug. */
	--rp-page-title-leading: 1.1;
	--rp-faq-gap:           var(--rp-space-md);    /* 15px */
	--rp-faq-media-width:   380px;

	/* Section headings inside a long text page - Privacy Policy, T&Cs. The page
	 * title's own face one step down, so a document reads in one voice. 40 is
	 * the gap above; the space scale jumps 20 -> 60 and neither fits. */
	--rp-prose-h2-size:  28px;
	--rp-prose-h2-space: 40px;

	/* THE HERO STRIP. One component on three pages - the Be Inspired listing, a
	 * Be Inspired item, and a product category archive.
	 *
	 * The frames state a FIXED height: 375 on "10-Inspirations Grid" and on
	 * "3-Product Categories Grid", 585 on "11-Inspirations Template". Both are
	 * fixed at all three widths, which on a 402 phone makes the 585 taller than
	 * the screen is wide.
	 *
	 * So it is one clamped height instead, landing on the artwork's 375 at 1440
	 * and staying a strip below it. THE 585 IS DELIBERATELY NOT REPRODUCED - it
	 * read as a deep block rather than a band, and with a portrait source it
	 * crops to whatever happens to be in the middle of the photograph.
	 *
	 * The focus point is biased ABOVE centre because these are architectural
	 * photographs, where the subject almost never sits at the vertical middle.
	 * A correctly cropped landscape banner barely notices; a portrait one is
	 * rescued by it. */
	--rp-hero-height: clamp(200px, 26vw, 375px);
	--rp-hero-focus:  50% 35%;

	/* Be Inspired item page. Figma "11-Inspirations Template" - 1440 88:943,
	 * 768 761:9839, 402 761:10259. Every gap is identical at all three; only
	 * the widths and the collage shape move. */
	/* Back on the shared dial (was a literal 40 - client, 29 Oct 2026). */
	--rp-inspiration-title-gap:   var(--rp-h1-space-after);  /* h1 -> first heading */
	--rp-inspiration-section-gap: var(--rp-space-xl);  /* 60px */
	--rp-inspiration-text-gap:    var(--rp-space-sm);  /* 12px, heading -> prose */

	/* Inter LIGHT 14/20. The only place the design asks for Light, which is why
	 * 300 is in the webfont request - without it the browser synthesises a
	 * lighter face and the prose renders visibly wrong. Not Body/Small: that is
	 * Regular 14/16, and this is a longer measure with more leading. */
	--rp-type-prose-size:    14px;
	--rp-type-prose-leading: 20px;
	--rp-type-prose-weight:  300;

	/* The Be Inspired LISTING page. Figma "10-Inspirations Grid" - 1440 85:1662,
	 * 768 388:63013, 402 389:73541.
	 *
	 * The tiles are category-card instances, the grid is the category grid and
	 * the banner is the shared hero, so almost nothing here is its own. */
	/* h1 -> lead, and it is the PAGE title, so it takes the shared page-title
	 * gap. THE FRAME DRAWS 5 (Content Title 96:2118 puts the description at y=58
	 * under a 53-tall title); at that gap a 40px serif sits straight on top of
	 * 18px sans. Was 12, then 20 with everything else. Client, 12 Aug. */
	--rp-inspirations-title-gap:   var(--rp-h1-space-after);
	--rp-inspirations-grid-gap:    var(--rp-space-lg); /* 20px, header -> grid (was 60 - client, 5 Oct 2026) */

	/* My Enquiries list (client's mockup, 19 Oct 2026): date column from tablet, row chevron. */
	--rp-enquiry-list-date-col:    minmax(180px, 28%);
	--rp-chevron-size:             10px;

	/* Account tabs on a phone: how far the "more this way" fade reaches. */
	--rp-nav-fade:                 40px;

	/* The collage. Figma "collage-grid" (632:8950) and its two smaller twins:
	 * one photograph at a time, arrows at the edges, caption across the base.
	 *
	 * THE SHAPE IS DIFFERENT AT ALL THREE FRAMES - 1200x651, 704x651, 354x424 -
	 * so unlike everything else here the ratio is overridden per breakpoint.
	 *
	 * The arrow bar is --rp-colour-gallery-panel at half alpha, i.e. the same
	 * #f2f2f2 the product gallery's arrows sit on. Neither the caption black nor
	 * that alpha has a Figma variable. */
	--rp-collage-ratio:          1200 / 651;
	--rp-collage-caption-height: 40px;
	--rp-collage-caption-bg:     rgb(5 5 5 / 54%);
	--rp-collage-caption-pad:    var(--rp-space-xs) var(--rp-space-md);   /* 10 / 15 */
	--rp-collage-arrow-height:   100px;
	/* Figma draws these at 50% (761:9024). Over a photograph the BAR is what
	 * vanishes at that alpha, not the chevron - so 85, and solid on hover.
	 * Deliberate divergence, client 12 Aug. */
	--rp-collage-arrow-bg:       rgb(242 242 242 / 85%);
	--rp-collage-arrow-bg-hover: rgb(242 242 242);

	/* Seller form. No frame draws it - the 2026 artwork has no Recycle page. */
	--rp-uploader-thumb: 96px;

	/* Basket panel. No frame draws it - the slide-out is the SvelteKit
	 * SlideOutPanel's shape, and these follow the enquiry panel's own metrics. */
	--rp-qty-step:      32px;
	/* 24 is the smallest tap target WCAG 2.2 AA allows. */
	--rp-qty-select-height: 24px;
	--rp-basket-image:  72px;
	--rp-basket-image-max-height: 120px;
	--rp-basket-tag-icon: 16px;
	/* 18px bin + 11 each side = a 40px tap target. */
	--rp-basket-remove-pad: 11px;

	/* Breadcrumb. Figma "Breadcrumb" (381:53281).
	 *
	 * 8px is not on the spacing scale above and deliberately is not being added
	 * to it for one component - the scale carries the values the design reuses,
	 * and this is not one of them. Separator dimensions are the exported SVG's
	 * own, rounded up from 6.504 x 11.504. */
	--rp-breadcrumb-gap: 8px;
	--rp-breadcrumb-separator-width: 7px;
	--rp-breadcrumb-separator-height: 12px;
	--rp-breadcrumb-home-size: 17px;

	/* Gap between the breadcrumb and whatever follows it (Figma has 40). 11 - client,
	 * 29 Oct 2026; product pages keep the 15 they had, which the client approved. */
	--rp-breadcrumb-space-after: 11px;
	--rp-product-breadcrumb-space-after: var(--rp-space-md);

	/* Single product page. Figma "5-Product Variation 1" (85:4820): a 1200
	 * wrapper split 570 gallery / 60 gutter / 570 content. Expressed as a
	 * column width plus a gap so the two columns stay equal if the wrapper
	 * changes. */
	--rp-product-gap: var(--rp-space-xl);       /* 60px */
	--rp-product-gallery-ratio: 570 / 550;      /* Figma: Product image 85:5012 */

	/* Vertical rhythm of the content column, Figma "Product Left" (85:5049).
	 * 22px is not on the shared spacing scale; 12px is (--rp-space-sm). */
	--rp-product-title-gap: 8px;   /* title -> stock line. 12 in the frame; tucked under the name, 15 Sep 2026 */
	--rp-product-block-gap: 22px;                 /* name+price block -> description */

	/* Enquiry and Calculate Delivery share this basis, which is what makes them
	 * equal width whatever their labels say. It is also the wrap point: two of
	 * these plus the 20px gap need 420, so below that they stack. Figma draws
	 * them at 275 each in the 570 column and the row reaches that by growing. */
	--rp-product-action-basis: 200px;

	/* And no wider than one of the pair. Figma's Price Wrap (85:5182) is two
	 * 275s in a 570 column, so a button left on its own stops at 275 rather
	 * than filling the row — a lone full-width button reads as a primary CTA,
	 * and makes a variable product's page look unlike a simple one's. */
	--rp-product-action-max: 275px;

	/* Figma 6-Product Variation 4 (797:7617): the table starts 40 below the
	 * two-column block, which ends at y=606 against its y=646. */
	--rp-variations-space-above: 40px;

	/* Figma's variation "Button" instance is 150 x 29 on the 1440, 768 AND
	 * 402 frames — one size, no responsive variant. Pinned rather than left
	 * to padding: the same button holds an 18px tick in its "In enquiry"
	 * state, which made it 26 where "Enquire" was 24 and jogged the row. */
	--rp-variations-button-height: 29px;
	--rp-variations-action-gap: 10px;

	/* Image to stock number: 21 in the frame, and it is the theme's 20. */
	--rp-variations-stock-gap: var(--rp-space-lg);

	/* The Size column's floor, so auto table layout cannot squeeze it narrow
	 * enough to wrap. Client, 1 September 2026. */
	--rp-variations-size-min: 128px;

	/* The row thumbnail, 52x69 in that frame. Capped on HEIGHT, because that is
	 * what sets the row now the cells are centred - the width follows the photo.
	 * The max-width is only a guard against a panorama widening the column; it
	 * was live's 100px cap on both axes, which made every row 30px too tall. */
	--rp-variations-thumb-height: 69px;
	--rp-variations-thumb-max-width: 100px;
	/* The picture's box. Fixed so a square image (H60-14) does not pull its
	 * stock number left of the 4:3 rows around it; 92 is 4:3 at 69 tall. */
	--rp-variations-thumb-width: 92px;

	/* Related Products / You May Also Like. 60 clears the variations panel by
	 * more than the panel clears the columns above it - each row is a new
	 * section, not the next part of the last one. No frame draws either row;
	 * the artwork has no related products. */
	--rp-product-row-space-above: var(--rp-space-xl);   /* 60px */

	/* And each row carries its own space below, because both rows can be on the
	 * page at once. A PADDING, so it cannot collapse into the next row's margin
	 * - the two together are what put 120 between sections, and 120 is the
	 * point: .rp-grid's own row gap is 60, so a 60 separation would read as one
	 * more row of the same grid rather than the start of a new section. */
	--rp-product-row-space-below: var(--rp-space-xl);   /* 60px */

	/* Category description -> the grid below it. Was zero: .term-description
	 * carried no rule and .rp-cat-grid zeroes its own margin. 60 was too much;
	 * 20 set by eye against the page, not measured off a Figma frame. */
	--rp-term-description-gap: var(--rp-space-lg);   /* 20px */
	/* Product Feature heading -> its supporting paragraph (client asked 6-8px, 23 Nov 2026). */
	--rp-product-feature-text-gap: 7px;
	/* Hairline under the description - the delivery panel's weight. */
	--rp-term-description-rule: rgb(0 0 0 / 10%);

	/* Filter bar. Figma "search-filter" (388:62481) and "Search-Button"
	 * (274:5457) - the same metrics filter-inputs.svelte carries, so the two
	 * storefronts render the same bar. Only 15 and 10 are on the shared scale. */
	--rp-filter-block-pad:     24px;
	--rp-filter-row-gap:       var(--rp-space-md);   /* 15px */
	--rp-filter-col-gap:       80px;
	--rp-filter-fields-gap-x:  55px;
	--rp-filter-fields-gap-y:  var(--rp-space-xs);   /* 10px */
	--rp-filter-group-gap:     8px;
	--rp-filter-fields-min:    350px;
	--rp-filter-group-min:     200px;
	--rp-filter-input-min:     60px;
	--rp-filter-button-width:  124px;
	--rp-filter-button-height: 42px;

	/* ------------------------------------------------------------------
	 * Breakpoints
	 *
	 * Documented here for reference only - CSS custom properties cannot be
	 * used inside media query conditions, so components repeat the literal
	 * values. If you change one, grep for the number.
	 *
	 *   below 600px   1 column   (Figma 402 mobile frame)
	 *   600 - 991px   2 columns  (Figma 768 tablet frame)
	 *   992px and up  4 columns  (Figma 1440 desktop frame)
	 *
	 * The design has no 3-column state. That is deliberate on the design's
	 * part, not an omission here.
	 * ------------------------------------------------------------------ */

	/* ------------------------------------------------------------------
	 * The contact page, and the text_and_gallery block
	 *
	 * Equal columns at the client's request. The SvelteKit route runs 560 / 450
	 * and there is no Figma frame to follow — the 2026 artwork has no contact
	 * page, the same gap figma-todo.md records for /delivery.
	 *
	 * 570 + 60 + 570 is the 1200 content width exactly, and it is the product
	 * page's own split. The gutter is --rp-product-gap, the design's column gap.
	 * ------------------------------------------------------------------ */
	--rp-contact-details-width: 570px;
	--rp-contact-form-width:    570px;

	/* The two stacking breakpoints - 1040 and 960 - are literals in the media
	 * queries, not tokens: a custom property cannot be read in a media
	 * condition. Both are the SvelteKit route's own. */

	--rp-textblock-gap:         var(--rp-space-xl);   /* 60px, the column gap */
	--rp-video-radius:          20px;

	/* 80 under the block, not the band's shared 20. The Showroom frames put its
	 * sections at y=40 / 670 / 1300 over 550-tall rows - 80 between each. */
	--rp-textblock-pad-bottom:  var(--rp-v-padding);  /* 80px */

	/* Authored lists. Enough for the marker to hang in, so the bullet lands on
	 * the block's own left edge and wrapped lines align with the text. The UA
	 * default is 40px, which reads as a quote indented inside the column. */
	--rp-prose-list-indent: 1.25em;

	/* text_and_gallery_below. Figma "inspired-header" (815:9161): a 40px stack
	 * of title, prose and the gallery, and 12 from a prose heading to its copy.
	 * Its TYPE is not the frame's - see the note in components.css. */
	--rp-textgallery-gap:      40px;
	--rp-textgallery-text-gap: var(--rp-inspiration-text-gap);   /* 12px */

	/* A text_and_gallery block carrying photographs. Figma
	 * "header-variation-bright-asymmetric" (534:8955) on the Visit the Showroom
	 * template: 555.5 + 89 + 555.5 in the 1200 column, the picture 550 tall at
	 * every frame, and 24 under the title. */
	--rp-textblock-gallery-gap:    89px;
	--rp-textblock-gallery-ratio:  555.5 / 550;
	--rp-textblock-gallery-height: 550px;

	/* A section heading, not a page title: kept at 20 when the h1 gap went to 10 (29 Oct 2026). */
	--rp-textblock-title-gap:      var(--rp-space-lg);

	/* The guidelines box. No Figma variable - the 2026 artwork has no contact
	 * page, so this is the frontend's raw hex, like --rp-colour-gallery-panel. */
	--rp-colour-guidelines:     #bbcac3;

	/* ------------------------------------------------------------------
	 * The enquiry form. Figma "9-Enquire Form" - 1440 383:53931,
	 * 768 1038:10353, 402 1023:13922. ONE panel at all three, so nothing
	 * here is breakpoint-specific except the field grid collapsing.
	 *
	 * The frame's rhythm is 18 above and below every hairline and 24 for
	 * everything else, neither of which is on the shared spacing scale
	 * (10/12/15/20/60) - so they are component tokens rather than a new
	 * step, which would move the rest of the site.
	 * ------------------------------------------------------------------ */

	--rp-enquiry-rule-space:     18px;
	--rp-enquiry-gap:            24px;   /* image to details, and the stack in Your details */
	--rp-enquiry-field-gap:      16px;   /* between fields, both axes */
	--rp-enquiry-thumb:         218px;   /* square, and the same 218 at all three frames */
	--rp-enquiry-comment-height: 116px;  /* the per-item box */
	--rp-enquiry-note-height:     76px;  /* "Anything else..." - deliberately shorter */

	/* Panel padding is 20 top and bottom against 24 left and right, which is
	 * the delivery panel's pair and not .rp-panel-surface's even 20. */
	--rp-enquiry-pad-y:           20px;
	--rp-enquiry-pad-x:           24px;

	/* ------------------------------------------------------------------
	 * Checkout. Column widths follow the product page's 1fr/1fr split
	 * rather than a frame — the 2026 artwork has no checkout either.
	 * The stacking breakpoint (900px) is a literal in the media query.
	 * ------------------------------------------------------------------ */
	--rp-checkout-summary-width: 380px;

	/* Mobile only: the summary and the step panels are both Light 1, so the
	 * sticky bar needs an edge of its own. Hairline, like the delivery panel. */
	--rp-order-summary-border:   rgb(0 0 0 / 12%);
	--rp-step-number-size:       28px;
	--rp-guidelines-gap:        30px;
	--rp-guidelines-icon:       100px;
}

/* 992–1139 (tablet landscape): the full header needs ~1105px, so tighten it to ~950 or the icons run off the edge. */
@media (min-width: 992px) and (max-width: 1139px) {
	:root {
		--rp-nav-gap:            16px;
		--rp-header-logo-height: 44px;
		--rp-header-actions-gap: 8px;
	}
}
