/* deashouse.com: tokens and values from design/*.dc.html */

:root {
  --ink: #1A1C1B;
  --nav-ink: #3D403E;
  --muted: #5A5E5B;
  --subtle: #6E716D;
  --shutter: #2E4A3E;
  --shutter-hover: #1F352C;
  --cypress: #8B6B4E;
  --limewash: #F7F5F0;
  --line: #E7E4DD;
  --line-soft: #EFECE6;
  --line-strong: #DDD9D0;
  --drawing: #B9B3A5;
  --placeholder-icon: #A9A495;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;

  --container: 1200px;
  --gutter: 32px;
  --radius: 4px;
  --section-gap: 112px;
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section-gap: 80px; }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--shutter); }
a:hover { color: var(--shutter-hover); }

:focus-visible {
  outline: 2px solid var(--shutter);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
}

svg { flex-shrink: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-gap); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cypress);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Controls that need JavaScript stay hidden without it. */
html:not(.js) .js-only { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--shutter);
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 8px; color: #ffffff; }

/* Acadian textures */

.board-batten {
  background-color: var(--limewash);
  background-image: repeating-linear-gradient(90deg, rgba(60, 50, 30, 0.035) 0 2px, transparent 2px 30px);
}

.placeholder {
  background: var(--limewash);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder-icon);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { color: var(--shutter); }
.brand:hover { color: var(--ink); }

.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.005em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav a {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--shutter); }

.site-nav a[aria-current="page"] {
  color: var(--shutter);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--shutter);
}

/* On phones the nav wraps to two rows; a sticky header that tall would cover the content. */
@media (max-width: 600px) {
  .site-header { position: static; }
  .site-header__inner { padding-top: 6px; padding-bottom: 2px; }
  .site-nav { margin: 0 -10px; gap: 0; }
  .site-nav a { padding: 12px 10px; }
}

/* Footer */

.site-footer { margin-top: var(--section-gap); }

.porch-posts {
  height: 28px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer__inner {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--subtle);
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

/* Home: hero */

.hero { padding-top: 80px; }

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
}

.hero__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.hero__heading { flex: 1 1 520px; min-width: 0; }

.hero__title {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
}

.hero__lede {
  flex: 1 1 340px;
  max-width: 46ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.hero__media {
  position: relative;
  margin-top: 48px;
  height: clamp(320px, 46vw, 620px);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__drawing {
  width: min(78%, 780px);
  height: auto;
  margin-bottom: 6%;
}

.hero__note {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-ink);
}

@media (max-width: 600px) {
  .hero__drawing { width: 92%; }
  .hero__note { left: 12px; top: 12px; right: 12px; font-size: 13px; }
}

/* Home: section cards */

.cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  padding: 32px 28px 28px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}
.card:hover { color: var(--ink); background: #FCFBF8; }

.card__num {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--cypress);
}

.card__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
}

.card__desc {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.card__meta { color: var(--subtle); }
.card__open { color: var(--shutter); font-weight: 600; }

/* Home: latest updates */

.updates {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

@media (max-width: 360px) {
  .updates { grid-template-columns: 1fr; }
}

.update {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.update:hover { color: var(--ink); }
.update:hover .update__title { color: var(--shutter); }

.update__photo { aspect-ratio: 3 / 2; }

.update__phase {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cypress);
}

.update__title {
  margin-top: -6px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.update__date {
  margin-top: -8px;
  font-size: 14px;
  color: var(--subtle);
}

/* Sticker lookup */

.lookup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--shutter);
  color: #ffffff;
}

.lookup__text { flex: 1 1 360px; min-width: 0; }

.lookup h2 { font-size: clamp(30px, 3.2vw, 40px); }

.lookup p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #D5DED9;
}

.lookup__box { flex: 0 1 auto; min-width: 0; }

.lookup__form {
  display: flex;
  gap: 8px;
}

