/* One width coordinate, with mutually exclusive desktop/small-layout profiles.
   The source cascade is compiled at build time, never transformed or zoomed. */
:root { --desktop-unit:1px; --footer-unit:1px; }
/* First-paint coordinates for the fixed interior header and gallery opening. */
body:is([data-layout=glossary],[data-layout=contact],[data-layout=videos],[data-layout=testimonials],[data-layout=privacy]) {
 --fixed-header-height:86px;
 --page-opening-top:calc(var(--fixed-header-height) + min(48px,100vw / 36));
}
@media(max-width:900px) {
 body:is([data-layout=glossary],[data-layout=contact],[data-layout=videos],[data-layout=testimonials],[data-layout=privacy]) { --fixed-header-height:calc(88px - var(--interior-header-reduction)); }
}
@media(max-width:599px) {
 body:is([data-layout=glossary],[data-layout=contact],[data-layout=videos],[data-layout=testimonials],[data-layout=privacy]) { --fixed-header-height:calc(78px - var(--interior-header-reduction)); }
}
/* Slab's header-to-photo distance follows its toolbar's three layouts. */
body[data-layout=privacy] { --policy-opening-gap:207px; }
@media(min-width:600px) { body[data-layout=privacy] { --policy-opening-gap:165px; } }
@media(min-width:1101px) {
 body[data-layout=privacy] { --policy-opening-gap:calc(51.78 * var(--desktop-unit)); }
}
body[data-layout=privacy] #page #primary {
 padding-top:calc(var(--fixed-header-height) + var(--policy-opening-gap));
 text-align:left;
}
body[data-layout=privacy] #primary p,
body[data-layout=privacy] #primary p a { color:#eeeae3; font-weight:400; }
body[data-layout=privacy] #primary p { max-inline-size:75ch; }
body[data-layout=privacy] #primary > p:first-child {
 text-box-trim:trim-start; text-box-edge:cap alphabetic;
}
body[data-layout=contact] #page #primary.contact-october30 { padding-top:var(--page-opening-top); }
@media(min-width:1024px) {
 /* The first painted edge is the title ink in the centered desktop row. */
 body[data-layout=contact] #page #primary.contact-october30 {
  --contact-title-leading:round(nearest, 3 * var(--desktop-unit), 1px);
  padding-top:calc(var(--page-opening-top) - var(--contact-title-leading));
 }
 body[data-layout=contact] #page .contact-october30 .contact-campus-photo {
  align-self:start; margin-top:var(--contact-title-leading);
 }
}

/* Same fit as catalogReference: 70% of the Tile title in its rounded 96vw slot. */
body { --catalog-reference-size:calc(26.6 * var(--desktop-unit)); }
@media(max-width:599px) { body { --catalog-reference-size:18.9px; } }
@media(max-width:464px), (min-width:600px) and (max-width:652px) {
 body { --catalog-reference-size:max(15.4px, calc(round(nearest, 96vw, 1px) * .04244483 - .07px)); }
}
@media(min-width:960px) and (max-width:1100px) {
 /* The Videos grid switches before the catalog title starts its desktop scale. */
 body[data-layout=videos] { --catalog-reference-size:26.6px; }
}

/* Reserve the settled testimonial title and first card row before fonts load. */
body[data-layout=testimonials] #page #primary.testimonials-page {
 --testimonial-gap-unit:1px;
 padding-top:calc(var(--fixed-header-height) + 30 * var(--testimonial-gap-unit));
}
@media(min-width:960px) {
 body[data-layout=testimonials] #page #primary.testimonials-page {
  --testimonial-gap-unit:min(1px,100vw / 1728);
 }
}
/* Use the same visible gap on either side of the section lettering.
   The last caption determines where the next section starts after wrapping. */
