/* /templates/ (item 270, picture docs/design/sketches/270-picture.md "Free template page"): chips and the post, on learn.css tokens.
   One column at 390; the questions beside the post at 900+. Copy is the largest control; every target >= var(--tap). */
.tp .intro { color: var(--muted); }
.tp-grid { display: grid; gap: 20px; margin-top: 14px; }
@media (min-width: 900px) { .tp { max-width: 1040px; } .tp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .tp-out { position: sticky; top: 12px; } }
.tp-f { margin-bottom: 14px; }
.tp-f label { display: block; font-weight: 700; margin-bottom: 6px; }
.tp-in { width: 100%; min-height: var(--tap); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tp-chips, .tp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chip { min-height: var(--tap); padding: 0 16px; font: 600 var(--small)/1 var(--ui); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; cursor: pointer; touch-action: manipulation; }
.tp-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tp-out { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.tp-tabs { margin-bottom: 12px; }
.tp-post { white-space: pre-wrap; overflow-wrap: anywhere; font: var(--body)/1.45 var(--ui); background: var(--surface-2); border-radius: 12px; padding: 14px; margin: 0 0 8px; }
.tp-miss { color: var(--muted); font-size: var(--small); min-height: 1.4em; margin: 0 0 10px !important; }
.tp-copy { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--btn); border-radius: 14px; font: 700 18px/1 var(--ui); text-decoration: none; cursor: pointer; touch-action: manipulation; }
.tp-copy { background: var(--accent); color: var(--accent-ink); border: 0; }
.cards { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (max-width: 899px) { .tp { padding-bottom: calc(var(--btn) + 36px); }
  .tp-copy { position: fixed; left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; z-index: 5; box-shadow: 0 2px 12px rgba(0,0,0,.25); } }
.tp-posted { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap); margin-top: 8px; border-radius: 14px; font: 700 var(--body)/1 var(--ui); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; touch-action: manipulation; }
.tp-posted[hidden] { display: none; }
@media (max-width: 899px) { .tp-posted { margin-bottom: calc(var(--btn) + 24px); } }

.tp-photos { margin: 14px 0 0; }
.tp-add { display: flex; align-items: center; justify-content: center; min-height: var(--btn); border: 1px dashed var(--line); border-radius: 14px; font: 700 var(--body)/1 var(--ui); color: var(--ink); background: var(--surface); cursor: pointer; touch-action: manipulation; }
.tp-got { color: var(--muted); font-size: var(--small); margin: 8px 0 0 !important; min-height: 1.4em; }

.tp-thumbs { display: flex; gap: 8px; margin: 8px 0 0; }
.tp-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.tp-fold { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--tap); padding: 0 2px; font: 600 var(--body)/1.3 var(--ui); color: var(--ink); }
.tp-fold button { min-height: var(--tap); padding: 0 12px; border: 0; background: none; font: 700 var(--small)/1 var(--ui); color: var(--accent, var(--ink)); text-decoration: underline; cursor: pointer; touch-action: manipulation; }
