/* Trendsly launch design system — dependency-free and shared across public pages. */
:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-deep: #eeebe2;
  --surface: #fffdfa;
  --ink: #181a17;
  --ink-soft: #5f625c;
  --line: #d8d6ce;
  --line-dark: #a9aaa3;
  --red: #e84a2a;
  --red-dark: #b92d17;
  --red-soft: #fce8e1;
  --green: #205d43;
  --green-soft: #e4efe8;
  --gold-soft: #f5edcf;
  --shadow-sm: 0 1px 2px rgba(24, 26, 23, .06), 0 5px 20px rgba(24, 26, 23, .04);
  --shadow-lg: 0 24px 80px rgba(24, 26, 23, .18);
  --radius-sm: .55rem;
  --radius: 1rem;
  --radius-lg: 1.6rem;
  --container: 90rem;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(232, 74, 42, .42); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 30;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .15rem .75rem;
  min-height: 4.5rem;
  padding: .55rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(216, 214, 206, .75);
  background: rgba(247, 245, 239, .92);
  backdrop-filter: blur(16px);
}
.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .36rem;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -.045em;
  text-decoration: none;
}
.wordmark small { color: var(--red); font-size: .55rem; font-weight: 800; letter-spacing: .18em; }
.maple-icon,
.maple-particle {
  display: inline-block;
  background: url("/images/maple-leaf-public-domain.svg") center / contain no-repeat;
}
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .maple-icon,
  .maple-particle {
    background: currentColor;
    -webkit-mask-image: url("/images/maple-leaf-public-domain.svg"), url("/images/maple-leaf-public-domain.svg");
    -webkit-mask-position: center, center;
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-size: contain, 76% 76%;
    -webkit-mask-composite: xor;
    mask-image: url("/images/maple-leaf-public-domain.svg"), url("/images/maple-leaf-public-domain.svg");
    mask-position: center, center;
    mask-repeat: no-repeat, no-repeat;
    mask-size: contain, 76% 76%;
    mask-composite: exclude;
  }
}
.wordmark-leaf { width: 1.55rem; height: 1.55rem; flex: 0 0 auto; color: var(--red); }
.site-nav {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  order: 2;
  gap: .25rem;
  padding-bottom: .15rem;
  overflow-x: visible;
  scrollbar-width: none;
  scroll-snap-type: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav > a {
  display: inline-flex;
  min-height: 2.75rem;
  max-width: 100%;
  flex: 0 0 auto;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
}
.site-nav > a:hover { background: var(--surface); color: var(--red-dark); }
.site-nav > a[aria-current="page"] { background: var(--red-soft); color: var(--red-dark); }
.site-nav > a:focus-visible { outline-offset: -2px; }
.site-nav > .language-switch {
  position: absolute;
  top: .55rem;
  right: clamp(1rem, 4vw, 4rem);
}
.language-switch {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}
.language-switch:hover { border-color: var(--ink-soft); color: var(--red-dark); }
.language-switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.saved-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  gap: .45rem;
  padding: .45rem .55rem .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  flex: 0 0 auto;
  font-size: .86rem;
  font-weight: 700;
  scroll-snap-align: start;
}
.saved-button:hover { border-color: var(--ink); }
.count-badge {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--red-dark);
  color: #fff;
  font-size: .7rem;
}

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.4rem, 8vw, 7.5rem) 1rem 2rem; }
.hero::before {
  position: absolute;
  z-index: -1;
  top: 6rem;
  left: 50%;
  width: min(70rem, 95vw);
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 74, 42, .10), transparent 65%);
  content: "";
  transform: translateX(-50%);
}
.hero-copy,
.search-card,
.trust-row { position: relative; z-index: 1; }
.hero-copy { max-width: 58rem; margin: 0 auto clamp(1.8rem, 4vw, 3rem); text-align: center; }
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--red-dark);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow > span { margin-right: .35rem; font-size: .55rem; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: .38rem; }
.eyebrow-leaf { width: 1.42rem; height: 1.42rem; flex: 0 0 auto; color: var(--red-dark); }

.maple-drift {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.maple-particle {
  --drift-x: clamp(16rem, 32vw, 32rem);
  --drift-y: -10rem;
  --duration: 68s;
  --rotation: 125deg;
  position: absolute;
  top: clamp(4.2rem, 8vw, 7.7rem);
  left: calc(50% - 3rem);
  width: 5.2rem;
  height: 5.2rem;
  color: var(--red);
  opacity: 0;
  animation: maple-dissolve var(--duration) cubic-bezier(.22, .7, .25, 1) infinite;
  will-change: transform, opacity;
}
.maple-particle:nth-child(2) { --drift-x: clamp(19rem, 39vw, 39rem); --drift-y: -13rem; --duration: 74s; --rotation: -145deg; left: calc(50% + 2rem); width: 4.4rem; height: 4.4rem; animation-delay: -3s; }
.maple-particle:nth-child(3) { --drift-x: clamp(14rem, 28vw, 28rem); --drift-y: -7rem; --duration: 61s; --rotation: 185deg; left: calc(50% + 5rem); width: 3.7rem; height: 3.7rem; animation-delay: -6s; }
.maple-particle:nth-child(4) { --drift-x: clamp(22rem, 44vw, 44rem); --drift-y: -15rem; --duration: 79s; --rotation: 230deg; left: calc(50% - 6rem); width: 6.5rem; height: 6.5rem; animation-delay: -9s; }
.maple-particle:nth-child(5) { --drift-x: clamp(17rem, 34vw, 34rem); --drift-y: -6rem; --duration: 65s; --rotation: -210deg; left: calc(50% + 7rem); width: 3.2rem; height: 3.2rem; animation-delay: -12s; }
.maple-particle:nth-child(6) { --drift-x: clamp(22rem, 46vw, 46rem); --drift-y: -11rem; --duration: 82s; --rotation: 275deg; left: calc(50% - 8rem); width: 5.4rem; height: 5.4rem; animation-delay: -15s; }
.maple-particle:nth-child(7) { --drift-x: clamp(15rem, 31vw, 31rem); --drift-y: -16rem; --duration: 70s; --rotation: -260deg; left: calc(50% + 1rem); width: 3.6rem; height: 3.6rem; animation-delay: -18s; }
.maple-particle:nth-child(8) { --drift-x: clamp(20rem, 40vw, 40rem); --drift-y: -8rem; --duration: 76s; --rotation: 320deg; left: calc(50% - 3rem); width: 4.7rem; height: 4.7rem; animation-delay: -21s; }
.maple-particle:nth-child(9) { --drift-x: clamp(18rem, 36vw, 36rem); --drift-y: -12rem; --duration: 66s; --rotation: -180deg; left: calc(50% - 5rem); width: 6.1rem; height: 6.1rem; animation-delay: -24s; }
.maple-particle:nth-child(10) { --drift-x: clamp(22rem, 43vw, 43rem); --drift-y: -7rem; --duration: 72s; --rotation: 240deg; left: calc(50% + 8rem); width: 3.8rem; height: 3.8rem; animation-delay: -27s; }
.maple-particle:nth-child(11) { --drift-x: clamp(17rem, 35vw, 35rem); --drift-y: -14rem; --duration: 69s; --rotation: -290deg; left: calc(50% - 1rem); width: 5.5rem; height: 5.5rem; animation-delay: -30s; }
.maple-particle:nth-child(12) { --drift-x: clamp(21rem, 45vw, 45rem); --drift-y: -9rem; --duration: 80s; --rotation: 170deg; left: calc(50% + 4rem); width: 3.4rem; height: 3.4rem; animation-delay: -33s; }
.maple-particle:nth-child(13) { --drift-x: clamp(15rem, 30vw, 30rem); --drift-y: -10rem; --duration: 63s; --rotation: -225deg; left: calc(50% - 7rem); width: 4.8rem; height: 4.8rem; animation-delay: -36s; }
.maple-particle:nth-child(14) { --drift-x: clamp(23rem, 47vw, 47rem); --drift-y: -16rem; --duration: 84s; --rotation: 300deg; left: calc(50% + 6rem); width: 7.1rem; height: 7.1rem; animation-delay: -39s; }
.maple-particle:nth-child(15) { --drift-x: clamp(18rem, 38vw, 38rem); --drift-y: -7rem; --duration: 73s; --rotation: -160deg; left: calc(50% - 4rem); width: 4rem; height: 4rem; animation-delay: -42s; }
.maple-particle:nth-child(16) { --drift-x: clamp(20rem, 42vw, 42rem); --drift-y: -13rem; --duration: 67s; --rotation: 215deg; left: calc(50% + .5rem); width: 5.9rem; height: 5.9rem; animation-delay: -45s; }
.maple-particle:nth-child(17) { --drift-x: clamp(16rem, 33vw, 33rem); --drift-y: -8rem; --duration: 78s; --rotation: -330deg; left: calc(50% + 3rem); width: 4.2rem; height: 4.2rem; animation-delay: -48s; }
.maple-particle:nth-child(18) { --drift-x: clamp(22rem, 45vw, 45rem); --drift-y: -15rem; --duration: 83s; --rotation: 260deg; left: calc(50% - 2rem); width: 5.2rem; height: 5.2rem; animation-delay: -51s; }
.maple-particle:nth-child(19) { --drift-x: clamp(20rem, 41vw, 41rem); --drift-y: -10rem; --duration: 71s; --rotation: -205deg; left: calc(50% - 9rem); width: 6.8rem; height: 6.8rem; animation-delay: -54s; }
.maple-particle:nth-child(20) { --drift-x: clamp(15rem, 32vw, 32rem); --drift-y: -14rem; --duration: 77s; --rotation: 190deg; left: calc(50% + 9rem); width: 3.5rem; height: 3.5rem; animation-delay: -57s; }
.maple-particle:nth-child(21) { --drift-x: clamp(24rem, 48vw, 48rem); --drift-y: -8rem; --duration: 86s; --rotation: -280deg; left: calc(50% - 5rem); width: 5.7rem; height: 5.7rem; animation-delay: -60s; }
.maple-particle:nth-child(22) { --drift-x: clamp(17rem, 37vw, 37rem); --drift-y: -17rem; --duration: 75s; --rotation: 340deg; left: calc(50% + 5rem); width: 4.5rem; height: 4.5rem; animation-delay: -63s; }
.maple-particle:nth-child(23) { --drift-x: clamp(21rem, 43vw, 43rem); --drift-y: -11rem; --duration: 81s; --rotation: -175deg; left: calc(50% - 1rem); width: 6.3rem; height: 6.3rem; animation-delay: -66s; }
.maple-particle:nth-child(24) { --drift-x: clamp(18rem, 39vw, 39rem); --drift-y: -6rem; --duration: 64s; --rotation: 225deg; left: calc(50% + 7rem); width: 3.9rem; height: 3.9rem; animation-delay: -69s; }

@keyframes maple-dissolve {
  0%, 7% { opacity: 0; transform: translate3d(0, .75rem, 0) scale(.92) rotate(-14deg); }
  18% { opacity: .22; }
  58% { opacity: .15; }
  84% { opacity: .05; }
  100% { opacity: 0; transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(.68) rotate(var(--rotation)); }
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 16ch; margin: 0 auto .9rem; font-size: clamp(2.75rem, 8vw, 6.8rem); line-height: .92; }
.hero-lede { max-width: 42rem; margin: 0 auto; color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.22rem); }

