/* project — page-local rules for /projects/:community/:project, in the v2 design language (10 Nov), extending the
   community port (fea7c9b). Loaded AFTER v2.css (hero stage, aurora, reveals, bottom nav, glass tokens live there); every
   rule is scoped under body.v2-project. Token-only (no colour literals, no 1080px, no style="" / <style>). project.js and the
   server's <!--PROJECT_SSR--> fragment emit the classes styled below; the template's ids and slots are untouched.
   The wrapper #mainContent (.v2-wrap .v2-content) replaced the old `.content`; it never carried `.page-content` link or
   sort-header rules, so nothing needed re-scoping beyond the accent link default below. The FIRST section (Launch Summary) is
   the dark big-numbers band, keyed on :first-child because the server fragment's KPI grid has no .kk-stagger while the
   hydrated one does; the Resales card's .kk-stagger grid stays light. Shared components (.op-* grid, .verify-cta, .nearby-chip,
   .card-flag, .loading, .cta-btn, .cta-back) live in chrome.css. */
:where(.v2-project), :where(.v2-project) :where(*, *::before, *::after) { box-sizing: border-box; }
:where(.v2-project) :where(*) { margin: 0; padding: 0; }
.v2-project { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.v2-project #mainContent a:not(.cta-btn):not(.tx-card):not(.tx-link):not(.link-plain):not(.nearby-chip):not(.page-btn):not(.cta-card a) { color: var(--accent-text); text-decoration: none; }
.v2-project #mainContent a:not(.cta-btn):not(.tx-card):not(.tx-link):not(.link-plain):not(.nearby-chip):not(.page-btn):not(.cta-card a):hover { text-decoration: underline; }
.v2-project #mainContent .cta-card .cta-back a { color: var(--chrome-sub); }

/* ── Hero: short dark stage; the server and building.js fill #heroTitle / #heroSub ── */
.v2-project .v2-hero-short { padding-bottom: 28px; }
.v2-project #heroSub { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.v2-project #heroSub a { color: var(--v2-hl); text-decoration: none; }
.v2-project #heroSub a:hover { text-decoration: underline; }

/* ── Body ── */
.v2-project .v2-content { padding-bottom: var(--v2-sec); }
.v2-project .section { margin-top: var(--v2-sec); }
.v2-project .section-kicker { font-size: var(--fs-2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.v2-project .section-title {
  font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  letter-spacing: -.04em; line-height: 1.02; margin: 0 0 14px; color: var(--text); text-wrap: balance;
}
.v2-project .section-intro { color: var(--text-muted); font-size: var(--fs-4); line-height: 1.65; margin: 0 0 28px; max-width: 46em; }
.v2-project .loading { color: var(--text-subtle); text-align: center; padding: 32px; font-size: var(--fs-2); }
.v2-project .card, .v2-project .prof-tile, .v2-project .prof-desc {
  background: var(--surface); border: 0; border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.v2-project .card { padding: clamp(20px, 3vw, 36px); }
.v2-project .card.op-card { padding: 0; overflow: hidden; }

/* Market summary = the dark big-numbers band (first section) */
.v2-project #mainContent > .section:first-child:has(> .kpi-grid) {
  position: relative; isolation: isolate; margin-top: 0; margin-bottom: 88px; padding: 8px 0 var(--v2-sec); color: var(--v2-on-ink);
}
.v2-project #mainContent > .section:first-child:has(> .kpi-grid)::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; background: var(--chrome);
}
.v2-project #mainContent > .section:first-child:has(> .kpi-grid)::after {
  content: ""; position: absolute; z-index: -1; top: 100%; left: 50%; width: 100vw; height: 88px; margin-left: -50vw; pointer-events: none;
  background: linear-gradient(to bottom, var(--chrome), var(--bg));
}
.v2-project #mainContent > .section:first-child .section-kicker { color: var(--v2-hl); }
.v2-project #mainContent > .section:first-child .section-title { color: var(--v2-on-ink); }
.v2-project #mainContent > .section:first-child .section-intro,
.v2-project #mainContent > .section:first-child .sold-line { color: var(--v2-on-ink-mute); max-width: 46em; }
.v2-project #mainContent > .section:first-child .section-intro strong,
.v2-project #mainContent > .section:first-child .sold-line strong { color: var(--v2-on-ink); }
.v2-project #mainContent > .section:first-child .sold-line { margin-top: 28px; }
.v2-project #mainContent > .section:first-child a { color: var(--v2-hl); }
.v2-project .sold-line.is-spaced { margin-top: 12px; }

/* KPIs */
.v2-project .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 4px; }
.v2-project .kpi-box { background: var(--surface); border: 0; border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent); }
.v2-project .kpi-label { font-size: var(--fs-1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 13px; }
.v2-project .kpi-value { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: var(--num-hero); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.v2-project .kpi-value.is-sm { font-size: var(--fs-5); }
.v2-project .kpi-sub { font-size: var(--fs-1); color: var(--text-muted); margin-top: 11px; }
.v2-project .kpi-box.is-lowdata { background: var(--surface-muted); box-shadow: none; }
.v2-project .trend-up, .v2-project .trend-dn, .v2-project .trend-muted { display: inline-flex; align-items: center; gap: 5px; font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 700; font-size: var(--fs-6); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.v2-project .trend-up { color: var(--pos); }
.v2-project .trend-dn { color: var(--neg); }
.v2-project .trend-muted { color: var(--text-muted); font-size: var(--fs-5); }
/* the band's grid: big numbers on ink, ruled columns (4 across; the 5th, the price range, takes its own row) */
.v2-project #mainContent > .section:first-child .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; }
.v2-project #mainContent > .section:first-child .kpi-box {
  background: transparent; box-shadow: none; border: 0; border-radius: 0; border-top: 1px solid var(--v2-glass-line);
  padding: 26px 20px 0 0;
}
.v2-project #mainContent > .section:first-child .kpi-box + .kpi-box { padding-left: 24px; border-left: 1px solid var(--v2-glass-line); }
.v2-project #mainContent > .section:first-child .kpi-box:nth-child(5) { grid-column: 1 / -1; padding-left: 0; border-left: 0; margin-top: 28px; }
.v2-project #mainContent > .section:first-child .kpi-label { color: var(--v2-on-ink-mute); letter-spacing: .1em; font-size: var(--fs-1); margin-bottom: 16px; }
.v2-project #mainContent > .section:first-child .kpi-value {
  font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.25rem); white-space: nowrap;
  letter-spacing: -.045em; line-height: 1; color: var(--v2-on-ink); font-variant-numeric: tabular-nums;
}
.v2-project #mainContent > .section:first-child .kpi-value.is-sm { font-size: clamp(1.5rem, 2.8vw, 2.5rem); white-space: normal; }
.v2-project #mainContent > .section:first-child .num-affix { color: var(--v2-on-ink-mute); }
.v2-project #mainContent > .section:first-child .kpi-sub { color: var(--v2-on-ink-mute); font-size: var(--fs-2); margin-top: 14px; max-width: 18em; }

