/* proposals screens. Owned by the proposals module; loaded after app.css on every page. */

/* Client proposal and pay pages */
.pp-steps { margin-bottom: 4px; }
/* app.css styles every span in a step as the number circle; the label is plain text. */
.steps.pp-steps li .pp-step-label { width: auto; height: auto; border-radius: 0; background: none; color: inherit; display: inline; font-size: inherit; font-weight: inherit; }
.steps.pp-steps li .pp-step-label .vh { width: 1px; height: 1px; }
.pp-hero { display: flex; flex-direction: column; gap: 8px; }
.pp-hero h1 { font-size: clamp(28px, 6vw, 40px); overflow-wrap: anywhere; }
.pp-eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.pp-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.pp-summary { position: sticky; top: 16px; }
.pp-body > .card { scroll-margin-top: 16px; }
.pp-prose { display: flex; flex-direction: column; gap: 12px; max-width: 68ch; }
.pp-lines { list-style: none; margin: 0; padding: 0; }
.pp-lines li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line2); }
.pp-lines li:first-child { border-top: 0; padding-top: 0; }
.pp-what { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pp-price { font-weight: 700; text-align: right; white-space: nowrap; }
.pp-promise { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.pp-promise li::marker { font-weight: 800; color: var(--gold-ink); }
.pp-terms { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.pp-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 0; margin: 0; }
.pp-sum > div { display: contents; }
.pp-sum dt { color: var(--body); }
.pp-sum dd { margin: 0; padding-left: 12px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-sum .pp-big dt, .pp-sum .pp-big dd { font-size: 18px; font-weight: 800; color: var(--ink); }
.pp-sum .pp-save dt, .pp-sum .pp-save dd { color: var(--ok); }
.pp-sum .pp-sep dt, .pp-sum .pp-sep dd { padding-top: 10px; border-top: 1px solid var(--line2); }
.pp-fp { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pp-errsum ul { margin: 6px 0 0; padding-left: 20px; }
.pp-errsum a { color: inherit; font-weight: 700; }
.pp-decline { gap: 0; padding-top: 12px; padding-bottom: 12px; }
.pp-decline summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.pp-decline[open] { padding-bottom: 22px; }
.pp-decline[open] summary { margin-bottom: 12px; }
.pp-closed { max-width: 640px; }
.pp-closed-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--sand); color: var(--ink); }

/* Pay page */
.pp-pay { display: grid; gap: 24px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.pp-amount-card { position: sticky; top: 16px; }
.pp-amount { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.05; }
.pp-ref { letter-spacing: .04em; }
.pp-poll { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line2); }
.pp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; animation: pp-pulse 1.6s ease-in-out infinite; }
@keyframes pp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Admin editor */
.pp-ed { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
.pp-inline { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding-top: 14px; border-top: 1px solid var(--line2); }
.pp-inline .field { min-width: 200px; }
.pp-inline .check { min-height: 46px; align-items: center; }
.pp-grow { flex: 1 1 260px; }
.pp-hours { flex: 0 0 110px; min-width: 0 !important; }
.pp-days { max-width: 220px; }
.pp-narrow { max-width: 720px; }
.pp-send .field label, .pp-send .check { color: var(--on-navy); }
.pp-send select { border-color: var(--line-dark); }
.pp-send .err { color: #FFC9C0; }
.pp-send a { color: var(--on-navy); }

@media (max-width: 960px) {
  .pp-layout, .pp-pay, .pp-ed { grid-template-columns: 1fr; }
  .pp-summary, .pp-amount-card { position: static; }
  .pp-summary { order: -1; } /* the price first on small screens */
}
@media (max-width: 560px) {
  .pp-steps { gap: 4px; }
  .pp-steps li:not([aria-current="step"]) { padding: 3px; }
  .pp-steps li[aria-current="step"] { padding-right: 10px; }
  .pp-steps li:not([aria-current="step"]) .pp-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 480px) {
  .pp-lines li { flex-direction: column; gap: 6px; }
  .pp-price { text-align: left; }
  .bank { grid-template-columns: minmax(0, 1fr) max-content; }
  .bank dt { grid-column: 1 / -1; margin-top: 4px; }
  .pp-amount { font-size: 40px; }
}

/* At a glance: the one-screen summary above the detail */
.pp-glance { margin-bottom: 20px; }
.pp-glance h2 { margin: 4px 0 8px; }
.pp-glance-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 16px 0; }
.pp-glance-tile { border: 1px solid var(--line, #e3dccd); border-radius: 12px; padding: 16px; background: var(--paper, #fff); }
.pp-glance-tile h3 { margin: 0 0 8px; font-size: 1rem; }
.pp-glance-tile p { margin: 0 0 6px; }
.pp-glance-invest { background: var(--navy, #15233a); color: #F5F3EB; }
.pp-glance-invest .muted, .pp-glance-invest .small { color: #d8d2c4; }
.pp-glance-big { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; }
.pp-ticks { list-style: none; padding: 0; margin: 0; }
.pp-ticks li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.pp-ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold, #c89b3c); font-weight: 700; }
.pp-ticks li.muted::before { content: ""; }
@media (min-width: 720px) { .pp-glance-grid { grid-template-columns: 1fr 1fr; } }

/* 0.9.17: the HTML proposal, shown on our site in a sandboxed frame. */
.pp-doc { padding: 0; overflow: hidden; }
.pp-doc h2 { padding: 20px 24px 0; margin: 0; }
.pp-doc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.pp-doc-head h2 { padding: 0; }
.pp-doc > p { padding: 0 24px 20px; margin: 0; }
.pp-doc-frame { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; border-top: 1px solid var(--line, #E3DBCD); background: #fff; }
.pp-changes { padding-top: 12px; }
.pp-changes summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* 0.19.1: proposal import fills itself in */
.imp-status, .imp-found { margin: 4px 0 14px; padding: 10px 14px; border-radius: var(--r, 10px); font-size: 15px; line-height: 1.5; }
.imp-status { background: var(--info-bg); color: var(--ink); }
.imp-status.is-bad { background: var(--bad-bg); }
.imp-found { background: var(--ok-bg); color: var(--ink); }
.imp-found ul { margin: 6px 0 0; padding-left: 18px; }
.imp-found .imp-note { color: var(--ink); }
.imp-found .imp-note::marker { content: "! "; font-weight: 700; color: var(--warn); }
.imp-found .imp-channel { display: block; font-weight: 700; margin-bottom: 2px; }
.imp-find { margin-bottom: 10px; }
.imp-filled { box-shadow: 0 0 0 2px var(--ok) inset; }
.imp-found.is-warn { background: var(--warn-bg); }
