@layer pages {
/* /designs and /designs/<slug>, after platform.css. The hero is main.css's shared pattern; this sheet adds the
   design page's three-figure strip, its quiet secondary actions, the facts that open Checks, and the /designs index
   table whose rows each open a design. */

/* Hero: the three figures that decide whether a design is worth opening, joined on one ruled strip. */
.dz-strip { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--space-8); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .dz-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dz-strip > div { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.dz-strip > div + div { border-top: 1px solid var(--border); }
@media (min-width: 768px) {
  .dz-strip > div + div { padding-left: var(--space-5); border-top: 0; border-left: 1px solid var(--border); }
}
.dz-strip dt { font-family: var(--font-mono); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); }
.dz-strip dd { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.dz-strip .pp-status { font-size: var(--fs-title); line-height: var(--lh-title); }
.pp-hero .dz-strip { margin-top: var(--space-8); }

/* One primary action; the rest are text links. */
.dz-actions { align-items: center; gap: var(--space-3) var(--space-6); }
.dz-link { color: var(--text); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.dz-link:hover { color: var(--primary); text-decoration-color: currentColor; }
.dz-link[data-copied] { color: var(--success); text-decoration: none; }

/* Facts that qualify the headline figures, at the top of Checks. */
.dz-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-8); margin-bottom: var(--block-gap); border-top: 1px solid var(--border-strong); }
@media (min-width: 1024px) { .dz-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dz-facts > div { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-bottom: 1px solid var(--border); }
.dz-facts dt { font-family: var(--font-mono); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--copper); }
.dz-facts dd { font-size: var(--fs-small); line-height: var(--lh-small); }

/* /designs: one table per segment, each row a target that opens the design. */
.dz-index tbody tr { position: relative; }
.dz-index tbody th a { color: var(--text); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--border-strong); }
.dz-index tbody th a::after { content: ""; position: absolute; inset: 0; }
.dz-index tbody tr:hover { background: var(--tint); }
.dz-index tbody tr:hover th a { color: var(--primary); text-decoration-color: currentColor; }
.dz-index tbody th a:focus-visible { outline: none; }
.dz-index tbody tr:has(th a:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.dz-index tbody th { min-width: 16rem; }
.dz-index td.num { white-space: nowrap; }
}
