/* ============================================================================
 * CEPlate — THE one "this member has no photo" treatment.
 *
 * Why this file exists: three renderers each answered "member has no photo"
 * differently, and the answers had drifted a long way apart —
 *   index.html   an engraved bookplate: navy field, coral glow, scanlines, a
 *                ghost initial bleeding off the corner, a serif monogram
 *   members.html one letter over a hashed gradient (`.mc-fallback`)
 *   member.html  a flat blue radial with no monogram at all (`.hero-grad.noimg`)
 * Same member, three looks, and the directory — the page a visitor actually
 * browses — had the weakest one. Owner ruling 2026-08-28: the bookplate is the
 * fallback everywhere. This is its single home; the callers pick a SIZE, never
 * a look.
 *
 * Same precedent (and same shape) as utils/image-fit.js and utils/esc.js: a
 * plain stylesheet + a plain script, no build step, loadable by the cinematic
 * detail pages that deliberately carry no shared kit.
 *
 * A NEW file on purpose — `coastal.css` is linked by 15 pages under 15 separate
 * `?v=` keys, so editing it to ship a plate would drag every stale key with it
 * (see KNOWN_ERRORS.md). A new file starts at v=1 on every page at once.
 *
 * Contract: `.ce-plate` is `position:absolute; inset:0` — its parent must be
 * positioned, and the member's <img> must sit ABOVE it (z-index) so a photo
 * that 404s can simply remove itself and reveal the plate underneath.
 * ========================================================================== */

.ce-plate {
  /* defaults = the CARD size, so a caller that forgets a variant gets the
     small, safe one rather than 310px type inside a 200px box */
  --cep-pad: 20px;
  --cep-ghost: 168px;
  --cep-mono: 40px;
  --cep-gap: 13px;
  --cep-cap: 9.5px;
  --cep-mark: 8.5px;

  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--cep-pad);
  background:
    radial-gradient(520px 300px at 84% 108%, color-mix(in srgb, var(--ce-coral) 24%, transparent), transparent 66%),
    linear-gradient(150deg,
      color-mix(in srgb, var(--ce-navy) 80%, #000),
      color-mix(in srgb, var(--ce-navy) 70%, #000) 62%,
      color-mix(in srgb, var(--ce-navy) 80%, var(--ce-teal-deep)));
}

/* laid paper — the texture that keeps the field from reading as a dead box */
.ce-plate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.042) 0 1px, transparent 1px 8px);
}

/* the initial, set enormous and bled off the top-left corner */
.ce-plate__ghost {
  position: absolute; left: -.05em; top: -.14em; z-index: 0;
  font-family: var(--ce-font-display); font-weight: 800;
  font-size: var(--cep-ghost); line-height: .78; letter-spacing: -.05em;
  color: rgba(255,255,255,.055); pointer-events: none; user-select: none;
}

.ce-plate__in { position: relative; z-index: 1; }

/* --- quote mode: the member wrote notes, so set one of them large ---------- */
.ce-plate__rule { display: block; width: 46px; height: 2px; background: var(--ce-coral); margin: 0 0 18px; }
.ce-plate__txt {
  margin: 0; font-family: var(--ce-font-display); font-style: italic; font-weight: 500;
  font-size: clamp(19px, 2.3vw, 27px); line-height: 1.34; color: #fff; text-wrap: balance;
}

.ce-plate__cap {
  margin-top: 18px; font-family: var(--ce-font-body); font-size: var(--cep-cap); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ce-teal-light);
}

/* --- book mode: nothing on file at all → an engraved monogram --------------
   Never repeats the business name: every caller already sets it in full
   alongside (the facing page, the card title, the hero h1). */
.ce-plate--book { align-items: center; text-align: center; }
.ce-plate--book .ce-plate__in { max-width: 300px; }
.ce-plate--book .ce-plate__mono {
  font-family: var(--ce-font-display); font-weight: 700; letter-spacing: .06em;
  font-size: var(--cep-mono); line-height: 1; color: #fff; opacity: .94;
  text-shadow: 0 10px 34px rgba(0,0,0,.45);
}
.ce-plate--book .ce-plate__bar {
  display: block; height: 1px; margin: var(--cep-gap) 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ce-peach) 60%, transparent), transparent);
}
.ce-plate--book .ce-plate__bar--thin { margin: calc(var(--cep-gap) - 2px) 0 var(--cep-gap); }
.ce-plate--book .ce-plate__cap { margin-top: 0; }
.ce-plate--book .ce-plate__mark {
  margin-top: 16px; font-family: var(--ce-font-body); font-size: var(--cep-mark); font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.34);
}

/* --- sizes ---------------------------------------------------------------- */

/* LG — a full panel: the homepage spotlight's left page. */
.ce-plate--lg {
  --cep-pad: clamp(30px, 3.6vw, 46px);
  --cep-ghost: clamp(190px, 25vw, 310px);
  --cep-mono: clamp(64px, 8.4vw, 104px);
  --cep-gap: 22px;
  --cep-cap: 10.5px;
  --cep-mark: 10px;
}

/* MD is the default block above — a directory card's image box (371x200 in the
   grid, 200x200 in the list view). Tighten the mark on the narrow list card so
   the letterspacing can't force a second line. */
.members-list .ce-plate { --cep-ghost: 150px; --cep-mono: 36px; --cep-gap: 11px; }
.members-list .ce-plate--book .ce-plate__mark { letter-spacing: .16em; }

/* BARE — the field only, for a hero that carries its own headline. No content
   block; the initial moves off the bottom-left where the h1 sits and becomes a
   watermark on the right. */
.ce-plate--bare .ce-plate__ghost {
  left: auto; right: -.04em; top: 50%; transform: translateY(-54%);
  font-size: clamp(300px, 46vw, 720px); color: rgba(255,255,255,.045);
}
