/*
 * ClearMile prelaunch catalog
 *
 * Direction: highway guide signs and parts-diagram plates.
 * Sign green panels with a white inset keyline, white line art,
 * lane-yellow reserved for focus and the single selected state.
 */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/Overpass-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/OverpassMono-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --asphalt: #17211e;
  --sign: #0b6a4e;
  --sign-deep: #07493a;
  --paper: #f2f5f1;
  --panel: #e2e8e1;
  --white: #fdfefc;
  --lane: #f6c72b;
  --muted: #4f5c57;
  --rule: #b9c3bc;

  --sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, "DejaVu Sans Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.75rem, 1.2rem + 6.2vw, 5.75rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 84rem;
  --radius-sign: clamp(14px, 2vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--asphalt);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 0.94em; letter-spacing: -0.01em; }
.small { font-size: var(--step--1); color: var(--muted); max-width: 62ch; }

:focus-visible {
  outline: 3px solid var(--lane);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--asphalt);
  border-radius: 4px;
}
main:focus, section:focus, h1:focus { outline: none; box-shadow: none; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--asphalt); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 0.6rem; }

/* ---------- Header ---------- */

.site-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem;
  max-width: var(--wide); margin: 0 auto; padding: 1rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 1.55rem; height: auto; flex: none; }
.bm-plate { fill: var(--sign); }
.bm-line { fill: none; stroke: var(--white); stroke-width: 1.4; }
.bm-text { fill: var(--white); font: 800 12.5px var(--sans); }
.brand-word { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; padding-top: 0.12em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { text-decoration: none; font-weight: 600; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sign); }
.draft-flag { margin-left: auto; font-size: var(--step--1); color: var(--muted); }

/* ---------- Plates (line drawings) ---------- */

.plate {
  --part-fill: var(--panel);
  color: var(--asphalt);
  background: var(--panel);
  display: block;
}
.plate-sign {
  --part-fill: var(--sign);
  color: var(--white);
  background: var(--sign);
  border-radius: var(--radius-sign);
  outline: 2.5px solid var(--white);
  outline-offset: -11px;
}
.kit-svg { display: block; width: 100%; height: auto; }
.kit-svg .parts * { vector-effect: non-scaling-stroke; stroke: currentColor; stroke-linejoin: round; stroke-linecap: round; }
.kit-svg .f { fill: var(--part-fill); stroke-width: 1.6; }
.kit-svg .s { fill: none; stroke-width: 1.6; }
.kit-svg .d { fill: none; stroke-width: 1; opacity: 0.62; }
.kit-svg .h { fill: currentColor; stroke-width: 1.2; }
.kit-svg .callout path { stroke: currentColor; stroke-width: 1; fill: none; stroke-dasharray: 2 3; }
.kit-svg .callout circle { fill: currentColor; stroke: none; }
.kit-svg .callout text { font-family: var(--sans); font-weight: 700; fill: var(--part-fill); }

/* ---------- Hero ---------- */

.hero { max-width: var(--wide); margin: 0 auto; padding: 0.25rem var(--gutter) 0; }
.hero-sign {
  background: var(--sign);
  color: var(--white);
  border-radius: var(--radius-sign);
  outline: 3px solid var(--white);
  outline-offset: -13px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 5.5vw, 5rem) clamp(1.9rem, 5vw, 4.5rem);
}
.hero h1 { font-size: var(--step-4); font-weight: 800; line-height: 0.96; letter-spacing: -0.035em; }
.hero-lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.45; max-width: 34em; color: #e6f2ec; }