/* Quarterly launch-price table (chrome.css .data-table) + bed-mix note under the KPIs */
.v2-project .qtr-wrap { margin-top: 12px; }
.v2-project .card + .qtr-wrap { margin-top: 18px; }
.v2-project .bed-mix-note { margin: 22px 0 0; font-size: var(--fs-3); }
.v2-project .qtr-wrap .data-table th, .v2-project .qtr-wrap .data-table td { padding-left: 20px; padding-right: 20px; }
.v2-project .qtr-wrap .data-table th:first-child, .v2-project .qtr-wrap .data-table td:first-child { padding-left: 24px; }
.v2-project .qtr-wrap .data-table th:last-child, .v2-project .qtr-wrap .data-table td:last-child { padding-right: 24px; }
.v2-project #mainContent > .section:first-child .bed-mix-note { color: var(--v2-on-ink-mute); }

/* Recent transactions: each .tx-card is the card inside an <a> (the server fragment; no page JS markup) */
.v2-project .tx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.v2-project .tx-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border: 0; border-radius: 24px; background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  transition: transform 220ms var(--v2-out), box-shadow 220ms var(--v2-out);
}
@media (hover: hover) and (pointer: fine) {
  .v2-project .tx-card:hover { transform: translate3d(0, -3px, 0); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px color-mix(in srgb, var(--accent) 22%, transparent); }
}
.v2-project .tx-list a:focus-within .tx-card, .v2-project a.tx-card:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.v2-project .tx-project { font-weight: 600; font-size: var(--fs-3); color: var(--text); }
.v2-project .tx-meta { font-size: var(--fs-1); color: var(--text-muted); margin-top: 3px; }
.v2-project .tx-price { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: var(--fs-5); font-weight: 800; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.v2-project .tx-ppsf { font-size: var(--fs-1); color: var(--text-subtle); text-align: right; font-variant-numeric: tabular-nums; }
.v2-project .tx-link, .v2-project .tx-link:hover, .v2-project .link-plain, .v2-project .link-plain:hover { text-decoration: none; }

/* Other projects chips */
.v2-project .nearby-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Dark CTA card (lime action — the lime law); .cta-btn is in chrome.css */
.v2-project .cta-card { background: var(--chrome); border-radius: 28px; padding: 30px 28px; text-align: center; box-shadow: var(--shadow-lg); }
.v2-project .cta-card h3 { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: var(--fs-5); font-weight: 700; letter-spacing: -.02em; color: var(--chrome-ink); margin-bottom: 8px; }
.v2-project .cta-card p { color: var(--chrome-sub); font-size: var(--fs-3); margin-bottom: 20px; }
.v2-project .cta-card .cta-back { margin-bottom: 0; margin-top: 14px; }

/* Verify CTA (after the content) */
.v2-project .verify-cta-wrap { max-width: var(--v2-wrap); margin: 0 auto var(--v2-sec); padding: 0 var(--v2-gutter); }
.v2-project .verify-cta { border-radius: 24px; padding: 20px 24px; }

@media (max-width: 900px) {
  .v2-project #mainContent > .section:first-child .kpi-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .v2-project #mainContent > .section:first-child .kpi-box:nth-child(odd) { padding-left: 0; border-left: 0; }
  .v2-project #mainContent > .section:first-child .kpi-box:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--v2-glass-line); }
  .v2-project #mainContent > .section:first-child .kpi-box:nth-child(5) { margin-top: 0; }
}
@media (max-width: 640px) {
  .v2-project .tx-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .v2-project .kpi-box { padding: 16px 14px 14px; }
  .v2-project #mainContent > .section:first-child .kpi-box { padding: 26px 20px 0 0; }
  .v2-project #mainContent > .section:first-child .kpi-box:nth-child(even) { padding-left: 20px; }
  .v2-project #mainContent > .section:first-child .kpi-box:nth-child(5) { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-project .tx-card { transition: none; }
  .v2-project .tx-card:hover { transform: none; }
}
