/* Sections, phone first. */

.band {
  padding: 44px 0;
}

.band-rule {
  border-top: 1px solid var(--ink);
}

.band-tint {
  background: var(--sheet);
  border-top: 1px solid var(--ink);
}

.band-dark {
  background: var(--ink);
  color: var(--paper);
}

.band-dark .lede {
  color: #d9d5cc;
}

.band-small {
  padding: 32px 0 8px;
}

.band-small > h2 {
  margin-bottom: 14px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  justify-items: start;
}

.page-head {
  padding: 28px 0 22px;
  display: grid;
  gap: 10px;
}

.page-head h1 {
  font-size: 2.3rem;
}

.next-link {
  margin: 28px 0 8px;
}

.notes {
  margin: 24px 0 0;
  padding: 16px 0 0 18px;
  border-top: 1px solid var(--rule);
  color: var(--note);
  display: grid;
  gap: 6px;
}

.crumbs {
  padding-top: 16px;
  font-size: 0.92rem;
}

.crumbs a::before {
  content: "← ";
}

.ticks,
.crosses {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ticks li,
.crosses li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before,
.crosses li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.ticks li::before {
  content: "✓";
  color: var(--green);
}

.crosses li::before {
  content: "–";
  color: var(--lat);
}

.tag-live {
  color: var(--lat-dark);
  font-weight: 650;
}

/* ---- Hero: a finished building, dimensioned, with the drawing's title block --------- */

.hero {
  padding: 18px 0 32px;
}

.hero-head h1 {
  font-size: clamp(2.05rem, 8.6vw, 2.6rem);
  line-height: 1.02;
}

.hero-sheetno {
  display: none;
}

.hero-sheet {
  margin-top: 18px;
}

.hero-fig {
  position: relative;
  margin: 0;
  padding: 26px 0 0 24px;
}

.hero-img {
  border: 1px solid var(--ink);
  background: #d9d6ce;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-fig figcaption {
  font-size: 0.82rem;
  color: var(--note);
  margin-top: 6px;
}

/* Dimension strings: a laterite line with end ticks, the measurement set in a gap. */
.dim {
  position: absolute;
  color: var(--lat-dark);
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.dim::before,
.dim::after {
  content: "";
  position: absolute;
  background: var(--lat);
}

.dim-w {
  top: 6px;
  left: 24px;
  right: 0;
  height: 12px;
  border-top: 0;
  background: linear-gradient(var(--lat), var(--lat)) 0 50% / 100% 1.5px no-repeat;
  text-align: center;
}

.dim-w::before,
.dim-w::after {
  top: 0;
  width: 1.5px;
  height: 12px;
}

.dim-w::before {
  left: 0;
}

.dim-w::after {
  right: 0;
}

.dim-w > span {
  position: relative;
  top: -5px;
  padding: 0 8px;
  background: var(--paper);
}

.dim-h {
  top: 26px;
  bottom: 0;
  left: 4px;
  width: 12px;
  background: linear-gradient(var(--lat), var(--lat)) 50% 0 / 1.5px 100% no-repeat;
}

.hero-fig:has(figcaption) .dim-h {
  bottom: 28px;
}

.dim-h::before,
.dim-h::after {
  left: 0;
  width: 12px;
  height: 1.5px;
}

.dim-h::before {
  top: 0;
}

.dim-h::after {
  bottom: 0;
}

.dim-h > span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  padding: 0 8px;
  background: var(--paper);
}

/* The title block: ruled cells, like the corner of a drawing sheet. */
.title-block {
  margin-top: 14px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  display: flex;
  flex-direction: column;
}

/* On a phone the actions come straight after the line of text, above the facts. */
.tb-actions {
  order: 2;
}

.tb-facts {
  order: 3;
}

.tb-text {
  padding: 12px 14px;
  font-size: 1rem;
  border-bottom: 1px solid var(--ink);
}

.tb-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tb-facts > div {
  padding: 9px 14px 10px;
  border-bottom: 1px solid var(--rule);
}

.tb-facts > div:nth-child(odd) {
  border-right: 1px solid var(--rule);
}

.tb-facts dt {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--note);
}

