/* The public cite card (qr.by-paperboy.com/c/<id>): a document, so it keeps one light palette in every theme. */
:root { --ink: #16181d; --ink2: #5f636c; --line: rgba(22, 24, 29, .12); --ground: #f5f4f1; --paper: #fff; --red: #c8321f; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.cc { max-width: 760px; margin: 0 auto; padding: 32px 20px 56px; }
.cc-kicker { margin: 0 0 8px; color: var(--ink2); font-size: 13px; font-weight: 600; }
h1 { margin: 0 0 20px; font: 600 28px/1.2 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.cc-post { display: grid; grid-template-columns: 140px minmax(0, 1fr) 120px; gap: 20px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.cc-post > img:first-child { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; background: #eee; }
.cc-post:not(:has(> img:first-child + div)) { grid-template-columns: minmax(0, 1fr) 120px; }
.cc-qr { width: 120px; height: 120px; }
blockquote { margin: 0 0 12px; padding-inline-start: 12px; border-inline-start: 3px solid var(--line); overflow-wrap: anywhere; }
dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
dt { color: var(--ink2); }
dd { margin: 0; overflow-wrap: anywhere; }
a { color: var(--ink); }
.cc-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; font-weight: 600; }
.cc-cite { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; }
.cc-cite-h { display: flex; justify-content: space-between; align-items: center; }
.cc-cite p { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.cc-copy, form button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(22, 24, 29, .25); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.cc-copy.done { border-color: #1f7a4a; color: #1f7a4a; }
details { margin: 16px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
code, pre { font: 13px/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
pre { background: var(--ground); padding: 8px; border-radius: 8px; }
.cc-kept { color: var(--ink2); font-size: 13px; }
form { display: grid; gap: 8px; margin-top: 8px; }
form label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
textarea { font: inherit; padding: 8px; border: 1px solid rgba(22, 24, 29, .25); border-radius: 10px; }
.cc-note { font-size: 20px; margin: 15vh 0 16px; }
.cc-foot { margin-top: 32px; font-size: 14px; color: var(--ink2); }
@media (max-width: 640px) {
  .cc-post, .cc-post:not(:has(> img:first-child + div)) { grid-template-columns: minmax(0, 1fr); }
  .cc-post > img:first-child { width: 100%; height: auto; max-height: 260px; }
  .cc-qr { justify-self: start; }
  h1 { font-size: 23px; }
}
/* the search pages */
.cc h2 { font: 600 20px/1.3 Georgia, serif; margin: 28px 0 10px; }
.cc ul { padding-inline-start: 20px; }
.cc-start { display: grid; gap: 8px; margin: 16px 0 8px; max-width: 560px; }
.cc-start input { min-height: 48px; padding: 0 12px; font: inherit; font-size: 16px; border: 1px solid rgba(22, 24, 29, .25); border-radius: 10px; }
.cc-start button { min-height: 56px; border: 0; border-radius: 14px; background: var(--red); color: #fff; font: 600 17px/1 system-ui, sans-serif; cursor: pointer; }
