/* /blueprint — "Tap where work piles up". The visitor's own company as a floor plan.
   Shared tokens, pens and primitives come from site.css; the fallbacks keep this sheet
   standing on its own. Walls are the plan's ink showing between the rooms, so Plan view
   flips the drawing without a single extra rule. */

[hidden] { display: none !important; }

.bp { position: relative; padding: clamp(20px, 3.2vw, 44px) 0 clamp(56px, 7vw, 96px); }
.bp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; margin-bottom: clamp(14px, 2.2vw, 26px); }
.bp-head .h2 { font-size: clamp(1.75rem, 0.9rem + 3.4vw, 3rem); }
.bp-lede { font-size: 1.0625rem; max-width: 26em; padding-bottom: 6px; }

.bp-k { display: block; font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ─── The sheet: drawing on the left, title strip on the right (as on a real drawing).
       Below 1100px: title block, drawing, schedule, in that order. ───────────────── */
.bp-sheet { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tb" "draw" "side"; gap: 14px; }
.bp-tb { grid-area: tb; }
.bp-draw { grid-area: draw; min-width: 0; }
.bp-side { grid-area: side; min-width: 0; }

/* ─── Title block: whose sheet this is. Two of its cells are fields. ─── */
.bp-tb {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: var(--pen-2, 1.5px) solid var(--ink); border-radius: 2px; background: var(--sheet);
  font-size: 0.8125rem; line-height: 1.25;
}
.bp-tb-cell { display: block; min-width: 0; padding: 7px 12px 8px; border-left: var(--pen-1, 1px) solid var(--ink); border-top: var(--pen-1, 1px) solid var(--ink); }
.bp-tb-cell:nth-child(odd) { border-left: 0; }
.bp-tb-cell:nth-child(-n+2) { border-top: 0; }
.bp-v { display: block; margin-top: 2px; font-weight: 600; color: var(--ink); }
.bp-tb input, .bp-tb select {
  display: block; width: 100%; min-height: 26px; margin: 1px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  font: 600 1rem/1.3 var(--font); color: var(--ink); caret-color: var(--accent); text-overflow: ellipsis;
}
.bp-tb input::placeholder { color: var(--accent); opacity: 1; font-weight: 600; }
.bp-tb select { cursor: pointer; }
.bp-tb select.is-blank { color: var(--accent); }
.bp-tb input:focus, .bp-tb select:focus { outline: none; }
label.bp-tb-cell { cursor: text; transition: background-color var(--t-ui, 180ms) ease; }
label.bp-tb-cell:hover { background: var(--paper); }
label.bp-tb-cell:focus-within { background: var(--accent-wash); box-shadow: inset 0 0 0 2px var(--accent); }

/* ─── The plan ───────────────────────────────────────────────
   Ink shows between the rooms: the outer wall is the padding, the partitions are the gap. */
.bp-plan {
  --wall: 5px; --part: 3px;
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--part);
  padding: var(--wall); background: var(--ink);
}
.room { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--sheet); container-type: inline-size; }
.room--x { grid-column: 1 / -1; }
.room-box { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; margin: 0; opacity: 0; pointer-events: none; }
.room-face {
  position: relative; flex: 1; display: grid; align-content: start; gap: 1px; padding: 9px 10px 9px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color var(--t-ui, 180ms) ease;
}
.room-tag { display: none; font: 500 0.75rem/1.35 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.room-name { padding-right: 26px; font-weight: 680; font-size: 0.9375rem; line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); }
.room-sys { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.room-price { font: 600 0.75rem/1.4 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .room-face:hover { background-color: var(--accent-wash); } }
.room-box:focus-visible + .room-face { outline: 2px solid var(--accent); outline-offset: -4px; }

/* the mark in the corner: an empty balloon until the room is ticked, then its place in the build */
.room-n {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  border: var(--pen-1, 1px) dashed var(--line-2); background: transparent;
  font: 600 0.75rem/20px var(--mono); text-align: center; color: var(--sheet); font-variant-numeric: tabular-nums;
}
.room-box:checked + .room-face .room-n { border: 0; line-height: 22px; background: var(--ink); }
.room.is-first .room-box:checked + .room-face .room-n { background: var(--accent); }
.room.is-landing .room-n { animation: bp-land 420ms var(--ease-stamp, cubic-bezier(0.3, 1.45, 0.6, 1)) both; }
@keyframes bp-land { from { transform: scale(1.5); } to { transform: scale(1); } }

/* A ticked room is the selected room of the drawing: wash plus a light hatch. The wash is laid
   over the sheet colour (in Plan view it is translucent, and the walls behind a room are white).
   Two rules, not one list: a browser without :has() must still read the first. */
.room { --wash: linear-gradient(var(--accent-wash), var(--accent-wash)); --hatch: linear-gradient(transparent, transparent); }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .room { --hatch: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--accent) 20%, transparent) 6px 7px); }
}
.room.is-on { background-image: var(--hatch), var(--wash); }
.room:has(.room-box:checked) { background-image: var(--hatch), var(--wash); }
.room.is-on .room-face:hover { background-color: transparent; }