body[data-layout=videos] #page main#primary.videos-page {
 --video-section-size:calc(var(--catalog-reference-size) * 21 / 26.6);
 --video-small-gap:calc(10.8 * var(--desktop-unit));
 --video-large-gap:calc(2 * var(--video-small-gap) + .73 * var(--video-section-size));
 padding-top:calc(var(--fixed-header-height) + var(--video-large-gap));
}
body[data-layout=testimonials] #page #primary #testimonials-title,
body[data-layout=videos] #page #primary.videos-page > h1,
body[data-layout=videos] #page #primary.videos-page .video-section-title {
 margin:0; padding:0; color:#fff; text-transform:none;
 font:300 var(--catalog-reference-size)/1.2 'Cactus Stone Mixed Case',sans-serif!important;
 letter-spacing:0!important; text-box-trim:trim-both; text-box-edge:cap alphabetic;
}
body[data-layout=testimonials] #page #primary.testimonials-page #testimonials-title {
 margin:0 auto calc(20 * var(--testimonial-gap-unit));
}
body[data-layout=videos] #page #primary.videos-page .video-section-title {
 font-size:var(--video-section-size)!important; text-align:left;
}
body[data-layout=videos] #page #primary.videos-page #classics-title {
 margin-block:var(--classics-above,calc(40 * var(--desktop-unit))) var(--classics-below,calc(2 * var(--video-small-gap)));
}
body[data-layout=videos] #page #primary.videos-page .video-sections section + section {
 margin-top:calc(var(--video-large-gap) + var(--last-caption-descent,0px));
}
@media(min-width:600px) {
 /* The “y” in the last row extends below the trimmed baseline. On phones
    “The Cathedral” occupies the final row by itself. */
 body[data-layout=videos] .video-sections { --last-caption-descent:calc(4 * var(--desktop-unit)); }
}
body[data-layout=catalog] .refined-page-heading { --page-heading-size:var(--catalog-reference-size); }
@media(min-width:960px) {
 html:has(body:is([data-layout=products],[data-layout=videos],[data-layout=privacy],[data-layout=unavailable])) { --desktop-unit:min(.05787037037vw,1px); font-size:calc(16 * var(--desktop-unit)); }
}
@media(min-width:1024px) {
 html:has(body:is([data-layout=portal],[data-layout=product],[data-layout=contact])) { --desktop-unit:min(.05787037037vw,1px); font-size:calc(16 * var(--desktop-unit)); }
}
@media(min-width:1101px) {
 html:has(body:is([data-layout=catalog],[data-layout=search],[data-layout=glossary],[data-layout=testimonials])) { --desktop-unit:min(.05787037037vw,1px); font-size:calc(16 * var(--desktop-unit)); }
}
body[data-layout] #page { width:100%; max-width:1728px; margin-inline:auto; }
body.portal-home[data-layout] #page { min-height:100svh; }
/* The background still spans the browser; only the inner composition caps. */
body[data-layout] #colophon { position:relative; left:50%; width:100vw; max-width:none; transform:translateX(-50%); }
body[data-layout] #colophon .footer-bottom .columns-container { max-width:1728px!important; margin-inline:auto!important; }
body.portal-home[data-layout] #page .portal-footer { position:relative; left:50%; width:100vw; transform:translateX(-50%); }
@media(min-width:1024px) {
 body.portal-home[data-layout] #page .portal-footer { padding-inline:calc(max(0px,(100vw - 1728px)/2) + 25.92 * var(--desktop-unit)); }
}
/* Header has its own fit threshold. Readable navigation remains full-sized,
   while its existing spacing gives way before the page's desktop arrangement. */
/* The outer bar belongs to the viewport; only its navigation container caps.
   In-flow catalog/product headers use the measured content viewport so a
   traditional scrollbar cannot introduce horizontal overflow. */
