/* ============================================================
   AptEnclave — "Concrete Grid" direction. Sourced from live web research
   (WebSearch, 2026-07-23): neobrutalist web design (bold condensed display
   type, monochrome + one signal accent, modular grid, hard offset shadows)
   + architecture-portfolio convention (strict grid, single strong photo +
   name, minimal text — cf. Studio MK27-style restraint).
   Distinct from dwelloryx (warm editorial, full-bleed photo hero, Lora+
   Inter, cream/terracotta) and urbanhavora (quiet ma, asymmetric split,
   JP serif, washi/indigo): this site is a data-forward architecture
   record — spec sheet, not lifestyle journal.
   Chrome codes (white-pages/_chrome-library/, picked by RNG 2026-07-23,
   excluding codes already used by dwelloryx/talentnuvia/smartdwellio/
   labcognia/cvuplifted/urbanhavora): header=H2 (centered logo, nav split
   left/right), footer=F7 (colophon), contact=C7 (letter-style, underline
   inputs), cookie=K4 (side drawer, all categories inline, no banner step),
   callout=T8 (collapsible disclaimer). Section-library picks: topic-grid=
   G7 (compare-table instead of cards), post-card=P2 (text-only, no photo),
   faq=Q7 (inline asides in content, not a separate section). Page-set=R5
   (dedicated faq.php aggregating the inline asides).
   ============================================================ */

/* ============================================================
   Header — H2: centered logo, nav split left/right of it. #nav wraps BOTH
   .nav-side groups so the existing generic burger/mobile-drawer JS (which
   only knows how to move a single #nav element) keeps working unmodified;
   at desktop width #nav is promoted via display:contents so its two
   children become direct flex items of .topbar__inner, positioned by
   explicit `order` (not DOM order) around the centered brand.
   ============================================================ */
.topbar--split .topbar__inner { justify-content: center; position: relative; }
.brand--center { order: 2; }
.burger { order: 3; margin-left: 0; }

@media (min-width: 921px) {
  .topbar--split #nav { display: contents; }
  .nav-side { display: flex; align-items: center; gap: 0.2rem; }
  .nav-side--left { order: 1; margin-right: auto; }
  .nav-side--right { order: 4; margin-left: auto; }
  .nav-side__cta { margin-left: 0.4rem; }
}
@media (max-width: 920px) {
  .nav-side { display: contents; }
}

/* ============================================================
   Hero — typographic statement over a small mosaic of building photos
   (not one full-bleed photo, not an asymmetric split with a single frame).
   Anton display headline, hard-edged photo grid with visible gutter lines
   (concrete-joint motif) instead of rounded cards.
   ============================================================ */
.hero--grid {
  background: var(--bg);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero--grid__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero--grid__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  color: var(--ink);
  max-width: 20ch;
}
.hero--grid__lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero--grid__mosaic {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(6rem, 12vw));
  gap: 2px;
  background: var(--line-strong);
  border: 2px solid var(--line-strong);
}
.hero--grid__mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--grid__cell { position: relative; overflow: hidden; background: var(--surface-2); }
/* Explicit positions (not auto-placement) so all 12 tracks tile exactly,
   with no leftover gap reading as a broken/missing image. */
.hero--grid__cell--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.hero--grid__cell--2 { grid-column: 3 / 5; grid-row: 1 / 2; }
.hero--grid__cell--3 { grid-column: 5 / 6; grid-row: 1 / 3; }
.hero--grid__cell--4 { grid-column: 3 / 5; grid-row: 2 / 3; }
.hero--grid__cell--5 { grid-column: 6 / 7; grid-row: 1 / 3; }
.hero--grid__cell--label {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  text-align: center;
  padding: 0.5rem;
}
@media (max-width: 720px) {
  .hero--grid__mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, minmax(5rem, 26vw)); }
  .hero--grid__cell--1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .hero--grid__cell--2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .hero--grid__cell--3 { grid-column: 2 / 3; grid-row: 2 / 4; }
  .hero--grid__cell--4 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .hero--grid__cell--5 { grid-column: 1 / 3; grid-row: 4 / 5; }
}