/* Pack contents use the same numbers as the product drawing. */
.key { counter-reset: key; }
.key li { counter-increment: key; display: flex; align-items: baseline; gap: 0.6rem; }
.key li::before {
  content: counter(key);
  flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; line-height: 1; padding-top: 0.12em;
  background: var(--asphalt); color: var(--white);
}
/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem 0.55rem;
  border-radius: 8px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1;
}
.btn-light { background: var(--white); color: var(--sign-deep); }
.btn-light:hover { background: var(--lane); color: var(--asphalt); }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--sign-deep); }
.btn-dark { background: var(--asphalt); color: var(--white); }
.btn-dark:hover { background: var(--sign-deep); }
.link-btn { background: none; border: 0; padding: 0.4rem 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- Sections ---------- */

.families, .catalog, .about, .related { max-width: var(--wide); margin: 0 auto; padding: clamp(3.25rem, 7vw, 6rem) var(--gutter) 0; }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ---------- Families: read like a distance sign ---------- */

.family-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 4rem); border-top: 2px solid var(--asphalt); }
.family-list li { border-bottom: 1px solid var(--rule); }
.family-list a {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: 0.85rem 0.5rem 0.85rem 0; text-decoration: none; height: 100%;
}
.family-list a:hover { background: var(--panel); }
.family-list a:hover .fam-name { text-decoration: underline; text-decoration-thickness: 2px; }
.fam-art { border-radius: 6px; }
.family-list a:hover .fam-art { background: var(--white); --part-fill: var(--white); }
.fam-text { display: grid; gap: 0.15rem; }
.fam-name { font-size: var(--step-1); font-weight: 700; line-height: 1.15; }
.fam-blurb { font-size: var(--step--1); color: var(--muted); line-height: 1.35; }
.fam-count { text-align: right; display: grid; line-height: 1; }
.fam-count .n { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fam-count .u { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

/* ---------- Filters ---------- */

.filters { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: end; }
.field { display: grid; gap: 0.35rem; position: relative; }
.field label { font-weight: 700; font-size: var(--step--1); padding: 0; }
.field input, .field select {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem 0.65rem;
  background: var(--white); border: 2px solid var(--asphalt); border-radius: 8px;
}
.field input::placeholder { color: #6a7570; }
.field select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--asphalt) 50%), linear-gradient(135deg, var(--asphalt) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
.hint { position: absolute; right: 0.9rem; bottom: 1.05rem; font-size: 0.75rem; color: var(--muted); pointer-events: none; }
.field-search input:not(:placeholder-shown) ~ .hint, .field-search input:focus ~ .hint { display: none; }
.result-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin: 1.75rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--asphalt); }
#result-count { font-weight: 700; }

/* ---------- Product cards ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.card {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  background: var(--white); border: 1.5px solid var(--asphalt); border-radius: 10px; overflow: hidden; text-decoration: none;
}
.card .plate { border-bottom: 1.5px solid var(--asphalt); }
.card:hover .plate { background: var(--sign); color: var(--white); --part-fill: var(--sign); }
.card-body { padding: 0.9rem 1rem 1rem; display: grid; gap: 0.45rem; align-content: start; }
.card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; text-wrap: pretty; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; }
.card-pack { font-weight: 600; font-size: var(--step--1); }
.card-apps { font-size: var(--step--1); color: var(--muted); line-height: 1.35; }
.pid {
  justify-self: start; display: inline-block;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  background: var(--sign); color: var(--white); padding: 0.4rem 0.5rem 0.3rem; border-radius: 4px;
}

.empty { border: 1.5px dashed var(--asphalt); border-radius: 10px; padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 0.9rem; justify-items: start; }
.empty h3 { font-size: var(--step-2); font-weight: 800; }
.empty p { max-width: 56ch; color: var(--muted); }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem); border-top: 2px solid var(--asphalt); padding-top: 1.75rem; }
.about-grid h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: 0.5rem; }
.about-grid p { max-width: 58ch; }

/* ---------- Product view ---------- */

