/* The residential blocks of a project page (order 120, Shione): the buildings' blocks, the unit mix's bars, the plan calculator's additions. The whole page's own
   stylesheet is src/styles/project.css; this file holds ONLY what the residential template adds, in one place, because a project route's stylesheet reaches production's
   output even while no project page is built (an unlinked file), so every addition to project.css or to a project component's <style> would rename it. Logical properties
   only, no radius, no shadow, the tokens and the 4px scale (CLAUDE.md, Design tokens). Nothing moves. */

/* ------------------------------------------------------------ bars: a block, a type of apartment */

.res-blocks,
.res-bars {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  max-inline-size: 47.5rem; /* 760 */
}

.res-group {
  display: grid;
  gap: var(--space-4);
}

.res-group + .res-group {
  margin-block-start: var(--space-3);
}

.res-group-head,
.res-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  font-size: var(--font-size-ui);
  line-height: 1.5rem;
}

.res-group-head {
  padding-block-end: var(--space-2);
  border-block-end: 1px solid var(--color-text);
}

.res-row-head b {
  font-weight: var(--font-weight-strong);
}

.res-row-head span,
.res-group-head span {
  color: var(--color-text-muted);
}

.res-bar {
  display: block;
  margin-block-start: var(--space-1);
}

.res-fill {
  fill: var(--color-text);
}

.res-row-foot {
  margin-block-start: var(--space-1);
}

.res-bars figcaption,
.res-blocks figcaption {
  max-inline-size: none;
}

/* ------------------------------------------------------------ the unit mix */

.res-mix {
  display: grid;
  gap: var(--space-5);
}

.res-notes {
  display: grid;
  gap: var(--space-1);
}

.res-notes > p {
  max-inline-size: none;
}

.res-mix .res-bars {
  margin-block-start: var(--space-4);
}

/* ------------------------------------------------------------ what the template's own components leave to this file */

/* The line under the gallery (the entry's `galleryFootnote`): small and muted, as a note under a table is. */
.gallery .footnote {
  max-inline-size: none;
  margin-block-start: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-1);
  line-height: 1rem;
}

/* A table straight after reading text in a section (the drive times): the global rule `.project-page .table-scroll { margin-block: 0 }` would take the flow's room away. */
.project-page .proj-flow > * + .table-scroll {
  margin-block-start: var(--space-7);
}

/* The permit's QR code is a picture a phone must scan from a screen: bigger than the 88px the commercial template gives it. */
.proj-sec .permit .qr {
  inline-size: 8rem; /* 128 */
}