/* ============================================================
   G7 — compare-table instead of a card grid. A genuine spec-sheet: each
   row is a notable building, each column a comparable attribute (year /
   architect / structure / units). Monospace for the numeric columns
   (tabular-nums) so figures line up.
   ============================================================ */
.spec-table-wrap { overflow-x: auto; border: 2px solid var(--line-strong); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.88rem; }
.spec-table th, .spec-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line-strong);
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: var(--surface-2); }
.spec-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.spec-table td.name { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; letter-spacing: 0.01em; }
.spec-table td.name a { color: var(--ink); }
.spec-table td.name a:hover { color: var(--accent); }

/* ============================================================
   P2 — text-only post card (no photo), for journal.php. Date + read-time
   in mono, title in display face, no excerpt image at all.
   ============================================================ */
.post-plain-list { border-top: 2px solid var(--line-strong); }
.post-plain { padding: 1.6rem 0; border-bottom: 1px solid var(--line); display: block; }
.post-plain__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; display: flex; gap: 0.8rem; margin-bottom: 0.5rem; }
.post-plain h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.3rem; margin: 0 0 0.4rem; letter-spacing: 0.005em; }
.post-plain h3 a { color: var(--ink); }
.post-plain h3 a:hover { color: var(--accent); }
.post-plain p { margin: 0; color: var(--ink-soft); max-width: 42rem; }

/* ============================================================
   Q7 — inline FAQ aside, woven into building/journal article content
   (not a separate FAQ section on those pages). Boxed, left-accented,
   visually distinct from body copy so it reads as an aside, not a
   footnote or callout.
   ============================================================ */
.faq-inline { border-left: 3px solid var(--accent); background: var(--surface-2); padding: 1rem 1.2rem; margin: 1.75rem 0; }
.faq-inline__q { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); margin: 0 0 0.4rem; }
.faq-inline__q svg, .faq-inline__q .licon { color: var(--accent); }
.faq-inline__a { margin: 0; color: var(--ink-soft); }

/* Aggregate rendering for faq.php (R5) — same inline aside component,
   just laid out two-up on wide screens since it's now the page's main
   content, not an interruption in running text. */
.faq-index { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.faq-index .faq-inline { margin: 0; }
@media (max-width: 760px) { .faq-index { grid-template-columns: 1fr; } }

/* ============================================================
   Contact — C7 "letter from the editors": italic intro line, underline-
   only inputs (no boxes/fills), quiet postcard tone against the otherwise
   loud/structural rest of the site (deliberate contrast, not a mismatch —
   the contact page is where the record becomes personal).
   ============================================================ */
.contact-letter { max-width: 32rem; margin: 0 auto; }
.contact-letter__intro {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1.75rem;
}
.field--line input, .field--line textarea {
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.5rem 0;
}
.field--line input:focus, .field--line textarea:focus { border-bottom-color: var(--accent); outline: none; }
.contact-letter__line { margin-top: 1.5rem; text-align: center; color: var(--muted); font-size: 0.82rem; }
.contact-letter__line a { color: var(--ink-soft); }

/* ============================================================
   T8 — collapsible disclaimer (chrome-library callout.md). Collapsed to
   a one-line trigger by default; expands inline. Only place on this site
   with a "hide by default" affordance — the disclaimer itself is never
   hidden, only its full wording is, per the accessibility caveat noted
   in callout.md (don't hide the fact of the disclaimer, only detail).
   ============================================================ */
.callout-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line-strong); border-radius: 0;
  padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--ink); cursor: pointer;
  font-family: var(--font-mono);
}
.callout-toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.callout-full { margin-top: 0.75rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--surface-2); color: var(--ink-soft); }