body[data-layout]:not(.portal-home) #masthead { left:0; right:0; width:100%; max-width:none; --desktop-unit:1px; --interior-old-logo-width:300px; --interior-logo-ink-scale:.972026; --interior-header-reduction:calc(var(--interior-old-logo-width) * var(--interior-logo-ink-scale) * 422 / 1921 * .2); }
body[data-layout]:is(.catalog-page,.single-product) #masthead {
 width:var(--header-window-width,100vw);
 margin-inline:calc((100% - var(--header-window-width,100vw)) / 2);
}
body[data-layout]:not(.portal-home) #masthead > .container { width:96%; max-width:1658.88px; margin-inline:auto; }
body[data-layout]:not(.portal-home) #page #masthead #primary-menu :is(a,.products-unified-link,a span:not(.fa,.fa-solid,.fa-brands)),
body[data-layout=products] #page #primary.products-october29 .products-accessories-button {
 font-family:'Cactus Navigation Caps',sans-serif!important;
}
@media(min-width:1161px) {
 /* The desktop menu uses fixed 15px brand lettering at every width. Reserve
    the settled link slots until the header measures the actual loaded font. */
 #primary-menu {
  --link-gap:min(42px,calc(5vw - 40px));
  --logo-gap:min(50px,calc(5vw - 36px));
  --left-wing:calc(50% - 120px - var(--logo-gap));
  --right-wing:calc(50% + 120px + var(--logo-gap));
  --products-width:134.64px; --glossary-width:115.61px; --videos-width:76.52px;
  --history-width:90.125px; --testimonials-width:142.81px;
 }
 #primary-menu > li:nth-child(1) { --initial-link-left:calc(var(--left-wing) - var(--products-width) - var(--glossary-width) - var(--videos-width) - 2 * var(--link-gap)); }
 #primary-menu > li:nth-child(2) { --initial-link-left:calc(var(--left-wing) - var(--glossary-width) - var(--videos-width) - var(--link-gap)); }
 #primary-menu > li:nth-child(3) { --initial-link-left:calc(var(--left-wing) - var(--videos-width)); }
 #primary-menu > li:nth-child(5) { --initial-link-left:var(--right-wing); }
 #primary-menu > li:nth-child(6) { --initial-link-left:calc(var(--right-wing) + var(--history-width) + var(--link-gap)); }
 #primary-menu > li:nth-child(7) { --initial-link-left:calc(var(--right-wing) + var(--history-width) + var(--testimonials-width) + 2 * var(--link-gap)); }

 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu { display:flex; justify-content:center; width:100%; position:relative; height:auto; min-height:54px; padding:0; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > .menu-brand { position:relative; margin:0; left:auto; top:auto; transform:none; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > li:not(.menu-brand) { display:block; position:absolute; left:var(--navigation-left,var(--initial-link-left)); top:50%; transform:translateY(-50%); width:max-content; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #site-navigation .menu-toggle { display:none; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > li > :is(a,.products-unified-link) { font-size:15px; }
 /* Overlap the trigger's bottom padding so the pointer can cross to SLAB.
    The 29.5px row leaves 18–19 visible pixels between the 11px capitals. */
 body #masthead #primary-menu .products-category-menu { margin-top:-9px; }
 body #masthead #primary-menu .products-category-menu a {
  box-sizing:border-box; height:29.5px; min-height:0; line-height:29.5px; padding-block:0;
 }
 body[data-layout]:not(.portal-home) #masthead .container .site-branding .custom-logo-link { width:240px; height:53.788068px; }
}
@media(min-width:901px) and (max-width:1160px) {
 body[data-layout]:not(.portal-home) #masthead { --header-bar-height:86px; }
 body[data-layout]:not(.portal-home) #masthead > .container { min-height:var(--header-bar-height); }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #site-navigation { position:static; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu { display:block; width:100%; padding:0; min-height:0; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > li { float:none; margin:0; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > li:not(.menu-brand) { display:none; position:static; transform:none; width:100%; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > .menu-brand { position:absolute; left:50%; top:calc(var(--header-bar-height)/2); transform:translate(-50%,-50%); }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #site-navigation .menu-toggle { display:flex; align-items:center; justify-content:center; position:absolute; top:calc(var(--header-bar-height)/2 - 22px); left:2vw; width:44px; height:44px; margin:0; padding:0; font-size:21px; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #site-navigation.toggled { height:auto; background:transparent!important; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #site-navigation .menu-main-navigation-container { position:static; width:100%; margin:0; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #site-navigation.toggled #primary-menu { padding-top:var(--header-bar-height); padding-bottom:16px; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #site-navigation.toggled #primary-menu > li:not(.menu-brand) { display:block; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > li > :is(a,.products-unified-link) { font-size:19px; line-height:1.5; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #secondary-navigation { top:calc(var(--header-bar-height)/2 - 22px)!important; }
 body[data-layout]:not(.portal-home) #masthead #primary-menu .products-category-menu { position:static; transform:none; margin:0 auto; }
 body[data-layout]:not(.portal-home) #masthead #primary-menu > .products-navigation > .products-unified-link { margin-inline:auto; }
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu > li.products-navigation { position:relative; }
}
@media(max-width:1160px) { body[data-layout] #masthead.menu-open { max-height:100dvh; overflow-y:auto; overflow-x:clip; } }
@media(max-width:1160px) {
 body[data-layout=testimonials] #page:has(#masthead.menu-open)::after {
  content:""; position:fixed; inset:0; background:#423e3a; z-index:999;
 }
 body[data-layout=testimonials] #masthead.menu-open { z-index:1000; }
}
body[data-layout=product] .slab-photo-frame { container-type:size; }
body[data-layout=product] .slab-photo {
 display:block; position:relative; width:min(100cqw,calc(100cqh * var(--photo-ratio)));
 aspect-ratio:var(--photo-ratio);
}
body[data-layout=product] .slab-photo::after {
 content:""; position:absolute; pointer-events:none; width:var(--diamond-width); height:var(--diamond-height);
 left:var(--diamond-left); bottom:var(--diamond-bottom);
 background:url("/assets/branding/slab-diamond.png") center / contain no-repeat;
}
/* Header's readable-menu breakpoint is independent of the page's desktop
   compilation threshold. Halve its measured 14px lettering-to-line gap. */
@media(max-width:1160px) {
 body[data-layout]:not(.portal-home) #masthead #primary-menu > li:not(.menu-brand) > a::after { bottom:9px; }
}
@media(max-width:900px) { body[data-layout]:not(.portal-home) #masthead { --interior-old-logo-width:min(280px,70vw); } }
@media(max-width:599px) { body[data-layout]:not(.portal-home) #masthead { --interior-old-logo-width:min(280px,calc(100vw - 110px)); } }
/* The shared thin footer follows the width coordinate, including on Story,
   whose accepted main-content sizing is deliberately not recompiled. */
@media(min-width:960px) {
 body[data-layout]:not(.portal-home) #colophon { --footer-unit:min(.05787037037vw,1px); }
 body[data-layout] #colophon:is(.standard-footer,.contact-bottom-only) .footer-bottom .columns-container {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:calc(14 * var(--footer-unit));
  padding:calc(8 * var(--footer-unit)) calc(25.92 * var(--footer-unit)); min-height:calc(44 * var(--footer-unit));
 }
 body[data-layout] #colophon .footer-bottom .footer-portal { grid-column:1; grid-row:auto; justify-self:start; }
 body[data-layout] #colophon:is(.standard-footer,.contact-bottom-only) .footer-bottom .social-networks { grid-column:2; grid-row:auto; }
 body[data-layout] #colophon:is(.standard-footer,.contact-bottom-only) .footer-bottom .copyright { grid-column:3; grid-row:auto; text-align:right; }
 body[data-layout] #colophon .footer-bottom :is(p,a) { font-size:calc(12 * var(--footer-unit)); }
 body[data-layout] #colophon .footer-bottom :is(i,.social-networks a) { font-size:calc(18 * var(--footer-unit)); }
 body[data-layout] #colophon:is(.standard-footer,.contact-bottom-only) .footer-bottom .social-networks a { width:calc(28 * var(--footer-unit)); min-width:0; height:calc(28 * var(--footer-unit)); min-height:0; }
 body[data-layout] #colophon:is(.standard-footer,.contact-bottom-only) .footer-bottom .social-networks ul { gap:calc(8 * var(--footer-unit)); }
}
/* The form's smaller arrangement starts with the family, not at an unrelated
   historical 1000px threshold. Native manual textarea resizing stays intact. */
@media(min-width:651px) and (max-width:1023px) {
 body[data-layout=contact] #page .contact-visit-layout { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
 body[data-layout=contact] #page .visit-map { grid-column:1/-1; padding-top:0; }
 body[data-layout=contact] #page .visit-map iframe { height:280px; }
}
body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #secondary-navigation,
body[data-layout]:not(.portal-home) #masthead.menu-open .container .navs-wrapper #secondary-navigation {
 right:max(2vw,env(safe-area-inset-right))!important;
 transition-property:color,background-color,opacity;
}
@media(min-width:901px) and (max-width:1160px) {
 body[data-layout]:not(.portal-home) #masthead .container .navs-wrapper #primary-menu { position:static; }
}
@media(min-width:960px) {
 body[data-layout=products] #page #products-selection { margin-top:calc(86.3 * var(--desktop-unit) + var(--desktop-header-offset,0px)); }
 body[data-layout=unavailable] #page #primary.unavailable-page { padding-top:calc(97.188068 * var(--desktop-unit) + var(--desktop-header-offset,0px)); }
}
@media(min-width:1101px) {
 body.search[data-layout=search] { margin-top:calc(116.638068 * var(--desktop-unit) + var(--desktop-header-offset,0px)); }
}
@media(min-width:1024px) {
 body[data-layout=contact] #page #primary { min-height:calc(100svh - 48 * var(--desktop-unit) - 1px); }
}
/* An opened player is bounded by the actual window height, not the reference
   page height. This affects the overlay only, never the page composition. */
body[data-layout] > .preview-dialog { max-height:90dvh; }
body[data-layout] > .video-dialog { width:min(90vw,calc(1400 * var(--desktop-unit)),calc((90dvh - 50 * var(--desktop-unit))*16/9)); padding-top:calc(50 * var(--desktop-unit)); max-height:none; }
@media(max-width:1023px) {
 /* The same 32px increase reaches the existing compact layout, including phones. */
 body[data-layout=product] #page main#primary section.product-hero .product-image { height:clamp(312px,calc(70vw + 32px),615px); }
}

@media(max-width:419px) { body[data-layout]:not(.portal-home) #masthead { --interior-logo-ink-scale:.88366; } }
@media(min-width:1101px) { body[data-layout=catalog] #page .back-to-top { right:max(calc(max(0px,(100vw - 1728px)/2) + 18 * var(--desktop-unit)),env(safe-area-inset-right)); } }

/* Use the live viewport here. The desktop profile compiler translates viewport
   heights in the authored page styles to the fixed design-height reference. */
body.website-products-refinements #page { min-height:100dvh; }

/* Spare room belongs before the footer. Keep tall content at its natural height. */
body[data-layout]:not(.portal-home) #page:has(> #colophon, > .contact-bottom-wrapper) {
 display:flex; flex-direction:column; min-height:calc(100dvh - var(--page-top-inset,0px));
}
body[data-layout] #page > :is(#masthead,#primary,#colophon,.contact-bottom-wrapper) { flex-shrink:0; }
body[data-layout] #page > #colophon:is(.footer-bar-only,.standard-footer),
body[data-layout] #page > .contact-bottom-wrapper { margin-top:auto; }
body[data-layout=search] { --page-top-inset:calc(15vh - var(--interior-header-reduction)); }
@media(min-width:1101px) {
 body[data-layout=search] { --page-top-inset:calc(116.638068 * var(--desktop-unit) + var(--desktop-header-offset,0px)); }
}

/* Keep the footer beyond the first viewport until the search has a result or error. */
body[data-layout=search] #primary[data-search-pending] [data-search-results] { min-height:100vh; min-height:100svh; }

/* The center track takes the actual width of the logo. Both outer tracks
   share the remaining space, even when the date changes fonts. */
body.portal-home #page #masthead {
 display:grid; grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr); align-items:end;
}
body.portal-home #page #masthead > .container { grid-area:1 / 2; }
body.portal-home #page #masthead .portal-established {
 grid-area:1 / 3; justify-self:start; position:static; margin-left:calc(12 * var(--desktop-unit));
}
@media(max-width:394px) {
 body.portal-home #page #masthead .portal-established {
  grid-area:auto; position:absolute; top:10px; right:16px; width:4.003em; margin:0; white-space:nowrap;
 }
}

