/* Project Cases page — this page's own sheet, and only the rules the shared
   layer does not already carry. The palette, the spacing and the type come from
   assets/css/tokens.css, assets/css/pages.css and style.css; nothing is
   redefined here. This sheet is enqueued site-wide (functions.php), so every
   rule is scoped to the .cases- names only this template renders. */

.cases-group{margin-top:56px}
/* The section head already carries its own bottom margin, so the first group
   only takes the rest of the gap. */
.section__head + .cases-group{margin-top:34px}
.cases-group__head{max-width:70ch}
.cases-group__head h3{margin:8px 0 0}
.cases-group__text{margin:12px 0 0;font-size:15px;color:var(--color-muted)}
.cases-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:26px}
.cases-shot{position:relative;overflow:hidden;margin:0;background:var(--color-surface);border:1px solid var(--color-line);border-radius:var(--radius-md)}
.cases-photo{display:block;width:100%;height:240px;object-fit:cover}
.cases-caption{margin:0;padding:14px 18px;border-top:1px solid var(--color-line);font-size:13px;font-weight:600;color:var(--color-navy)}

/* ------------------------------------------------ Installation records -- */
/* Three cards, each printing what a project file states and then naming the
   fields it does not. The status chip is what tells a record from a case at a
   glance, and the fields are a definition list because that is what they are:
   a label, and the one value the file gives it. */

.cases-recs{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:34px}
.cases-rec{display:flex;flex-direction:column;padding:22px 20px;background:var(--color-surface);border:1px solid var(--color-line);border-radius:var(--radius-md)}
.cases-rec__status{align-self:flex-start;margin:0;padding:3px 10px;border-radius:999px;background:var(--color-pale);color:var(--color-muted);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cases-rec__eyebrow{margin:16px 0 0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--color-accent)}
.cases-rec__title{margin:6px 0 0;font-size:18px;line-height:1.3}
.cases-rec__fields{margin:18px 0 0;padding:0}
.cases-rec__row{display:grid;gap:3px;padding:11px 0;border-top:1px solid var(--color-line)}
.cases-rec__row dt{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-muted)}
.cases-rec__row dd{margin:0;font-size:14px;line-height:1.5;color:var(--color-text)}
.cases-rec__missing-title{margin:18px 0 0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-muted)}
.cases-rec__missing{margin:8px 0 0;padding-left:18px;font-size:14px;line-height:1.5;color:var(--color-muted)}
.cases-rec__missing li + li{margin-top:6px}
/* The way on sits at the foot of every card, so the three buttons line up
   whatever length the fields above them run to. */
.cases-rec__actions{margin:auto 0 0;padding-top:22px}
.cases-rec__note{margin:26px 0 0;max-width:80ch;font-size:14px;line-height:1.6;color:var(--color-muted)}

/* The photograph a record opens with, and the further ones below its fields.
   Both are the shared .media-frame, so a picture is cropped by its frame and
   never stretched, and the archive file is shown as it is. */
.cases-rec__shot{margin:0 0 18px}
.cases-rec__more{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 0;padding:0;list-style:none}
.cases-rec__more li{margin:0}
.cases-rec__more .figure__caption{margin-top:6px}
.cases-rec__photos{margin:14px 0 0;font-size:12px;line-height:1.5;color:var(--color-muted)}

/* ---------------------------------------------------------- Responsive -- */
@media(max-width:980px){
  .cases-group{margin-top:44px}
  .cases-gallery{grid-template-columns:1fr 1fr;gap:20px}
  /* The records are read rather than scanned, so they stack before the gallery
     does instead of being squeezed into two columns of prose. */
  .cases-recs{grid-template-columns:1fr;gap:20px}
}
@media(max-width:640px){
  .cases-group{margin-top:36px}
  .cases-gallery{grid-template-columns:1fr}
  .cases-photo{height:200px}
}