.lookup__form input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 500 16px var(--sans);
}
.lookup__form input::placeholder { color: rgba(255, 255, 255, 0.75); }
.lookup__form input:focus-visible { outline-color: #ffffff; }

.lookup__form button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--shutter-hover);
  font: 600 15px var(--sans);
  cursor: pointer;
}
.lookup__form button:hover { background: var(--limewash); }
.lookup__form button:focus-visible { outline-color: #ffffff; }

/* ---------- Shared: section pages ---------- */

.page-head { border-bottom: 1px solid var(--line); }
.page-head.board-batten {
  background-image: repeating-linear-gradient(90deg, rgba(60, 50, 30, 0.03) 0 2px, transparent 2px 30px);
}

.page-head__inner {
  padding-top: 72px;
  padding-bottom: 56px;
}

.page-head__inner--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.page-head__text { flex: 1 1 520px; min-width: 0; }
.page-head .eyebrow { margin-bottom: 16px; }

.page-head__lede {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 600px) {
  .page-head__inner { padding-top: 48px; padding-bottom: 40px; }
}

.section--first { padding-top: 96px; }
.section--tools { padding-top: 40px; }

@media (max-width: 600px) {
  .section--first { padding-top: 64px; }
}

.anchor-target { scroll-margin-top: 80px; }

@media (max-width: 600px) {
  .anchor-target { scroll-margin-top: 16px; }
}

.section__lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.eyebrow--tight { margin-bottom: 12px; }

.source {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--subtle);
}

.text-link--small { font-size: 14px; }

.list-label {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}
.split--center { align-items: center; gap: 40px 64px; }
.split__main { flex: 1 1 340px; min-width: 0; }
.split__side { flex: 1 1 320px; min-width: 0; }
.split__wide { flex: 2 1 520px; min-width: 0; }

/* Pills (on-this-page links) */

.pills {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.pill:hover { border-color: var(--shutter); color: var(--shutter); }

/* Filter chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--nav-ink);
  font: 500 14px var(--sans);
  cursor: pointer;
}
.chip:hover { border-color: var(--shutter); }
.chip[aria-pressed="true"] {
  background: var(--shutter);
  border-color: var(--shutter);
  color: #ffffff;
}
.chip__count { opacity: 0.7; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--shutter);
  color: #ffffff;
  font: 600 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--shutter-hover); color: #ffffff; }

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--shutter);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button-outline:hover { border-color: var(--shutter); }

.pending {
  font-size: 13px;
  color: var(--subtle);
  white-space: nowrap;
}

/* Text inputs on light backgrounds */

/* Sticker codes are three digits, so the entry box stays compact and gives way to the button. */
.code-box { flex: 0 1 auto; min-width: 0; }

.code-form {
  display: flex;
  gap: 8px;
}

.code-error {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #8A2C1F;
}
.lookup .code-error { color: #FFFFFF; }
.lookup .code-error::before { content: "⚠ "; }

.code-form input,
.search input {
  min-width: 0;
  min-height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font: 500 16px var(--sans);
}
.code-form input,
.lookup__form input { flex: 1 1 160px; width: 160px; padding: 0 18px; }
.code-form button,
.lookup__form button { flex: none; }
.code-form input::placeholder,
.search input::placeholder { color: var(--subtle); }

.search {
  position: relative;
  max-width: 560px;
  margin-top: 32px;
}
.search svg { position: absolute; left: 18px; top: 17px; }
.search input { width: 100%; padding: 0 18px 0 48px; }

/* Ruled grids (cells separated by 1px lines) */

.ruled-grid {
  margin-top: 40px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ruled-grid--220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ruled-grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ruled-grid--tight { margin-top: 32px; }

/* ---------- Neighborhood ---------- */

.stat { background: #ffffff; padding: 28px 24px; }
.stat__big {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--shutter);
}
.stat__title { margin-top: 12px; font-size: 16px; font-weight: 600; }
.stat__desc { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.facts { margin: 28px 0 0; }
.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 15px; color: var(--subtle); }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; text-align: right; }

.facts--stacked .facts__row { display: block; }
.facts--stacked dt { font-size: 13px; }
.facts--stacked dd { margin-top: 4px; font-size: 16px; text-align: left; }

/* Site diagram */

.site-plan { flex: 1.4 1 480px; min-width: 0; margin: 0; }

.site-plan__board {
  position: relative;
  padding: 64px 72px;
  background-color: #FBFAF7;
  background-image: linear-gradient(#EFECE5 1px, transparent 1px), linear-gradient(90deg, #EFECE5 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line);
}

.site-plan__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
}
.site-plan__board > .site-plan__label:first-child { margin-bottom: 14px; }
.site-plan__south { margin-top: 14px; }

.site-plan__row { display: flex; align-items: stretch; gap: 14px; }

.site-plan__side { writing-mode: vertical-rl; padding: 0 6px; }
.site-plan__alley {
  transform: rotate(180deg);
  background: repeating-linear-gradient(0deg, #ECE8DF 0 2px, transparent 2px 6px);
}

.site-plan__lots {
  flex: 1;
  aspect-ratio: 145 / 90;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--shutter);
  background: rgba(46, 74, 62, 0.07);
}

.site-plan__lot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--shutter);
}
.site-plan__lot:first-child { border-bottom: 1.5px dashed var(--shutter); }