/* Panel margins account for the original section padding and its 20px
   negative parent margin. The collection starts at the catalog's grid gap. */
body[data-layout=products] #page #products-selection:not([data-measuring-gap]) { margin-top:calc(225.44px - max(0px,53px - 10vh)); }
@media(min-width:600px) and (max-width:900px) {
 body[data-layout=products] #page #products-selection:not([data-measuring-gap]) { margin-top:calc(193.61px - max(0px,53px - 10vh)); }
}
@media(min-width:901px) and (max-width:959px) {
 body[data-layout=products] #page #products-selection:not([data-measuring-gap]) { margin-top:calc(203.58px - max(0px,53px - 10vh)); }
}
@media(min-width:960px) {
 body[data-layout=products] #page #products-selection:not([data-measuring-gap]) {
  margin-top:calc(251.61px - 47.19 * var(--desktop-unit));
 }
}
@media(min-width:1101px) {
 body[data-layout=products] #page #products-selection:not([data-measuring-gap]) {
  margin-top:calc(86px + 4.59 * var(--desktop-unit));
 }
}

/* Native selects occupy the same slots as the enhanced dropdowns. Values
   below are the existing catalog font's cap alignment in its design units. */
body[data-layout=catalog] #page .compact-catalog[data-october6-catalog] {
 --title-inset:3.508; --grid-adjust:-1.121; --face-height:27.77; --filter-center:25.89;
 --toolbar-inset:calc(var(--title-inset) * var(--desktop-unit));
 --filter-cap-height:calc(var(--face-height) * var(--desktop-unit));
 padding-top:calc(var(--title-inset) * var(--desktop-unit));
}
body[data-layout=catalog] #page .compact-catalog[data-catalog-family=tile] {
 --title-inset:3.166; --grid-adjust:-1.425; --face-height:26.09; --filter-center:25.568;
}
body[data-layout=catalog] #page .compact-catalog[data-october6-catalog] .catalog-toolbar { margin-bottom:12px; }
@media(min-width:1101px) {
 body[data-layout=catalog] #page .compact-catalog[data-october6-catalog]:not([data-reset-layout=stacked]) .catalog-status {
  position:absolute; left:50%; top:var(--reset-center-y,24px); transform:translate(-50%,-50%); width:max-content;
 }
 body[data-layout=catalog] #page .compact-catalog[data-october6-catalog] .catalog-toolbar {
  margin-bottom:calc(var(--grid-adjust) * var(--desktop-unit));
 }
 body[data-layout=catalog] #page .compact-catalog[data-october6-catalog]:not([data-reset-layout=stacked]) .catalog-filters:not([data-fitted]) {
  position:relative; align-self:start; top:calc(var(--filter-center) * var(--desktop-unit) - var(--toolbar-inset));
  transform:translateY(-50%);
 }
 body[data-layout=catalog] #page .compact-catalog[data-october6-catalog] .catalog-filter {
  min-height:calc(36 * var(--desktop-unit)); display:grid; align-items:center;
 }
 body[data-layout=catalog] #page .compact-catalog[data-october6-catalog] select.filters-select:not([hidden]) {
  height:calc(var(--face-height) * var(--desktop-unit)); min-height:0; padding-block:0;
 }
}
@media(max-width:599px) {
 body[data-layout=catalog] #page .compact-catalog[data-october6-catalog] { --title-inset:5.782; }
 body[data-layout=catalog] #page .compact-catalog[data-catalog-family=tile] { --title-inset:5.539; }
}
/* The longest Tile material wraps at its 22px minimum below 416px. */
@media(max-width:415px) {
 body[data-layout=catalog] #page .compact-catalog[data-catalog-family=tile] #catalog-heading:not([style*="height:"]) { min-height:2lh; }
}

