/* FAC Standing Declaration v2 — all styles scoped under .declf2 so the theme is untouched. */
.declf2{
  --d2-ink:#1a1c22; --d2-muted:#5c6472; --d2-line:#dfe3ea; --d2-card:#fff;
  --d2-accent:#1f4b8e; --d2-accent2:#12386d; --d2-danger:#b3261e; --d2-ok:#1f7a3d; --d2-paper:#fbfaf6;
  display:grid; grid-template-columns:1.15fr .85fr; gap:20px; align-items:start;
  color:var(--d2-ink);
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
@media(max-width:820px){ .declf2{ grid-template-columns:1fr; } }
.declf2 *{ box-sizing:border-box; }
.declf2 .declf2-card{ background:var(--d2-card); border:1px solid var(--d2-line); border-radius:14px; padding:18px; }
.declf2 .declf2-preview-card{ position:sticky; top:12px; }
@media(max-width:820px){ .declf2 .declf2-preview-card{ position:static; } }
.declf2 section{ padding:10px 0 14px; border-bottom:1px solid var(--d2-line); }
.declf2 section:last-of-type{ border-bottom:0; }
.declf2 h3{ font-size:15px; margin:0 0 10px; color:var(--d2-accent2); }
.declf2 label{ display:block; font-size:13px; color:var(--d2-muted); margin-bottom:2px; }
.declf2 input[type=text],.declf2 input[type=email],.declf2 input[type=tel]{
  width:100%; padding:9px 11px; border:1px solid var(--d2-line); border-radius:9px; font-size:15px; color:var(--d2-ink); background:#fff; margin-top:4px;
}
.declf2 input:focus{ outline:2px solid #9fb8de; border-color:#9fb8de; }
.declf2 .declf2-row.two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:520px){ .declf2 .declf2-row.two{ grid-template-columns:1fr; } }
.declf2 .req{ color:var(--d2-danger); margin-left:2px; }
.declf2 .muted{ color:var(--d2-muted); }
.declf2 .small{ font-size:12px; }
.declf2 .declf2-checks{ display:flex; flex-direction:column; gap:9px; }
.declf2 .declf2-check{ display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--d2-ink); margin:0; cursor:pointer; }
.declf2 .declf2-check input{ margin-top:2px; width:17px; height:17px; flex:0 0 auto; }
.declf2 .declf2-check span{ color:var(--d2-ink); line-height:1.45; }