.site-plan__north {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.site-plan__caption {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--subtle);
}

@media (max-width: 600px) {
  .site-plan { flex-basis: 100%; }
  .site-plan__board { padding: 56px 12px 40px; }
  .site-plan__row { gap: 8px; }
  .site-plan__label { font-size: 11px; letter-spacing: 0.06em; }
  .site-plan__lot { font-size: 22px; }
}

/* Architecture styles */

.style-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

@media (max-width: 360px) {
  .style-grid { grid-template-columns: 1fr; }
}

.style-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.style-card.is-ours { border-color: var(--shutter); }

.style-card__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.style-card__body { padding: 24px 24px 28px; }
.style-card h3 { font-size: 28px; }
.style-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 3px;
  background: var(--shutter);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* File list (HOA documents) */

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.list-head h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { border-bottom: 1px solid var(--line); }
.file-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  color: var(--ink);
  text-decoration: none;
}
.file-list a:hover .file-list__name { color: var(--shutter); }
.file-list__name { flex: 1; font-size: 16px; font-weight: 500; }
.file-list__date { font-size: 14px; color: var(--subtle); }
.file-list__icon { display: flex; color: var(--shutter); }

/* Utilities */

.utility { background: #ffffff; padding: 24px; }
.utility__kind {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cypress);
}
.utility__name { margin-top: 8px; font-size: 18px; font-weight: 600; }
.utility__note { margin-top: 4px; font-size: 14px; color: var(--subtle); }

/* Map */

.map-frame {
  margin-top: 32px;
  height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--limewash);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 600px) {
  .map-frame { height: 360px; }
}

/* ---------- Build ---------- */