/* Paint the initial category and material together inside the reserved title
   slot. Subsequent filter selections use the measured sizes of their own names. */
body #page .compact-catalog[data-october6-catalog]:not([data-title-measured]) #catalog-heading {
 display:flex; align-items:flex-start; gap:calc(var(--catalog-reference-size) / 4);
 height:1lh; position:relative;
 --category-top:calc(10.7 * var(--desktop-unit));
 --material-top:calc(var(--category-top) + var(--desktop-unit));
}
body #page .compact-catalog:not([data-title-measured]) #catalog-heading :is(.catalog-category,.catalog-material) { display:contents; }
body #page .compact-catalog:not([data-title-measured]) #catalog-heading :is(.category-size-witness,.material-size-witness,.catalog-separator-witness) { display:none; }
body #page #primary .compact-catalog:not([data-title-measured]) #catalog-heading :is(.category-visible-label,.material-visible-label) {
 position:relative; flex:none; left:auto; top:0; transform:translateY(var(--category-top));
 font-size:var(--catalog-reference-size);
}
body #page #primary .compact-catalog:not([data-title-measured]) #catalog-heading .material-visible-label { transform:translateY(var(--material-top)); }
@media(max-width:599px) {
 body #page .compact-catalog[data-october6-catalog]:not([data-title-measured]) #catalog-heading {
  --category-top:calc(8.71px + (18.9px - var(--catalog-reference-size)) * .30);
 }
 body #page .compact-catalog[data-catalog-family=tile]:not([data-title-measured]) #catalog-heading {
  --category-top:calc(8.71px - (18.9px - var(--catalog-reference-size)) * .215);
  --material-top:var(--category-top);
 }
}
@media(max-width:464px) {
 body #page .compact-catalog[data-catalog-family=tile]:not([data-title-measured]) #catalog-heading {
  --material-top:calc(var(--category-top) + 1px);
 }
}
/* Below 378px the 22px sizing title wraps. Its first inline fragment starts
   after "Tile - ". Keep that same origin and fit the material into the rest
   of the row, as alignMaterials does once the controls are ready. */
