.concept-3 main.concept-house {
  display: block; height: auto; min-height: 100svh; overflow: visible;
  box-sizing: border-box; max-width: 1200px; margin: auto;
  padding: 100px clamp(24px, 5vw, 72px) 80px; color: var(--foreground);
  font: var(--extra-small-label-size)/1.5 var(--font-consumer);
}
.concept-house :focus-visible { outline: none; box-shadow: none; }
.concept-house a { color: inherit; text-decoration: none; }
.concept-house a:is(:hover, :focus-visible) { text-decoration: underline; }
.house-overview { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; padding: 24px 0 60px; }
.house-eyebrow { font: 10px/1.5 var(--font-micro); color: var(--ww-text-muted-color); }
.house-intro h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; margin: 16px 0; }
.house-intro p { margin: 0; }
.house-center { display: grid; justify-items: start; gap: 8px; margin-top: 32px; }
.house-center > span, .house-map figcaption, .house-section header p:not(.house-eyebrow), .house-toolbar > span, .house-section header > span { color: var(--ww-text-muted-color); }
.house-map { margin: 0; }
.house-map svg { display: block; width: 100%; overflow: visible; }
.house-map circle { stroke: var(--background); stroke-width: .3; }
.house-map a:is(:hover, :focus-visible) circle { r: 1.3; }
.house-map figcaption { max-width: 38ch; margin: 20px auto 0; text-align: center; font-size: 11px; }
.house-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-block: 1px solid var(--detail-divider); }
.house-toolbar nav { display: flex; gap: 4px; }
.house-toolbar [aria-current] { font-weight: 700; background: var(--foreground); color: var(--background); }
.house-section { padding: 32px 0 40px; border-bottom: 1px solid var(--detail-divider); }
.house-section header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.house-section header p { margin: 6px 0; }
.house-section h2 { font-size: 17px; line-height: 26px; margin: 0; text-transform: uppercase; }
.house-section h2 i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; vertical-align: 2px; }
.house-section header > span { white-space: nowrap; }
.house-bottles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
.house-bottle { display: block; text-align: center; overflow-wrap: anywhere; }
.concept-3 .house-bottle img { width: 100%; aspect-ratio: 3/4; object-fit: contain; margin-bottom: 12px; }
.house-bottle > span { display: block; }
.house-bottle small { display: block; color: var(--ww-text-muted-color); font-size: 10px; margin-top: 3px; }
.house-variants { text-align: center; font-size: 10px; margin-top: 8px; }
.house-variants summary { cursor: pointer; color: var(--ww-text-muted-color); }
.house-variants a { display: block; margin-top: 8px; }
.house-more { margin-top: 28px; }
.house-more > summary { cursor: pointer; width: fit-content; margin: auto; list-style: none; }
.house-more > summary::-webkit-details-marker { display: none; }
.house-more[open] > summary { margin-bottom: 28px; }
.house-more > summary::after { content: '+'; margin-left: 8px; }
.house-more[open] > summary::after { content: '−'; }
.concept-house summary:focus-visible { text-decoration: underline; }
@media (max-width: 800px) {
  .concept-3 main.concept-house { padding-top: 88px; }
  .house-overview { gap: 24px; padding-bottom: 32px; }
  .house-bottles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 520px) {
  .house-overview { grid-template-columns: 1fr; }
  .house-center { margin-top: 24px; }
  .house-map { max-width: 360px; }
  .house-section header { align-items: start; gap: 12px; }
  .house-section header > span { font-size: 10px; padding-top: 5px; }
  .house-bottles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.directory-intro { padding: 24px 0 36px; }
.directory-intro > p:last-child { color: var(--ww-text-muted-color); }
.house-search { max-width: 420px; margin-bottom: 32px; }
.house-search label { display: block; margin-bottom: 8px; }
.house-search > div { display: flex; align-items: center; gap: 6px; }
.house-search input {
  min-width: 0; flex: 1; box-sizing: border-box; height: 32px;
  border: 1px solid var(--detail-divider); border-radius: 4px;
  padding: 0 10px; background: var(--ww-surface-color); color: inherit; font: inherit;
}
.house-search input:focus { border-color: var(--ww-text-muted-color); outline: none; box-shadow: none; }
.house-alphabet { display: flex; flex-wrap: wrap; gap: 5px; padding: 16px 0; border-block: 1px solid var(--detail-divider); }
.house-alphabet a { min-width: 24px; padding-inline: 6px; }
.house-letter { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--detail-divider); scroll-margin-top: 60px; }
.house-letter h2 { margin: 8px 0; font-size: 17px; line-height: 26px; }
.house-letter ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 32px; list-style: none; padding: 0; margin: 0; }
.house-letter li a { display: flex; flex-direction: column; padding: 8px 0; overflow-wrap: anywhere; }
.house-letter small { color: var(--ww-text-muted-color); font-size: 10px; margin-top: 3px; }
.directory-results { margin: 0 0 16px; color: var(--ww-text-muted-color); }
.house-directory-empty { padding: 48px 0; }
.house-directory-empty h2 { font-size: 17px; }
.house-directory-empty p { color: var(--ww-text-muted-color); }
@media (max-width: 800px) {
  .house-letter ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
  .house-letter { grid-template-columns: 24px 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .house-letter ul { grid-template-columns: 1fr; }
  .directory-intro { padding-top: 8px; }
}
.brand-world .directory-intro { max-width: 660px; }
.brand-world .directory-intro h1 { text-transform: none; }
.world-toolbar > span { color: var(--foreground); }
.world-start { padding: 28px 0; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.world-start .house-search { flex: 1 1 300px; margin: 0; }
.world-suggestions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.world-suggestions > span { color: var(--ww-text-muted-color); margin-right: 6px; }
.world-search-results { flex-basis: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.world-search-results > p { flex-basis: 100%; margin: 0; }
.world-seed { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.world-seed h2 { font-size: 20px; margin: 8px 0; }
.world-seed p { max-width: 70ch; }
.world-neighborhoods { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.world-neighborhood { display: flex; flex-direction: column; gap: 24px; padding: 18px; border: 1px solid var(--detail-divider); border-radius: 4px; }
.world-neighborhood[aria-current] { background: var(--ww-surface-color); border-color: var(--foreground); }
.world-number { display: flex; justify-content: space-between; align-items: center; color: var(--ww-text-muted-color); font-family: var(--font-micro); font-size: 10px; }
.world-number i { width: 10px; height: 10px; border-radius: 50%; background: var(--neighborhood-color); }
.world-neighborhood strong { font-size: 17px; line-height: 1.3; }
.world-neighborhood small { margin-top: auto; color: var(--ww-text-muted-color); font-size: 10px; }
.world-neighborhood small span { float: right; }
.world-selected { padding-top: 48px; scroll-margin-top: 56px; }
.world-selected > header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.world-selected h2 { font-size: 24px; margin: 6px 0 0; }
.world-selected > header > p { max-width: 36ch; color: var(--ww-text-muted-color); margin: 0; }
.world-houses { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 32px; }
.world-house { padding: 24px 0; border-top: 1px solid var(--detail-divider); display: flex; flex-direction: column; }
.world-house h3 { font-size: 20px; margin: 8px 0; }
.world-house-profile { color: var(--ww-text-muted-color); min-height: 3em; }
.world-share { height: 3px; background: var(--detail-divider); margin-top: auto; }
.world-share span { height: 100%; display: block; background: var(--foreground); }
.world-share-label { font-size: 10px; color: var(--ww-text-muted-color); }
.world-house footer { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.world-house footer > span { font-size: 10px; color: var(--ww-text-muted-color); }
.world-explanation { border-top: 1px solid var(--detail-divider); margin-top: 32px; padding-top: 24px; color: var(--ww-text-muted-color); }
.world-explanation summary { cursor: pointer; color: var(--foreground); }
.world-explanation p { max-width: 78ch; }
@media (max-width: 800px) { .world-neighborhoods { grid-template-columns: repeat(2,minmax(0,1fr)); } .world-houses { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .world-houses { grid-template-columns: 1fr; } .world-selected > header, .world-seed { display: block; } .world-selected > header > p { margin-top: 16px; } .world-neighborhood { padding: 12px; gap: 20px; } .world-neighborhood strong { font-size: 15px; } }

/* Grouped catalogue sections remain horizontally scrollable shelves. */
.concept-house--atlas { --house-shelf-gap:24px; }
.concept-house--atlas .house-section { padding-top:16px; padding-bottom:0; }
.concept-house--atlas .house-bottles:not(.house-bottles--grid) {
  display:grid; grid-template-columns:none; grid-auto-flow:column;
  grid-auto-columns:var(--house-bottle-width, clamp(150px,15vw,210px)); gap:var(--house-shelf-gap);
  overflow-x:auto; overscroll-behavior-x:contain;
  /* Keep the label spacing inside the scroller so its bar sits above the divider. */
  scroll-snap-type:x proximity;
  scroll-padding-inline:var(--house-shelf-gap);
  padding:0 var(--house-shelf-gap) var(--house-shelf-gap);
}
.concept-house--atlas .house-bottles > * { min-width:0; scroll-snap-align:start; }

.concept-house--atlas .house-section > header { padding-inline:16px; }
.concept-house--atlas > .house-toolbar {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
  gap:8px;
  padding:8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
}

/* Wrap ungrouped brands at the same bottle size as neighborhood shelves. */
.concept-house--atlas .house-bottles--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--house-bottle-width, clamp(150px, 15vw, 210px)));
  justify-content: center;
  gap: 32px var(--house-shelf-gap);
  box-sizing: border-box;
  margin: 0;
  padding: 0 var(--house-shelf-gap) var(--house-shelf-gap);
  list-style: none;
}
.concept-house--atlas .house-bottles--grid > li {
  width: var(--house-bottle-width, clamp(150px, 15vw, 210px));
}

.house-notes .notes-photo { overflow: hidden; touch-action: pan-y; user-select: none; }
.house-notes .notes-photo img { pointer-events: none; }

.house-toolbar-link { justify-self:start; white-space:nowrap; padding-block:6px; }
.house-toolbar-link:last-child { justify-self:end; }

.concept-house--atlas [data-brand-content] { display: contents; }
.concept-house .brand-bootstrap-status { position: fixed; }