/* hours: their own row, not part of the room's label */
.room-hrs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 10px 10px; }
.hrs-btn {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  border: var(--pen-1, 1px) solid var(--ink); border-radius: 6px; background: var(--sheet); color: var(--ink);
  transition: background-color var(--t-ui, 180ms) ease, transform var(--t-tap, 120ms) var(--ease-out);
}
.hrs-btn:hover { background: var(--paper); }
.hrs-btn:active { transform: scale(0.94); }
.hrs-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hrs-in {
  flex: 1 1 0; min-width: 0; max-width: 72px; height: 40px; padding: 0 2px; text-align: center;
  border: var(--pen-1, 1px) solid var(--ink); border-radius: 6px; background: var(--sheet); color: var(--ink);
  font: 600 1rem/1 var(--mono); font-variant-numeric: tabular-nums; caret-color: var(--accent);
}
.hrs-in::placeholder { color: var(--ink-3); font-weight: 500; font-size: 0.8125rem; }
.hrs-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
/* the unit is always on screen: under the stepper in a narrow room, beside it in a wide one */
.hrs-unit { display: block; flex: 0 0 100%; margin-top: 2px; font: 500 0.75rem/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
@container (min-width: 264px) { .hrs-unit { flex: 0 0 auto; margin: 0 0 0 4px; } }

/* drawing furniture: only on the wide plan */
.door, .win, .bp-axes { display: none; }

/* the dimension under the plan carries the hint, then their hours */
.bp-dim { margin-top: 12px; white-space: normal; text-align: center; color: var(--ink-2); }
.bp-dim::before, .bp-dim::after { min-width: 14px; }

/* ─── Schedule and the way on ──────────────────────────────── */
.bp-side { display: grid; gap: 14px; align-content: start; }
.bp-sched { list-style: none; border-top: var(--pen-2, 1.5px) solid var(--ink); }
.bp-sched li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 10px 0; border-bottom: var(--pen-1, 1px) solid var(--line-2); font-size: 0.9375rem; line-height: 1.3; }
.bp-sched .bp-empty { display: block; color: var(--ink-3); }
.bp-n { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--sheet); font: 600 0.75rem/22px var(--mono); text-align: center; }
.is-first > .bp-n { background: var(--accent); }
.bp-s { display: grid; gap: 1px; min-width: 0; }
.bp-s b { font-weight: 650; }
.bp-s small { font-size: 0.8125rem; color: var(--ink-3); }
.bp-p { font: 600 0.75rem/1.6 var(--mono); color: var(--ink); text-align: right; max-width: 15ch; font-variant-numeric: tabular-nums; }
.is-first .bp-s b { font-size: 1.0625rem; }
.bp-sched li.is-long .bp-p { grid-column: 2 / -1; max-width: none; text-align: left; color: var(--ink-2); }
.bp-cost { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.bp-cost-in { display: inline-flex; align-items: center; gap: 6px; font: 600 1rem/1 var(--mono); color: var(--ink); }
.bp-cost-in input {
  width: 68px; height: 40px; padding: 0 6px; text-align: center; border: var(--pen-1, 1px) solid var(--ink); border-radius: 6px;
  background: var(--sheet); color: var(--ink); font: inherit; caret-color: var(--accent);
}
.bp-cost-in input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.bp-go { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.bp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-acts .btn { flex: 1 1 140px; gap: 8px; }
.bp-acts .btn svg, .bp-acts .btn:hover svg { transform: none; width: 16px; height: 16px; }
.bp-link { width: 100%; min-height: 40px; padding: 0 10px; border: var(--pen-1, 1px) solid var(--ink); border-radius: 6px; background: var(--sheet); color: var(--ink); font: 500 0.8125rem/1 var(--mono); }
.bp-fine { max-width: 34ch; }
.bp-print { display: none; }

/* ─── Below 1100px: the result rides at the bottom of the screen ─── */
.bp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "line line line" "ix go share"; gap: 8px;
  padding: 9px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: var(--pen-2, 1.5px) solid var(--ink); background: var(--sheet);
}
.bp-bar-line { grid-area: line; }
.bp-bar > .ix-btn { grid-area: ix; }
.bp-bar > .btn { grid-area: go; }
.bp-bar-share { grid-area: share; }
.bp-bar-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; font-size: 0.9375rem; line-height: 1.3; }
.bp-bar-line .bp-k { flex: none; }
.bp-bar-line b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 680; color: var(--ink); }
.bp-bar-price { flex: none; margin-left: auto; font: 600 0.75rem/1.3 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.bp-bar > .btn { min-width: 0; padding: 0 12px; white-space: normal; text-align: center; line-height: 1.15; }
.bp-bar .ix-btn, .bp-bar-share {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 56px; min-height: 56px; padding: 0; cursor: pointer;
  border: var(--pen-1, 1px) solid var(--line-2); border-radius: var(--r-md); background: var(--sheet); color: var(--ink);
}
.bp-bar .ix-btn span { display: none; }
.bp-bar-share svg { width: 20px; height: 20px; }
.bp-bar .ix-btn:hover, .bp-bar-share:hover { border-color: var(--ink); }
@media (max-width: 1099px) {
  .bp-page .dock { display: none; }            /* its two controls live in this bar and in Contents */
  .bp-page .footer { padding-bottom: 168px; }
}
@media (max-width: 720px) {
  .bp-lede { display: none; }
  .bp-head { margin-bottom: 12px; }
}
@media (max-width: 340px) {
  .bp-bar .bp-k { display: none; }
  .hrs-btn { width: 36px; }
}

/* ─── 721–1099px: three across, the workshop takes two ─────── */
@media (min-width: 721px) {
  .bp-plan { --wall: 6px; --part: 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room--x { grid-column: span 2; }
  .room-face { padding: 12px 14px 10px; gap: 2px; }
  .room-tag { display: block; }
  .room-name { font-size: 1.0625rem; }
  .room-sys { font-size: 0.9375rem; }
  .room-price { font-size: 0.8125rem; }
  .room-hrs { padding: 0 14px 12px; }
  .hrs-btn, .hrs-in { height: 36px; }
  .hrs-btn { width: 36px; }
  .bp-tb { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; }
  .bp-tb-cell:nth-child(odd) { border-left: var(--pen-1, 1px) solid var(--ink); }
  .bp-tb-cell:first-child { border-left: 0; }
  .bp-tb-cell:nth-child(-n+4) { border-top: 0; }
}

/* ─── From 1100px: a real plan. Staggered rooms, doors, windows, grid bubbles;
       the title block and the schedule become the strip down the right edge. ─── */
@media (min-width: 1100px) {
  .bp-bar { display: none; }
  .bp-sheet { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr; grid-template-areas: "draw tb" "draw side"; column-gap: clamp(24px, 2.6vw, 36px); row-gap: 0; align-items: start; }
  .bp-tb { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 34px; border-radius: 2px 2px 0 0; }
  .bp-tb-cell:nth-child(odd) { border-left: 0; }
  .bp-tb-cell:nth-child(n+3) { border-top: var(--pen-1, 1px) solid var(--ink); }
  .bp-side { position: sticky; top: 92px; padding: 6px 16px 16px; border: var(--pen-2, 1.5px) solid var(--ink); border-top: 0; border-radius: 0 0 2px 2px; background: var(--sheet); }
  .bp-sched { border-top: 0; }

  .bp-plan { --wall: 8px; --part: 5px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(148px, auto); }
  .room--web { grid-column: span 3; }
  .room--fd { grid-column: span 5; }
  .room--bk { grid-column: span 4; }
  .room--cs { grid-column: span 4; }
  .room--op { grid-column: span 5; }
  .room--kn { grid-column: span 3; }
  .room--out, .room--fu, .room--mk { grid-column: span 4; }
  .room--shop { grid-column: span 5; }
  .room--x { grid-column: span 7; }
  .room-face { padding: 14px 16px 6px; }
  .room-hrs { padding: 0 16px 12px; }

  /* doors: an opening in the wall, the leaf standing open, the swing as a hairline quarter circle */
  .door { --d: 34px; display: block; position: absolute; z-index: 2; background: var(--sheet); pointer-events: none; }
  .door::after { content: ""; position: absolute; width: var(--d); height: var(--d); border: 0 solid var(--ink-3); }
  .door--r { right: calc(-1 * var(--part)); bottom: 14px; width: var(--part); height: var(--d); }
  .door--r::after { right: 100%; bottom: 0; border-width: 1px 0 1px 1px; border-top-left-radius: 100%; }
  .door--b { bottom: calc(-1 * var(--part)); right: 24px; height: var(--part); width: var(--d); }
  .door--b::after { bottom: 100%; right: 0; border-width: 1px 1px 0 1px; border-top-left-radius: 100%; }
  .door--t { top: calc(-1 * var(--part)); right: 58px; height: var(--part); width: var(--d); }
  .door--t::after { top: 100%; left: 0; border-width: 0 1px 1px 1px; border-bottom-right-radius: 100%; }
  /* the way in: through the outer wall of the shop front, opening onto the street */
  .door--in { --d: 40px; top: calc(-1 * var(--wall)); left: 92px; height: var(--wall); width: var(--d); }
  .door--in::after { bottom: 100%; left: 0; border-width: 1px 1px 0 1px; border-top-right-radius: 100%; }

  /* windows: the wall opened, glazed with a hairline */
  .win { display: block; position: absolute; z-index: 2; background: var(--sheet); box-shadow: inset 0 0 0 var(--pen-1, 1px) var(--ink); pointer-events: none; }
  .win::after { content: ""; position: absolute; background: var(--ink-3); }
  .win--t, .win--b { left: var(--at); width: var(--len); height: var(--wall); }
  .win--t { top: 0; } .win--b { bottom: 0; }
  .win--t::after, .win--b::after { left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; }
  .win--r { right: 0; top: var(--at); height: var(--len); width: var(--wall); }
  .win--r::after { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; }

  /* grid bubbles over the structural lines of the front row */
  .bp-axes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 5px; height: 34px; padding: 0 8px; }
  .bp-axes i {
    grid-row: 1; justify-self: start; position: relative; width: 24px; height: 24px; margin-left: -14.5px;
    border: var(--pen-1, 1px) solid var(--ink-3); border-radius: 50%; background: var(--paper);
    font: 500 0.75rem/22px var(--mono); font-style: normal; text-align: center; color: var(--ink-2);
  }
  .bp-axes i:first-child { margin-left: -16px; }
  .bp-axes i.is-end { justify-self: end; margin-left: 0; margin-right: -16px; }
  .bp-axes i::after { content: ""; position: absolute; left: 50%; top: 100%; height: 10px; border-left: var(--pen-1, 1px) dashed var(--ink-3); }
}

/* ─── Motion: only the balloon lands. Nothing else moves. ──── */
@media (prefers-reduced-motion: reduce) {
  .room.is-landing .room-n { animation: none; }
  .hrs-btn { transition: none; }
}

/* ─── Print: one page to hand to a partner or a director ───── */
@media print {
  @page { size: A4; margin: 12mm 14mm; }
  html, html.plan-view {
    color-scheme: light;
    --paper: #fff; --paper-2: #f2f3f0; --sheet: #fff; --ink: #0f1828; --ink-2: #3b4557; --ink-3: #5e6878;
    --line: #d8dce2; --line-2: #c3c9d2; --accent: #2445e0; --accent-wash: #e9eeff;
  }
  body, html.plan-view body { background: #fff !important; }
  body::before, body::after, .nav, .footer, .bp-bar, .dock, .rail, .ix, .ix-scrim, .xh, .why-wrap, .skip-link, #start,
  .bp-lede, .bp-go, .bp-acts, .bp-link, .bp-fine, .bp-cost, .room-hrs .hrs-btn, .door, .win, .bp-axes { display: none !important; }
  .bp { padding: 0; }
  .bp-head { margin-bottom: 5mm; }
  .bp-head .h2 { font-size: 18pt; }
  .hl::before, .hl::after { display: none !important; }
  .bp-sheet { display: block; }
  .bp-tb { grid-template-columns: 1.4fr 1fr 1fr 1fr; margin: 0 0 5mm; }
  .bp-tb-cell { border-top: 0 !important; border-left: 1px solid var(--ink) !important; }
  .bp-tb-cell:first-child { border-left: 0 !important; }
  .bp-tb input::placeholder { color: transparent; }
  .bp-tb select { appearance: none; -webkit-appearance: none; }
  .bp-plan { --wall: 4px; --part: 2px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; break-inside: avoid; }
  .room, .room--x { grid-column: auto; break-inside: avoid; }
  .room--x { grid-column: span 2; }
  .room, .room-n, .bp-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .room-tag { display: block; font-size: 7pt; }
  .room-face { padding: 6px 8px; }
  .room-name { font-size: 10pt; } .room-sys { font-size: 8.5pt; } .room-price { font-size: 8pt; }
  .room-hrs { display: flex !important; padding: 0 8px 6px; }
  .room-hrs[hidden], .room-hrs:has(.hrs-in:placeholder-shown) { display: none !important; }
  .room-box:not(:checked) + .room-face .room-n { display: none; }
  .hrs-in { height: auto; max-width: none; flex: none; width: 3.2em; border: 0; padding: 0; text-align: left; font-size: 9pt; }
  .hrs-unit { display: inline !important; font-size: 8pt; }
  .bp-dim { margin-top: 4mm; }
  .bp-side { display: block; position: static; margin-top: 5mm; padding: 0; border: 0; }
  .bp-sched { border-top: 1.5px solid var(--ink); }
  .bp-sched li { padding: 4px 0; font-size: 10pt; break-inside: avoid; }
  .is-first .bp-s b { font-size: 11pt; }
  .bp-print { display: block; margin-top: 5mm; font-size: 8.5pt; line-height: 1.5; color: var(--ink-2); break-inside: avoid; }
  .bp-print ul { list-style: none; margin-bottom: 3mm; }
  .bp-print li { display: inline; }
  .bp-print li + li::before { content: " · "; }
  .bp-print p { border-top: 1px solid var(--ink); padding-top: 2.5mm; }
  a { text-decoration: none; }
}

/* The floating index would cover the plan's corner room: on this sheet it parks bottom-right */
@media (min-width: 721px) { .bp-page .dock { left: auto; right: 26px; } .bp-page .ix { left: auto; right: 26px; } }