.progress {
  flex: 0 1 300px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.progress__label { font-size: 13px; color: var(--subtle); }
.progress__count {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}
.progress__bars { margin-top: 12px; display: grid; gap: 4px; }
.progress__bar { height: 6px; border-radius: 1px; background: var(--line); }
.progress__bar.is-done { background: var(--shutter); }

.phases {
  padding-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 56px;
}

.phase-menu { flex: 1 1 240px; min-width: 0; }

@media (min-width: 900px) {
  .phase-menu { position: sticky; top: 96px; }
}

.phase-menu ol { list-style: none; margin: 0; padding: 0; }
.phase-menu li { border-bottom: 1px solid var(--line); }

.phase-menu__item {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.phase-menu__item:hover { color: var(--ink); background: #FBFAF7; }
.phase-menu__item[aria-current="step"],
.phase-menu__item[aria-current="true"] { background: var(--limewash); }
.phase-menu__item[aria-current="step"] .phase-menu__name,
.phase-menu__item[aria-current="true"] .phase-menu__name { font-weight: 600; }

.phase-menu__num {
  width: 28px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--cypress);
}
.phase-menu__name { flex: 1; font-size: 15px; font-weight: 500; }
.phase-menu__status { font-size: 12px; font-weight: 600; color: var(--subtle); }
.phase-menu__status.is-active { color: var(--shutter); }

.phase-panels { flex: 999 1 560px; min-width: 0; }

/* Without JavaScript every phase is listed; with it, only the selected one shows. */
.phase + .phase {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.phases.is-enhanced .phase { margin-top: 0; padding-top: 0; border-top: 0; }
.phase__title:focus { outline: none; }
.phase__title:focus-visible { outline: 2px solid var(--shutter); outline-offset: 4px; }

.phase__status {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.phase__status.is-active { color: var(--shutter); }

.phase__title {
  margin-top: 10px;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.05;
}

.phase__summary {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.phase__empty {
  margin: 24px 0 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--limewash);
  font-size: 15px;
  color: var(--subtle);
}

.photo-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photo-grid > * { aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; }
.photo-grid__cell { border-radius: 0; }
.photo-grid .is-lead { grid-column: span 2; grid-row: span 2; }

.phase__foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--subtle);
}

/* Plans & selections */

.plan-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.plan-card:hover { color: var(--ink); }
.plan-card:hover .plan-card__name { color: var(--shutter); }

.plan-card__sheet {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FBFAF7;
  background-image: linear-gradient(#EFECE5 1px, transparent 1px), linear-gradient(90deg, #EFECE5 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--line);
  color: var(--placeholder-icon);
}
.plan-card__name { font-size: 17px; font-weight: 600; }
.plan-card__meta { margin-top: 2px; font-size: 14px; color: var(--subtle); }

/* ---------- Documents ---------- */

.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
}

.doc-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc-table th {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--subtle);
  text-align: left;
}

.doc-table td {
  padding: 18px 16px;
  color: var(--muted);
}

.doc-table th:first-child,
.doc-table td:first-child { padding-left: 0; }
.doc-table th:last-child,
.doc-table td:last-child { padding-right: 0; text-align: right; }

.doc-table tbody tr { border-top: 1px solid var(--line); }
.doc-table td.doc-table__action { padding-top: 10px; padding-bottom: 10px; }

.doc-table__name {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 500;
}

/* Phones: each row becomes title over "Section · Date · Size", download on the right. */
@media (max-width: 600px) {
  .doc-table { min-width: 0; }
  .doc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .doc-table tbody tr {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "name name name action" "section date size action";
    align-items: center;
    column-gap: 6px;
    padding: 14px 0;
  }
  .doc-table tbody tr:first-child { border-top: 0; }
  .doc-table td,
  .doc-table td.doc-table__action { padding: 0; }
  .doc-table td:nth-child(1) { grid-area: name; }
  .doc-table td:nth-child(2) { grid-area: section; padding-left: 34px; }
  .doc-table td:nth-child(3) { grid-area: date; }
  .doc-table td:nth-child(4) { grid-area: size; }
  .doc-table td:nth-child(5) { grid-area: action; }
  .doc-table td:nth-child(2),
  .doc-table td:nth-child(3),
  .doc-table td:nth-child(4) { margin-top: 2px; font-size: 13px; color: var(--subtle); }
  .doc-table td:nth-child(3)::before,
  .doc-table td:nth-child(4)::before { content: "· "; }
}

.empty-note {
  margin: 0;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--subtle);
}

.section--tools > .source { margin-top: 24px; }

.empty-note--boxed {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

[hidden] { display: none !important; }

/* ---------- Equipment ---------- */

.equip-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

@media (max-width: 360px) {
  .equip-grid { grid-template-columns: 1fr; }
}

.equip-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.equip-card:hover { color: var(--ink); border-color: var(--shutter); }

.equip-card__top { display: flex; justify-content: space-between; align-items: flex-start; }

.equip-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--limewash);
  color: var(--shutter);
}

.equip-card__code {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--subtle);
}

.equip-card__name { font-size: 17px; font-weight: 600; }
.equip-card__where { margin-top: 4px; font-size: 14px; color: var(--subtle); }

.equip-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.equip-card__model { color: var(--muted); }
.equip-card__open { color: var(--shutter); font-weight: 600; white-space: nowrap; }

/* ---------- Equipment item (/e/NNN/), phone-first ---------- */