.search-card {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 250, .96);
  box-shadow: 0 18px 60px rgba(63, 49, 35, .09);
}
.field-label { display: block; margin: 0 0 .5rem .1rem; font-size: .77rem; font-weight: 750; }
.search-row { display: grid; gap: .65rem; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; top: 50%; left: 1rem; width: 1.25rem; transform: translateY(-50%); }
.search-input-wrap input {
  width: 100%;
  min-height: 3.6rem;
  padding: .8rem 1rem .8rem 3rem;
  border: 1px solid var(--line-dark);
  border-radius: .8rem;
  background: #fff;
  color: var(--ink);
}
.search-input-wrap input::placeholder { color: #868880; }
.search-input-wrap input:focus { border-color: var(--red); outline: 3px solid rgba(232, 74, 42, .13); }
.primary-button, .secondary-button, .text-button, .icon-button {
  border: 0;
  border-radius: .75rem;
  font-weight: 750;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .75rem 1.25rem;
  background: var(--red-dark);
  color: #fff;
}
.primary-button:hover { background: var(--red-dark); }
.search-button { min-height: 3.6rem; gap: .35rem; }
.search-button svg { width: 1.2rem; }
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  gap: .5rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.secondary-button:hover { border-color: var(--ink); }
.secondary-button svg { width: 1.1rem; }
.text-button { min-height: 2.75rem; padding: .5rem .3rem; background: transparent; color: var(--red-dark); }
.text-button:hover { text-decoration: underline; }
.danger-text-button { color: #8f2011; }
.icon-button { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; place-items: center; background: transparent; color: var(--ink); }
.icon-button:hover { background: var(--paper-deep); }
.icon-button svg { width: 1.2rem; }

.image-drop {
  position: relative;
  margin-top: .75rem;
  border: 1px dashed var(--line-dark);
  border-radius: .8rem;
  transition: border .2s, background .2s;
}
.image-drop.is-dragging { border-color: var(--red); background: var(--red-soft); }
.image-drop > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.image-drop > input:focus-visible + .image-drop-label {
  border-radius: .8rem;
  outline: 3px solid rgba(185, 45, 23, .52);
  outline-offset: 3px;
}
.image-drop-label { display: flex; min-height: 4.4rem; align-items: center; gap: .85rem; padding: .65rem .8rem; cursor: pointer; }
.image-drop-label > span:last-child, .image-preview > div { min-width: 0; }
.image-drop-label strong, .image-drop-label small, .image-preview strong, .image-preview small { display: block; }
.image-drop-label strong, .image-preview strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.image-drop-label small, .image-preview small { margin-top: .1rem; color: var(--ink-soft); font-size: .69rem; }
.upload-icon { display: grid; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; place-items: center; border-radius: .65rem; background: var(--red-soft); color: var(--red-dark); }
.upload-icon svg { width: 1.25rem; }
.image-preview { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; min-height: 4.4rem; align-items: center; gap: .75rem; padding: .45rem; }
.image-preview img { width: 3.5rem; height: 3.5rem; border-radius: .55rem; object-fit: cover; }

.outfit-picker { margin-top: .9rem; padding: clamp(.8rem, 2vw, 1.2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.outfit-picker-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .5rem 1rem; }
.outfit-picker-heading h2 { margin: .15rem 0; font-family: var(--display); font-size: clamp(1.15rem, 3vw, 1.55rem); }
.outfit-picker-heading > div > p:last-child, .manual-crop-help { color: var(--ink-soft); font-size: .78rem; }
.outfit-status { min-height: 1.4rem; color: var(--red-dark); font-size: .75rem; font-weight: 750; }
.outfit-picker-layout { display: grid; gap: 1rem; margin-top: .9rem; }
.outfit-stage, .manual-crop-stage { position: relative; width: fit-content; max-width: 100%; align-self: start; overflow: hidden; border-radius: .85rem; background: var(--paper-deep); line-height: 0; }
.outfit-stage img, .manual-crop-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: 32rem; }
.outfit-overlays { position: absolute; inset: 0; pointer-events: none; }
.outfit-overlay { position: absolute; display: grid; place-items: start; padding: 0; overflow: visible; border: 0; background: transparent; color: inherit; pointer-events: auto; cursor: pointer; }
.outfit-overlay-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 1px rgba(255,255,255,.95)); }
.outfit-overlay-shape path { fill: color-mix(in srgb, var(--red-soft) 34%, transparent); stroke: var(--red); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.outfit-overlay:hover .outfit-overlay-shape path { fill: color-mix(in srgb, var(--red-soft) 52%, transparent); }
.outfit-overlay.is-selected .outfit-overlay-shape path { fill: color-mix(in srgb, var(--red-soft) 62%, transparent); stroke-width: 3.25; filter: drop-shadow(0 0 2px rgba(255,255,255,.95)); }
.outfit-overlay.is-active .outfit-overlay-shape path { stroke: var(--focus); stroke-width: 4; filter: drop-shadow(0 0 1px white) drop-shadow(0 0 3px var(--focus)); }
.outfit-overlay span { position: relative; z-index: 1; display: grid; min-width: 1.55rem; min-height: 1.55rem; place-items: center; border-radius: 50%; background: var(--red); box-shadow: 0 1px 4px rgba(20,18,15,.24); color: white; font-size: .72rem; font-weight: 850; line-height: 1; }
.outfit-overlay:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.outfit-selection { display: grid; align-content: start; gap: .8rem; }
.outfit-multi-toggle { display: grid; min-height: 3.2rem; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); cursor: pointer; }
.outfit-multi-toggle:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.outfit-multi-toggle input { width: 2.15rem; height: 1.25rem; accent-color: var(--red); }
.outfit-multi-toggle strong, .outfit-multi-toggle small { display: block; }
.outfit-multi-toggle strong { font-size: .76rem; }
.outfit-multi-toggle small { margin-top: .1rem; color: var(--ink-soft); font-size: .65rem; line-height: 1.35; }
.outfit-selection fieldset { min-width: 0; padding: 0; border: 0; }
.outfit-selection legend { margin-bottom: .45rem; font-size: .78rem; font-weight: 850; }
.outfit-region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.outfit-region-option { position: relative; display: grid; min-height: 3.2rem; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; padding: .6rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); cursor: pointer; }
.outfit-region-option:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.outfit-region-option.is-active { outline: 2px solid var(--focus); outline-offset: 2px; }
.outfit-region-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--red); }
.outfit-region-option strong, .outfit-region-option small { display: block; }
.outfit-region-option small { color: var(--ink-soft); font-size: .65rem; }
.outfit-target-field { display: grid; gap: .3rem; }
.outfit-target-field label { font-size: .72rem; font-weight: 800; }
.outfit-target-field select, .manual-crop-controls select { min-height: 2.8rem; padding: .55rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.outfit-actions { display: grid; gap: .45rem; }
.outfit-actions button, .manual-crop-actions button { min-height: 2.75rem; }
.manual-crop-dialog { width: min(42rem, calc(100vw - 1rem)); max-height: calc(100dvh - 1rem); padding: 0; overflow: auto; border: 0; border-radius: 1rem; background: var(--paper); color: var(--ink); }
.manual-crop-help { padding: .8rem 1rem 0; }
.manual-crop-stage { max-width: calc(100% - 2rem); margin: .8rem 1rem; }
#manual-crop-box { position: absolute; box-sizing: border-box; border: 3px solid var(--red); border-radius: .35rem; box-shadow: 0 0 0 100vmax rgba(20,18,15,.45); cursor: move; touch-action: none; }
#manual-crop-box:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.manual-crop-handle { position: absolute; z-index: 1; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; touch-action: none; }
.manual-crop-handle::after { position: absolute; width: .8rem; height: .8rem; border: 2px solid var(--red); border-radius: 50%; background: var(--surface); content: ""; }
.manual-crop-handle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: .45rem; }
.manual-crop-handle.is-nw { top: 0; left: 0; cursor: nwse-resize; }
.manual-crop-handle.is-nw::after { top: -.05rem; left: -.05rem; }
.manual-crop-handle.is-ne { top: 0; right: 0; cursor: nesw-resize; }
.manual-crop-handle.is-ne::after { top: -.05rem; right: -.05rem; }
.manual-crop-handle.is-se { right: 0; bottom: 0; cursor: nwse-resize; }
.manual-crop-handle.is-se::after { right: -.05rem; bottom: -.05rem; }
.manual-crop-handle.is-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.manual-crop-handle.is-sw::after { bottom: -.05rem; left: -.05rem; }
.manual-crop-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: 0 1rem 1rem; }
.manual-crop-controls label { display: grid; gap: .25rem; font-size: .7rem; font-weight: 750; }
.manual-crop-controls input[type="range"] { width: 100%; accent-color: var(--red); }
.manual-crop-controls select { grid-column: 1 / -1; }
.manual-crop-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .5rem; padding: .85rem 1rem 1rem; border-top: 1px solid var(--line); }

