/* The paste-in's cards (R15-F2, js/paste-cards.js): index cards on the pocket edition's paper. A card in pencil (the
   reader's guess, every card until sure cards are proven) has a dashed graphite edge and soft lettering; a card in ink
   (sure, or kept by a grown-up) a solid edge, a red top rule and full ink. Tokens only (tokens.css, pocket.css). */
.pc { display: grid; gap: 12px; }
textarea.pc-box { font-family: var(--font); font-style: normal; font-size: 16px; line-height: 1.45; min-height: 96px; }
.pc-count { margin: 6px 0 0; font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pc-cards { display: grid; gap: 14px; }

.pc-card {
  --rule: color-mix(in oklab, var(--cal-blue) 16%, transparent);
  --lead: color-mix(in oklab, var(--alarm) 55%, transparent);
  position: relative; display: grid; gap: 6px; padding: 12px 14px 14px; border-radius: 6px; background: var(--surface);
  box-shadow: var(--shadow); animation: p-settle 420ms var(--ease-out) backwards;
}
.pc-card::before { content: ""; position: absolute; inset: 40px 0 auto; height: 2px; background: var(--lead); }
.pc-card:nth-child(2) { animation-delay: 50ms; } .pc-card:nth-child(3) { animation-delay: 100ms; } .pc-card:nth-child(n+4) { animation-delay: 150ms; }
.pc-card.is-pencil { outline: 1.5px dashed color-mix(in oklab, var(--ink-soft) 55%, transparent); outline-offset: -1.5px; color: var(--ink-soft); }
.pc-card.is-pencil::before { background: color-mix(in oklab, var(--ink-soft) 30%, transparent); }
.pc-card.is-ink { outline: 1.5px solid color-mix(in oklab, var(--ink) 70%, transparent); outline-offset: -1.5px; color: var(--ink); }
.pc-card.is-past { opacity: 0.55; }
.pc-card.is-kept { background-color: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.pc-card.is-leaving { animation: pc-away 320ms var(--ease-out) forwards; }
@keyframes pc-away { to { opacity: 0; transform: translateX(32px) rotate(2deg); } }

.pc-top { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.pc-part { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 0; border: 0; background: none;
  text-align: left; color: inherit; }
.pc-part:disabled { cursor: default; }
.pc-part svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.55; }
.pc-part:focus-visible, .pc-away:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.pc-kind { width: auto; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; letter-spacing: 0.06em;
  text-transform: uppercase; background: color-mix(in oklab, var(--k, var(--accent)) 14%, var(--surface)); color: color-mix(in oklab, var(--k, var(--accent)) 60%, var(--ink)); }
.pc-kind.is-closed { --k: var(--cal-coral); }
.pc-kind.is-todo { --k: var(--cal-green); }
.pc-flag { font-size: 13px; font-weight: 800; color: var(--muted); }
.pc-away { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px auto; border: 0; border-radius: 999px;
  background: none; color: var(--muted); }
.pc-away svg { width: 20px; height: 20px; }
.pc-title { min-height: 34px; font-family: var(--font-story); font-size: 22px; font-weight: 600; line-height: 1.2; }
.pc-when { font-weight: 800; font-size: 16px; }
.pc-who { font-weight: 700; font-size: 15px; color: color-mix(in oklab, var(--accent) 60%, currentColor); }
/* the sentence it came from, written on the card's ruled lines */
.pc-line { margin: 4px 0 0; font-family: var(--font-story); font-style: italic; font-size: 15px; line-height: 28px; color: var(--ink-soft);
  background: repeating-linear-gradient(to bottom, transparent 0 27px, var(--rule) 27px 28px); }
.pc-mark { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--cal-blue); }
.pc-mark.is-time { text-decoration-color: var(--cal-green); }
.pc-why { margin: 0; font-size: 13px; color: var(--muted); }
.pc-fix { display: grid; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-sunk); color: var(--ink); }
.pc-fix .p-btn { justify-self: start; }
.pc-clash { display: grid; gap: 6px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.pc-keep { min-width: 120px; }
.pc-keep-sure { justify-self: start; border-color: var(--ink); }
.pc-stamp { display: inline-block; padding: 4px 12px; border: 2px solid var(--accent); border-radius: 6px; color: var(--accent);
  font-size: 14px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-3deg);
  animation: pc-stamp 360ms var(--ease-spring); }
@keyframes pc-stamp { from { opacity: 0; transform: rotate(-3deg) scale(1.4); } }

.pc-already { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-sunk); }
.pc-already summary { min-height: 32px; font-weight: 800; color: var(--ink-soft); cursor: pointer; }
.pc-already ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.pc-putaway { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
