/* js/signpost/os-look.css - the realtor's Signpost in Waypoint OS's look (owner
 * 2026-10-05): Link's light palette and its side bar, a Back link in the top
 * bar, and the three-step start screen.
 *
 * Scoped to .sp-app.sp-os, so the client's signing page (sign-app.css on its
 * own) keeps following the client's phone light/dark setting. Loaded after
 * sign-app.css and prepare-app.css, beside css/link-side.css.
 */

/* Light, always, like Link. These win over sign-app.css's dark-mode block. */
.sp-app.sp-os {
  --sp-navy: #1a2a44;
  --sp-gold: #b89548;
  --sp-bg: #f0f2f5;
  --sp-card: #ffffff;
  --sp-text: #1a2a44;
  --sp-muted: #6b7688;
  --sp-line: #e3e8ef;
  --sp-primary: #0f1c30;
  --sp-primary-text: #ffffff;
  --sp-box: rgba(184, 149, 72, 0.16);
  --sp-box-edge: #b89548;
  --sp-done: #157347;
  --sp-danger: #b3261e;
  --sp-pad-bg: #ffffff;
  color-scheme: light;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}
.sp-os .sp-card { border: 1px solid var(--sp-line); box-shadow: none; }
.sp-os .sp-app h1, .sp-os h1 { font: 700 1.6rem/1.2 'Playfair Display', Georgia, serif; }

body:has(.sp-os) { font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* The top bar: Link's navy, the Back link first. */
.sp-os .sp-header { background: #0f1c30; min-height: 60px; gap: 14px; }
.sp-os .sp-from { color: #d4af6a; }
.sp-back {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px;
  color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.sp-back::before { content: '\2190'; font-size: 1.05rem; }
.sp-back:hover { background: rgba(255, 255, 255, .08); }
.sp-back:focus-visible { outline: 2px solid #d4af6a; outline-offset: 2px; }

/* The side bar's Signpost section: indented under Signpost. */
.ln-side, .ln-side * { box-sizing: border-box; }
.ln-sublink { display: none; }
@media (min-width: 901px) {
  .ln-sublink { display: block; padding: 7px 12px 7px 40px; border-radius: 9px; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; text-decoration: none; }
  .ln-sublink:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .ln-sublink.is-active { color: #fff; box-shadow: inset 3px 0 0 #b89548; background: rgba(255, 255, 255, .06); }
  /* Pinned panels, sheets and notices sit beside the side bar, not under it. */
  .sp-os .sp-panel, .sp-os .sp-scrim, .sp-os .sp-sheet { left: 236px; }
  .sp-os .sp-toast { left: 252px; }
}

/* ── the start screen: three steps ─────────────────────── */
.st-main { display: flex; flex-direction: column; gap: 14px; }
.st-intro h1 { margin-bottom: .2rem; }
.st-intro p { margin: 0; }
.st-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px !important; font-size: 1.15rem; }
.st-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #0f1c30; color: #fff; font-weight: 800; font-size: .95rem;
}
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-fixed[hidden] { display: none; }
.st-fixed { margin: 0; min-height: 48px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; background: var(--sp-bg); font-weight: 600; }
/* Send for signature from a checklist item: where the signed copy goes (start-app.js paintFileTo). */
.st-fileto[hidden] { display: none; }
.st-fileto { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--sp-navy); background: var(--sp-bg); }
.st-fileto.is-problem { border-left-color: #b42318; }
.st-choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .st-choices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .st-choices.st-one { grid-template-columns: 1fr; } }
.st-choice-text .st-del { align-self: flex-start; padding: 0; min-height: 0; font-size: .85rem; }
.st-choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; cursor: pointer;
  border: 1.5px solid var(--sp-line); border-radius: 12px; background: var(--sp-card);
}
.st-choice:has(input:checked) { border-color: var(--sp-gold); background: rgba(184, 149, 72, .10); box-shadow: inset 0 0 0 1px var(--sp-gold); }
.sp-app.sp-os .st-choice input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: #0f1c30; }
.st-choice-text { display: flex; flex-direction: column; gap: 4px; }
.st-choice-text .sp-muted { font-size: .88rem; line-height: 1.4; }
.st-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sp-line); display: flex; flex-direction: column; gap: 14px; }
.st-panel[hidden] { display: none; }
.sp-os .sp-field select[hidden] { display: none; }
.sp-os .st-file { margin-top: 0; }
.st-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--sp-bg); }
.st-summary dt { color: var(--sp-muted); font-size: .85rem; font-weight: 700; }
.st-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.st-missing { margin: 0; color: #8a6512; font-weight: 600; }
.st-go { min-height: 52px; font-size: 1.05rem; }
.st-next { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sp-line); }
.st-next-head { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 6px; }
.st-next ol { margin: 0; padding-left: 1.3rem; color: var(--sp-text); font-size: .92rem; line-height: 1.6; }