.item-container {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.item-header { border-bottom: 1px solid var(--line); }

.item-header__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--nav-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.item-header__home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.item { padding-top: 24px; padding-bottom: 56px; }

.item__photo {
  display: flex;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.item__tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.item__system {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cypress);
}

.item__code {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
}

.item__name {
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.05;
}

.item__model { margin: 8px 0 0; font-size: 16px; color: var(--muted); }

.item__manual {
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: var(--radius);
  background: var(--shutter);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.item__manual:hover { background: var(--shutter-hover); color: #ffffff; }

.item__manual--missing {
  background: var(--limewash);
  color: var(--subtle);
  font-weight: 500;
}

.item__heading {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}

.item__facts { margin-top: 12px; }

.item__files {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item__file {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.item__file:hover { border-color: var(--shutter); color: var(--ink); }
.item__file-name { flex: 1; font-size: 15px; font-weight: 500; }
.item__file-meta { font-size: 13px; color: var(--subtle); white-space: nowrap; }

.item__task {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--limewash);
}
.item__task-name { font-size: 15px; font-weight: 600; }
.item__task-when { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.item__log { list-style: none; margin: 16px 0 0; padding: 0; }
.item__log li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.item__log-date { color: var(--subtle); white-space: nowrap; }

.item__empty { margin: 12px 0 0; font-size: 14px; color: var(--subtle); }

.item__notes { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.item__notes > :first-child { margin-top: 0; }

.porch-posts--small {
  height: 20px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 32px);
}

.item-footer__inner {
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--subtle);
}

/* ---------- QR sticker sheets (/qr/) ----------
   Sheet geometry comes from src/_data/stickers.json as CSS variables on .qr-sheets. */

.qr-page { background: var(--limewash); }

.qr-controls {
  max-width: calc(var(--page-w, 8.5in) + 2px);
  margin: 0 auto;
  padding: 40px 20px 24px;
}
.qr-controls h1 { font-size: clamp(36px, 5vw, 52px); }
.qr-controls__product { margin: 8px 0 0; color: var(--muted); }
.qr-controls__status { margin: 16px 0 0; font-weight: 600; }

.qr-form {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.qr-form__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; }
.qr-form__field--small { flex: 0 0 110px; }
.qr-form__field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.qr-form__field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  font: 500 16px var(--sans);
}
.qr-form__check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.qr-form__check input { width: 20px; height: 20px; accent-color: var(--shutter); }
.qr-form__actions { display: flex; gap: 8px; }
.qr-form__actions .button { min-height: 44px; }

.qr-help { margin-top: 16px; font-size: 14px; color: var(--muted); }
.qr-help summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--shutter); }
.qr-help ul { margin: 0; padding-left: 20px; line-height: 1.6; }

.qr-empty { max-width: 8.5in; margin: 24px auto; padding: 0 20px; color: var(--muted); }

.qr-sheets { padding: 0 20px 56px; overflow-x: auto; }

.sheet {
  box-sizing: border-box;
  width: var(--page-w);
  height: var(--page-h);
  margin: 0 auto 32px;
  padding: var(--mt) 0 0 var(--ml);
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--label));
  grid-auto-rows: var(--label);
  column-gap: var(--gx);
  row-gap: var(--gy);
  align-content: start;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(26, 28, 27, 0.12);
}

/* Fixed print sizes (in, pt) so a sticker prints identically on any screen. */
.sticker {
  box-sizing: border-box;
  width: var(--label);
  height: var(--label);
  padding: 0.2in 0.2in 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000000;
  font-family: var(--sans);
  text-align: center;
}

/* Screen preview: show each label, tinted like the silver film. */
@media screen {
  .sticker { border-radius: 0.06in; background: linear-gradient(135deg, #ECEDEF, #D9DBDE); }
  .sticker--blank { background: repeating-linear-gradient(45deg, #F2F2F2 0 6px, #E6E6E6 6px 12px); }
}

.sticker__qr { width: 1.15in; height: 1.15in; }
.sticker__qr svg { display: block; width: 100%; height: 100%; }
.sticker__code { margin-top: 0.12in; font-size: 17pt; font-weight: 600; line-height: 1; letter-spacing: 0.04em; }
.sticker__url { margin-top: 0.04in; font-size: 6.5pt; font-weight: 500; letter-spacing: 0.02em; }

.show-outlines .sticker { outline: 0.5pt dashed #888888; outline-offset: 0; }

@media print {
  @page { size: letter; margin: 0; }
  .qr-page { background: #ffffff; }
  .qr-controls, .skip-link { display: none !important; }
  .qr-sheets { padding: 0; overflow: visible; }
  .sheet { margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .sticker { background: none; }
}