@media(max-width:377px) {
 body #page .compact-catalog[data-catalog-family=tile]:not([data-title-measured]) #catalog-heading {
  --category-top:7.7px;
  --material-origin:135.84px;
 }
 body #page #primary .compact-catalog[data-catalog-family=tile]:not([data-title-measured]) #catalog-heading .material-visible-label {
  position:absolute; left:var(--material-origin);
  font-size:min(var(--catalog-reference-size),calc((96vw - var(--material-origin)) / 11.33));
 }
}

/* The real native select remains usable until Choices enhances it. Its
   closed face uses the same inset, font and arrow as the enhanced control. */
body[data-layout=catalog] #page .catalog-filter { position:relative; }
body[data-layout=catalog] #page .catalog-filter > select.filters-select {
 appearance:none; box-sizing:border-box;
 font:400 calc(14 * var(--desktop-unit))/1.4 Manrope,sans-serif;
 color:#272523; background:#f0f0f0; border:1px solid #d2c8ae;
 border-radius:calc(5 * var(--desktop-unit));
 padding-inline:calc(10 * var(--desktop-unit)) calc(22 * var(--desktop-unit));
}
body[data-layout=catalog] #page .catalog-filter:has(> select.filters-select:not([hidden]))::after {
 content:""; pointer-events:none; position:absolute; top:50%; right:calc(8 * var(--desktop-unit));
 width:0; height:0; border:calc(5 * var(--desktop-unit)) solid transparent;
 border-top-color:#333; margin-top:calc(-2.5 * var(--desktop-unit));
}