/* ── Brokerage forms (templates-app.js) ───────────────────── */
.tp-how { margin: 8px 0 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.sp-os .sp-card > h2 { margin-bottom: 6px; }
.pp-read { margin: 4px 0 8px; }
.pp-read .sp-primary { margin-top: 4px; min-height: 52px; }

/* ── My documents ───────────────────────────────────────── */
.dl-main { display: flex; flex-direction: column; gap: 14px; }
.dl-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dl-intro h1 { margin: 0; }
.sp-os a.dl-new { display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0; padding: 0 18px; text-decoration: none; }
.dl-body { display: flex; flex-direction: column; gap: 14px; }
.dl-counts { display: flex; align-items: center; gap: 8px; color: var(--sp-muted); font-weight: 600; }
.dl-group-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; font-size: 1.05rem; }
.dl-n { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--sp-bg); color: var(--sp-text); font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.dl-group[data-group="needs"] .dl-n { background: rgba(184, 149, 72, .2); }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-row + .dl-row { border-top: 1px solid var(--sp-line); }
.dl-link { display: grid; gap: 2px; padding: 12px 4px; min-height: 48px; color: var(--sp-text); text-decoration: none; }
.dl-link:hover .dl-name { text-decoration: underline; }
.dl-link:focus-visible { outline: 3px solid var(--sp-box-edge); outline-offset: 2px; border-radius: 8px; }
.dl-name { font-weight: 700; overflow-wrap: anywhere; }
.dl-addr, .dl-when { color: var(--sp-muted); font-size: .88rem; }
.dl-line { font-size: .92rem; }
.dl-empty { margin: 0; }
/* Paths | By status, and the Path cards (documents-app.js; owner 2026-10-06). */
.dl-views { display: inline-flex; align-self: flex-start; border: 1.5px solid var(--sp-text); border-radius: 10px; overflow: hidden; }
.dl-view { padding: 8px 16px; border: 0; background: var(--sp-card, #fff); color: var(--sp-text); font-weight: 700; cursor: pointer; min-height: 40px; }
.dl-view[aria-pressed="true"] { background: var(--sp-text); color: #fff; }
.dl-path-head { margin: 0 0 2px !important; font-size: 1.1rem; overflow-wrap: anywhere; }
.dl-path-line { margin: 0 0 6px; color: var(--sp-muted); font-size: .9rem; }
.dl-path-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.sp-os .dl-path-actions .sp-secondary { width: auto; margin: 0; padding: 0 18px; }
.dl-path-msg { margin: 6px 0 0; font-size: .85rem; color: var(--sp-muted); }
.dl-path-msg:empty { display: none; }
.dl-arch-toggle { align-self: flex-start; }
/* Offers (documents-app.js; owner 2026-10-06). */
.of-row { padding-bottom: 10px; }
.of-actions { margin-top: 0; }
.sp-os .of-actions a.sp-primary, .sp-os .of-actions a.sp-secondary { display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0; padding: 0 18px; text-decoration: none; }
.sp-os .of-actions a.sp-primary { text-align: center; padding: 8px 18px; min-height: 48px; }
.sp-os .of-actions .sp-secondary, .sp-os .of-actions .sp-link { width: auto; margin: 0; }
.sp-os .of-actions .sp-link { padding: 0 6px; min-height: 44px; }
.sp-os .of-add .sp-secondary { width: auto; padding: 0 18px; }
.sp-os .of-add select { width: 100%; min-height: 44px; }
.dl-group[data-offers="under-contract"] .dl-n { background: rgba(46, 125, 50, .18); }
.st-mine { margin: 0; font-weight: 600; }
.st-mine a { color: var(--sp-text); }

/* Split a PDF (split-app.js; owner 2026-10-06). */
.sl-main { display: flex; flex-direction: column; gap: 14px; }
.sl-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sl-thumb { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1.5px solid var(--sp-line); border-radius: 10px; background: var(--sp-card, #fff); }
.sl-thumb canvas { max-width: 100%; height: auto; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.sl-thumb.is-start { border-color: var(--sp-text); box-shadow: inset 4px 0 0 var(--sp-text); }
.sl-thumb.is-out { opacity: .45; }
.sp-os .sl-thumb .sp-secondary { width: 100%; margin: 0; min-height: 40px; font-size: .85rem; padding: 0 8px; }
.sl-thumb .sl-start[aria-pressed="true"] { background: var(--sp-text); color: #fff; }
.sl-first { font-size: .85rem; min-height: 40px; display: flex; align-items: center; }
.sl-pieces { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.sl-piece { display: grid; gap: 4px; }
.sl-piece input { width: 100%; }
