/* The sheets that open over the magazine: uploads, signing (the register's screen, or the stand-in for previews),
   how to pay, the agreements, the receipts and the floor plans; and the toast. */
/* ---- 6 · the upload sheet ---- */
#uploader { position: fixed; inset: 0; z-index: 60; background: rgba(11,11,11,.82); display: none; align-items: center; justify-content: center; }
#uploader.on { display: flex; }
#uploader .sheet { width: min(560px, 92vw); max-height: 88vh; overflow: auto; background: var(--relief); color: #161310; padding: 34px 36px 26px; }
.sheet-eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--espresso); margin-bottom: 12px; }
.sheet-title { font-family: 'Silver Editorial', Didot, serif; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; margin-bottom: 12px; }
.sheet-hint { font-size: 14px; line-height: 1.5; color: #4a3b30; margin-bottom: 18px; }
.uprow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-top: 1px solid rgba(169,135,106,.45); }
.uprow:last-child { border-bottom: 1px solid rgba(169,135,106,.45); }
.uprow .nm { font-size: 15px; font-weight: 500; }
.uprow .sub { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--espresso); margin-top: 3px; }
.uprow .cta { margin-top: 0; font-size: 11.5px; cursor: pointer; }
/* the file picker inside its "Choose file" label: out of sight but reachable by Tab, with the label showing focus */
.uprow label.cta { position: relative; }
.uprow label.cta input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.uprow label.cta:focus-within { outline: 2px solid #161310; outline-offset: 2px; }
.uprow .val { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--espresso); }
.uprow .val.done::after { content: '\2713'; margin-left: .6em; color: #2f5d3a; }
.uprow .err { flex-basis: 100%; order: 3; font-size: 13px; color: #8a2e1f; }
/* each file chosen for a row, with how it went */
.uprow .files { flex-basis: 100%; order: 3; display: flex; flex-direction: column; gap: 4px; }
.uprow .file { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.4; color: #4a3b30; }
.uprow .file .fname { min-width: 0; overflow-wrap: anywhere; }
.uprow .file .fstate { flex-shrink: 0; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso); }
.uprow .file .fstate.done::after { content: '\2713'; margin-left: .5em; color: #2f5d3a; }
.uprow .file.bad .fstate { color: #8a2e1f; }
.uprow .files .err { order: 0; margin: -2px 0 4px; }
.uprow button.cta { font-family: 'ELLE Nova C', sans-serif; background: transparent; -webkit-appearance: none; appearance: none; }
.sheet-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.sheet-btn, .dd-finish { -webkit-appearance: none; appearance: none; border: 1px solid #161310; background: #161310; color: #fff; cursor: pointer;
  font-family: 'ELLE Nova C', sans-serif; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: .95em 1.8em .8em; }
.dd-finish:disabled { opacity: .35; cursor: default; }
#uploader .close, #signer .close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid rgba(216,184,151,.45); background: rgba(11,11,11,.6); color: var(--ink); font-size: 16px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 80; background: #161310; color: #fff; padding: 12px 20px;
  font-size: 13px; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- the signing preview: a stand-in for PandaDoc's screen ---- */
.demo-doc { position: absolute; inset: 0; display: flex; flex-direction: column; background: #e9e6e1; color: #161310; }
.dd-bar { display: flex; align-items: center; gap: 18px; padding: 12px 18px; background: #fff; border-bottom: 1px solid #ddd6cc; }
.dd-title { flex: 1; font-family: 'Silver Editorial', Didot, serif; font-size: 20px; }
.dd-count { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--espresso); }
.dd-ribbon { padding: 8px 18px; background: #f3ead9; font-size: 12.5px; color: #4a3b30; border-bottom: 1px solid #e3d6bf; }
.dd-body { flex: 1; overflow: auto; padding: 26px 16px 60px; }
.dd-sheet { background: #fff; max-width: 720px; margin: 0 auto 26px; padding: 52px 60px 44px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.dd-h { font-family: 'Silver Editorial', Didot, serif; font-size: 30px; }
.dd-sub { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--espresso); margin: 6px 0 26px; }
.dd-facts { border-top: 1px solid #e6dfd4; margin-bottom: 26px; }
.dd-fact { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #e6dfd4; font-size: 14px; }
.dd-fact span:first-child { color: #6b5a4c; }
.dd-line { height: 8px; background: #ece7df; border-radius: 4px; margin: 13px 0; }

.dd-doc { font-family: Georgia, 'Times New Roman', serif; font-size: 12.5px; line-height: 1.5; color: #222; }
.dd-doc table { width: 100%; border-collapse: collapse; margin: 0 0 6px; }
.dd-doc td { width: 50%; vertical-align: top; padding: 2px 10px 2px 0; }
.dd-doc td + td { padding: 2px 0 2px 10px; color: #555; }
.dd-doc p { margin: 0 0 7px; }
.dd-doc b { font-weight: 700; }
.dd-loading { font-family: 'ELLE Nova C', sans-serif; font-size: 13px; color: #6b5a4c; padding: 30px 0; }
.dd-filled { background: #eef4ec; padding: 0 3px; }
.dd-field { background: #fdf0c4; border-bottom: 1px dashed #c9a227; padding: 0 3px; font-family: 'ELLE Nova C', sans-serif; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #6b5a1a; }
@media (max-width: 600px) { .dd-doc table, .dd-doc tbody, .dd-doc tr, .dd-doc td { display: block; width: 100%; } .dd-doc td + td { padding: 0 0 6px; } }
.dd-sig { margin-top: 34px; padding-top: 16px; border-top: 1px solid #e6dfd4; min-height: 96px; }
.dd-siglbl { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #6b5a4c; margin-bottom: 10px; }
.dd-tab { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; background: #f6d46b; color: #161310; padding: 12px 22px 12px 18px;
  font-family: 'ELLE Nova C', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); animation: cue 2.4s ease-in-out infinite; }
.dd-mark { display: block; height: 56px; max-width: 280px; }
.dd-mark.typed { height: auto; font-family: 'Silver Editorial', Didot, serif; font-style: italic; font-size: 34px; color: #1b2a4a; }
.dd-date { font-size: 12px; color: #6b5a4c; margin-top: 6px; }
.sigpad { position: absolute; inset: 0; z-index: 3; background: rgba(11,11,11,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sigbox { background: #fff; width: min(560px, 100%); padding: 24px 24px 20px; color: #161310; }
.sig-h { font-family: 'Silver Editorial', Didot, serif; font-size: 24px; margin-bottom: 14px; }
.sig-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.sig-tabs button, .sig-link { -webkit-appearance: none; appearance: none; background: none; border: 0; cursor: pointer; font-family: 'ELLE Nova C', sans-serif;
  font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #6b5a4c; padding: 8px 10px; }
.sig-tabs button.on { color: #161310; box-shadow: inset 0 -2px 0 #161310; }
.sig-canvas { width: 100%; aspect-ratio: 1000 / 320; border: 1px dashed #b9ab98; background: #fdfcfa; touch-action: none; cursor: crosshair; }
.sig-input { width: 100%; border: 0; border-bottom: 1px solid #b9ab98; font-family: 'ELLE Nova C', sans-serif; font-size: 16px; padding: 8px 2px; outline: none; }
.sig-preview { font-family: 'Silver Editorial', Didot, serif; font-style: italic; font-size: 40px; color: #1b2a4a; min-height: 70px; padding: 14px 2px 0; }
.sig-row { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.sig-row .dd-finish { margin-left: auto; }
@media (max-width: 600px) { .dd-sheet { padding: 30px 22px; } .dd-h { font-size: 24px; } .dd-bar { flex-wrap: wrap; gap: 8px 14px; } }
/* ---- 5 · signing, over everything ---- */
#signer { position: fixed; inset: 0; z-index: 60; background: rgba(11,11,11,.82); display: none; align-items: center; justify-content: center; }
#signer.on { display: flex; }
#signer .panel { position: relative; width: min(1100px, 94vw); height: min(92 * var(--vh100) / 100, 1000px); background: #fff; overflow: hidden; }
/* the register's geonet-signing.js swaps #pd-frame for its iframe (same id) and sizes it in px, so CSS sizes it */
#signer .pd-host, #signer #pd-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#signer .say { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 10%; text-align: center;
  background: var(--relief); color: #161310; font-family: 'Silver Editorial', Didot, serif; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.4; }
#signer.talking .say { display: flex; }
@media (max-width: 600px) { #signer .panel { width: 100vw; height: var(--vh100); } }
#agreesheet, #rcptsheet, #plansheet { position: fixed; inset: 0; z-index: 60; background: rgba(11,11,11,.82); display: none; align-items: center; justify-content: center; }
#agreesheet.on, #rcptsheet.on, #plansheet.on { display: flex; }
#agreesheet .sheet, #rcptsheet .sheet, #plansheet .sheet { width: min(560px, 92vw); max-height: 88vh; overflow: auto; background: var(--relief); color: #161310; padding: 34px 36px 26px; }
#agreesheet .close, #rcptsheet .close, #plansheet .close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid rgba(216,184,151,.45); background: rgba(11,11,11,.6); color: var(--ink); font-size: 16px; cursor: pointer; }
#rcptsheet .rcpt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(169,135,106,.3); font-size: 14px; }
#rcptsheet .rcpt .cta { margin-top: 0; padding: .7em 1.2em .55em; }
#agreesheet .agdoc { padding: 14px 0 4px; border-top: 1px solid rgba(169,135,106,.3); }
#agreesheet .agdoc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
#agreesheet .agdoc-name { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #161310; }
#agreesheet .agdoc-name .n { color: var(--espresso); margin-right: 10px; }
#agreesheet .agdoc-head .val { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #4a3b30; white-space: nowrap; }
#agreesheet .agdoc-head .val.done { color: #161310; }
#agreesheet .sheet-foot, #rcptsheet .sheet-foot { gap: 12px; flex-wrap: wrap; align-items: center; }
#agreesheet .sheet-btn.ghost, #rcptsheet .sheet-btn.ghost { background: transparent; color: #161310; }
#agreesheet .sheet-foot .sheet-hint { margin: 0 auto 0 0; }
#plansheet .pl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
#plansheet .pl-tabs button { -webkit-appearance: none; appearance: none; background: none; border: 1px solid rgba(169,135,106,.55); color: #4a3b30; cursor: pointer;
  font-family: 'ELLE Nova C', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: .8em 1.1em .65em; }
#plansheet .pl-tabs button.on { background: #161310; border-color: #161310; color: #fff; }
#plansheet .pl-sub { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--espresso); margin: -4px 0 16px; }
#plansheet .pl-figs { display: flex; flex-direction: column; align-items: center; padding: 18px 0; border-top: 1px solid rgba(169,135,106,.3); border-bottom: 1px solid rgba(169,135,106,.3); }
#plansheet .pl-figs img { display: block; max-width: 100%; height: auto; width: auto; max-height: min(42vh, 420px); }
/* two-level rooms: one level at a time (each drawing has its own scale, so side by side would mislead) */
#plansheet .pl-levels { display: flex; gap: 18px; margin-top: 14px; }
#plansheet .pl-levels button { -webkit-appearance: none; appearance: none; background: none; border: 0; cursor: pointer; font-family: 'ELLE Nova C', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #8a7666; padding: 6px 0; }
#plansheet .pl-levels button.on { color: #161310; box-shadow: inset 0 -1px 0 #161310; }
@media (max-width: 600px) {
  #plansheet .sheet { padding: 26px 22px 18px; max-height: 94vh; }
  #plansheet .sheet-eyebrow { margin-bottom: 8px; }
  #plansheet .sheet-title { font-size: 24px; margin-bottom: 6px; }
  #plansheet .pl-sub { margin: 0 0 12px; }
  #plansheet .pl-tabs { margin-bottom: 10px; }
  #plansheet .pl-tabs button { font-size: 10px; padding: .65em .85em .5em; }
  #plansheet .pl-figs { padding: 12px 0; }
  #plansheet .pl-figs img { max-height: 30vh; }
  #plansheet .pl-levels { margin-top: 8px; }
  #plansheet .sheet-foot { margin-top: 12px; }
}
#plansheet .pl-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #4a3b30; }
#paysheet { position: fixed; inset: 0; z-index: 60; background: rgba(11,11,11,.82); display: none; align-items: center; justify-content: center; }
#paysheet.on { display: flex; }
#paysheet .sheet { width: min(560px, 92vw); max-height: 88vh; overflow: auto; background: var(--relief); color: #161310; padding: 34px 36px 26px; }
#paysheet .close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid rgba(216,184,151,.45); background: rgba(11,11,11,.6); color: var(--ink); font-size: 16px; cursor: pointer; }
.payrows { border-top: 1px solid rgba(169,135,106,.45); margin-bottom: 18px; }
.payrow { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(169,135,106,.45); font-size: 15px; }
.payrow span:first-child { color: #6b5a4c; }
.payrow span:last-child { font-weight: 500; text-align: right; overflow-wrap: anywhere; user-select: all; }