.tb-facts dd {
  margin: 2px 0 0;
  font-weight: 650;
  font-size: 0.93rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.tb-facts dd a {
  color: var(--ink);
  text-decoration-color: var(--lat);
}

.tb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--ink);
}

.tb-actions .btn-main {
  flex: 1 1 100%;
}

.tb-actions .btn-line {
  flex: 1 1 0;
}

/* ---- Rates ---------------------------------------------------------------------------- */

.rates-grid {
  display: grid;
  gap: 0;
  border-top: 3px solid var(--ink);
}

.rate {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--ink);
}

.rate-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rate-fig {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
}

.rate-fig .num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.rate-unit {
  color: var(--note);
  font-size: 0.92rem;
}

.rate-for {
  margin-top: 8px;
  color: var(--note);
}

.rates-terms {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.rates-terms h3 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms {
  margin: 0;
  display: grid;
  gap: 10px;
}

.terms > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
}

.terms dt {
  font-weight: 700;
}

.terms dd {
  margin: 0;
}

/* ---- Project register ------------------------------------------------------------------- */

.register {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.register-head {
  display: none;
}

.register-row a {
  display: grid;
  column-gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.register-row a:hover {
  background: var(--lat-tint);
}

.reg-no {
  grid-area: no;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lat-dark);
}

.reg-img {
  grid-area: img;
  aspect-ratio: 4 / 3;
  background: #d9d6ce;
}

.reg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reg-title {
  grid-area: title;
}

.reg-name {
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.register-row a:hover .reg-name {
  text-decoration-color: var(--lat);
}

.reg-where {
  display: block;
  color: var(--note);
  font-size: 0.92rem;
}

.reg-kind {
  grid-area: kind;
  font-size: 0.9rem;
}

/* On phones the three figures sit on one line under the kind. */
.reg-fig {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.register-row a {
  grid-template-columns: 104px auto auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  grid-template-areas:
    "img no no no"
    "img title title title"
    "img kind kind kind"
    "img f1 f2 f3";
}

.register-row .reg-fig:nth-of-type(5) {
  grid-area: f1;
}

.register-row .reg-fig:nth-of-type(6) {
  grid-area: f2;
}

.register-row .reg-fig:nth-of-type(7) {
  grid-area: f3;
}

.register-row .reg-fig + .reg-fig::before {
  content: "·";
  margin: 0 4px 0 0;
  color: var(--note);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filters a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.filters a .num {
  color: var(--note);
  font-weight: 500;
}

.filters a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.filters a[aria-current="page"] .num {
  color: #c9c5bc;
}

/* ---- Services ----------------------------------------------------------------------------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 3px solid var(--ink);
}

.service {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.service-sum {
  margin-top: 6px;
  color: var(--note);
}

.service-facts {
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
  font-size: 0.94rem;
}

.service-facts > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

.service-facts dt {
  color: var(--note);
}

.service-facts dd {
  margin: 0;
  font-weight: 600;
}

.service > p:last-child {
  margin-top: 12px;
}

/* ---- Stages: a measured line ---------------------------------------------------------------- */

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.stage {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.stage-no {
  font-weight: 800;
  color: var(--lat-dark);
  font-size: 0.95rem;
  padding-top: 1px;
}

.stage-name {
  font-size: 1.05rem;
}

.stage-takes {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--note);
  letter-spacing: 0;
}

.stage-body p {
  margin-top: 6px;
  font-size: 0.95rem;
}

.stage-get {
  color: var(--note);
}

.stage-get strong {
  color: var(--ink);
  font-weight: 650;
}

.stage-pay {
  text-align: right;
  width: 76px;
}

.stage-pay > .num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stage-pay-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--note);
  line-height: 1.3;
  margin-top: 2px;
}

.promises {
  margin: 0;
  display: grid;
  border-top: 3px solid var(--ink);
}

.promises > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.promises dt {
  font-weight: 700;
}

.promises dd {
  margin: 4px 0 0;
}

/* ---- Registrations ------------------------------------------------------------------------------ */

.regs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.reg {
  display: grid;
  gap: 6px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.reg-what h3 {
  font-size: 1rem;
}

.reg-scope {
  font-weight: 650;
  color: var(--lat-dark);
  font-size: 0.94rem;
}

.reg-number {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  word-break: break-all;
}

.reg-detail {
  font-size: 0.93rem;
  display: grid;
  gap: 4px;
}

.reg-holder {
  color: var(--note);
}

.reg-meaning {
  color: var(--note);
}

.reg-status {
  display: grid;
  gap: 4px;
  font-size: 0.93rem;
}

.valid {
  color: var(--green);
  font-weight: 650;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
  vertical-align: 1px;
}

.check {
  font-weight: 650;
}

.check::after {
  content: " ↗";
}

.reg-how {
  color: var(--note);
  font-size: 0.86rem;
}

/* ---- Closing band --------------------------------------------------------------------------------- */

.closing {
  display: grid;
  gap: 22px;
}

.closing h2 {
  font-size: 1.9rem;
}

.closing .lede {
  margin-top: 10px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Project page --------------------------------------------------------------------------------- */

.project-head {
  padding: 14px 0 18px;
  display: grid;
  gap: 6px;
}

.project-no {
  color: var(--lat-dark);
  font-weight: 700;
}

.project-head h1 {
  font-size: 2.2rem;
}

.project-kind {
  color: var(--note);
}

.rera {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  max-width: 560px;
}

.rera-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--note);
}

.rera-no {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-all;
}

.rera-qr {
  width: 96px;
  height: 96px;
}

.project-top {
  display: grid;
  gap: 20px;
}

.project-cover {
  margin: 0;
  border: 1px solid var(--ink);
  background: #d9d6ce;
}

.project-sum {
  font-size: 1.06rem;
  margin-bottom: 14px;
}

.spec {
  margin: 0;
  border-top: 3px solid var(--ink);
}

.spec > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.spec dt {
  color: var(--note);
}

.spec dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ticks-cols {
  margin-top: 0;
}

.diary {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.diary figure {
  margin: 0;
}

.diary img {
  width: 100%;
  border: 1px solid var(--ink);
  background: #d9d6ce;
}

.diary figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  padding-top: 8px;
  font-size: 0.92rem;
}

.diary-date {
  font-weight: 700;
  color: var(--lat-dark);
}

.diary-stage {
  font-weight: 650;
}

.diary-note {
  grid-column: 1 / -1;
  color: var(--note);
}

/* ---- Estimate and thanks -------------------------------------------------------------------------- */

.estimate {
  display: grid;
  gap: 32px;
  padding-bottom: 48px;
}

.privacy {
  font-size: 0.9rem;
  color: var(--note);
  padding: 10px 12px;
  border-left: 3px solid var(--rule-strong);
  margin-bottom: 20px;
}

.estimate-side {
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}

.estimate-side > h2 {
  font-size: 1.2rem;
}

.next-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: step;
}

.next-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 40px;
}

.next-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--lat-dark);
  font-variant-numeric: tabular-nums;
}

.next-steps h3 {
  font-size: 1rem;
}

.next-steps .when {
  font-weight: 650;
  color: var(--green);
  font-size: 0.92rem;
}

.next-steps p {
  font-size: 0.94rem;
  margin-top: 2px;
}

.side-contact {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.thanks {
  padding: 36px 0 56px;
  display: grid;
  gap: 18px;
}

.tracker {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  border-top: 3px solid var(--ink);
}

.tracker li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.tracker-no {
  grid-row: span 2;
  font-weight: 800;
  color: var(--note);
}

.tracker li.done .tracker-no {
  color: var(--green);
}

.tracker-title {
  font-weight: 700;
}

.tracker-when {
  color: var(--note);
  font-size: 0.93rem;
}

.thanks-grid {
  display: grid;
  gap: 28px;
  margin-top: 10px;
}

.thanks-grid section {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: start;
}

.thanks-grid h2 {
  font-size: 1.25rem;
}

.numbered {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

.fallback {
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}
