/* Debt Cheat Sheet intake pages. Uses the site palette; no web fonts or icon fonts (strict CSP). */
:root { --dcs-border: #e5e7eb; --dcs-error: #b91c1c; --dcs-ok: #047857; }
body.dcs { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text-primary, #111827); background: var(--bg-light, #f9fafb); margin: 0; }
.dcs-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--dcs-border); }
.dcs-bar img { height: 40px; }
.dcs-bar a { color: var(--primary-blue, #1e3a8a); font-weight: 600; text-decoration: none; }
.dcs-hero { background: var(--gradient-hero, #1e3a8a); color: #fff; padding: 48px 24px 40px; text-align: center; }
.dcs-hero h1 { font-family: 'Poppins', system-ui, sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.dcs-hero p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; opacity: .95; }
.dcs-main { max-width: 820px; margin: -24px auto 48px; padding: 0 16px; }
.dcs-card { background: #fff; border: 1px solid var(--dcs-border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 28px; margin-bottom: 24px; }
.dcs-card h2 { font-size: 1.35rem; margin: 0 0 16px; color: var(--primary-blue, #1e3a8a); }
.dcs-steps { margin: 0; padding-left: 1.3rem; line-height: 1.6; }
.dcs-steps li { margin-bottom: 12px; }
.dcs-tip { background: #eff6ff; border-left: 4px solid var(--primary-blue-light, #3b82f6); padding: 12px 14px; border-radius: 6px; font-size: .95rem; }
.dcs-field { margin-bottom: 18px; }
.dcs-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.dcs-field input[type=text], .dcs-field input[type=email], .dcs-field input[type=tel], .dcs-field select { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; }
.dcs-hint { color: var(--text-secondary, #4b5563); font-size: .9rem; margin-top: 4px; }
.dcs-uploads { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.dcs-slot { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 16px; background: #f8fafc; }
.dcs-slot.dcs-ok { border-color: var(--dcs-ok); background: #ecfdf5; }
.dcs-slot.dcs-bad { border-color: var(--dcs-error); background: #fef2f2; }
.dcs-slot strong { display: block; margin-bottom: 8px; }
.dcs-slot .dcs-status { font-size: .88rem; margin-top: 8px; min-height: 1.2em; }
.dcs-consent { display: flex; gap: 10px; align-items: flex-start; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 14px; }
.dcs-consent input { margin-top: 4px; transform: scale(1.2); }
.dcs-error { color: var(--dcs-error); font-weight: 600; margin: 12px 0; min-height: 1.2em; }
.dcs-submit { width: 100%; padding: 15px; font-size: 1.1rem; font-weight: 700; border: 0; border-radius: 10px; color: #fff; background: var(--gradient-secondary, #059669); cursor: pointer; }
.dcs-submit[disabled] { opacity: .6; cursor: progress; }
.dcs-progress { height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin-top: 12px; }
.dcs-progress > div { height: 100%; width: 0; background: var(--secondary-green-light, #10b981); transition: width .2s; }
.dcs-secure { font-size: .9rem; color: var(--text-secondary, #4b5563); text-align: center; margin-top: 14px; }
.dcs-center { text-align: center; }
.dcs-caseid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f5f9; padding: 4px 8px; border-radius: 6px; }
.dcs-legal h2 { margin-top: 28px; }
.dcs-legal p, .dcs-legal li { line-height: 1.65; }
table.dcs-admin { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.dcs-admin th, table.dcs-admin td { text-align: left; padding: 8px; border-bottom: 1px solid var(--dcs-border); vertical-align: top; }
table.dcs-admin button { padding: 6px 10px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
.dcs-free { font-weight: 700; margin-top: 10px !important; }
.dcs-draft { background: #fef3c7; border: 2px solid #f59e0b; color: #78350f; font-weight: 700; padding: 12px 16px; border-radius: 10px; }
.dcs-check { display: flex; gap: 10px; align-items: flex-start; }
.dcs-check input { margin-top: 4px; transform: scale(1.2); flex: none; }
.dcs-check label { font-weight: 500; margin: 0; }
.dcs-doc { max-height: 320px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 8px; padding: 14px 16px; background: #f8fafc; font-size: .92rem; line-height: 1.55; margin-bottom: 14px; }
.dcs-doc h3 { font-size: 1rem; margin: 14px 0 6px; color: var(--primary-blue, #1e3a8a); }
.dcs-doc h3:first-child { margin-top: 0; }
.dcs-doc p { margin: 0 0 8px; }
.dcs-bold { font-weight: 700; }
.dcs-small { font-size: .82rem; color: var(--text-secondary, #4b5563); }
.dcs-notices { border: 2px solid #1e3a8a; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.dcs-notices p { margin: 0 0 8px; }
.dcs-attached summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.dcs-button { padding: 10px 16px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; font-weight: 600; cursor: pointer; margin-bottom: 14px; }
.dcs-copy { font-size: .92rem; line-height: 1.55; }
.dcs-copy h3 { margin: 18px 0 6px; }
@media print {
  .dcs-bar, #site-footer, .dcs-button, .dcs-center .dcs-hint { display: none !important; }
  .dcs-card { box-shadow: none; border: 0; }
  body.dcs { background: #fff; }
}
a.dcs-button { display: inline-block; text-decoration: none; color: var(--primary-blue, #1e3a8a); }
.dcs-cert { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 14px; font-size: .9rem; }
.dcs-cert dt { font-weight: 600; color: var(--text-secondary, #4b5563); }
.dcs-cert dd { margin: 0; word-break: break-all; }
@media (max-width: 560px) { .dcs-cert { grid-template-columns: 1fr; } .dcs-cert dd { margin-bottom: 6px; } }
table.dcs-admin td > div > button, table.dcs-admin td > div > a { display: block; margin: 0 0 6px; }

/* Sign-up in 3 steps: the report how-to folds away; each signature is a tap that adopts the name entered */
.dcs-before p { margin: 0 0 8px; }
.dcs-howto { margin-top: 6px; }
.dcs-howto summary { cursor: pointer; font-weight: 700; color: #1e3a8a; }
.dcs-howto .dcs-steps { margin-top: 10px; }
.dcs-esign-doc { margin: 14px 0 6px; }
.dcs-subhead { font-size: 1.05rem; margin: 22px 0 8px; }
.dcs-sign { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; }
.dcs-sign p { margin: 0 0 8px; }
.dcs-sign-btn { font-weight: 700; }
.dcs-sign-btn[disabled] { opacity: .5; cursor: not-allowed; }
.dcs-signed:not(:empty) { color: #047857; font-weight: 700; margin: 6px 0 0; }

/* ---- The simpler sign-up (debt-cheat-sheet.html): 3 steps on the left, the form on the right ---- */
.su { max-width: 1120px; margin: 0 auto; padding: 24px 16px 56px; }
.su-intro { text-align: center; margin: 4px auto 22px; max-width: 680px; }
.su-intro h1 { font-family: 'Poppins', system-ui, sans-serif; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: #0b1f4d; margin: 0 0 6px; }
.su-intro p { margin: 0; color: #475569; font-size: 1.05rem; }
.su-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 24px; align-items: start; }
.su-steps { position: sticky; top: 16px; background: #0b1f4d; color: #e2e8f0; border-radius: 16px; padding: 20px 18px; }
.su-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.su-step { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.su-step h2 { font-size: 1.02rem; color: #fff; margin: 2px 0 4px; }
.su-step p { margin: 0 0 6px; font-size: .92rem; line-height: 1.45; }
.su-step.su-step-now { background: rgba(147,197,253,.12); border-color: rgba(147,197,253,.45); }
.su-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; color: #0b1f4d; }
.su-step-done .su-num { background: #22c55e; color: #052e16; font-size: 0; }
.su-step-done .su-num::after { content: "✓"; font-size: 1rem; }
.su-acr { display: inline-block; margin: 4px 0 2px; padding: 9px 14px; border-radius: 999px; background: #22c55e; color: #052e16; font-weight: 800; text-decoration: none; font-size: .92rem; }
.su-acr:hover { background: #16a34a; color: #fff; }
.su-small { font-size: .82rem !important; color: #94a3b8; }
.su-how summary { cursor: pointer; font-weight: 700; color: #93c5fd; font-size: .9rem; }
.su-how ul { margin: 8px 0; padding-left: 1.1rem; font-size: .88rem; line-height: 1.45; }
.su-how li { margin-bottom: 6px; }
.su-how p { font-size: .88rem; }
.su-down { display: none; }
.su-trust { margin: 14px 4px 0; font-size: .82rem; color: #94a3b8; text-align: center; }

.su-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.06); padding: 20px 22px 24px; scroll-margin-top: 12px; }
.su-progress { margin-bottom: 8px; font-size: .85rem; font-weight: 700; color: #1e3a8a; scroll-margin-top: 12px; }
.su-bar { height: 6px; background: #e5e7eb; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.su-bar > div { height: 100%; width: 33%; background: #22c55e; border-radius: 99px; transition: width .3s ease; }
.su-sec { border-top: 1px solid #eef2f7; padding: 14px 0 6px; scroll-margin-top: 12px; }
.su-sec:first-of-type { border-top: 0; }
.su-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.su-sec-head h2 { font-size: 1.15rem; margin: 0; color: #0b1f4d; }
.su-sec:not(.su-open):not(.su-done) .su-sec-head h2 { color: #94a3b8; }
.su-done .su-sec-head h2::before { content: "✓ "; color: #059669; }
.su-sum { margin: 0; color: #475569; font-size: .9rem; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-edit, .su-link { background: none; border: 0; padding: 0; color: #1e40af; font-weight: 700; text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.su-sec-body { padding-top: 12px; }
.su-optional { margin: 4px 0 14px; }
.su-optional summary { cursor: pointer; font-weight: 600; color: #1e3a8a; }
.su-optional[open] summary { margin-bottom: 10px; }
.su-remember { font-size: .85rem; color: #64748b; margin: 0 0 12px; }
.su-err { color: #b91c1c; font-weight: 600; margin: 6px 0 8px; min-height: 0; }
.su-err:empty { display: none; }
.su-bad { border-color: #b91c1c !important; box-shadow: 0 0 0 3px rgba(185,28,28,.15); }
.su-next { width: 100%; padding: 13px; font-size: 1.05rem; font-weight: 800; border: 0; border-radius: 10px; color: #fff; background: #1e3a8a; cursor: pointer; margin-top: 4px; }
.su-next:hover { background: #172e6e; }

.su-drop { display: block; text-align: center; border: 2px dashed #93c5fd; background: #f0f7ff; border-radius: 14px; padding: 22px 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.su-drop:hover, .su-drop.su-drag { background: #e0efff; border-color: #2563eb; }
.su-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.su-drop strong { display: block; font-size: 1.05rem; color: #1e3a8a; }
.su-drop span { display: block; color: #475569; font-size: .9rem; margin-top: 4px; }
.su-drop.su-drop-full { opacity: .65; cursor: default; }
.su-drop:focus-within { outline: 3px solid #93c5fd; outline-offset: 2px; }
.su-files { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.su-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #e5e7eb; font-size: .9rem; }
.su-file-ok { background: #ecfdf5; border-color: #a7f3d0; }
.su-file-bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.su-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.su-file-info { flex: none; color: #64748b; font-size: .82rem; }
.su-file-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }

.su-h3 { font-size: 1.02rem; color: #0b1f4d; margin: 18px 0 6px; }
.su-short { margin: 0 0 10px; padding-left: 1.1rem; font-size: .92rem; line-height: 1.5; color: #334155; }
.su-esign { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 12px; margin-bottom: 6px; }
.su-marketing { margin-top: 16px; }
.su .dcs-doc { max-height: 240px; }

@media (max-width: 899px) {
  .su { padding-top: 16px; }
  .su-grid { grid-template-columns: 1fr; gap: 14px; }
  .su-steps { position: static; padding: 14px 12px; }
  .su-step { padding: 8px; }
  .su-step h2 { font-size: .98rem; }
  .su-desk { display: none; }
  .su-down { display: inline-block; color: #93c5fd; font-weight: 700; font-size: .9rem; }
  .su-form { padding: 16px 14px 20px; }
  .su-trust { margin-top: 8px; }
}

/* Signing: the box to sign right now stands out, with one big button; signed boxes turn green */
.su .dcs-sign { border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.su .dcs-sign.su-sign-now { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.su .dcs-sign.su-sign-done { border-color: #a7f3d0; background: #ecfdf5; }
.su-sign-step { margin: 0 0 6px !important; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.su-sign-now .su-sign-step { color: #1d4ed8; }
.su-sign-done .su-sign-step { color: #047857; }
.su .dcs-sign-btn { display: block; width: 100%; margin: 10px 0 4px; padding: 14px 16px; font-size: 1.05rem; font-weight: 800; border: 0; border-radius: 10px; color: #fff; background: #1d4ed8; cursor: pointer; }
.su .dcs-sign-btn::before { content: "✍  "; }
.su .dcs-sign-btn:hover:not([disabled]) { background: #1e40af; }
.su .dcs-sign-btn[disabled] { background: #cbd5e1; color: #475569; opacity: 1; cursor: not-allowed; }
.su .dcs-sign.su-sign-now .dcs-sign-btn { animation: su-nudge 1.6s ease-in-out 2; }
@keyframes su-nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.02); box-shadow: 0 6px 18px rgba(29,78,216,.35); } }
@media (prefers-reduced-motion: reduce) { .su .dcs-sign.su-sign-now .dcs-sign-btn { animation: none; } }
.su .dcs-signed:not(:empty) { font-size: 1rem; }

/* Going back: a clear but quiet option, never competing with Continue */
.su-edit { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border: 1.5px solid #93c5fd; border-radius: 999px; background: #fff; color: #1e40af; font-weight: 700; font-size: .82rem; text-decoration: none; }
.su-edit:hover { background: #eff6ff; border-color: #2563eb; }
.su-back { display: inline-block; background: none; border: 0; padding: 2px 0; margin: 0 0 10px; color: #475569; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.su-back:hover { color: #1e40af; text-decoration: underline; }

/* author display rules must never un-hide things the script hides */
.su [hidden] { display: none !important; }

/* Admin: the one "ready" text, sent by hand from the cell line */
.dcs-text-box { margin: 6px 0; padding: 8px 10px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px; max-width: 360px; }
.dcs-text-box p { margin: 6px 0 0; }
.dcs-text-msg { padding: 6px 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; user-select: all; }
.dcs-bar-help { font-size: 0.9rem; text-align: right; }
@media (max-width: 480px) { .dcs-bar { gap: 10px; padding: 12px 16px; } .dcs-bar-help { font-size: 0.8rem; } }
.dcs-bar-help a { white-space: nowrap; }
