/* Examples section (Task P4): the public /examples/ cards and the staff curation rows. Loaded only by the
   examples templates; tokens (--ink, --paper, --rust, --line, --muted, --text) come from site.css. The display
   face stays on the page title (h1); card titles and card text use the calmer body face, Newsreader. */

.ex-intro { max-width: 62ch; margin-top: 14px; }

.ex-grid { list-style: none; padding: 0; display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.ex-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border-top: 2px solid var(--ink); }
.ex-thumb { display: block; line-height: 0; border-bottom: 1px solid var(--line); }
.ex-thumb img, .ex-row-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--paper); }
.ex-nothumb { display: grid; place-items: center; aspect-ratio: 3 / 2; width: 100%; line-height: 1.3; padding: 12px; text-align: center;
  font-family: var(--text); font-size: .95rem; color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(30, 27, 24, .04) 10px 20px); }
.ex-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; min-width: 0; }
.ex-title { font-family: var(--text); font-weight: 600; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.ex-title a { text-decoration: none; }
.ex-title a:hover { text-decoration: underline; }
.ex-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-family: var(--text); font-weight: 500; font-size: .95rem; color: var(--muted); }
.ex-facts span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--muted); }
.ex-blurb { font-family: var(--text); font-weight: 500; font-size: 1.02rem; line-height: 1.45; overflow-wrap: anywhere; }
.ex-credit { font-family: var(--text); font-size: .88rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.ex-body p + p { margin-top: 0; }
.ex-open { margin-top: auto; padding-top: 6px; }

.ex-empty { max-width: 52ch; border-left: 4px solid var(--ink); background: var(--paper); padding: 18px 20px; font-family: var(--text); }

/* staff curation rows */
.ex-staff { margin-top: 28px; }
.ex-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 22px; padding: 18px 0; border-top: 1px solid var(--line); }
.ex-row.is-featured { border-top: 2px solid var(--ink); }
.ex-row h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.ex-row-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ex-row-main p + p { margin-top: 0; }
.ex-row-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; margin-top: 6px; }
.ex-row-form label { margin-bottom: 4px; }
.ex-check { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ex-order input { width: 6.5em; }
.ex-blurb-field { flex: 1 1 280px; min-width: 0; }
.ex-blurb-field input { width: 100%; }
@media (max-width: 600px) { .ex-row { grid-template-columns: minmax(0, 1fr); } .ex-row-thumb { max-width: 260px; } }

/* landing page teaser link (templates/landing.html) */
.ex-teaser { margin-top: 20px; font-family: var(--text); font-size: 1.05rem; }
.ex-teaser a { text-decoration-color: var(--rust); text-decoration-thickness: 2px; }
