/* Colour, radius and spacing values mirror the @aib/design-tokens semantic roles used by
   the Home Industry web client and the product repositories, so the public showcase
   reads as the same platform. The showcase host serves this stylesheet under a closed
   content security policy, which is why the values are copied rather than imported.
   Public Sans is the proposed Home Industry brand typeface; it is served from the
   showcase origin alongside its licence. */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/public-sans-latin-wght-normal.woff2) format('woff2-variations'), url(/assets/fonts/public-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --recessed: #f6f8f7;
  --ink: #14201b;
  --ink-strong: #0a110e;
  --muted: #53615a;
  --rule: #dce3df;
  --rule-strong: #a6b2ac;
  --accent: #125f50;
  --accent-hover: #0d4a3f;
  --accent-subtle: #dceee8;
  --on-accent: #ffffff;
  --limit-ink: #80530d;
  --limit-ground: #f8ead0;
  --radius: .5rem;
  --radius-small: .375rem;
  --max: 72rem;
  --reading: 46rem;
  --font: 'Public Sans', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--font);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #0a110e;
    --recessed: #18251f;
    --ink: #edf1ef;
    --ink-strong: #ffffff;
    --muted: #c1ccc6;
    --rule: #2e3e39;
    --rule-strong: #71847c;
    --accent: #62c5ac;
    --accent-hover: #83d8c3;
    --accent-subtle: #173d34;
    --on-accent: #0a110e;
    --limit-ink: #efc36f;
    --limit-ground: #493716;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 1rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: .15rem; }
