/* Blind colours (inc/blind-colours.php, assets/js/blinds.js): the 24 room-darkening fabrics for Shutter & Shade,
 * picked on a to-scale drawing of the shutter with its right panel folded back. blackout-shutters.php only. */
.bc .k { color: var(--muted); }
.bc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 60px); align-items: start; }

/* the drawing sheet */
.bc__stage { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #fff; border: 1px solid rgba(21, 48, 74, .14); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21, 48, 74, .35); }
.bc__sheet { position: relative; padding: clamp(16px, 2vw, 26px) 18px 12px; display: grid; justify-items: center; gap: 6px; perspective: 900px;
  background-image: linear-gradient(rgba(21, 48, 74, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 48, 74, .06) 1px, transparent 1px); background-size: 20px 20px; }
.bc__dw { display: block; height: clamp(280px, calc(100vh - 420px), 430px); width: auto; max-width: 100%; overflow: visible; filter: drop-shadow(0 16px 22px rgba(21, 48, 74, .2)); }
.bc__note { font-size: .875rem; color: var(--muted); text-align: center; }
.bc__sun path { fill: rgba(255, 241, 214, .34); }
.bc__lv rect:first-child { fill: #F3F3EF; }
.bc__lv-lit { fill: url(#bc-lit); }
.bc__edge { fill: none; stroke: rgba(10, 14, 17, .26); stroke-width: .8; }
.bc__rod { stroke: rgba(10, 14, 17, .2); stroke-width: 2.4; stroke-linecap: round; }
.bc__open-p { fill: url(#bc-leaf); stroke: rgba(10, 14, 17, .26); stroke-width: .8; }
.bc__open-l { fill: none; stroke: rgba(10, 14, 17, .2); stroke-width: 1.4; }
.bc__frame { fill: none; stroke: #EFEFEA; stroke-width: 9; }
.bc__dim { fill: none; stroke: var(--oak); stroke-width: 1.1; }

/* title block: the picked fabric and its fittings */
.bc__tb { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; border-top: 1px solid rgba(21, 48, 74, .14); background: var(--paper); }
.bc__tb > * { padding: 12px 16px; min-width: 0; }
.bc__hd { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.bc__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.bc__meta { display: flex; flex-direction: column; justify-content: center; border-top: 1px solid rgba(21, 48, 74, .12); }
.bc__meta + .bc__meta { border-left: 1px solid rgba(21, 48, 74, .12); }
.bc__chip { width: 58px; height: 58px; padding: 0; margin: 0; border-radius: calc(var(--r) - 2px); background-size: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 8px 18px rgba(21, 48, 74, .22); }
.bc__id b { display: block; font: 400 clamp(1.4rem, 1.8vw, 1.8rem)/1 var(--f-d); color: var(--oak-deep); font-variant-numeric: lining-nums tabular-nums; }
.bc__id span { font: 400 1.3rem/1.2 var(--f-d); color: var(--text); }
.bc__meta .k { margin-bottom: 4px; }
.bc__meta span:last-child { font-size: .95rem; line-height: 1.3; color: var(--text); }
.bc__bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; padding: 0; }
.bc__bar i { display: block; height: 100%; background: var(--oak); transform: scaleX(0); transform-origin: left; }
.no-js .bc__bar, .rm .bc__bar { display: none; }

/* the fabric picker */
.bc__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.bc__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
.bc__sw { position: relative; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.bc__tile { display: block; aspect-ratio: 1; border-radius: var(--r); background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(10, 14, 17, .1), 0 6px 14px -6px rgba(21, 48, 74, .3); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bc__sw:hover .bc__tile { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(10, 14, 17, .1), 0 14px 22px -8px rgba(21, 48, 74, .4); }
.bc__sw input:checked + .bc__tile { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--oak), 0 14px 22px -8px rgba(21, 48, 74, .4); }
.bc__sw input:focus-visible + .bc__tile { outline: 2px solid var(--ink); outline-offset: 6px; }
.bc__nm { font-size: .875rem; line-height: 1.25; color: var(--text); }
.bc__nm small { display: block; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bc__sw input:checked ~ .bc__nm { font-weight: 600; }
.bc__say { margin: 22px 0 0; font-size: 1rem; line-height: 1.55; color: var(--muted); }

/* the spec strip, from their specification sheet */
.bc__spec { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid rgba(21, 48, 74, .18); }
.bc__spec li { padding: 16px 16px 4px 0; }
.bc__spec li + li { padding-left: 16px; border-left: 1px solid rgba(21, 48, 74, .12); }
.bc__spec .k { margin-bottom: 6px; }
.bc__spec b { display: block; font: 400 1.12rem/1.3 var(--f-d); color: var(--ink); }

@media (max-width: 1180px) {
  .bc__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bc__spec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc__spec li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .bc__body { grid-template-columns: minmax(0, 1fr); }
  .bc__dw { height: auto; width: min(100%, 400px); }
  /* the swatches become one strip under the drawing, so the blind you pick stays in view */
  .bc__grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(var(--gut) * -1); padding: 6px var(--gut) 12px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
  .bc__grid::-webkit-scrollbar { display: none; }
  .bc__sw { flex: 0 0 92px; scroll-snap-align: start; }
  .bc__say { margin-top: 12px; }
}
@media (max-width: 560px) {
  .bc__dw { width: min(100%, 318px); }
  .bc__tb > .bc__meta { padding: 10px 12px; }
  .bc__chip { width: 52px; height: 52px; }
  .bc__id { flex-direction: column; gap: 4px; }
  .bc__meta span:last-child { font-size: .9rem; }
  .bc__spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc__spec li:nth-child(n) { padding-left: 14px; border-left: 1px solid rgba(21, 48, 74, .12); }
  .bc__spec li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