@media (min-width: 52rem) {
  .outfit-picker-layout { grid-template-columns: minmax(0, 1.2fr) minmax(17rem, .8fr); }
}

@media (prefers-reduced-motion: reduce) {
  .outfit-picker *, .manual-crop-dialog * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .outfit-picker,
  .outfit-multi-toggle,
  .outfit-region-option,
  .manual-crop-dialog { border: 1px solid CanvasText; background: Canvas; color: CanvasText; forced-color-adjust: auto; }
  #manual-crop-box { border-color: Highlight; background: transparent; box-shadow: none; }
  .outfit-overlay-shape path { fill: transparent; stroke: Highlight; }
  .outfit-overlay.is-selected .outfit-overlay-shape path,
  .outfit-overlay.is-active .outfit-overlay-shape path,
  .outfit-region-option:has(input:checked) { outline: 3px solid Highlight; outline-offset: 2px; box-shadow: none; }
  .outfit-overlay span { background: Highlight; color: HighlightText; }
  .manual-crop-handle::after { border-color: Highlight; background: Canvas; }
  .outfit-overlay:focus-visible,
  #manual-crop-box:focus-visible,
  .manual-crop-handle:focus-visible { outline-color: Highlight; }
}
.query-examples { display: flex; align-items: center; gap: .45rem; margin-top: .85rem; overflow-x: auto; scrollbar-width: none; }
.query-examples::-webkit-scrollbar { display: none; }
.query-examples > span { flex: 0 0 auto; color: var(--ink-soft); font-size: .71rem; font-weight: 700; text-transform: uppercase; }
.query-chip { min-height: 2.75rem; flex: 0 0 auto; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .75rem; }
.query-chip:hover { border-color: var(--red); background: var(--red-soft); }
.search-note { margin: .9rem 0 0; color: var(--ink-soft); font-size: .66rem; line-height: 1.45; text-align: center; }

.trust-row { display: grid; max-width: 62rem; margin: 1.5rem auto 0; padding: 0; list-style: none; }
.trust-row li { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: auto auto; padding: .8rem; border-top: 1px solid var(--line); }
.trust-row li > span { grid-row: 1 / 3; color: var(--red); font-size: 1.3rem; }
.trust-row strong { font-size: .79rem; }
.trust-row small { color: var(--ink-soft); font-size: .68rem; }