/* Multi-select jurisdictions */
.declf2 .declf2-ms{ border:1px solid var(--d2-line); border-radius:10px; overflow:hidden; background:#fff; }
.declf2 .declf2-ms-top{ display:flex; align-items:center; gap:10px; padding:8px; border-bottom:1px solid var(--d2-line); background:#f7f9fc; }
.declf2 .declf2-ms-top input{ flex:1; margin-top:0; padding:7px 10px; font-size:14px; width:auto; }
.declf2 .declf2-ms-count{ font-size:12px; color:var(--d2-accent2); font-weight:600; white-space:nowrap; }
.declf2 .declf2-ms-list{ max-height:260px; overflow-y:auto; padding:4px 2px; }
.declf2 .declf2-ms-group{ border:0; margin:0; padding:6px 8px 10px; }
.declf2 .declf2-ms-group legend{ padding:0; width:100%; }
.declf2 .declf2-ms-all{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; color:var(--d2-accent2); text-transform:uppercase; letter-spacing:.4px; margin:2px 0 6px; cursor:pointer; }
.declf2 .declf2-ms-all input{ width:15px; height:15px; }
.declf2 .declf2-ms-items{ display:grid; grid-template-columns:1fr 1fr; gap:2px 14px; }
@media(max-width:520px){ .declf2 .declf2-ms-items{ grid-template-columns:1fr; } }
.declf2 .declf2-ms-item{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--d2-ink); margin:0; padding:3px 4px; border-radius:6px; cursor:pointer; }
.declf2 .declf2-ms-item:hover{ background:#f2f6fc; }
.declf2 .declf2-ms-item input{ width:15px; height:15px; flex:0 0 auto; }
.declf2 .declf2-ms-item.hide{ display:none; }
.declf2 .declf2-ms-group.empty{ display:none; }

.declf2 .declf2-sigbox{ position:relative; border:1px dashed #b9c1cf; border-radius:10px; background:#fff; overflow:hidden; }
.declf2 #declf2-sigPad{ display:block; width:100%; height:150px; touch-action:none; cursor:crosshair; }
.declf2 .declf2-sigbox .declf2-link{ position:absolute; top:6px; right:8px; }
.declf2 .declf2-link{ background:none; border:0; color:var(--d2-accent); font-size:12px; cursor:pointer; padding:2px 4px; }
.declf2 .declf2-link:hover{ text-decoration:underline; }
.declf2 .declf2-agree{ display:flex; gap:10px; align-items:flex-start; margin-top:12px; font-size:13px; color:var(--d2-ink); }
.declf2 .declf2-agree input{ margin-top:2px; width:17px; height:17px; flex:0 0 auto; }
.declf2 .declf2-primary{ margin-top:16px; width:100%; padding:12px 16px; border:0; border-radius:10px; background:var(--d2-accent); color:#fff; font-size:15px; font-weight:600; cursor:pointer; }
.declf2 .declf2-primary:hover{ background:var(--d2-accent2); }
.declf2 .declf2-primary:disabled{ opacity:.6; cursor:not-allowed; }
.declf2 .declf2-error{ margin-top:12px; padding:10px 12px; border-radius:9px; background:#fdeceb; border:1px solid #f0c4c0; color:var(--d2-danger); font-size:13px; }
.declf2 .declf2-error ul{ margin:6px 0 0; padding-left:18px; }
.declf2 .declf2-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Live preview "paper" */
.declf2 .declf2-paper{ font-family:"Iowan Old Style",Georgia,"Times New Roman",serif; background:var(--d2-paper); border:1px solid #e7e3d5; border-radius:8px; padding:22px 24px; color:#20242c; font-size:14px; line-height:1.5; min-height:300px; }
.declf2 .declf2-paper .court{ text-align:center; font-weight:700; font-size:13px; letter-spacing:.3px; }
.declf2 .declf2-paper .cap{ margin:12px 0 2px; }
.declf2 .declf2-paper .cap .party{ font-weight:700; margin-top:6px; }
.declf2 .declf2-paper .cap .indent{ padding-left:40px; }
.declf2 .declf2-paper .cap .vline{ display:flex; justify-content:space-between; gap:12px; margin:6px 0; }
.declf2 .declf2-paper .cap .b{ font-weight:700; }
.declf2 .declf2-paper .cap .divider{ letter-spacing:-1px; overflow:hidden; }
.declf2 .declf2-paper .doctitle{ text-align:center; font-weight:700; letter-spacing:.4px; margin:16px 0 14px; text-decoration:none; }
.declf2 .declf2-paper .body p{ margin:0 0 12px; line-height:1.35; text-align:justify; }
.declf2 .declf2-paper .body p.harm{ padding-left:18px; }
.declf2 .declf2-paper .sigblock{ margin:20px 0 0 46%; }
.declf2 .declf2-paper .sigblock .sigmark{ min-height:34px; }
.declf2 .declf2-paper .sigblock .sigrule{ border-top:1px solid #262a33; margin:2px 0 4px; }
.declf2 .declf2-paper .sigblock div{ font-size:13px; }
.declf2 .declf2-paper .declf2-ph{ color:#a08b3d; background:#f6efcf; padding:0 3px; border-radius:3px; }

/* Result (spans both columns) */
#declf2-result{ grid-column:1 / -1; }
.declf2 .declf2-result-box{ background:#fff; border:1px solid var(--d2-line); border-radius:14px; padding:18px; }
.declf2 .declf2-result-box h3{ color:var(--d2-ok); font-size:17px; margin:0 0 6px; }
.declf2 .declf2-summary{ font-size:13px; background:#f7f9fc; border:1px solid var(--d2-line); border-radius:10px; padding:12px 14px; margin:12px 0; }
.declf2 .declf2-summary dt{ color:var(--d2-muted); font-size:12px; }
.declf2 .declf2-summary dd{ margin:0 0 8px; color:var(--d2-ink); }
.declf2 .declf2-pdfframe{ width:100%; height:560px; border:1px solid var(--d2-line); border-radius:10px; margin-top:10px; background:#525659; }
.declf2 .declf2-btnrow{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.declf2 .declf2-btn{ padding:9px 14px; border-radius:9px; border:1px solid var(--d2-line); background:#fff; color:var(--d2-ink); cursor:pointer; font-size:14px; text-decoration:none; display:inline-block; }
.declf2 .declf2-btn.primary{ background:var(--d2-accent); border-color:var(--d2-accent); color:#fff; }