#view-product, #view-missing { max-width: var(--wide); margin: 0 auto; padding: 0.25rem var(--gutter) 0; }
#view-missing { display: grid; gap: 1.25rem; justify-items: start; padding-top: 3rem; }
#view-missing h1 { font-size: var(--step-3); font-weight: 800; }
.crumbs { margin-bottom: 1rem; font-weight: 600; }
.p-layout { display: grid; grid-template-areas: "figure intro" "figure details"; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.p-intro { grid-area: intro; }
.p-main { grid-area: details; }
.p-figure { grid-area: figure; margin: 0; position: sticky; top: 1rem; }
.p-figure figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.p-family { font-weight: 600; color: var(--sign-deep); }
.p-intro h1 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin-top: 0.5rem; }
.p-id { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.p-id .pid { font-size: 0.95rem; padding: 0.5rem 0.65rem 0.38rem; }
.status { margin-top: 1.25rem; padding: 0.8rem 1rem 0.65rem; border-left: 6px solid var(--lane); background: var(--white); max-width: 60ch; }
.p-sec { margin-top: 2.25rem; }
.p-sec h2 { font-size: var(--step-1); font-weight: 800; padding-bottom: 0.4rem; margin-bottom: 0.9rem; border-bottom: 2px solid var(--asphalt); }
.p-sec .key { display: grid; gap: 0.5rem; }
.p-sec .small { margin-top: 0.8rem; }
.facts { margin: 0 0 1rem; display: grid; gap: 0.3rem; }
.facts div { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: 0.75rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.apps { width: 100%; border-collapse: collapse; }
.apps thead th { text-align: left; font-size: var(--step--1); color: var(--muted); font-weight: 400; padding: 0 0 0.3rem; }
.apps tbody th { text-align: left; vertical-align: top; font-weight: 700; padding: 0.55rem 1rem 0.45rem 0; width: 9rem; }
.apps tbody td { padding: 0.55rem 0 0.45rem; }
.apps tbody tr { border-top: 1px solid var(--rule); }
.nb { white-space: nowrap; }
.refs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.refs li { border: 1.5px solid var(--asphalt); border-radius: 4px; padding: 0.3rem 0.5rem 0.2rem; background: var(--white); }
.notes { display: grid; gap: 0.6rem; max-width: 62ch; }
.notes li { padding-left: 1rem; border-left: 3px solid var(--rule); }
.p-actions { margin-top: 2.25rem; }
.related { padding-left: 0; padding-right: 0; }

/* ---------- Footer, toast ---------- */

.site-foot { max-width: var(--wide); margin: clamp(3.5rem, 8vw, 6.5rem) auto 0; padding: 1.5rem var(--gutter) 2.5rem; border-top: 2px solid var(--asphalt); display: grid; gap: 0.4rem; }
.site-foot .fine { font-size: var(--step--1); color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: var(--asphalt); color: var(--white); padding: 0.75rem 1.1rem 0.6rem; border-radius: 8px; font-weight: 600; max-width: calc(100vw - 2rem);
  transition: opacity 160ms ease, transform 160ms ease; z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { max-width: var(--wide); margin: 2rem auto; padding: 0 var(--gutter); font-weight: 700; }

/* ---------- Narrow screens ---------- */

@media (max-width: 60rem) {
  .hero-sign { grid-template-columns: minmax(0, 1fr); }
  .family-list { grid-template-columns: minmax(0, 1fr); }
  .p-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "figure" "details"; gap: 1.2rem; }
  .p-figure { position: static; max-width: 34rem; }
}
@media (max-width: 40rem) {
  :root { --step-0: 1rem; --step-3: 1.875rem; }
  .site-head { gap: 0.35rem 1.25rem; padding-top: 0.75rem; }
  .draft-flag { margin-left: 0; flex-basis: 100%; order: 3; }
  .site-nav { gap: 0 1.1rem; }
  .site-nav a { padding: 0.55rem 0; }
  .hero-sign { outline-offset: -9px; outline-width: 2.5px; padding: 2.1rem 1.5rem 1.9rem; }
  .hero-lede { font-size: 1.0625rem; }
  .plate-sign { outline-offset: -8px; outline-width: 2px; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .hint { display: none; }
  .family-list a { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 0.75rem; }
  .fam-blurb { display: none; }
  .fam-count .n { font-size: var(--step-2); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { grid-template-rows: none; grid-template-columns: 7.25rem minmax(0, 1fr); }
  .card .plate { border-bottom: 0; border-right: 1.5px solid var(--asphalt); display: grid; align-items: center; }
  .card-body { padding: 0.75rem 0.85rem 0.8rem; gap: 0.35rem; }
  .card h3 { font-size: 1rem; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .apps tbody th { width: 6.5rem; padding-right: 0.6rem; }
}

@media print {
  .site-nav, .hero-search, .filters, .p-actions, .toast, .skip, .crumbs { display: none !important; }
  .hero-sign, .plate-sign { background: none; color: #000; outline-color: #000; --part-fill: #fff; }
  body { background: #fff; }
}
/* Catalog cover and family photography. */
.hero-sign {
  outline: none;
  display: flex;
  min-height: clamp(26rem, 36vw, 33rem);
  background: linear-gradient(90deg, #141916 1%, rgba(16,23,20,.90) 24%, rgba(16,23,20,.25) 59%, transparent 85%), url("../hero-ignition.webp") center 53% / cover;
}
.hero-copy { max-width: min(37rem, 56%); }
.hero h1 { font-size: clamp(3rem, 5.25vw, 5.35rem); line-height: 1.01; }
.hero-lede { color: #f0f2eb; max-width: 31rem; }
.hero .btn-light { background: #f6c72b; color: #17211e; }
.hero .btn-light:hover { background: #ffdb52; }
.fam-art img { display: block; width: 100%; aspect-ratio: 120/84; object-fit: cover; border-radius: inherit; }

@media (max-width: 46rem) {
  .hero-sign {
    align-items: end;
    min-height: 31rem;
    padding: 1.6rem;
    background: linear-gradient(0deg, #101713 5%, rgba(16,23,20,.96) 39%, rgba(16,23,20,.2) 83%), url("../hero-ignition.webp") 72% top / auto 65% no-repeat, #151916;
  }
  .hero-copy { max-width: 31rem; }
  .hero h1 { font-size: clamp(2.35rem, 8.8vw, 3.5rem); }
  .hero-lede { max-width: 29rem; margin-top: .85rem; }
  .draft-flag { display: none; }
}

/* Search and family shortcuts on the catalog cover. */
.hero-search {
  display: flex; align-items: stretch; margin-top: 1.65rem; padding: .3rem;
  max-width: 31rem; background: var(--white); border-radius: .6rem;
}
.hero-search input {
  flex: 1; min-width: 0; width: 100%; border: 0; border-radius: .3rem;
  padding: .75rem; background: transparent; color: var(--asphalt); font: inherit;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  flex: none; padding: .75rem 1rem; cursor: pointer; border: 0; border-radius: .4rem;
  background: var(--lane); color: var(--asphalt); font-weight: 750;
}
.hero-search button:hover { background: #ffdc59; }
.all-parts { display: inline-block; margin-top: .9rem; color: var(--white); text-underline-offset: .22em; }
.family-featured {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.5rem);
}
.family-featured a {
  height: 100%; display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  border-radius: .8rem; background: var(--white); border: 1px solid var(--rule);
}
.family-featured img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel); }
.feature-copy { display: grid; gap: .12rem; padding: 1rem 1.1rem; }
.feature-copy strong { font-size: clamp(1.05rem, 1.75vw, 1.45rem); line-height: 1.16; }
.feature-copy small, .family-more summary span { color: var(--muted); font-size: .9rem; }
.family-featured a:hover { border-color: var(--sign); }
.family-featured a:hover strong { text-decoration: underline; text-underline-offset: .16em; }
.family-more { margin-top: 1rem; border-block: 1px solid var(--rule); }
.family-more summary { cursor: pointer; font-weight: 650; padding: 1rem .15rem; }
.family-more .family-list { border-top: 1px solid var(--rule); }
.family-more .family-list li { border-color: var(--rule); }
.hint { border: 1px solid var(--rule); border-radius: .25rem; padding: .08rem .4rem; bottom: .9rem; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .65rem; margin: 1.5rem auto 0; max-width: 30rem; }
.page-link { color: var(--sign-deep); border-color: var(--rule); }
.page-link:hover { border-color: var(--sign); background: var(--panel); }
#prev-page { grid-column: 1; justify-self: start; }
#page-count { grid-column: 2; font-variant-numeric: tabular-nums; }
#next-page { grid-column: 3; justify-self: end; }
.card, .card .plate { border-color: var(--rule); }
@media (max-width: 50rem) {
  .family-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .feature-copy { padding: .8rem; }
  .hero-search { margin-top: 1rem; }
  .hero-search input { padding-inline: .45rem; font-size: 1rem; }
  .hero-search button { padding-inline: .65rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .field-search { grid-column: 1 / -1; }
  .field select { text-overflow: ellipsis; }
  .p-figure { max-width: 25rem; }
  .nb { white-space: normal; }
}
@media (max-width: 22rem) {
  .hero-search { flex-wrap: wrap; }
  .hero-search input, .hero-search button { flex: 1 0 100%; }
}

/* Pack photos retain their original proportions on cards and product pages. */
.part-photo, .feature-photo, .fam-art { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.part-photo { aspect-ratio: 1.6; padding: .7rem; }
.part-photo img, .feature-photo img, .fam-art img { display: block; min-width: 0; width: 100%; height: 100%; object-fit: contain; }
.part-photo img:has(+ img), .part-photo img + img, .fam-art img:has(+ img), .fam-art img + img { width: 50%; }
.feature-photo { aspect-ratio: 1.3; padding: .75rem; }
.family-featured .feature-photo img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.fam-art { aspect-ratio: 1.45; padding: .2rem; }
.card .part-photo { border-bottom: 1px solid var(--rule); }
.p-figure .part-photo { aspect-ratio: 1.15; border: 1px solid var(--rule); border-radius: .8rem; padding: clamp(1rem, 3vw, 2.4rem); }
.card-ref, .photo-type { color: var(--muted); font-size: .86rem; }
.photo-type { font-style: italic; }
.credits { max-width: 46rem; margin: 4rem auto; padding: 0 var(--gutter); }
.credits h1, .credits p, .credits li { margin: 1rem 0; }
@media (max-width: 40rem) {
  .card .part-photo { align-self: stretch; height: 100%; min-height: 7rem; max-height: 16rem; aspect-ratio: auto; border: 0; border-right: 1px solid var(--rule); }
}
