/* ---------- petitions ----------
   Screens use the kit in styles.css (.ub-*); this adds only what petitions
   need. Colours come from the kit's tokens. */

.pt-lead{ margin: -4px 0 16px; font-size: 15px; line-height: 1.45; color: var(--ub-ink2); }
.pt-list{ margin-top: 4px; padding-bottom: 96px; }
.pt-cat{ display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ub-ink2); }
.pt-chip{ display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--ub-soft2); color: var(--ub-ink); }
.pt-chip.live{ background: rgba(52,199,89,.16); color: #1d7a3a; }
.pt-chip.wait{ background: rgba(255,149,0,.16); color: #a55f00; }
.pt-chip.no{ background: rgba(255,59,48,.12); color: #c0271c; }
.pt-left{ font-size: 12px; font-weight: 600; color: var(--ub-ink3); }

/* a petition in the list */
.pt-card{ display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; text-align: left; font: inherit; color: var(--ub-ink); border: none; cursor: pointer; }
.pt-card-top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.pt-card-title{ font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.pt-card-to{ font-size: 14px; color: var(--ub-ink2); }
.pt-card-meta{ display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ub-ink2); }
.pt-card-meta b{ color: var(--ub-ink); }
.pt-card-meta i{ font-style: normal; opacity: .5; }
.pt-card-meta svg, .pt-fine svg, .pt-count-meta svg{ width: 16px; height: 16px; flex: none; }

.pt-bar{ width: 100%; height: 8px; border-radius: 4px; background: var(--ub-soft2); overflow: hidden; }
.pt-bar i{ display: block; height: 100%; border-radius: 4px; background: var(--ub-ink); transition: width .6s var(--ub-out, ease); }

/* the form */
.pt-area{ align-items: stretch; padding: 8px 0; }
.pt-area textarea{ width: 100%; min-height: 96px; padding: 4px 0; border: none; outline: none; resize: vertical; background: none; font: inherit; font-size: 17px; line-height: 1.4; color: var(--ub-ink); }
.pt-area textarea::placeholder{ color: var(--ub-ink3); }
.pt-fine{ display: flex; align-items: flex-start; gap: 8px; margin: 16px 2px 0; font-size: 13px; line-height: 1.4; color: var(--ub-ink2); }
.pt-fine svg{ margin-top: 1px; }

/* one petition */
.pt-banner{ margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; background: var(--ub-soft); }
.pt-banner.wait{ background: rgba(255,149,0,.14); color: #8a5000; }
.pt-banner.no{ background: rgba(255,59,48,.1); color: #b3261e; }
.pt-title{ margin: 6px 0 6px; }
.pt-by{ margin: 0; font-size: 14px; color: var(--ub-ink3); }
.pt-to{ margin: 8px 0 0; font-size: 15px; color: var(--ub-ink2); }
.pt-to b{ color: var(--ub-ink); }
.pt-count{ margin: 18px 0 4px; padding: 16px; border-radius: 12px; background: var(--ub-soft); }
.pt-count-top{ display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.pt-num{ display: inline-block; font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.pt-of{ font-size: 15px; color: var(--ub-ink2); }
.pt-count-meta{ display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--ub-ink2); }
.pt-count-meta > span{ display: inline-flex; align-items: center; gap: 6px; }
.pt-sign{ margin-top: 14px; gap: 10px; }
.pt-sign svg{ width: 20px; height: 20px; }
.pt-signed-row{ display: flex; align-items: center; margin-top: 14px; }
.pt-signed-badge{ display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-size: 16px; font-weight: 600; background: rgba(52,199,89,.14); color: #1d7a3a; }
.pt-signed-badge svg{ width: 20px; height: 20px; }
.pt-signin{ margin-top: 14px; }
.pt-signin b{ font-size: 17px; }
.pt-signin p{ margin: 6px 0 14px; font-size: 14px; line-height: 1.4; color: var(--ub-ink2); }
.pt-tools{ display: flex; gap: 8px; margin-top: 14px; }
.pt-tools .ub-btn{ flex: 1; }
.pt-text{ margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; }
.pt-wide{ display: block; margin: 24px auto 0; }
.pt-review{ margin-top: 14px; }
.pt-review p{ margin: 4px 0 12px; font-size: 14px; color: var(--ub-ink2); }
.pt-review-btns{ display: flex; gap: 8px; }
.pt-review-btns .ub-cta{ flex: 1; }
#pt-reject-form{ margin-top: 12px; }
#pt-reject-form .ub-btn{ margin-top: 8px; width: 100%; }
.pt-confirm{ margin: 4px 0 18px; font-size: 16px; line-height: 1.45; color: var(--ub-ink2); }

/* who has signed */
.pt-h-n{ color: var(--ub-ink3); font-weight: 600; }
.pt-signers .ub-fld{ padding: 8px 0; }
.pt-signer{ gap: 12px; }
.pt-signer-name{ flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-signer-name b{ font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-signer-name i{ font-style: normal; font-size: 13px; color: var(--ub-ink3); }
.pt-signer-date{ flex: none; max-width: 38%; font-size: 12px; line-height: 1.3; text-align: right; color: var(--ub-ink3); }
.pt-none{ margin: 0; padding: 16px 4px; font-size: 14px; color: var(--ub-ink3); }
.pt-more{ width: 100%; margin-top: 10px; }
.pt-locked{ display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--ub-ink2); }
.pt-locked svg{ width: 20px; height: 20px; flex: none; }

/* comments */
.pt-msgs{ display: flex; flex-direction: column; gap: 12px; max-height: 360px; }
.pt-comment{ display: flex; flex-direction: column; gap: 2px; }
.pt-comment.pending{ opacity: .55; }
.pt-comment-head{ display: flex; align-items: center; gap: 8px; }
.pt-comment-head b{ font-size: 14px; font-weight: 600; }
.pt-comment-head i{ font-style: normal; font-size: 12px; color: var(--ub-ink3); }
.pt-comment-x{ margin-left: auto; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: none; background: none; color: var(--ub-ink3); }
.pt-comment-x svg{ width: 14px; height: 14px; }
.pt-comment-body{ font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }

/* the minimum: the bar turns green once it is reached, and keeps counting past it */
.pt-bar.met i{ background: #1d9a4a; }
.pt-met{ font-weight: 600; color: #1d7a3a; }

/* who has signed: bars, no names */
.pt-profile{ display: flex; flex-direction: column; gap: 12px; }
.pt-prow{ display: flex; flex-direction: column; gap: 5px; }
.pt-prow-top{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; }
.pt-prow-top b{ font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-prow-top i{ font-style: normal; color: var(--ub-ink2); flex: none; }
.pt-prow-bar{ display: block; height: 6px; border-radius: 3px; background: var(--ub-soft2); overflow: hidden; }
.pt-prow-bar i{ display: block; height: 100%; border-radius: 3px; background: var(--ub-ink); }

/* checking a printed petition */
.pt-vhead{ text-align: center; padding: 8px 0 20px; }
.pt-vhead .ub-title{ margin: 12px 0 8px; }
.pt-vmark{ display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(52,199,89,.16); color: #1d7a3a; }
.pt-vmark.no{ background: rgba(255,59,48,.12); color: #c0271c; }
.pt-vmark svg{ width: 30px; height: 30px; }
.pt-code{ font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.pt-vtitle{ margin: 4px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.pt-hash{ margin: 16px 2px 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; color: var(--ub-ink3); word-break: break-all; }
