/* Task pitches and "Seen by" (docs/PITCHES.md). Locky Design System tokens only. */

.pitch-panel { margin-bottom: 4px; }
.pitch-body { display: grid; gap: 10px; padding: 0 14px 14px; }
.pitch-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pitch-title { color: var(--ink); }

/* A PDF, Google or Figma viewer: wide, tall enough to read a slide without scrolling the page. */
.pitch-frame { position: relative; width: 100%; border: 2px solid var(--keyline); border-radius: var(--radius-s); overflow: hidden; background: var(--sunk); box-shadow: 0 3px 0 var(--keyline); }
.pitch-frame iframe { display: block; width: 100%; height: min(72vh, 760px); border: 0; background: var(--surface); }
.pitch-frame.pitch-google iframe { height: min(62vh, 620px); }

.pitch-picture { display: block; border: 2px solid var(--keyline); border-radius: var(--radius-s); overflow: hidden; background: var(--sunk); }
.pitch-picture img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }

/* A Claude artifact or a page that won't show in a frame: one big way in. */
.pitch-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px;
  border: 2px solid var(--keyline); border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); text-decoration: none;
  box-shadow: 0 3px 0 var(--keyline);
}
.pitch-card:hover { background: var(--sunk); }
.pitch-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pitch-card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 2px solid var(--keyline); }
.pitch-card-text { display: grid; gap: 2px; min-width: 0; }
.pitch-card-text strong { font-size: 17px; overflow-wrap: anywhere; }
.pitch-card-go { pointer-events: none; white-space: nowrap; }

.pitch-form { padding: 0 14px 14px; }
.pitch-empty .pitch-form > p { margin: 0 0 4px; }

/* Seen by */
.seen-list { list-style: none; margin: 0; padding: 4px 14px 8px; display: grid; gap: 10px; }
.seen-list li { display: grid; gap: 1px; }
.seen-list p { margin: 0; }
.seen-name { display: flex; align-items: center; gap: 6px; }
.seen-none { color: var(--warn-ink); font-weight: 700; }
.seen-slot:empty { display: none; }
.seen-slot p { margin: 2px 0 0; }

@media (max-width: 640px) {
  .pitch-card { grid-template-columns: auto minmax(0, 1fr); }
  .pitch-card-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .pitch-frame iframe { height: 60vh; }
}

/* No pitch yet: one folded line with a gold + (0.29), opened to the form. */
.pitch-add { padding: 10px 14px; }
.pitch-add > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; list-style: none; }
.pitch-add > summary::-webkit-details-marker { display: none; }
.pitch-add > summary::before {
  content: "+"; align-self: center; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--gold); color: var(--navy); font-weight: 800;
  box-shadow: 0 0 0 1.5px var(--keyline), inset 0 -2px 0 var(--gold-shade), inset 0 2px 0 var(--gold-tint), 0 2px 0 var(--keyline);
}
.pitch-add[open] > summary::before { content: "−"; }
.pitch-add-label { font-weight: 800; font-size: 15px; }
.pitch-add[open] > summary { margin-bottom: 12px; }
.pitch-add .pitch-form { padding: 0; }
