header .brand {
  padding-block: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1b1b50;
  font-size: clamp(1.2rem, 2.8vw, 1.4rem);
  font-weight: 900;
}
header .brand img {
  width: clamp(96px, 16vw, 112px);
  height: clamp(96px, 16vw, 112px);
}
header .back {
  padding: 7px 16px;
  color: #1b1b50;
  background: #f4f6fb;
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
}
header .back:hover { background: #e9eef8; }

.board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr);
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 26px;
  color: #fff;
  background: #14223b;
  border: 1px solid #2a3a55;
  border-radius: 20px;
}
.board-intro { padding-inline: 10px; }
.board-intro h1 { margin: 8px 0 12px; }
.board-intro p { color: #d4deec; line-height: 1.9; }
.board-intro .board-eyebrow { color: #efcb78; font-size: .84rem; font-weight: 700; }
.category-sample {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #0d182b;
  border: 1px solid #516079;
  border-radius: 12px;
}
.category-sample > :is(img, svg) { display: block; width: 100%; height: auto; }
.category-sample figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 14px;
  color: #eef3f9;
  font-size: .78rem;
}
.category-sample bdi { color: #efcb78; }
@media (max-width: 660px) {
  .board-hero { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .board-intro { padding-inline: 4px; }
}

/* Center the board itself, accounting for margins in the source photo. */
.board-photo-frame {
  display: block;
  position: relative;
  overflow: hidden;
  width: min(100%, var(--board-frame-size, 244px));
  aspect-ratio: 1;
  margin-inline: auto;
}
.board-photo-frame > .board-photo {
  position: absolute;
  display: block;
  inset: 50% auto auto 50%;
  width: var(--photo-width);
  max-width: none;
  height: auto;
  transform: translate(var(--photo-x), var(--photo-y));
}
.board-photo-frame--left > .board-photo { clip-path: inset(0 calc(100% - var(--photo-split, 50%)) 0 0); }
.board-photo-frame--right > .board-photo { clip-path: inset(0 0 0 var(--photo-split, 50%)); }


.board-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 14px;
  max-width: 100%;
}
.board-list-controls[hidden],
#ahd-products > [hidden],
#ip-products > [hidden] {
  display: none;
}
.board-list-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #4b5b77;
  font-size: .9rem;
}
.board-list-field input,
.board-list-field select {
  min-height: 44px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #c2cde0;
  border-radius: 10px;
  background: #fff;
  color: #18243d;
  font: inherit;
}
.board-list-field input {
  width: min(15rem, 100%);
}
.board-list-field :focus-visible {
  outline: 3px solid #a07b2d;
  outline-offset: 2px;
}
.board-search-status {
  margin: 0 0 12px;
  color: #4b5b77;
  font-size: .9rem;
}


.housing-card-photo {
  display: grid;
  place-items: center;
  height: clamp(132px, 23vw, 176px);
  margin-bottom: 12px;
}
.housing-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 210px;
  object-fit: contain;
}

.housing-stock-note {
  margin: 0 0 14px;
  color: #52617b;
  font-size: .85rem;
}
.housing-card-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
}
.housing-badge-features,
.housing-badge-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.housing-card-badges .housing-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #e9eef7;
  color: #2d4669;
  font-size: .76rem;
  font-weight: 700;
}
.housing-card-badges .housing-badge.housing-badge--instock { background: #e3f5e9; color: #17603a; }
.housing-card-badges .housing-badge.housing-badge--outofstock { background: #fae8e8; color: #8c3030; }
.housing-card-badges .housing-badge.housing-badge--warm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  background: #b84800;
  color: #fff;
  border: 1px solid #963b00;
  box-shadow: 0 2px 5px #b8480026;
  font-size: .84rem;
  font-weight: 900;
}
.housing-card-badges .housing-badge.housing-badge--warm::before {
  content: "\2600";
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}

.housing-cover-mirrored { transform: scaleX(-1); }

.housing-card-photo { position: relative; }
.part .housing-card-photo .housing-size-tag {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  padding: 4px 9px;
  border-radius: 8px;
  background: #203f69;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  direction: ltr;
  unicode-bidi: isolate;
}

.bullet-grid > .part[hidden], .dome-grid > .part[hidden] { display: none; }