/* Headings are large and set at 600: size carries the hierarchy, so weight can stay quiet. */
h1, h2, h3 { color: var(--ink-strong); font-family: var(--font); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
h1 { max-width: 20ch; margin: 0; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -.032em; }
h2 { margin: 0 0 .85rem; font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.15; letter-spacing: -.024em; }
h3 { margin: 0 0 .4rem; font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
p, li { max-width: 68ch; text-wrap: pretty; }

.skip-link { position: fixed; z-index: 10; inset: .75rem auto auto .75rem; transform: translateY(-180%); border-radius: var(--radius-small); padding: .65rem .9rem; background: var(--ink-strong); color: var(--canvas); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-inner, main, .footer-inner, .publication-boundary { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

/* Site chrome */
.site-header { border-bottom: 1px solid var(--rule); background: var(--canvas); }
.header-inner { position: relative; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-strong); font-weight: 700; text-decoration: none; }
.brand:hover { color: var(--ink-strong); }
.brand-mark { display: block; flex: 0 0 auto; width: 3.375rem; height: 2.625rem; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { display: block; font-size: 1.125rem; font-weight: 750; line-height: 1.05; letter-spacing: -.035em; white-space: nowrap; }
.brand-name > span { display: block; }
.site-header .brand { flex-shrink: 0; min-height: 3.5rem; color: #123f30; }
@media (prefers-color-scheme: dark) { .brand-mark img { filter: brightness(0) invert(1); } .site-header .brand { color: #edf1ef; } }
.site-header nav { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem clamp(.7rem, 1.4vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.site-nav__primary { align-items: center; }
.site-nav__utilities { align-items: center; margin-left: auto; border-left: 1px solid var(--rule); padding-left: clamp(.7rem, 1.4vw, 1.25rem); }
.site-header nav a { display: inline-block; padding-block: 1.3rem calc(1.3rem - 2px); border-bottom: 2px solid transparent; color: var(--muted); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--ink-strong); }
.site-header nav a[aria-current="page"] { color: var(--ink-strong); border-bottom-color: var(--accent); }
.product-navigation summary, .planning-navigation summary, .location-navigation summary { display: flex; align-items: center; gap: .35rem; padding-block: 1.3rem calc(1.3rem - 2px); border-bottom: 2px solid transparent; color: var(--muted); font-size: .9375rem; font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
.product-navigation summary::-webkit-details-marker, .planning-navigation summary::-webkit-details-marker, .location-navigation summary::-webkit-details-marker { display: none; }
.product-navigation summary svg, .planning-navigation summary svg, .location-navigation summary svg { flex: 0 0 auto; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .15s ease; }
.product-navigation[open] summary, .planning-navigation[open] summary, .location-navigation[open] summary, .product-navigation summary:hover, .planning-navigation summary:hover, .location-navigation summary:hover, .product-navigation summary.is-current, .planning-navigation summary.is-current, .location-navigation summary.is-current { color: var(--ink-strong); border-bottom-color: var(--accent); }
.product-navigation[open] summary svg, .planning-navigation[open] summary svg, .location-navigation[open] summary svg { transform: rotate(180deg); }
.product-menu { position: absolute; z-index: 5; top: 100%; inset-inline: 0; display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 4fr); gap: 2rem; padding: 2rem; background: var(--canvas); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 20px 40px #0002; }
.product-menu:has(.product-category-sidebar[hidden]) { grid-template-columns: minmax(0, 1fr); }
.product-category-sidebar { min-width: 0; border-right: 1px solid var(--rule); padding-right: 1.25rem; }
.product-category-list { display: flex; flex-direction: column; gap: .35rem; }
.product-category-list button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 44px; border: 0; border-radius: var(--radius-small); padding: .65rem .75rem; color: var(--ink); background: transparent; font: inherit; font-size: .9375rem; font-weight: 600; text-align: left; cursor: pointer; }
.product-category-list button:hover, .product-category-list button[aria-selected="true"] { background: var(--accent-subtle); color: var(--accent); }
.product-category-list button > span:last-child { opacity: 0; }
.product-category-list button[aria-selected="true"] > span:last-child { opacity: 1; }
.product-category-content { min-width: 0; }
.product-category-panel[hidden], .product-category-sidebar[hidden] { display: none; }
.product-category-panel { min-height: 24rem; }
.product-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.product-panel-heading h2 { margin: 0; font-size: 1.65rem; }
.product-panel-content { display: grid; grid-template-columns: minmax(0, 3fr) minmax(8rem, 1fr); gap: 2rem; margin-bottom: 1.5rem; }
.product-category-empty { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); background: var(--recessed); }
.product-category-empty p { margin-bottom: 0; color: var(--muted); max-width: 48ch; }
.product-category-empty .eyebrow { margin-bottom: 1rem; }
.product-menu h3 { font-size: .875rem; margin-bottom: .8rem; }
.site-header .product-menu ul { display: grid; width: auto; gap: .5rem; }
.site-header .product-menu-types ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-header .product-menu a { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border: 0; border-radius: var(--radius-small); color: var(--ink); font-size: .875rem; overflow-wrap: anywhere; }
.site-header .product-menu a:hover, .site-header .product-menu a[aria-current="page"] { background: var(--accent-subtle); color: var(--accent); }
.site-header .product-menu-types a { flex-direction: column; justify-content: center; min-height: 6.5rem; text-align: center; background: var(--recessed); }
.product-menu-types .type-drawing { width: 2.5rem; height: 3rem; }
.site-header .product-menu-all { padding-inline: 0; color: var(--accent); }
.product-menu-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.product-menu-footer > span { flex: 1; min-width: 12rem; color: var(--muted); font-size: .75rem; }
.planning-navigation, .location-navigation { position: relative; }
.planning-menu, .location-menu { position: absolute; z-index: 6; top: calc(100% - 1px); min-width: 14rem; border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); padding: .75rem; background: var(--canvas); box-shadow: 0 16px 32px #0002; }
.planning-menu { inset-inline-start: 0; }
.location-menu { inset-inline-end: 0; width: min(22rem, calc(100vw - 2rem)); }
.site-header .planning-menu ul, .site-header .location-menu ul { display: grid; gap: .25rem; }
.site-header .planning-menu a, .site-header .location-menu a { display: block; border: 0; border-radius: var(--radius-small); padding: .55rem .65rem; color: var(--ink); font-size: .875rem; }
.site-header .planning-menu a:hover, .site-header .planning-menu a[aria-current="page"], .site-header .location-menu a:hover, .site-header .location-menu a[aria-current="page"] { background: var(--accent-subtle); color: var(--accent); }
.location-navigation__summary [data-location-current] { max-width: 9rem; overflow: hidden; color: var(--ink); font-size: .75rem; font-weight: 500; text-overflow: ellipsis; }
.location-menu label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .8125rem; font-weight: 600; }
.location-menu input { width: 100%; min-height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius-small); padding: .55rem .65rem; background: var(--canvas); color: var(--ink); font: inherit; }
.location-menu form > div { display: flex; gap: .4rem; }
.location-menu button { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--accent); border-radius: var(--radius-small); padding-inline: .75rem; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
.location-menu button:hover { background: var(--accent-hover); }
.location-menu ul { max-height: 15rem; overflow-y: auto; margin-block: .65rem; }
.location-menu p { margin: .5rem 0 0; border-top: 1px solid var(--rule); padding-top: .5rem; }
.account-nav-item a { color: var(--ink-strong) !important; }
.location-bar { border-bottom: 1px solid var(--rule); background: var(--recessed); }
.location-bar > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; padding-block: .65rem; }
.location-bar p { margin: 0; color: var(--muted); font-size: .8125rem; }
.location-bar p span { margin-right: .5rem; font-weight: 600; }
.location-bar p strong { color: var(--ink); }
.location-search { max-width: 44rem; }
.location-search > label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .875rem; font-weight: 600; }
.location-search > div { display: flex; gap: .5rem; }
.location-search input { min-width: 0; width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--radius-small); padding: .6rem .75rem; background: var(--canvas); color: var(--ink); font: inherit; }
.location-search button, .text-button { border: 1px solid var(--accent); border-radius: var(--radius-small); padding: .6rem .9rem; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
.location-search button:hover { background: var(--accent-hover); }
.location-search > p { margin: .35rem 0 0; color: var(--muted); font-size: .75rem; }
.location-bar .location-search { display: grid; grid-template-columns: auto minmax(14rem, 22rem); align-items: center; gap: .25rem .75rem; margin-left: auto; }
.location-bar .location-search > label { margin: 0; }
.location-bar .location-search > p { grid-column: 2; }

main { flex: 1 0 auto; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.eyebrow { margin: 0 0 .35rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.lede { max-width: 50ch; margin-block: 1.1rem 0; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.55; }

/* Home */
.home-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-copy h1 { max-width: 14ch; }
/* With a featured illustration: the headline and introduction sit side by side above one wide image band. */
.home-hero-band { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.home-hero-band .hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.home-hero-band .hero-copy .lede { margin-top: 0; }
.home-hero-band .home-story-visual img { aspect-ratio: 21 / 9; object-position: 50% 55%; }
.hero-boundary { max-width: 52ch; margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }
.home-story-visual { margin: 0; }
.home-story-visual img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--recessed); }
.home-story-visual figcaption { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; margin-top: .6rem; color: var(--muted); font-size: .8125rem; }
.home-story-visual figcaption a { font-weight: 600; }
.window-illustration { aspect-ratio: 4 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; max-width: 20rem; width: 100%; justify-self: end; border: .75rem solid var(--ink-strong); border-radius: var(--radius); padding: .5rem; background: var(--ink-strong); }
.window-illustration span { min-height: 5rem; background: linear-gradient(150deg, var(--accent-subtle) 0 55%, var(--recessed) 55%); }
.local-entry { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; border-block: 1px solid var(--rule); padding-block: 1.5rem; }
.local-entry h2 { margin-bottom: .35rem; font-size: 1.375rem; }
.local-entry p:not(.eyebrow) { margin: 0; color: var(--muted); }
.local-entry > a { flex: 0 0 auto; border-radius: var(--radius); padding: .7rem 1.1rem; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.local-entry > a:hover { background: var(--accent-hover); color: var(--on-accent); }
.home-location { margin-bottom: 2rem; border-block: 1px solid var(--rule); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.home-location > p { margin-block: .4rem 1rem; color: var(--muted); }
.home-location .location-search-prominent { margin-bottom: 1rem; }
.home-location > ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.home-location > ul a { font-weight: 600; }
.quick-start { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1rem; padding-block: .5rem 1rem; }
.quick-start .eyebrow { margin: 0; }
.quick-start ul { gap: .5rem 1.5rem; }
.quick-start a { font-weight: 600; }
.collection-section { margin-top: clamp(4rem, 9vw, 6.5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-heading h2 { margin: 0; }
.section-heading .count { margin-left: .6rem; color: var(--muted); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.browse-all, .reset-link { flex: 0 0 auto; font-weight: 600; }
.location-search-prominent { margin-block: 0 2.5rem; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); background: var(--recessed); }
.location-search-prominent > label { font-size: 1.25rem; }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.location-card { max-width: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; background: var(--canvas); }
.location-card h2 { margin-bottom: .5rem; font-size: 1.25rem; }
.location-card p:last-child { margin-bottom: 0; color: var(--muted); }
.location-empty { margin-top: 1rem; }
.location-hero { margin-bottom: 1.5rem; }
.text-button { padding: .45rem .7rem; background: transparent; color: var(--accent); }
.text-button:hover { background: var(--accent-subtle); }
.location-clear { border: 0; padding: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

/* Reviewed product, service, and professional discovery */
.discovery-summary, .product-service-flow { margin-block: 2rem 3rem; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); background: var(--recessed); }
.discovery-columns, .discovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.discovery-columns section, .discovery-card { max-width: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.15rem; background: var(--canvas); }
.discovery-columns h3, .discovery-card h2 { font-size: 1.15rem; }
.discovery-columns ul { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.discovery-columns li { display: grid; gap: .15rem; }
.discovery-columns li span, .discovery-card p, .coverage-state { color: var(--muted); }
.discovery-actions, .product-service-flow > p:last-child { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin: 1.25rem 0 0; }
.discovery-actions a, .product-service-flow a { font-weight: 600; }
.discovery-card .eyebrow { margin-bottom: .35rem; }
.discovery-card p:last-child { margin-bottom: 0; }
.coverage-state strong { color: var(--ink); }
.location-discovery { margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 2rem; }
.location-discovery > p { color: var(--muted); }
.location-discovery-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .75rem; }
.location-discovery-groups > section { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; }
.location-discovery-groups h3 { font-size: 1rem; }
.location-discovery-groups ul { margin: 0; padding-left: 1.1rem; }
[data-location-discovery-group][hidden] { display: none; }

/* Resource rows: text-only items read as a ruled list rather than a card grid */
.resource-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.resource-row { max-width: none; border-bottom: 1px solid var(--rule); }
.resource-row a { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: .25rem 2.5rem; margin-inline: -.75rem; border-radius: var(--radius); padding: 1.1rem .75rem; color: inherit; text-decoration: none; }
.resource-row a:hover { background: var(--recessed); color: inherit; }
.resource-row strong { color: var(--ink-strong); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.resource-row a:hover strong { color: var(--accent); text-decoration: underline; }
.resource-row .resource-type { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.resource-row .resource-summary { max-width: 62ch; color: var(--muted); }

/* Product families as a comparison table */
.product-table-wrap { overflow-x: auto; }
.product-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.product-table caption { padding: 0 0 .75rem; color: var(--muted); font-size: .875rem; font-weight: 400; text-align: left; }
.product-table th, .product-table td { border-bottom: 1px solid var(--rule); padding: .8rem 1rem .8rem 0; text-align: left; vertical-align: top; }
.product-table thead th { border-bottom-color: var(--rule-strong); background: none; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.product-table tbody th { min-width: 0; font-weight: 600; }
.product-table thead th:nth-child(1) { width: 32%; }
.product-table thead th:nth-child(2) { width: 36%; }
.product-table tbody th a { color: var(--accent); }
.product-table tbody th a:hover { color: var(--accent-hover); }
.product-table .reference-kind { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.product-table td.material::first-letter { text-transform: uppercase; }
.product-table .not-listed { color: var(--muted); }
.facet-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.facet-tags li { border: 1px solid var(--rule); border-radius: var(--radius-small); padding: 0 .45rem; color: var(--muted); font-size: .8125rem; }

/* Operating-type line drawings (exterior elevations) */
.type-drawing { flex: 0 0 auto; width: 1.5rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.type-drawing .swing { stroke-dasharray: 2.5 2.25; stroke-width: 1.1; }
.type-drawing .travel { stroke-width: 1.4; }
.type-drawing .glass { stroke-width: 1; opacity: .7; }
.type-drawing-hero { width: clamp(4.5rem, 9vw, 6.5rem); height: auto; aspect-ratio: 40 / 48; color: var(--accent); stroke-width: 1.25; }

/* Image-led story cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem 1.5rem; margin: 0; }
.card { position: relative; display: flex; flex-direction: column; }
.card-copy { display: flex; flex: 1; flex-direction: column; }
.card h3 { margin-top: .35rem; }
.card h3 a { color: var(--ink-strong); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--accent); text-decoration: underline; }
.card p { margin: 0; color: var(--muted); }
.card .eyebrow { margin: 0; font-size: .8125rem; }
.card-visual { margin: 0 0 .9rem; }
.card-visual img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--recessed); }
.card-visual figcaption { margin-top: .45rem; color: var(--muted); font-size: .75rem; }

/* Product explorer */
.explorer-layout { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.product-facets { position: sticky; top: 1rem; }
.product-facets section + section { margin-top: 1.5rem; }
.product-facets h2 { margin-bottom: .4rem; color: var(--muted); font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.product-facets ul { display: grid; width: 100%; gap: .1rem; }
.product-facets li, .facet-reset { width: 100%; }
.product-facets a { display: flex; justify-content: space-between; gap: .8rem; border-radius: var(--radius-small); padding: .35rem .55rem; margin-inline: -.55rem; color: var(--ink); text-decoration: none; }
.product-facets a:hover { background: var(--recessed); color: var(--ink-strong); }
.product-facets a[aria-current="page"] { background: var(--accent-subtle); color: var(--ink-strong); font-weight: 600; }
.product-facets a .facet-label { flex: 1; }
.product-facets a .facet-label::first-letter, .product-results h2::first-letter, .type-list span::first-letter { text-transform: uppercase; }
.product-facets a .facet-count { color: var(--muted); }
.type-facets a { align-items: center; gap: .65rem; padding-block: .4rem; }
.type-facets .type-drawing { color: var(--muted); }
.type-facets a:hover .type-drawing, .type-facets a[aria-current="page"] .type-drawing { color: var(--accent); }
.facet-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.facet-reset { border-bottom: 1px solid var(--rule); padding-bottom: .75rem; margin-bottom: 1rem; }
.product-results { min-width: 0; }
.empty-state { border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 2.5rem); }
.empty-state p { color: var(--muted); }

/* Articles */
.crumbs { margin: 0 0 1rem; color: var(--muted); font-size: .875rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.article-hero { border-bottom: 1px solid var(--rule); padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
/* Product references: the heading and summary on the left, the recorded facts as a ruled list on the right. */
.product-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(16rem, 5fr); align-items: end; gap: 2rem clamp(2rem, 6vw, 5rem); }
.product-facts { margin: 0; border-top: 1px solid var(--rule-strong); }
.product-facts div { display: grid; grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr); gap: .25rem 1rem; border-bottom: 1px solid var(--rule); padding-block: .6rem; }
.product-facts dt { color: var(--muted); font-size: .875rem; }
.product-facts dd { margin: 0; font-size: .9375rem; font-weight: 600; }
.type-list { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.type-list li { display: flex; align-items: center; gap: .5rem; }
.type-list span { display: block; }
.type-list .type-drawing { color: var(--accent); }
.product-facts .not-listed { color: var(--muted); font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 1.5rem 0 0; }
.meta div { display: grid; gap: .05rem; }
.meta dt { color: var(--muted); font-size: .8125rem; }
.meta dd { margin: 0; font-size: .9375rem; font-weight: 600; }
.meta dd::first-letter { text-transform: uppercase; }
.notice { max-width: var(--reading); margin-block: 0 2rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.15rem; background: var(--recessed); }
.notice.warning { border-left-color: var(--limit-ink); background: var(--limit-ground); }
.notice h2 { margin-bottom: .35rem; font-size: 1rem; }
.notice ul { margin: 0; padding-left: 1.15rem; }
.notice li + li { margin-top: .2rem; }
/* Reading measure applies to prose; comparison tables use the full content width. */
.content > :not(.comparison-scroll) { max-width: var(--reading); }
.content > * + * { margin-top: 1.1rem; }
.content > h2 { margin-top: 3.5rem; }
.content > h3 { margin-top: 2rem; }
.content li + li { margin-top: .3rem; }
.content figure { margin: 2rem 0; }
.content img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.content figcaption { margin-top: .5rem; color: var(--muted); font-size: .8125rem; }
.print-note { max-width: var(--reading); border-left: 3px solid var(--rule-strong); padding: .5rem 1rem; color: var(--muted); font-size: .875rem; }
.on-this-page { max-width: var(--reading); margin-block: 0 2.5rem; }
.on-this-page .eyebrow { margin-bottom: .25rem; }
.on-this-page ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 2rem; margin: 0; padding-left: 1.25rem; }
.on-this-page a { font-weight: 600; }
.source-note { border-left: 3px solid var(--rule-strong); padding: .25rem 0 .25rem 1rem; color: var(--muted); font-size: .875rem; }
.source-note p { margin: 0; }
.source-note p + p { margin-top: .35rem; }
/* Official references as cards with a generic document icon; the whole card is the link target. */
.resource-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.resource-link { position: relative; display: flex; align-items: flex-start; gap: .9rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 1rem 1.1rem; }
.resource-link:hover { border-color: var(--accent); background: var(--recessed); }
.resource-link .eyebrow { margin-bottom: .15rem; font-size: .8125rem; }
.resource-link h3 { margin: 0; font-size: 1rem; }
.resource-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.resource-link p { margin: .3rem 0 0; color: var(--muted); }
.resource-icon { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; margin-top: .1rem; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.resource-cards .resource-boundary { grid-column: 1 / -1; margin: .25rem 0 0; color: var(--muted); font-size: .8125rem; }

/* Evidence ledger: known values, then the values that are not established */
.configurations { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.ledger-list { display: grid; gap: 1.5rem; }
.ledger { overflow: hidden; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.ledger h3 { margin: 0; border-bottom: 1px solid var(--rule); padding: .9rem 1.25rem; font-size: 1rem; }
.ledger dl { margin: 0; }
.ledger-known div { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: .25rem 1.5rem; border-bottom: 1px solid var(--rule); padding: .7rem 1.25rem; }
.ledger-known div:last-child { border-bottom: 0; }
.ledger dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.ledger dd { margin: 0; }
/* The summary always names every open attribute; opening it shows the state of each. */
.ledger-limits { border-top: 1px solid var(--rule); background: var(--limit-ground); }
.ledger-limits summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .6rem; padding: .85rem 1.25rem; cursor: pointer; list-style: none; }
.ledger-limits summary::-webkit-details-marker { display: none; }
.ledger-limits summary::before { content: ""; grid-row: 1 / span 2; width: .45rem; height: .45rem; margin: .45rem .1rem 0; border-right: 1.5px solid var(--limit-ink); border-bottom: 1.5px solid var(--limit-ink); transform: rotate(-45deg); transition: transform .15s ease; }
.ledger-limits[open] summary::before { transform: rotate(45deg); }
.ledger-limits summary:focus-visible { outline-offset: -2px; }
.ledger-limits-label { color: var(--limit-ink); font-size: .875rem; font-weight: 600; }
.ledger-limits-names { grid-column: 2; color: var(--ink); font-size: .875rem; }
.ledger-limits[open] .ledger-limits-names { display: none; }
.ledger-limits dl { padding: 0 1.25rem 1rem; }
.ledger-limits dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .35rem 1.5rem; }
.ledger-limits div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; border-bottom: 1px solid color-mix(in srgb, var(--limit-ink) 22%, transparent); padding-block: .25rem; }
.ledger-limits dt { color: var(--ink); font-weight: 400; }
.value-state { display: inline-block; color: var(--muted); font-size: .875rem; }
.value-state::first-letter { text-transform: uppercase; }
.ledger-limits .value-state { color: var(--limit-ink); font-weight: 600; }

/* Sources and continuation */
.sources { margin-top: clamp(3.5rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); padding-top: 2rem; }
.sources > p:not(.eyebrow) { color: var(--muted); }
.sources ul { padding-left: 1.15rem; }
.sources li + li { margin-top: .5rem; }
.sources .accessed { color: var(--muted); font-size: .875rem; }
.next-actions { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); padding-top: 2rem; }
.next-actions ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.next-actions li { position: relative; display: flex; flex-direction: column; gap: .15rem; max-width: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: .85rem 1rem; }
.next-actions li:hover { background: var(--recessed); }
.next-actions li span { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.next-actions li span::first-letter { text-transform: uppercase; }
.next-actions a { font-weight: 600; }
.next-actions a::after { content: ""; position: absolute; inset: 0; }

/* Comparison tables inside articles */
.comparison-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.comparison-scroll table { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: .9375rem; }
.comparison-scroll caption { padding: .9rem 1rem; text-align: left; font-weight: 600; }
.comparison-scroll th, .comparison-scroll td { border-top: 1px solid var(--rule); padding: .75rem 1rem; text-align: left; vertical-align: top; }
.comparison-scroll thead th { background: var(--recessed); color: var(--muted); font-size: .8125rem; font-weight: 600; }
.comparison-scroll tbody th, .comparison-scroll thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: inset -1px 0 0 var(--rule); }
.comparison-scroll tbody th { background: var(--canvas); }
.comparison-scroll thead th:first-child { width: 14rem; }
.comparison-scroll tbody th { min-width: 12rem; font-weight: 600; }

.journey { max-width: var(--reading); margin: 2rem 0; }
.journey-stage { position: relative; margin-left: .9rem; border-left: 2px solid var(--rule); padding: 0 0 2.5rem 2rem; }
.journey-stage:last-child { padding-bottom: .25rem; }
.journey-stage h2 { margin: 0 0 .8rem; font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.journey-number { position: absolute; left: -.9rem; top: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .875rem; font-weight: 700; }

.unavailable { min-height: 50vh; }
.unavailable-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.unavailable-links a { font-weight: 600; }

.site-footer { border-top: 1px solid var(--rule); background: var(--recessed); color: var(--muted); font-size: .875rem; }
.publication-boundary { border-bottom: 1px solid var(--rule); padding-block: 1.75rem; }
.publication-boundary h2 { margin-bottom: .35rem; color: var(--ink); font-size: .9375rem; letter-spacing: 0; }
.publication-boundary p { margin: .3rem 0 0; }
.publication-boundary .publication-scope strong { color: var(--ink); font-weight: 600; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; }
.footer-inner p { margin: 0; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }

@media (max-width: 52rem) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-top: .9rem; }
  .site-header nav { align-items: stretch; flex-direction: column; width: 100%; }
  .site-header nav > ul { width: 100%; flex-wrap: wrap; gap: 0 1.25rem; }
  .site-nav__utilities { margin-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .site-header nav a { padding-block: .7rem calc(.7rem - 2px); }
  .product-navigation summary, .planning-navigation summary, .location-navigation summary { padding-block: .7rem calc(.7rem - 2px); }
  .product-nav-item:has(details[open]), .planning-nav-item:has(details[open]), .location-nav-item:has(details[open]) { width: 100%; }
  .product-menu { position: static; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; margin-bottom: .75rem; box-shadow: none; }
  .planning-menu, .location-menu { position: static; width: 100%; margin-bottom: .75rem; box-shadow: none; }
  .product-category-sidebar { border-right: 0; border-bottom: 1px solid var(--rule); padding: 0 0 .75rem; }
  .product-category-list { flex-direction: row; overflow-x: auto; padding: .2rem; }
  .product-category-list button { flex: 0 0 auto; width: auto; }
  .product-category-list button > span:last-child { display: none; }
  .product-panel-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .product-panel-heading h2 { font-size: 1.5rem; }
  .product-panel-content { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .product-category-panel { min-height: 0; }
  .site-header .product-menu-types ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header .product-menu-brands ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-menu-footer { align-items: flex-start; flex-direction: column; }
  .product-menu-footer > span { min-width: 0; }
  .home-hero, .home-hero-band .hero-copy, .product-hero { grid-template-columns: 1fr; }
  .home-hero-band .home-story-visual img { aspect-ratio: 3 / 2; }
  .location-bar > div { align-items: stretch; flex-direction: column; }
  .location-bar .location-search { grid-template-columns: 1fr; margin-left: 0; }
  .location-bar .location-search > p { grid-column: 1; }
  .window-illustration { max-width: 14rem; justify-self: start; }
  .local-entry { align-items: start; flex-direction: column; }
  .resource-row a { grid-template-columns: 1fr; }
  .explorer-layout { grid-template-columns: 1fr; }
  .product-facets { position: static; }
  .product-facets ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.25rem; }
  .on-this-page ol { grid-template-columns: 1fr; }
  .ledger-known div { grid-template-columns: 1fr; gap: 0; }
  .product-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .product-table, .product-table tbody, .product-table tr, .product-table th, .product-table td { display: block; }
  .product-table caption { display: block; }
  .product-table tbody tr { border-bottom: 1px solid var(--rule); padding-block: .85rem; }
  .product-table tbody th, .product-table tbody td { border: 0; padding: 0; }
  .product-table tbody td { margin-top: .3rem; }
}

@media (max-width: 42rem) {
  .header-inner { width: min(calc(100% - 1.25rem), var(--max)); }
  .site-header nav > ul { gap: 0 .85rem; }
  .site-nav__primary > li, .site-nav__utilities > li { min-width: 0; }
  .site-header nav a, .product-navigation summary, .planning-navigation summary, .location-navigation summary { font-size: .875rem; }
  .location-navigation__summary [data-location-current] { max-width: 7rem; }
  .product-menu { padding: .85rem; }
  .site-header .product-menu-types ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .product-menu-brands ul { grid-template-columns: minmax(0, 1fr); }
  .location-menu form > div { align-items: stretch; flex-direction: column; }
  .comparison-scroll { border: 0; overflow: visible; }
  .comparison-scroll table, .comparison-scroll thead, .comparison-scroll tbody, .comparison-scroll tr, .comparison-scroll th, .comparison-scroll td { display: block; min-width: 0; }
  .comparison-scroll caption { padding-inline: 0; }
  .comparison-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .comparison-scroll tbody tr { margin-bottom: 1rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
  .comparison-scroll tbody th { position: static; border-top: 0; background: var(--recessed); box-shadow: none; }
  .comparison-scroll td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  :root { --ink: #000; --ink-strong: #000; --muted: #333; --canvas: #fff; --recessed: #fff; --rule: #777; --rule-strong: #777; --accent: #000; --accent-subtle: #fff; --limit-ink: #000; --limit-ground: #fff; }
  body { min-width: 0; font-size: 10.5pt; }
  .skip-link, .site-header, .location-bar, .location-search, .on-this-page, .next-actions, .quick-start, .local-entry, .window-illustration, .home-story-visual { display: none !important; }
  main { width: 100%; padding-block: 0; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; break-after: avoid; }
  .article-hero { margin-bottom: 1rem; padding-bottom: 1rem; }
  .notice, .print-note, .source-note, .publication-boundary { border: 1px solid #777; background: #fff; }
  .ledger-limits::details-content { content-visibility: visible; }
  .ledger-limits summary::before, .ledger-limits-names { display: none; }
  .content-checklist ul { padding-left: 1.6rem; list-style: none; }
  .content-checklist ul > li { position: relative; break-inside: avoid; margin-block: .45rem; }
  .content-checklist ul > li::before { content: "\2610"; position: absolute; left: -1.4rem; }
  .sources, .publication-boundary, .ledger { break-inside: avoid; }
  .resource-link, .card { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; font-weight: 400; overflow-wrap: anywhere; }
  .site-footer { margin-top: 1.5rem; }
  .footer-inner { padding-block: 1rem; }
}