/* Share the panel width. At 1728px the 839.64px natural button fits the
   743.98px half-row at this scale. Both dimensions scale with the page. */
@media(min-width:600px) and (max-width:959px) {
 body[data-layout=products] #page #primary .products-accessories-button {
  --accessories-width:92vw;
 }
}
@media(min-width:960px) {
 body[data-layout=products] #page #primary .products-accessories-button {
  --accessories-width:calc((1728 * .853 * var(--desktop-unit) + var(--portal-gap)) / 2);
  --accessories-scale:.886075;
 }
}
/* Phones retain the fitted, two-line invitation and its existing touch area. */
@media(max-width:599px) {
 body[data-layout=products] #page #primary .products-accessories-button {
  --panel-width:calc(100vw - 32px);
  --accessories-width:var(--panel-width);
  --accessories-scale:1;
 }
 @supports (opacity:calc(1px / round(nearest,1px,1px))) {
  body[data-layout=products] #page #primary .products-accessories-button {
   --accessories-scale:min(1,calc(var(--panel-width) / min(421.83px,round(nearest,96vw,1px))));
  }
 }
}
@media(max-width:439px) {
 body[data-layout=products] #page #primary .products-accessories-button {
  min-height:calc((2 * 1.2 * var(--accessories-font) + 28px) * var(--accessories-scale,1));
 }
}

/* Accessories has a title and grid but no dropdowns. Keep its first row at
   the same painted-title clearance before the title metrics are available. */
body[data-layout=catalog] #page .compact-catalog:has(#products-container[data-catalog-family=accessories]) { padding-top:calc(4.208 * var(--desktop-unit)); }
body[data-layout=catalog] #page .compact-catalog:has(#products-container[data-catalog-family=accessories]) .catalog-toolbar { margin-bottom:calc(-1.82 * var(--desktop-unit)); }
@media(max-width:599px) {
 body[data-layout=catalog] #page .compact-catalog:has(#products-container[data-catalog-family=accessories]) { padding-top:6.33px; }
 body[data-layout=catalog] #page .compact-catalog:has(#products-container[data-catalog-family=accessories]) .catalog-toolbar { margin-bottom:2.31px; }
}

/* These aliases contain the same approved faces, decoded with the initial styles. */
body[data-layout=videos] #primary.videos-page > h1 {
 --informational-heading-face:'Cactus Coming Soon';
}
body[data-layout=catalog] #page #primary .compact-catalog :is(.heading-visible-label,.category-visible-label) {
 font-family:'Cactus Navigation Caps',sans-serif!important;
}
body[data-layout=catalog] #page #primary .compact-catalog .catalog-material > .material-visible-label,
body[data-layout=videos] #page #primary.videos-page > h1,
body[data-layout=videos] #page #primary.videos-page .video-section-title {
 font-family:'Cactus Coming Soon',sans-serif!important;
}

/* The image scales inside the same navigation measuring box on both header layouts. */
body:not(.portal-home) #masthead .custom-logo-link .custom-logo { scale:.95; transform-origin:center; }

body #page #primary .compact-catalog .catalog-material > .material-visible-label {
 color:#fff; scale:.95; transform-origin:left center;
}
body #page #primary .compact-catalog .material-hyphen {
 display:inline-block; scale:.79; transform-origin:center; vertical-align:.04em;
}
body[data-layout=catalog] #page .catalog-filters .catalog-filter :is(select.filters-select,.choices__inner,.choices__list--single,.choices__list--single .choices__item) {
 background:transparent!important; border-color:transparent!important; box-shadow:none!important; color:#fff!important; opacity:1!important;
}
body[data-layout=catalog] #page .catalog-filters .catalog-filter .choices.is-open .choices__list--single .choices__item,
body[data-layout=catalog] #page .catalog-filter select:open {
 color:#d2c8ae!important; text-decoration:underline; text-underline-offset:4px;
}
body[data-layout=catalog] #page .catalog-filters .catalog-filter .choices::after,
body[data-layout=catalog] #page .catalog-filter:has(> select.filters-select:not([hidden]))::after {
 content:""; pointer-events:none; position:absolute; top:50%; right:calc(12 * var(--desktop-unit));
 box-sizing:content-box; width:calc(6 * var(--desktop-unit)); height:calc(6 * var(--desktop-unit));
 border:solid #fff; border-width:0 1.4px 1.4px 0; transform:rotate(45deg); margin-top:-5px;
}
body[data-layout=catalog] #page .catalog-filters .catalog-filter .choices.is-open::after,
body[data-layout=catalog] #page .catalog-filter:has(> select:open)::after { transform:rotate(225deg); margin-top:-2px; border-color:#d2c8ae; }
body[data-layout=catalog] #page .catalog-filters .catalog-filter :is(option,.choices__list--dropdown,.choices__list--dropdown [data-choice]) {
 border-color:transparent!important; box-shadow:none!important; background:#423e3a!important; color:#fff!important; border-radius:0!important;
}
body[data-layout=catalog] #page .catalog-filters .catalog-filter .choices__list--dropdown .choices__item:is(:hover,.is-highlighted) {
 background:#514c46!important; color:#d2c8ae!important;
}
body[data-layout=catalog] #page .catalog-filter .choices.is-focused:not(.is-open):focus-visible { outline:1px solid #d2c8ae; outline-offset:1px; }