/* ============================================================
   Footer — F7 colophon: quote + definition list, printed-page tone.
   ============================================================ */
.footer--colophon { background: var(--night); color: rgba(242, 241, 237, 0.82); }
.colophon { padding: clamp(2.5rem, 6vw, 4rem) 1.2rem clamp(1.5rem, 4vw, 2.5rem); }
.colophon__quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 0 0 2rem;
  max-width: 34rem;
}
.colophon__list { display: grid; grid-template-columns: 8rem 1fr; gap: 0.7rem 1.2rem; font-size: 0.86rem; max-width: 40rem; }
.colophon__list dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(242, 241, 237, 0.5); }
.colophon__list dd { margin: 0; color: rgba(242, 241, 237, 0.85); }
.colophon__list a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.colophon__list a:hover { color: var(--accent); }
.colophon__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(242, 241, 237, 0.14);
  font-size: 0.76rem; color: rgba(242, 241, 237, 0.5);
}
.footer-cookie-reopen {
  background: none; border: 1px solid rgba(242, 241, 237, 0.3); border-radius: 0;
  color: rgba(242, 241, 237, 0.75); font-size: 0.72rem; padding: 0.3rem 0.7rem; cursor: pointer;
}
.footer-cookie-reopen:hover { color: #fff; border-color: rgba(242, 241, 237, 0.6); }

/* ============================================================
   Cookie — K4 side drawer. All categories visible immediately, no
   preceding bottom-bar step. Opens directly on first visit.
   ============================================================ */
.consent-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 140;
  width: min(100%, 26rem);
  background: var(--surface);
  border-left: 2px solid var(--line-strong);
  box-shadow: -16px 0 32px rgba(0, 0, 0, 0.18);
  padding: 1.5rem; overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-out);
}
.consent-drawer.is-open { transform: translateX(0); }
.consent-drawer__head h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.3rem; margin: 0 0 0.6rem; }
.consent-drawer__head p { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 1.25rem; }
.consent-drawer__opts { margin-top: 0.25rem; }
.section__head--center { text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.consent-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 0.9rem 0; border-top: 1px solid var(--line);
}
.consent-row small { color: var(--muted); }
.consent-row input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }
.consent-drawer__actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }

/* ============================================================
   Brand — plain condensed wordmark, no icon (same reasoning as the rest
   of the batch: a drawn icon reads as generic/placeholder). Square
   accent tick instead of a border-rule, echoing the mosaic-grid motif.
   ============================================================ */
.brand--center .brand__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-left: 1rem;
}
.brand--center .brand__name::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 0.6rem; height: 0.6rem; background: var(--accent);
}

/* Buttons — sharp corners, hard offset shadow instead of soft blur (site-
   wide override of the shared rounded/soft-shadow button convention). */
.btn { border-radius: 0; }
.btn--primary { box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: none; transform: translate(2px, 2px); }

/* ============================================================
   Building profile — deliberately NOT alternating left/right (unlike
   urbanhavora's guide-detail rows): every profile repeats the identical
   module (photo left, spec-list + text right), reinforcing the "repeated
   concrete module" identity rather than editorial variety row-to-row.
   ============================================================ */
.building-profile { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); border-top: 2px solid var(--line-strong); padding: clamp(2rem, 5vw, 3rem) 0; }
.building-profile__media { aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--line-strong); }
.building-profile__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.15) contrast(1.05); }
.building-profile__no { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.08em; }
.building-profile h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0.4rem 0 1rem; }
.building-spec-list { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.85rem; margin: 0 0 1.2rem; }
.building-spec-list dt { font-family: var(--font-mono); color: var(--muted); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.05em; }
.building-spec-list dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.building-profile p.desc { color: var(--ink-soft); line-height: 1.85; max-width: 40rem; }
@media (max-width: 780px) { .building-profile { grid-template-columns: 1fr; } }
