/* FariDocs 1.13 - editable business labels, three signers, and fresh home palette */
.column-label-editor{
    display:grid;grid-template-columns:minmax(150px,.42fr) minmax(0,1.58fr);gap:18px;align-items:center;
    margin:0 0 15px;padding:14px;border:1px solid #dce8eb;border-radius:10px;
    background:linear-gradient(135deg,#f3fbfa,#f7fbff)
}
.column-label-editor>div:first-child strong,.column-label-editor>div:first-child small{display:block}
.column-label-editor>div:first-child strong{color:#173d52;font-size:10px}
.column-label-editor>div:first-child small{margin-top:3px;color:#6d7f8e;font-size:8px;line-height:1.45}
.column-label-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.column-label-grid.two-labels{grid-template-columns:repeat(2,minmax(0,1fr))}
.column-label-grid label>span{display:block;margin-bottom:4px;color:#6e7f8f;font-size:7px;font-weight:850;text-transform:uppercase}
.column-label-grid input{
    width:100%;height:34px;padding:0 9px;border:1px solid #c7d7df;border-radius:7px;
    background:#fff;color:#23394b;font:750 9px/1 inherit
}
.column-label-grid input:focus{border-color:#13a394;outline:0;box-shadow:0 0 0 3px rgba(19,163,148,.1)}
.editable-label-row .business-label-input{font-weight:800}

.signature-label-editor{margin-top:-3px}
.signature-entry-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.signature-entry{min-width:0;padding:12px;border:1px solid #dbe5eb;border-radius:10px;background:#fbfdfe}
.signature-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.signature-entry-heading strong{color:#183c51;font-size:9px}
.signature-entry-heading button{border:0;background:none;color:#b34545;font-size:7.5px;font-weight:750}
.signature-entry .signature-form-grid{grid-template-columns:1fr;gap:11px}
.signature-entry .signature-uploader{min-height:112px}
.signature-entry .signature-fields{display:grid;gap:10px}
.signature-entry .signature-fields .field input{height:35px}
.signature-add-row{display:flex;align-items:center;gap:12px;margin-top:12px}
.signature-add-row .add-item{width:auto;min-width:170px;margin:0;padding:0 14px}
.signature-add-row>small{color:#778895;font-size:8px}

.preview-signature-group{display:grid;gap:4px;min-height:96px;padding-top:3px;color:#354d61}
.preview-signature-group>strong{color:var(--preview-accent)}
.preview-signature-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:start}
.preview-signature-card{min-width:0;display:grid;align-content:start;justify-items:start}
.preview-signature-card .preview-signature-image{width:100%;max-width:70px;height:38px;margin:2px 0}
.preview-signature-card>b,.preview-signature-card>span{max-width:100%;overflow-wrap:anywhere}
.preview-signature-card>b{font-size:6.2px;line-height:1.25}
.preview-signature-card>span{font-size:5.5px;line-height:1.25}

.preview-items.has-item-unit:not(.has-item-date):not(.no-financials) th:first-child{width:42%;text-align:left}
.preview-items.has-item-unit:not(.has-item-date):not(.no-financials) th:nth-child(2){width:10%;text-align:center}
.preview-items.has-item-unit:not(.has-item-date):not(.no-financials) th:nth-child(3){width:10%;text-align:center}
.preview-items.has-item-unit:not(.has-item-date):not(.no-financials) th:nth-child(4){width:18%;text-align:right}
.preview-items.has-item-unit:not(.has-item-date):not(.no-financials) th:nth-child(5){width:20%;text-align:right}
.preview-items.has-item-unit:not(.has-item-date):not(.no-financials) td:nth-child(2),
.preview-items.has-item-unit:not(.has-item-date):not(.no-financials) td:nth-child(3){text-align:center}
.preview-items.has-item-date.has-item-unit{font-size:5.5px}
.preview-items.has-item-date.has-item-unit th:nth-child(1){width:14%}
.preview-items.has-item-date.has-item-unit th:nth-child(2){width:32%}
.preview-items.has-item-date.has-item-unit th:nth-child(3){width:9%}
.preview-items.has-item-date.has-item-unit th:nth-child(4){width:9%}
.preview-items.has-item-date.has-item-unit th:nth-child(5){width:17%}
.preview-items.has-item-date.has-item-unit th:nth-child(6){width:19%}
.preview-items.has-item-unit.no-financials th:nth-child(1),.preview-items.has-item-unit.no-financials td:nth-child(1){width:62%;text-align:left}
.preview-items.has-item-unit.no-financials th:nth-child(2),.preview-items.has-item-unit.no-financials td:nth-child(2){width:18%;text-align:center}
.preview-items.has-item-unit.no-financials th:nth-child(3),.preview-items.has-item-unit.no-financials td:nth-child(3){width:20%;text-align:center}

body[data-page="home"] .hero{
    background:
        radial-gradient(circle at 83% 14%,rgba(44,207,185,.29),transparent 29%),
        radial-gradient(circle at 12% 7%,rgba(255,198,92,.19),transparent 26%),
        linear-gradient(145deg,#f4fffd 0,#f7fbff 52%,#fffaf1 100%)
}
body[data-page="home"] .hero-kicker{color:#087f78}
body[data-page="home"] .hero-copy h1::after{background:linear-gradient(90deg,#13a394,#43c7dd,#f1b94d)}
body[data-page="home"] .hero-metrics{border-color:#cce8e4;box-shadow:0 18px 48px rgba(17,110,105,.09)}
body[data-page="home"] .home-trust-ribbon{border-color:#cee9e6;box-shadow:0 16px 44px rgba(15,81,98,.075)}
body[data-page="home"] .home-trust-ribbon article:nth-child(1)>span{background:#ddf8f2;color:#087e71}
body[data-page="home"] .home-trust-ribbon article:nth-child(2)>span{background:#e0f5ff;color:#14769a}
body[data-page="home"] .home-trust-ribbon article:nth-child(3)>span{background:#fff2d7;color:#a26b09}
body[data-page="home"] .home-trust-ribbon article:nth-child(4)>span{background:#ece7ff;color:#6549a8}
body[data-page="home"] .document-card:nth-child(3n+1) .card-icon{background:#dcf8f2;color:#087d72}
body[data-page="home"] .document-card:nth-child(3n+2) .card-icon{background:#e1f3ff;color:#176f99}
body[data-page="home"] .document-card:nth-child(3n) .card-icon{background:#fff0d1;color:#9a660b}
body[data-page="home"] .document-card:nth-child(4n)::before{background:linear-gradient(135deg,transparent,rgba(92,111,214,.1))}
body[data-page="home"] .feature-band{background:linear-gradient(135deg,#0d4561,#087f78 58%,#13a394)}
body[data-page="home"] .promo-showcase{background:linear-gradient(145deg,#f0fbff,#f7fffc 48%,#fff9ed)}
body[data-page="home"] .privacy-mode-section{background:linear-gradient(135deg,#082b3c,#0b4f58 54%,#087f78)}
body[data-page="home"] .audience-band{background:linear-gradient(135deg,#eefbff,#f1fcf8 60%,#fff7e8)}
body[data-page="home"] .closing-cta{background:linear-gradient(125deg,#0b3850,#087f78 58%,#13a394)}

html[data-theme="dark"] .column-label-editor{border-color:#284c5d;background:linear-gradient(135deg,#102b38,#102633)}
html[data-theme="dark"] .column-label-editor>div:first-child strong,html[data-theme="dark"] .signature-entry-heading strong{color:#e9f6fa}
html[data-theme="dark"] .column-label-editor>div:first-child small,html[data-theme="dark"] .column-label-grid label>span,html[data-theme="dark"] .signature-add-row>small{color:#9db2bf}
html[data-theme="dark"] .column-label-grid input{border-color:#365667;background:#0b2230;color:#eef8fb}
html[data-theme="dark"] .signature-entry{border-color:#294c5e;background:#0d2634}
html[data-theme="dark"] body[data-page="home"] .hero{background:radial-gradient(circle at 83% 13%,rgba(35,209,181,.2),transparent 31%),radial-gradient(circle at 9% 2%,rgba(245,184,73,.12),transparent 25%),linear-gradient(145deg,#081c29,#07131d)}

@media(max-width:1050px){
    .column-label-editor{grid-template-columns:1fr}
    .column-label-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .signature-entry-list{grid-template-columns:1fr}
    .signature-entry .signature-form-grid{grid-template-columns:minmax(150px,.55fr) minmax(0,1.45fr)}
}
@media(max-width:620px){
    .column-label-grid,.column-label-grid.two-labels{grid-template-columns:repeat(2,minmax(0,1fr))}
    .signature-entry .signature-form-grid{grid-template-columns:1fr}
    .signature-add-row{align-items:flex-start;flex-direction:column}
    .signature-add-row .add-item{width:100%}
    .preview-signature-row{gap:4px}
}