@media(min-width:1024px) {
 body[data-layout=contact] #page #primary.contact-october30 .contact-visit-layout {
  /* Center the row using the enlarged photo's full width. */
  width:max-content; grid-template-columns:calc(1.166 * var(--campus-width,calc(599.75 * var(--desktop-unit)))) max-content;
 }
 body[data-layout=contact] #page #primary.contact-october30 .contact-campus-photo {
  margin-top:var(--campus-top,var(--contact-title-leading));
 }
}
body #page #colophon .footer-bottom .columns-container.visitor-legal {
 display:flex!important; justify-content:center; align-items:center; padding:calc(9 * var(--footer-unit)) 8px!important;
 min-height:calc(44 * var(--footer-unit));
}
body #page #colophon .footer-bottom .visitor-legal p {
 display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.32em .64em; margin:0;
 font:400 calc(12 * var(--footer-unit))/1.5 Manrope,sans-serif; color:#eeeae3; opacity:.75; text-align:center;
}
body #page #colophon .footer-bottom .visitor-legal p > * { white-space:nowrap; }
body #page #colophon .footer-bottom .visitor-legal p a { font:inherit; color:inherit; text-decoration:none; }
body #page #colophon .footer-bottom .visitor-legal p a:is(:hover,:focus-visible) { text-decoration:underline; }
body #page #colophon .footer-bottom .visitor-legal img { width:.9em; height:.9em; object-fit:contain; }

/* Optical center of the Manrope lettering inside the existing desktop hit areas. */
@media(min-width:1101px) {
 body[data-layout=catalog] #page .compact-catalog:not([data-reset-layout=stacked]) .catalog-filter {
  translate:0 calc(-2 * var(--desktop-unit));
 }
}

/* Keep the initial picker usable while its published product counts arrive. */
body[data-layout=catalog] #page .catalog-filter > select { color-scheme:dark; }
/* Choices puts the scrolling rows inside a separately positioned popup. */
body[data-layout=catalog] .catalog-filter .choices__list--dropdown > .choices__list {
 max-height:100dvh; overflow-y:auto; overscroll-behavior-y:contain;
 scrollbar-color:#ab9f8c #34312f;
}
body[data-layout=catalog] .catalog-filter .choices.is-open[data-open-above] .choices__list--dropdown {
 top:auto; bottom:100%; margin-block:0 -1px;
}
@supports (appearance:base-select) {
 body[data-layout=catalog] #page .catalog-filter > select.filters-select,
 body[data-layout=catalog] .catalog-filter > select::picker(select) { appearance:base-select; }
 body[data-layout=catalog] .catalog-filter > select::picker-icon { display:none; }
 body[data-layout=catalog] .catalog-filter > select::picker(select) {
  background:#423e3a; color:white; border:0; border-radius:0; box-shadow:0 4px 8px #0002;
  margin:0; padding:0; min-inline-size:anchor-size(width);
  max-block-size:calc(100% - 8px); overflow-y:auto; overscroll-behavior-y:contain;
  scrollbar-color:#ab9f8c #34312f;
 }
 body[data-layout=catalog] .catalog-filter > select option {
  min-height:44px; padding-inline:10px; align-content:center;
 }
 body[data-layout=catalog] .catalog-filter > select option[value=""],
 body[data-layout=catalog] .catalog-filter > select option::checkmark { display:none; }
 body[data-layout=catalog] #page .catalog-filter > select option:is(:hover,:focus,:focus-visible) {
  background:#514c46!important; color:#d2c8ae!important;
 }
 @media(min-width:1101px) {
  body[data-layout=catalog] .catalog-filter > select option { min-height:var(--filter-cap-height); }
 }
 body[data-layout=catalog] #page .catalog-filter > select.filters-select:not([hidden]) {
  display:flex; align-items:center; padding-block:0;
 }
 @media(max-width:1100px) {
  body[data-layout=catalog] #page .catalog-filter > select.filters-select:not([hidden]) { height:44px; }
 }
}
