/* ZiRi v2 — page styles (projects). Builds on site.css tokens. */

/* ---------- Page hero (shorter than the home hero) ---------- */
.z-hero.zp-hero { min-height: 560px; min-height: min(78svh, 720px); }
.zp-hero .z-hero__media { background-position: center; transform: none; }
.zp-hero__content { padding-bottom: 72px; }
.zp-hero__note { margin-top: 20px; font-size: .85rem; color: var(--navy-300); }
.zp-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* navy band hero (overview page) */
.zp-band { background: var(--navy-900); color: #fff; padding: calc(var(--header-h) + 88px) 0 88px; position: relative; overflow: hidden; }
.zp-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 90% 0%, rgba(61,97,144,.35), transparent 70%); pointer-events: none; }
.zp-band > .z-wrap { position: relative; z-index: 1; }
.zp-band .z-eyebrow { color: var(--navy-300); }
.zp-band .z-lead { color: #c9d6e6; }
@media (max-width: 767px) { .zp-band { padding: calc(var(--header-h) + 56px) 0 64px; } }

/* ---------- Layout ---------- */
.zp-split { display: grid; gap: 40px; }
@media (min-width: 960px) { .zp-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.zp-split--rev > :first-child { order: 0; }
@media (min-width: 960px) { .zp-split--rev > :first-child { order: 2; } }
.zp-split > * { min-width: 0; }
.zp-prose { max-width: 72ch; }
.zp-prose p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.zp-prose p + p { margin-top: 16px; }
.zp-prose strong { color: var(--navy-900); font-weight: 600; }
.zp-prose a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.zp-subhead { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-500); margin: 40px 0 16px; }
.zp-sticky { position: relative; }
@media (min-width: 960px) { .zp-sticky { position: sticky; top: calc(var(--header-h) + 24px); } }

/* image */
.zp-media { border-radius: var(--radius); overflow: hidden; background: var(--navy-100); aspect-ratio: 16 / 11; border: 1px solid var(--border); }
.zp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Fact sheet ---------- */
.zp-facts { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.zp-facts__title { padding: 18px 24px; border-bottom: 1px solid var(--border); background: var(--navy-50); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-700); }
.zp-facts ul, .zp-facts dl { margin: 0; padding: 0; list-style: none; }
.zp-facts li { padding: 14px 24px; font-size: .95rem; line-height: 1.5; color: var(--fg); font-variant-numeric: tabular-nums; }
.zp-facts li + li { border-top: 1px solid var(--border); }
.zp-facts li strong, .zp-facts li .zp-k { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.zp-facts--grid ul { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .zp-facts--grid ul { grid-template-columns: 1fr 1fr; }
  .zp-facts--grid li + li { border-top: 0; }
  .zp-facts--grid li { border-top: 1px solid var(--border); }
  .zp-facts--grid li:nth-child(-n+2) { border-top: 0; }
  .zp-facts--grid li:nth-child(even) { border-left: 1px solid var(--border); }
}

/* ---------- Lists / notes ---------- */
.zp-list { margin: 0; padding: 0; list-style: none; }
.zp-list li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--border); color: var(--muted); line-height: 1.65; }
.zp-list li:last-child { border-bottom: 1px solid var(--border); }
.zp-list li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 2px; background: var(--navy-500); }
.zp-list strong { color: var(--navy-900); font-weight: 600; }
.zp-list a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }

.zp-note { margin-top: 32px; padding: 22px 24px; background: var(--navy-50); border: 1px solid var(--navy-100); border-left: 3px solid var(--navy-700); border-radius: 0 var(--radius) var(--radius) 0; }
.zp-note h3, .zp-note h4 { font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.zp-note p { color: var(--muted); line-height: 1.65; }
.zp-note strong { color: var(--navy-900); }
.zp-note a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tables ---------- */
.zp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.zp-table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.zp-table th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-50); padding: 14px 20px; border-bottom: 1px solid var(--border); }
.zp-table td { padding: 14px 20px; border-top: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.zp-table tbody tr:first-child td { border-top: 0; }
.zp-table td:first-child { color: var(--navy-900); font-weight: 500; width: 38%; }
.zp-table-hint { margin-top: 8px; font-size: .75rem; color: var(--muted); text-align: center; }
@media (min-width: 768px) { .zp-table-hint { display: none; } }

/* ---------- Overview asset blocks ---------- */
.zp-asset__num { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--navy-300); font-variant-numeric: tabular-nums; }
.zp-asset .z-h3 { font-size: 1.4rem; }

/* long CTA labels must wrap on phones */
@media (max-width: 520px) {
  .zp-cta .z-btn, .zp-hero .z-btn, .zp-asset .z-btn { white-space: normal; height: auto; min-height: 48px; padding: 12px 20px; text-align: center; }
  .zp-cta .z-btn { width: 100%; }
}