.results-section { max-width: var(--container); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 1rem; }
.results-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
.results-heading h2, .how-it-works h2 { margin: 0 0 .4rem; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1; }
.results-summary { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.filters-panel {
  margin: 1rem 0 1.5rem;
  /* Clip rounded contents without creating the scroll container that breaks
     the sticky mobile section nav. */
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.filters-panel-header { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.filters-panel-header > div { display: flex; align-items: center; gap: .5rem; font-size: .74rem; }
.filters-panel-header strong { white-space: nowrap; }
.filters-panel-header img { width: 1rem; height: 1rem; }
.filters-panel-header .text-button { min-height: 2.75rem; padding-inline: .4rem; color: var(--red-dark); }
.refine-layout { min-width: 0; }
.refine-nav { position: sticky; z-index: 3; top: 0; display: flex; gap: .2rem; padding: .45rem .55rem; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(255, 253, 250, .96); scrollbar-width: none; }
.refine-nav::-webkit-scrollbar { display: none; }
.refine-nav a { display: inline-flex; min-height: 2.75rem; flex: 0 0 auto; align-items: center; padding: .55rem .75rem; border-radius: .55rem; color: var(--ink-soft); font-size: .7rem; font-weight: 750; text-decoration: none; }
.refine-nav a.is-active { background: var(--red-soft); color: var(--ink); box-shadow: inset 3px 0 var(--red); }
.refine-content { min-width: 0; }
.filter-section { position: relative; padding: 1rem; scroll-margin-top: 5rem; }
.filter-section + .filter-section { border-top: 1px solid var(--line); }
.refine-pulse-target.is-refine-target { position: relative; z-index: 1; animation: refine-target-pulse 1s ease-out both; }
@keyframes refine-target-pulse {
  0% { border-color: rgba(185, 45, 23, 1); background-color: rgba(185, 45, 23, .1); box-shadow: 0 0 0 4px rgba(185, 45, 23, .22), inset 0 0 0 1px rgba(185, 45, 23, .95); }
  38% { border-color: rgba(185, 45, 23, .8); background-color: rgba(185, 45, 23, .06); box-shadow: 0 0 0 2px rgba(185, 45, 23, .14), inset 0 0 0 1px rgba(185, 45, 23, .62); }
  100% { border-color: var(--line-dark); background-color: transparent; box-shadow: 0 0 0 0 rgba(185, 45, 23, 0), inset 0 0 0 1px rgba(185, 45, 23, 0); }
}
.category-picker { display: grid; grid-template-columns: repeat(5, minmax(5.3rem, 1fr)); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.category-picker button { position: relative; display: grid; min-height: 4.3rem; min-width: 5.3rem; grid-template-columns: 1.6rem minmax(0, auto); align-items: center; justify-content: center; gap: .45rem; padding: .55rem .35rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-soft); font-size: .68rem; line-height: 1.15; }
.category-picker button:hover { background: var(--paper); color: var(--ink); }
.category-picker button[aria-pressed="true"] { border-color: var(--red); color: var(--ink); }
.category-picker button[aria-pressed="true"]::after { position: absolute; right: 25%; bottom: -1px; left: 25%; height: 2px; background: var(--red); content: ""; }
.category-picker img { width: 1.55rem; height: 1.55rem; opacity: .74; }
.category-picker button[aria-pressed="true"] img { opacity: 1; }
.fit-builder { display: grid; gap: 1.15rem; padding-top: 1rem; }
.fit-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; }
.fit-control-group, .fit-size-group { display: grid; align-content: start; gap: .45rem; }
.fit-size-group { grid-column: 1 / -1; }
.filter-label, .filter-field label { font-size: .7rem; font-weight: 800; }
.segmented-control { display: inline-flex; max-width: 100%; overflow-x: auto; border: 1px solid var(--line-dark); border-radius: .55rem; background: #fff; scrollbar-width: none; }
.segmented-control::-webkit-scrollbar { display: none; }
.segmented-control button { min-height: 2.75rem; flex: 1 0 auto; padding: .5rem .8rem; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); font-size: .7rem; white-space: nowrap; }
.segmented-control button:first-child { border-left: 0; }
.segmented-control button[aria-pressed="true"] { position: relative; z-index: 1; outline: 1px solid var(--red); outline-offset: -1px; border-radius: .48rem; color: var(--red-dark); }
.size-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.size-options:empty { display: none; }
.size-option { min-width: 3.1rem; min-height: 2.75rem; padding: .45rem .65rem; border: 1px solid var(--line-dark); border-radius: .5rem; background: #fff; color: var(--ink); font-size: .7rem; }
.size-option[aria-pressed="true"] { border-color: var(--red); color: var(--red-dark); box-shadow: 0 0 0 1px var(--red); }
#size-help { margin: 0; color: var(--ink-soft); font-size: .64rem; }
.selected-fit { display: grid; min-height: 5rem; align-content: start; gap: .6rem; padding: .85rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.selected-fit > strong { font-size: .72rem; }
#selected-fit-summary { display: grid; gap: .2rem; color: var(--ink-soft); font-size: .68rem; line-height: 1.4; }
.selected-fit .text-button { justify-self: start; min-height: 2.75rem; padding: 0; color: var(--red-dark); font-size: .68rem; }
.filter-essentials-section { display: grid; gap: .9rem; }
.filter-origin-section { display: grid; }
.filter-field { display: flex; flex-direction: column; gap: .35rem; }
.filter-field select,
.filter-field input[type="text"] { min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .55rem; background: #fff; color: var(--ink); }
.filter-field > small { color: var(--ink-soft); font-size: .64rem; line-height: 1.35; }
.price-filter label { display: flex; justify-content: space-between; }
.price-filter input { width: 100%; accent-color: var(--red); }
.filter-availability-section { padding-block: 0; }
.check-field { display: grid; min-height: 4rem; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-field:last-child { border-bottom: 0; }
.check-field input { width: 2.15rem; height: 1.25rem; accent-color: var(--green); }
.check-field span, .check-field strong, .check-field small { display: block; }
.check-field strong { font-size: .75rem; }
.check-field small { color: var(--ink-soft); font-size: .66rem; }
.filter-status-icon { display: grid !important; width: 1.8rem; height: 1.8rem; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--ink-soft); font-size: .7rem; font-weight: 850; }
.filter-status-icon.verified { border-color: #a5c6ae; color: var(--green); }
.filter-status-icon img { width: 1rem; height: 1rem; opacity: .75; }
.filter-status-icon.verified img { opacity: 1; }
.check-field.is-locked { cursor: default; }
.search-feedback { min-height: 1.5rem; color: var(--ink-soft); font-size: .78rem; }
.search-context-summary { display: grid; gap: .55rem; margin: 0 0 .8rem; padding: .7rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); }
.selected-search-context, .query-understanding { display: grid; min-width: 0; align-items: center; gap: .65rem; }
.selected-search-context { grid-template-columns: 3.25rem minmax(0, 1fr) auto; }
.selected-search-context img { width: 3.25rem; height: 3.25rem; border-radius: .55rem; background: var(--paper-deep); object-fit: cover; }
.selected-search-context small, .selected-search-context strong { display: block; }
.selected-search-context small { color: var(--ink-soft); font-size: .64rem; }
.selected-search-context strong { margin-top: .08rem; font-size: .78rem; }
.query-understanding { grid-template-columns: minmax(0, 1fr) auto; padding-top: .55rem; border-top: 1px solid var(--line); }
.query-understanding strong { font-size: .72rem; }
.query-understanding ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.query-understanding li { padding: .3rem .48rem; border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .64rem; }
.search-context-summary .text-button { min-height: 2.75rem; color: var(--red-dark); white-space: nowrap; }
.outfit-result-tabs { display: flex; gap: .45rem; margin: 0 0 .8rem; padding: .18rem; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.outfit-result-tabs button { display: grid; min-width: 8.5rem; min-height: 3.25rem; flex: 0 0 auto; align-content: center; gap: .12rem; padding: .55rem .75rem; border: 1px solid transparent; border-radius: .65rem .65rem 0 0; background: transparent; color: var(--ink-soft); text-align: left; }
.outfit-result-tabs button[aria-selected="true"] { border-color: var(--line); border-bottom-color: var(--surface); background: var(--surface); color: var(--ink); box-shadow: inset 0 3px var(--red); }
.outfit-result-tabs button strong, .outfit-result-tabs button small { display: block; }
.outfit-result-tabs button strong { font-size: .74rem; }
.outfit-result-tabs button small { font-size: .64rem; }

@media (max-width: 32rem) {
  .selected-search-context, .query-understanding { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .query-understanding { grid-template-columns: minmax(0, 1fr); }
  .selected-search-context .text-button { grid-column: 1 / -1; justify-self: start; }
  .query-understanding .text-button { justify-self: start; }
}
.claim-key { display: grid; gap: .55rem; margin: 0 0 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 253, 250, .66); }
.claim-key div { display: grid; gap: .05rem; }
.claim-key strong { color: var(--ink); font-size: .7rem; }
.claim-key span { color: var(--ink-soft); font-size: .65rem; }
.claim-key a { align-self: center; color: var(--red-dark); font-size: .68rem; font-weight: 800; text-underline-offset: .18em; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(24, 26, 23, .1); }
.product-image-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-deep); }
.product-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-image.is-placeholder { object-fit: contain; padding: 22%; opacity: .65; }
.card-badges { position: absolute; bottom: .5rem; left: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; pointer-events: none; }
.product-badge { padding: .25rem .42rem; border-radius: .35rem; background: rgba(255, 253, 250, .94); color: var(--ink); font-size: .58rem; font-weight: 800; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.product-badge.sale { background: var(--red-dark); color: #fff; }
.product-badge.canada { background: var(--green); color: #fff; }
.product-badge.indigenous-owned { background: #765020; color: #fff; }
.product-badge.made-in-canada { background: var(--gold-soft); color: #4d3d14; }
.product-badge.sold-out { background: #4f504c; color: #fff; }
.product-card.is-sold-out .product-image { filter: saturate(.72); opacity: .86; }
.save-button { position: absolute; z-index: 2; top: .45rem; right: .45rem; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 253, 250, .94); color: var(--ink); box-shadow: 0 2px 12px rgba(24, 26, 23, .12); }
.save-button:hover, .save-button.is-active { background: var(--red-dark); color: #fff; }
.save-button:focus-visible,
.product-image-button:focus-visible { outline-offset: -3px; }
.save-button svg { width: 1.15rem; }
.product-body { padding: .7rem; }
.product-brand { margin: 0 0 .15rem; overflow: hidden; color: var(--ink-soft); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-title { display: -webkit-box; min-height: 2.35em; margin: 0 0 .45rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .82rem; font-weight: 650; line-height: 1.18; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; min-height: 1.45rem; }
.product-price { font-size: .82rem; font-weight: 800; }
.product-compare { color: var(--ink-soft); font-size: .67rem; text-decoration: line-through; }
.match-line { display: -webkit-box; min-height: 2.2em; margin: .35rem 0 0; overflow: hidden; color: var(--green); -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .62rem; line-height: 1.1; }
.match-line span { margin-right: .25rem; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: .4rem; margin-top: .65rem; }
.card-actions .secondary-button { min-height: 2.75rem; padding: .45rem; font-size: .68rem; }
.result-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.result-feedback-label { flex: 1 0 100%; color: var(--ink-soft); font-size: .64rem; font-weight: 750; letter-spacing: .02em; }
.result-feedback-button { min-height: 2.75rem; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: .64rem; cursor: pointer; }
.result-feedback.is-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
.result-feedback.is-card .result-feedback-label { grid-column: 1 / -1; font-size: .6rem; line-height: 1.2; }
.result-feedback.is-card .result-feedback-button { width: 100%; min-width: 0; padding: .3rem .25rem; font-size: .58rem; line-height: 1.1; white-space: normal; }
.result-feedback-button:hover, .result-feedback-button:focus-visible { border-color: var(--red); color: var(--red); }
.result-feedback-button[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.result-feedback-button:disabled { cursor: default; opacity: .7; }
.card-menu-button { width: 2.75rem; height: 2.75rem; }

.skeleton-card { overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.skeleton-image, .skeleton-line { background: linear-gradient(100deg, var(--paper-deep) 25%, #f8f7f2 50%, var(--paper-deep) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton-image { aspect-ratio: 4 / 5; }
.skeleton-content { padding: .75rem; }
.skeleton-line { height: .7rem; margin: .45rem 0; border-radius: .25rem; }
.skeleton-line.short { width: 55%; }
@keyframes shimmer { to { background-position-x: -200%; } }

.empty-state { max-width: 35rem; margin: 2rem auto; padding: 3rem 1rem; text-align: center; }
.empty-state h3 { margin-bottom: .4rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.empty-state p { color: var(--ink-soft); }
.empty-icon { display: grid; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red-dark); font-size: 1.7rem; }
.load-more-wrap { display: grid; justify-items: center; gap: .45rem; margin: 2rem auto 0; text-align: center; }
.load-more-wrap[hidden] { display: none; }
.load-more-button { min-width: min(100%, 15rem); }
.load-more-wrap small { color: var(--ink-soft); font-size: .66rem; }

.how-it-works { display: grid; max-width: var(--container); margin: clamp(2rem, 8vw, 7rem) auto; padding: clamp(2rem, 5vw, 4rem) 1rem; border-top: 1px solid var(--line); }
.how-it-works ol { display: grid; margin: 2rem 0 0; padding: 0; list-style: none; }
.how-it-works li { padding: 1rem 0; border-top: 1px solid var(--line); }
.how-it-works li > span { color: var(--red); font-family: var(--serif); font-size: .8rem; }
.how-it-works li strong { display: block; margin: .55rem 0 .25rem; font-size: .95rem; }
.how-it-works li p { margin: 0; color: var(--ink-soft); font-size: .82rem; }

footer { display: grid; gap: 1rem; padding: 2.2rem 1rem; border-top: 1px solid var(--line); text-align: center; }
footer p { margin: 0; color: var(--ink-soft); font-size: .74rem; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
footer nav a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .73rem; font-weight: 700; }
.footer-mark { justify-self: center; }

dialog {
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(24, 26, 23, .55); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 1.7rem; }
.dialog-header .eyebrow { margin-bottom: .25rem; }
.drawer-dialog { width: min(38rem, calc(100vw - 1rem)); }
.saved-tabs { display: flex; padding: .6rem .75rem 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.saved-tabs button { min-height: 2.8rem; flex: 0 0 auto; padding: .5rem .65rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-soft); font-size: .75rem; font-weight: 750; }
.saved-tabs button[aria-selected="true"] { border-color: var(--red); color: var(--ink); }
.saved-content { min-height: 12rem; max-height: 55vh; padding: .9rem; overflow: auto; }
.saved-empty { display: grid; min-height: 10rem; place-items: center; color: var(--ink-soft); font-size: .82rem; text-align: center; }
.collection-group { margin-bottom: 1.3rem; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.collection-heading h3 { margin: 0; font-size: .85rem; }
.collection-heading button { min-height: 2.75rem; border: 0; background: transparent; color: var(--red-dark); font-size: .68rem; }
.saved-product { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.saved-product img { width: 3.6rem; height: 4.5rem; border-radius: .4rem; background: var(--paper-deep); object-fit: cover; }
.saved-product strong, .saved-product small { display: block; }
.saved-product strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.saved-product small { margin-top: .2rem; color: var(--ink-soft); font-size: .65rem; }
.collection-form { padding: .9rem; border-top: 1px solid var(--line); }
.collection-form label { display: block; margin-bottom: .35rem; font-size: .7rem; font-weight: 750; }
.collection-form > div { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.collection-form input { min-width: 0; padding: .7rem; border: 1px solid var(--line); border-radius: .65rem; }
.collection-form .primary-button { min-height: 2.8rem; }

.quick-dialog { width: min(62rem, calc(100vw - 1rem)); }
.quick-close { position: absolute; z-index: 2; top: .65rem; right: .65rem; background: rgba(255, 253, 250, .92); }
.quick-layout { display: grid; }
.quick-image-wrap { min-height: 18rem; background: var(--paper-deep); }
.quick-image-wrap img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
.quick-details { padding: clamp(1.2rem, 4vw, 2.5rem); }
.quick-details h2 { margin: 0 0 .65rem; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1; }
.quick-details .product-brand { font-size: .72rem; }
.quick-price { margin: 1rem 0; font-size: 1.15rem; font-weight: 800; }
.quick-description { color: var(--ink-soft); font-size: .87rem; }
.quick-meta { display: grid; gap: .5rem; margin: 1rem 0; padding: .8rem 0; border-block: 1px solid var(--line); }
.quick-meta div { display: flex; justify-content: space-between; gap: 1rem; font-size: .74rem; }
.quick-meta dt { color: var(--ink-soft); }
.quick-meta dd { margin: 0; text-align: right; }
.claim-panel { margin: 1rem 0; padding: .85rem; border: 1px solid #c9d9ce; border-radius: .75rem; background: var(--green-soft); }
.claim-panel-title { margin: 0 0 .65rem; font-size: .82rem; }
.claim-status-list { display: grid; gap: .45rem; margin: 0; }
.claim-status-row { display: grid; grid-template-columns: minmax(7rem, .8fr) minmax(0, 1.2fr); gap: .7rem; font-size: .7rem; }
.claim-status-row dt { color: var(--ink-soft); }
.claim-status-row dd { margin: 0; font-weight: 750; text-align: right; }
.claim-status-row.is-verified dd { color: var(--green); }
.claim-status-row.is-unknown dd { color: #62655f; }
.claim-panel .inline-link { display: inline-block; margin-top: .7rem; font-size: .7rem; }
.quick-actions { display: grid; gap: .5rem; }
.quick-actions a { text-decoration: none; }
.quick-actions .secondary-button { width: 100%; }
.result-feedback.is-quick { margin-top: .85rem; }
.quick-disclosure { margin: 1rem 0 0; color: var(--ink-soft); font-size: .65rem; }
.collection-dialog { width: min(28rem, calc(100vw - 1rem)); }
.collection-options { padding: .8rem; }
.collection-option { display: flex; width: 100%; min-height: 3.2rem; align-items: center; justify-content: space-between; padding: .7rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.collection-option:hover { background: var(--paper); }
.collection-option span { color: var(--green); }

.toast { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; left: 1rem; max-width: 28rem; margin-left: auto; padding: .8rem 1rem; border-radius: .75rem; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .8rem; }

@media (max-width: 39.999rem) {
  .site-nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(.08rem, .8vw, .2rem);
  }
  .site-nav > .language-switch {
    top: .675rem;
    min-height: 2.5rem;
    padding-block: .25rem;
  }
  .site-nav > a:not(.language-switch) {
    min-width: 0;
    flex: 0 1 auto;
    padding-inline: clamp(.35rem, 1.7vw, .6rem);
    font-size: clamp(.72rem, 3.25vw, .82rem);
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .saved-button {
    min-width: 0;
    min-height: 2.5rem;
    flex: 0 1 auto;
    gap: clamp(.18rem, .85vw, .35rem);
    padding-block: .3rem;
    padding-inline: clamp(.3rem, 1.25vw, .5rem);
    font-size: clamp(.72rem, 3.25vw, .82rem);
    white-space: nowrap;
  }
  .count-badge {
    width: clamp(1.35rem, 6vw, 1.6rem);
    height: clamp(1.35rem, 6vw, 1.6rem);
    flex: 0 0 auto;
  }
  html[lang="fr-CA"] .site-nav > a:not(.language-switch),
  html[lang="fr-CA"] .saved-button {
    padding-inline: .25rem;
    font-size: clamp(.7rem, 3vw, .76rem);
    line-height: 1.1;
    white-space: normal;
  }
  html[lang="fr-CA"] .site-nav > a[href="/fr/methodologie"] {
    inline-size: 6.75rem;
    max-width: 6.75rem;
    flex-basis: 6.75rem;
    text-wrap: balance;
  }
  html[lang="fr-CA"] .saved-button > span:first-child {
    display: none;
  }
  html[lang="fr-CA"] .saved-button > span:nth-child(2) {
    min-width: 0;
  }
}

@media (min-width: 40rem) {
  .site-header { position: sticky; flex-wrap: nowrap; gap: 1rem; padding-block: .75rem; }
  .site-nav { width: auto; order: initial; gap: clamp(.35rem, 2vw, 1.75rem); padding: 0; overflow: visible; scroll-snap-type: none; }
  .site-nav > a { padding: 0; border-radius: 0; font-size: .86rem; }
  .site-nav > a:hover { background: transparent; }
  .site-nav > a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px var(--red); }
  .site-nav > a:focus-visible { outline-offset: 3px; }
  .site-nav > .language-switch {
    position: static;
    padding: .35rem .65rem;
    border-radius: 999px;
  }
  .site-nav > .language-switch:hover { background: var(--surface); }
  .search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .search-button { min-width: 8rem; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .trust-row li { border-top: 0; border-left: 1px solid var(--line); }
  .trust-row li:first-child { border-left: 0; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .product-body { padding: .9rem; }
  .product-title, .product-price { font-size: .9rem; }
  .match-line { min-height: 1.1em; -webkit-line-clamp: 1; }
  .filter-essentials-section { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .filter-origin-section .filter-field { max-width: 28rem; }
  .claim-key { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; }
  .quick-layout { grid-template-columns: minmax(0, 1.05fr) minmax(19rem, .95fr); }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .quick-actions .primary-button { grid-column: 1 / -1; }
  footer { grid-template-columns: auto 1fr auto; align-items: center; padding-inline: clamp(1rem, 4vw, 4rem); text-align: left; }
  .footer-mark { justify-self: start; }
}

@media (min-width: 64rem) {
  .site-header { min-height: 5rem; }
  .wordmark { font-size: 1.35rem; }
  .results-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .refine-layout { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); }
  .refine-nav { position: relative; display: grid; align-content: start; gap: .1rem; padding: .65rem .45rem; overflow: visible; border-right: 1px solid var(--line); border-bottom: 0; }
  .refine-nav a { width: 100%; }
  .fit-builder { grid-template-columns: minmax(0, 1fr) 13rem; }
  .selected-fit { min-height: 100%; border-block: 0; border-right: 0; border-radius: 0; }
  .filter-essentials-section { grid-template-columns: 1fr 1.35fr 1fr; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .how-it-works { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .how-it-works ol { grid-template-columns: repeat(3, 1fr); margin: 0; }
  .how-it-works li { padding: .5rem 1.4rem; border-top: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 30rem) {
  .filter-section { padding-inline: .75rem; }
  .fit-controls { grid-template-columns: 1fr; }
  .fit-size-group { grid-column: auto; }
  .fit-builder { gap: .8rem; }
  .selected-fit { min-height: 0; }
  .category-picker button { min-width: 6rem; grid-template-columns: 1.45rem minmax(0, auto); }
}

@media (min-width: 86rem) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .maple-drift { display: none; }
  .product-card:hover { transform: none; }
  .refine-pulse-target.is-refine-target { animation: none !important; border-color: var(--red); background-color: var(--red-soft); box-shadow: 0 0 0 2px rgba(185, 45, 23, .18), inset 0 0 0 1px var(--red); }
}

/* Editorial, methodology, and brand-directory surfaces. */
.content-page { background: var(--paper); }
.editorial-main,
.brand-directory-main { width: min(100% - 2rem, 78rem); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6.5rem) 0 5rem; }
.editorial-hero { max-width: 62rem; margin-bottom: clamp(3.5rem, 7vw, 7rem); }
.editorial-hero h1,
.brand-directory-hero h1 { max-width: 13ch; margin: 0 0 1.3rem; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .95; }
.editorial-lede,
.brand-directory-hero > div > p:last-child { max-width: 48rem; color: var(--ink-soft); font-size: clamp(1.08rem, 2.3vw, 1.35rem); }
.methodology-date { margin-top: 1.4rem; color: var(--ink-soft); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .75rem 1.25rem; text-decoration: none; }
.editorial-grid,
.principle-grid { display: grid; gap: 1rem; }
.editorial-card,
.principle-card { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.editorial-card h2,
.principle-card h3 { margin-bottom: .75rem; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.editorial-card p,
.editorial-card li,
.principle-card p { color: var(--ink-soft); }
.editorial-card ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.editorial-card li + li { margin-top: .45rem; }
.card-number,
.principle-card > span { color: var(--red-dark); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.inline-link { color: var(--red-dark); font-weight: 800; text-underline-offset: .2em; }
.methodology-callout { margin-top: clamp(3rem, 7vw, 6rem); padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.methodology-callout h2 { max-width: 20ch; margin: 0 0 .8rem; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; }
.methodology-callout > p:not(.eyebrow) { max-width: 45rem; color: #d8dbd4; }
.methodology-callout .eyebrow { color: #ff9f88; }
.methodology-callout .primary-button { margin-top: 1rem; text-decoration: none; }
.story-section { max-width: 64rem; margin: 0 auto clamp(4rem, 8vw, 7rem); }
.story-section h2,
.principles-section > h2 { max-width: 22ch; margin-bottom: 1.5rem; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; }
.story-columns { display: grid; gap: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.principles-section { margin-bottom: clamp(4rem, 8vw, 7rem); }
.story-accent { padding: clamp(1.5rem, 4vw, 3rem); border-left: .3rem solid var(--red); background: var(--red-soft); }
.story-accent > p:not(.eyebrow) { max-width: 52rem; color: #4f403a; font-size: 1.05rem; }

.brand-directory-hero { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }
.brand-directory-content { min-width: 0; }
.brand-shortcut-rail { display: none; }
.brand-trust-note { align-self: end; padding: clamp(1rem, 4vw, 1.35rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 250, .68); }
.brand-trust-note strong { display: block; margin-bottom: .55rem; font-family: var(--serif); font-size: clamp(1.22rem, 5vw, 1.42rem); font-weight: 560; line-height: 1.05; }
.brand-trust-note a { display: inline-flex; align-items: center; gap: .34rem; color: var(--green); font-size: .82rem; font-weight: 800; text-underline-offset: .2em; }
.brand-trust-note a::after { color: inherit; content: "›"; font-size: 1.12em; line-height: 1; text-decoration: none; }
.claim-guide-note { margin: -.2rem 0 .8rem; color: var(--ink-soft); font-size: .7rem; line-height: 1.45; }
.claim-guide { display: grid; margin: .8rem 0 .95rem; }
.claim-guide div { display: grid; min-height: 4.75rem; grid-template-columns: 3.85rem minmax(0, 1fr); grid-template-rows: min-content min-content; gap: .16rem .8rem; align-items: center; padding: .72rem 0; border-top: 1px solid var(--line); }
.claim-guide dt { display: contents; color: var(--ink); font-size: .88rem; font-weight: 850; }
.claim-guide dd { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.35; }
.claim-guide-icon { display: grid; grid-row: 1 / span 2; width: 3.05rem; height: 3.05rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 253, 250, .78); }
.claim-guide-icon img { width: 1.45rem; height: 1.45rem; object-fit: contain; }
.claim-guide-maple { width: 1.45rem; height: 1.45rem; color: var(--red); }
.brand-tools { display: grid; gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.brand-search-field,
.brand-sort-field { display: grid; min-width: 0; gap: .35rem; color: var(--ink-soft); font-size: .75rem; font-weight: 800; }
.brand-search-field input,
.brand-sort-field select { width: 100%; min-width: 0; min-height: 3.1rem; padding: .65rem .8rem; border: 1px solid var(--line-dark); border-radius: .7rem; background: #fff; color: var(--ink); }
.brand-canadian-toggle { align-self: end; min-height: 3.1rem; }
.directory-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; }
.directory-summary p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.directory-summary .secondary-button { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .6rem .9rem; text-decoration: none; }
.brand-grid { display: grid; gap: .85rem; }
.brand-card { display: grid; grid-template-rows: auto 1fr; gap: 1rem; padding: 1rem; scroll-margin-top: 6.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.brand-card-identity { display: flex; min-width: 0; align-items: center; gap: .8rem; }
.brand-card-name-group { min-width: 0; }
.brand-logo-wrap { position: relative; display: grid; flex: 0 0 3rem; width: 3rem; height: 3rem; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.brand-logo-wrap--dark { border-color: #30352f; background: #171a17; }
.brand-logo-wrap--dark .brand-fallback-mark { color: #fff; }
.brand-logo-wrap img { position: absolute; inset: .36rem; width: calc(100% - .72rem); height: calc(100% - .72rem); object-fit: contain; }
.brand-logo-wrap.has-image .brand-fallback-mark { visibility: hidden; }
.brand-fallback-mark { color: var(--red-dark); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.brand-card h2 { margin: 0 0 .15rem; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.brand-card-identity p,
.brand-community-score { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.brand-card-identity .brand-origin-label { color: var(--green); font-weight: 800; }
.brand-card-identity .brand-identity-meta { margin-top: .15rem; color: var(--ink-soft); font-size: .67rem; font-weight: 700; }
.brand-card-about { display: grid; gap: .32rem; padding: .72rem .78rem .76rem .9rem; border-left: .18rem solid var(--red); border-radius: 0 .72rem .72rem 0; background: linear-gradient(115deg, var(--red-soft), rgba(252, 246, 238, .42)); }
.brand-card-about-label { margin: 0; color: var(--red-dark); font-size: .65rem; font-weight: 850; letter-spacing: .11em; line-height: 1.2; text-transform: uppercase; }
.brand-card-about-copy { margin: 0; color: #504b44; font-family: var(--serif); font-size: .91rem; line-height: 1.42; }
.brand-catalog-status { margin: 0; color: var(--ink-soft); font-size: .76rem; font-weight: 750; }
.brand-catalog-status.is-ready { color: var(--green); }
.brand-catalog-status.is-directory-only { color: #705a28; }
.brand-card-details { display: flex; flex-direction: column; gap: .75rem; }
.brand-evidence-link { justify-self: start; color: var(--green); font-size: .76rem; font-weight: 750; text-underline-offset: .16em; }
.brand-card-about .brand-evidence-link { margin-top: .12rem; }
.brand-manufacturing-note { padding: .72rem .78rem; border: 1px solid #d8dfd8; border-radius: .72rem; background: var(--green-soft); }
.brand-manufacturing-note strong { display: block; margin-bottom: .18rem; color: var(--green); font-size: .7rem; }
.brand-manufacturing-note p { margin: 0; color: #385346; font-size: .72rem; line-height: 1.45; }
.brand-manufacturing-note a { display: inline-flex; margin-top: .35rem; color: var(--green); font-size: .66rem; font-weight: 800; text-underline-offset: .16em; }
.brand-ownership-note { margin: 0; padding: .65rem .72rem; border-left: .18rem solid #84662b; background: var(--gold-soft); color: #51441f; font-size: .7rem; line-height: 1.45; }
.brand-ownership-note strong { display: block; margin-bottom: .18rem; color: #6f5419; font-size: .7rem; }
.brand-ownership-note p { margin: 0; }
.brand-ownership-note a { display: inline-flex; margin-top: .35rem; color: #654b15; font-size: .66rem; font-weight: 800; text-underline-offset: .16em; }
.brand-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: auto; }
.compact-button { min-height: 2.75rem; padding: .5rem .8rem; font-size: .78rem; text-decoration: none; }
.brand-card-actions > .text-button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .3rem; color: var(--ink); font-size: .78rem; text-decoration: underline; text-underline-offset: .18em; }
.brand-correction-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .3rem; color: var(--ink-soft); font-size: .7rem; font-weight: 700; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .18em; }
.brand-vote-group { display: inline-flex; gap: .35rem; }
.brand-vote-button { min-height: 2.75rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: .73rem; font-weight: 750; }
.brand-vote-button[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.brand-load-more { display: flex; justify-content: center; margin-top: 2rem; }

.community-catalogue { margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.community-catalogue-heading { display: grid; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.community-catalogue-heading h2 { margin: 0 0 .55rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.community-catalogue-heading p:not(.eyebrow) { max-width: 48rem; margin: 0; color: var(--ink-soft); }
.catalogue-research-grid { display: grid; gap: .75rem; }
.research-card { display: grid; gap: .65rem; padding: .85rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.research-card.is-researching { border-style: dashed; }
.research-card-top { display: flex; align-items: center; gap: .7rem; }
.research-card-top h3 { margin: 0; font-family: var(--serif); font-size: 1rem; }
.research-card-top p { margin: .08rem 0 0; color: var(--ink-soft); font-size: .64rem; }
.research-logo { position: relative; display: grid; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: #fff; }
.research-logo img { position: absolute; inset: .3rem; width: calc(100% - .6rem); height: calc(100% - .6rem); object-fit: contain; }
.research-logo.has-image .brand-fallback-mark { visibility: hidden; }
.research-status { margin: 0; color: var(--green); font-size: .7rem; font-weight: 850; }
.research-card.is-researching .research-status { color: #84662b; }
.research-origin { margin: 0; color: var(--ink-soft); font-size: .65rem; line-height: 1.4; }
.community-catalogue-complete { grid-column: 1 / -1; margin: 0; padding: 1rem; border: 1px solid #d8dfd8; border-radius: .9rem; background: var(--green-soft); color: var(--green); font-size: .78rem; font-weight: 750; }

.brand-submission-dialog { width: min(calc(100% - 1.5rem), 38rem); padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.brand-submission-dialog::backdrop { background: rgba(24, 26, 23, .48); backdrop-filter: blur(3px); }
.brand-submission-dialog > p { color: var(--ink-soft); font-size: .8rem; }
.brand-submission-form { display: grid; gap: .85rem; }
.brand-submission-form label { display: grid; gap: .32rem; color: var(--ink); font-size: .73rem; font-weight: 800; }
.brand-submission-form label > span { color: var(--ink-soft); font-size: .62rem; font-weight: 600; }
.brand-submission-form input,
.brand-submission-form textarea { width: 100%; padding: .72rem .8rem; border: 1px solid var(--line-dark); border-radius: .7rem; background: #fff; color: var(--ink); font: inherit; }
.brand-submission-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.brand-submission-actions p { margin: 0; color: var(--green); font-size: .72rem; font-weight: 700; }

.insights-main { width: min(calc(100% - 2rem), 82rem); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.insights-hero { display: grid; gap: 1rem; align-items: end; margin-bottom: 2rem; }
.insights-hero h1 { max-width: 12ch; margin: 0 0 .75rem; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .92; }
.insights-hero p:not(.eyebrow) { max-width: 42rem; margin: 0; color: var(--ink-soft); }
#insights-updated { font-size: .7rem; font-weight: 750; }
.insights-metrics { display: grid; gap: .65rem; margin-bottom: 1.5rem; }
.insights-metrics article { padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.insights-metrics p { margin: 0 0 .35rem; color: var(--ink-soft); font-size: .66rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.insights-metrics strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.insights-metrics small { display: block; margin-top: .4rem; color: var(--ink-soft); font-size: .62rem; }
.insights-grid { display: grid; gap: .8rem; }
.insights-panel { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.insights-panel h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.insights-ranked-list { display: grid; gap: .5rem; color: var(--ink-soft); font-size: .7rem; }
.insights-ranked-list > div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding: .45rem .5rem; overflow: hidden; border-radius: .45rem; }
.insights-ranked-list i { position: absolute; z-index: 0; inset: 0 auto 0 0; width: var(--bar); background: var(--green-soft); }
.insights-ranked-list span,
.insights-ranked-list strong { position: relative; z-index: 1; }
.insights-ranked-list span { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.insights-timeline { display: flex; height: 13rem; align-items: end; gap: .35rem; overflow-x: auto; }
.timeline-day { display: grid; min-width: 2rem; height: 100%; grid-template-rows: 1fr auto; gap: .35rem; align-items: end; }
.timeline-bars { display: flex; height: 100%; align-items: end; justify-content: center; gap: .12rem; }
.timeline-bars i { display: block; width: .55rem; min-height: 3px; border-radius: .3rem .3rem 0 0; }
.timeline-bars .is-searches { background: var(--red); }
.timeline-bars .is-clicks { background: var(--green); }
.timeline-day small { color: var(--ink-soft); font-size: .52rem; text-align: center; }

.brand-directory-page { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
.brand-directory-main { padding-left: 3rem; }
.brand-az-rail {
  position: fixed;
  z-index: 45;
  top: 7.45rem;
  bottom: calc(5.45rem + env(safe-area-inset-bottom));
  left: 0;
  display: grid;
  width: 3rem;
  grid-template-rows: repeat(27, minmax(0, 1fr));
  align-content: stretch;
  padding: .45rem .25rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 250, .88);
  box-shadow: 12px 0 32px rgba(24, 26, 23, .06);
  backdrop-filter: blur(12px);
  min-height: 0;
  overflow: hidden;
  scrollbar-width: none;
  opacity: 1;
  pointer-events: auto;
  touch-action: pan-y;
}
.brand-az-rail::-webkit-scrollbar { width: 0; height: 0; }
.brand-az-rail button { width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(.62rem, 1.65dvh, .76rem); font-weight: 700; line-height: 1; }
.brand-az-rail button.is-active { color: var(--red-dark); font-size: clamp(.9rem, 2.2dvh, 1.15rem); font-weight: 800; }
.brand-az-rail button:disabled { color: var(--line-dark); opacity: .36; }
.brand-jump-dock {
  position: fixed;
  z-index: 45;
  right: .65rem;
  bottom: max(.65rem, env(safe-area-inset-bottom));
  left: .65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 25rem;
  margin-inline: auto;
  padding: .35rem;
  border: 1px solid rgba(216, 214, 206, .92);
  border-radius: 1.15rem;
  background: rgba(255, 253, 250, .96);
  box-shadow: 0 16px 45px rgba(24, 26, 23, .18);
  backdrop-filter: blur(16px);
}
.brand-jump-dock button {
  display: grid;
  min-height: 3.7rem;
  place-items: center;
  align-content: center;
  gap: .12rem;
  padding: .3rem .45rem;
  border: 0;
  border-radius: .85rem;
  background: transparent;
  color: var(--ink-soft);
  font-size: .64rem;
  font-weight: 800;
}
.brand-jump-dock button:first-child { background: var(--red-soft); color: var(--red-dark); }
.brand-jump-dock button:hover { background: var(--paper-deep); color: var(--ink); }
.brand-directory-page.is-brand-input-focused .brand-jump-dock { opacity: 0; pointer-events: none; transform: translateY(1rem); }
.brand-dock-icon { width: 1.18rem; height: 1.18rem; color: var(--red-dark); }
.brand-jump-az-icon { font-family: var(--serif); font-size: .86rem; font-weight: 800; line-height: 1; }
.brand-dock-wordmark { font-family: var(--serif); font-size: .78rem; font-weight: 800; line-height: 1; }

.brand-jump-dialog {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  min-height: min(56dvh, 34rem);
  max-width: none;
  max-height: min(72dvh, 42rem);
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 1.75rem 1.75rem 0 0;
  overflow: auto;
}
.brand-jump-dialog[open] { animation: brand-sheet-enter .24s ease-out; }
.brand-jump-dialog::backdrop { background: rgba(24, 26, 23, .38); backdrop-filter: blur(2px); }
.brand-sheet-handle { width: 2.8rem; height: .28rem; margin: .7rem auto .1rem; border-radius: 999px; background: var(--line-dark); }
.brand-jump-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem .8rem; }
.brand-jump-header .eyebrow { margin-bottom: .12rem; font-size: .61rem; }
.brand-jump-header h2 { margin: 0; font-family: var(--serif); font-size: 1.65rem; font-weight: 550; letter-spacing: -.035em; line-height: 1; }
.brand-jump-close { min-height: 2.75rem; padding: .5rem .75rem; font-size: .72rem; }
.brand-jump-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 1rem; padding: .25rem; border-radius: .8rem; background: var(--paper-deep); }
.brand-jump-tabs button { min-height: 2.75rem; padding: .55rem; border: 0; border-radius: .62rem; background: transparent; color: var(--ink-soft); font-size: .75rem; font-weight: 800; }
.brand-jump-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.brand-jump-panel { padding: .85rem 1rem 1.1rem; }
.brand-mobile-group { display: grid; grid-template-columns: 1.4rem .85rem minmax(0, 1fr); align-items: stretch; gap: .22rem; }
.brand-mobile-group + .brand-mobile-group { margin-top: .48rem; }
.brand-mobile-letter { align-self: center; color: var(--red-dark); font-family: var(--serif); font-size: 1.45rem; line-height: 1; text-align: center; }
.brand-mobile-connector { position: relative; align-self: center; height: 1px; border-top: 1px solid rgba(185, 45, 23, .55); }
.brand-mobile-connector--bracket { align-self: stretch; height: auto; margin-block: 1.1rem; border-top: 1px solid rgba(185, 45, 23, .55); border-right: 0; border-bottom: 1px solid rgba(185, 45, 23, .55); border-left: 1px solid rgba(185, 45, 23, .55); }
.brand-mobile-stack,
.brand-rail-stack { display: grid; gap: .38rem; }
.brand-shortcut-card {
  display: grid;
  min-width: 0;
  min-height: 3.25rem;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: .58rem;
  padding: .38rem .55rem;
  border: 1px solid var(--line);
  border-radius: .82rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.brand-shortcut-card:hover { border-color: var(--line-dark); transform: translateY(-1px); }
.brand-shortcut-card:disabled { transform: none; }
.brand-shortcut-logo { position: relative; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: .68rem; background: #fff; }
.brand-shortcut-logo--dark { border-color: #30352f; background: #171a17; }
.brand-shortcut-logo img { width: calc(100% - .42rem); height: calc(100% - .42rem); object-fit: contain; }
.brand-shortcut-copy { min-width: 0; }
.brand-shortcut-copy strong,
.brand-shortcut-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-shortcut-copy strong { font-family: var(--serif); font-size: .9rem; font-weight: 650; line-height: 1.05; }
.brand-shortcut-copy small { margin-top: .2rem; color: var(--red-dark); font-size: .53rem; font-weight: 850; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.brand-view-letters { display: block; min-height: 2.75rem; margin: .7rem auto 0; padding: .5rem; border: 0; background: transparent; color: var(--red-dark); font-size: .75rem; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; }
.brand-letters-help { margin: .05rem 0 .8rem; color: var(--ink-soft); font-size: .73rem; }
.brand-letter-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .38rem; }
.brand-letter-grid button { min-height: 2.75rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); color: var(--ink); font-family: var(--serif); font-weight: 750; }
.brand-letter-grid button.is-active { border-color: var(--red-dark); background: var(--red-soft); color: var(--red-dark); font-size: 1.25rem; }
.brand-letter-grid button:disabled { background: var(--paper); color: var(--line-dark); }

@keyframes brand-sheet-enter {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 44rem) {
  .editorial-grid,
  .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .brand-tools { grid-template-columns: minmax(15rem, 1.4fr) repeat(2, minmax(10rem, .8fr)); align-items: end; }
  .brand-search-field { grid-column: span 2; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-catalogue-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .catalogue-research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .insights-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 70rem) {
  .editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-directory-page { padding-bottom: 0; }
  .brand-directory-main { padding-left: 0; }
  .brand-directory-main { display: grid; width: min(100% - 2rem, 92rem); grid-template-columns: 12rem minmax(0, 1fr); gap: 1.45rem; padding-top: clamp(3rem, 5vw, 4.7rem); }
  .brand-directory-content { min-width: 0; }
  .brand-directory-hero { grid-template-columns: minmax(0, 1.5fr) minmax(20rem, .7fr); align-items: end; }
  .brand-directory-hero h1 { max-width: 12ch; font-size: clamp(4.2rem, 6vw, 5.5rem); }
  .brand-trust-note { padding: .9rem 0 .9rem 2.35rem; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
  .brand-trust-note strong { font-size: 1.35rem; }
  .claim-guide div { min-height: 4.8rem; grid-template-columns: 3.8rem minmax(0, 1fr); gap: .12rem .82rem; }
  .claim-guide dd { font-size: .76rem; }
  .brand-card { grid-template-columns: minmax(0, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalogue-research-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-az-rail,
  .brand-jump-dock,
  .brand-jump-dialog { display: none; }
  .brand-shortcut-rail { display: block; min-width: 0; }
  .brand-shortcut-rail-inner { position: sticky; top: 6.2rem; }
  .brand-shortcut-heading { margin-bottom: .72rem; }
  .brand-shortcut-heading p { margin: 0; color: var(--ink); font-size: .66rem; font-weight: 900; letter-spacing: .105em; line-height: 1.25; text-transform: uppercase; }
  .brand-shortcut-heading span { display: block; margin-top: .18rem; color: var(--ink-soft); font-size: .62rem; }
  .brand-rail-map { position: relative; min-height: 37.3rem; }
  .brand-alphabet { display: grid; width: 1.5rem; grid-auto-rows: 1.35rem; }
  .brand-alphabet button { width: 1.5rem; min-height: 1.35rem; padding: 0; border: 0; background: transparent; color: var(--ink-soft); font-family: var(--serif); font-size: .72rem; font-weight: 700; line-height: 1; transition: color .16s ease, transform .16s ease; }
  .brand-alphabet button:hover { color: var(--red-dark); }
  .brand-alphabet button.is-active { color: var(--red-dark); font-weight: 800; transform: scale(2.1); transform-origin: center; }
  .brand-alphabet button:disabled { color: var(--line-dark); opacity: .38; }
  .brand-rail-group { position: absolute; left: 1.45rem; display: grid; width: 10.5rem; grid-template-columns: .72rem minmax(0, 1fr); align-items: stretch; gap: .18rem; }
  .brand-rail-connector { position: relative; align-self: center; height: 1px; border-top: 1px solid rgba(185, 45, 23, .52); }
  .brand-rail-connector--bracket { align-self: stretch; height: auto; margin-block: .85rem; border-top: 1px solid rgba(185, 45, 23, .52); border-bottom: 1px solid rgba(185, 45, 23, .52); border-left: 1px solid rgba(185, 45, 23, .52); }
  .brand-rail-group .brand-shortcut-card { min-height: 3.05rem; grid-template-columns: 2.15rem minmax(0, 1fr); gap: .42rem; padding: .32rem .42rem; border-radius: .72rem; }
  .brand-rail-group .brand-shortcut-logo { width: 2.15rem; height: 2.15rem; border-radius: .58rem; }
  .brand-rail-group .brand-shortcut-copy strong { font-size: .8rem; }
  .brand-rail-group .brand-shortcut-copy small { font-size: .47rem; line-height: 1.05; white-space: normal; }
}

/* Password-gated review surface. All assets remain same-origin for the global CSP. */
.access-page {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 14% 18%, rgba(232, 74, 42, .12), transparent 26rem),
    radial-gradient(circle at 88% 78%, rgba(32, 93, 67, .10), transparent 28rem),
    var(--paper);
}
.access-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem clamp(1rem, 4vw, 4rem); }
.access-badge { padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 250, .8); color: var(--ink-soft); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.access-main { display: grid; width: 100%; place-items: center; padding: clamp(1rem, 5vw, 4rem); }
.access-shell { display: grid; width: min(100%, 68rem); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 253, 250, .96); box-shadow: var(--shadow-lg); }
.access-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.access-copy h1 { max-width: 11ch; margin: 0 0 1rem; font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: .92; }
.access-copy > p:not(.eyebrow) { max-width: 37rem; color: var(--ink-soft); font-size: 1.02rem; }
.access-points { display: grid; gap: .65rem; margin: 1.3rem 0 0; padding: 0; color: var(--ink-soft); font-size: .84rem; list-style: none; }
.access-points li { position: relative; padding-left: 1.35rem; }
.access-points li::before { position: absolute; top: .2rem; left: 0; color: var(--red-dark); content: "✦"; }
.access-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); background: var(--paper-deep); }
.access-card { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.access-form { margin-top: 1.1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.access-field { display: grid; gap: .4rem; }
.access-field label { font-size: .78rem; font-weight: 800; }
.access-field input { width: 100%; min-height: 3.25rem; padding: .7rem .85rem; border: 1px solid var(--line-dark); border-radius: .7rem; background: #fff; color: var(--ink); }
.access-field input:focus { border-color: var(--red); outline: 3px solid rgba(232, 74, 42, .13); }
.access-field input[aria-invalid="true"] { border-color: var(--red-dark); }
.access-help, .access-error { margin: .45rem 0 0; font-size: .72rem; }
.access-help { color: var(--ink-soft); }
.access-error { color: #8f2011; font-weight: 750; }
.access-submit { width: 100%; margin-top: .9rem; border: 0; }
.access-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1rem; padding: 1rem .5rem 0; }
.access-links a { color: var(--ink-soft); font-size: .72rem; font-weight: 750; text-underline-offset: .18em; }
.access-footer { display: block; border: 0; padding: 1.2rem; text-align: center; }

@media (min-width: 60rem) {
  .access-shell { grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .75fr); }
  .access-panel { border-top: 0; border-left: 1px solid var(--line); }
}
