.fontish-bff{--bff-purple:#442178;--bff-blue:#2563eb;--bff-border:#ddd7e7;--bff-muted:#5d5867;color:#21182f;font:inherit;max-width:1240px;margin:0 auto;padding:clamp(16px,3vw,36px);box-sizing:border-box}.fontish-bff *{box-sizing:border-box}.fontish-bff .bff-hero{background:linear-gradient(120deg,#f5efff,#f5f9ff);padding:clamp(24px,4vw,56px);border-radius:24px;margin-bottom:26px}.fontish-bff h1{font-size:clamp(32px,4vw,52px);line-height:1.12;margin:10px 0 18px}.fontish-bff h2{font-size:clamp(23px,3vw,32px);margin:0 0 12px}.fontish-bff h3{font-size:21px;margin:0 0 8px}.fontish-bff p{line-height:1.6;margin:8px 0 16px}.fontish-bff .bff-eyebrow{color:var(--bff-purple);font-weight:750;letter-spacing:.08em;text-transform:uppercase;font-size:12px}.fontish-bff .bff-panel{border:1px solid var(--bff-border);border-radius:18px;padding:clamp(16px,3vw,30px);margin:18px 0;background:#fff}.fontish-bff .bff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}.fontish-bff label{display:block;font-weight:650;margin:0 0 7px}.fontish-bff select,.fontish-bff input{width:100%;min-height:44px;padding:10px;border:1px solid #b8b1c5;border-radius:10px;background:#fff;color:#241d2e;font:inherit}.fontish-bff button,.fontish-bff .bff-button{border:0;border-radius:10px;padding:12px 20px;background:var(--bff-blue);color:#fff;font-weight:700;cursor:pointer;display:inline-block;text-decoration:none}.fontish-bff button.secondary{background:#f1eafb;color:var(--bff-purple)}.fontish-bff button:focus-visible,.fontish-bff a:focus-visible,.fontish-bff input:focus-visible,.fontish-bff select:focus-visible{outline:3px solid #2563eb;outline-offset:3px}.fontish-bff .bff-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.fontish-bff .bff-card{border:1px solid var(--bff-border);border-radius:16px;padding:20px;min-width:0}.fontish-bff .bff-preview{background:#faf9fc;padding:16px;border-radius:12px;min-height:100px;overflow-wrap:anywhere;font-size:clamp(23px,3vw,34px);line-height:1.3}.fontish-bff .bff-badge{display:inline-block;background:#e8f7ec;color:#12602d;border-radius:100px;font-size:12px;font-weight:750;padding:5px 10px}.fontish-bff .bff-muted{color:var(--bff-muted);font-size:14px}.fontish-bff .bff-topline{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.fontish-bff .bff-error{color:#9a2525}.fontish-bff .bff-hidden{display:none!important}@media(max-width:640px){.fontish-bff{padding:12px}.fontish-bff .bff-hero{border-radius:16px}.fontish-bff .bff-actions button{flex:1}}

/* Break out of narrow WordPress content columns while preserving a 1240px tool width. */
.fontish-bff{width:min(1240px,calc(100vw - 32px))!important;max-width:none!important;position:relative;left:50%;transform:translateX(-50%);margin-left:0!important;margin-right:0!important;}
.fontish-bff .bff-hero{min-height:290px;display:flex;flex-direction:column;justify-content:center;}
.fontish-bff .bff-hero h1,.fontish-bff .bff-hero p{max-width:790px;}
.fontish-bff .bff-grid[data-results]{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));}
@media(max-width:640px){.fontish-bff{width:calc(100vw - 24px)!important;padding:8px!important}.fontish-bff .bff-hero{min-height:0}}

/* Beta 3: standard tool hero and intentional submit workflow */
.fontish-bff [hidden]{display:none!important}
.fontish-bff .bff-breadcrumb{display:flex;gap:12px;align-items:center;font-size:14px;margin:0 0 28px;color:#625c72}
.fontish-bff .bff-breadcrumb a{color:#524b66;text-decoration:none}
.fontish-bff .bff-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);align-items:center;gap:36px;min-height:340px;background:linear-gradient(115deg,#f5efff,#f3f7ff)}
.fontish-bff .bff-hero h1{font-size:clamp(34px,3.7vw,52px);max-width:600px}
.fontish-bff .bff-hero p{max-width:610px}
.fontish-bff .bff-hero-art{position:relative;min-height:280px;border-radius:20px;background:linear-gradient(140deg,#261346,#55388a);padding:24px;display:flex;align-items:center;justify-content:center;gap:10px;overflow:hidden;color:#fff}
.fontish-bff .bff-art-eyebrow{position:absolute;top:22px;left:22px;font-size:11px;letter-spacing:.13em;font-weight:750}
.fontish-bff .bff-art-tile{background:#fff;color:#251540;border-radius:12px;min-width:120px;min-height:135px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:64px;box-shadow:0 12px 30px #1b0d2d50}
.fontish-bff .bff-art-serif{font-family:Georgia,serif;transform:rotate(-5deg)}
.fontish-bff .bff-art-sans{font-family:Arial,sans-serif;transform:rotate(5deg)}
.fontish-bff .bff-art-tile small{font:600 12px system-ui,sans-serif}
.fontish-bff .bff-art-footer{position:absolute;bottom:18px;left:22px;font-size:12px;opacity:.85}
.fontish-bff .bff-features{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px;font-size:13px;font-weight:650;color:#4a3471}
.fontish-bff .bff-features span:before{content:'✓ ';color:#2463eb}
.fontish-bff .bff-empty{padding:22px;background:#f8f6fc;border-radius:12px}
.fontish-bff .bff-card{display:flex;flex-direction:column;gap:6px}
.fontish-bff .bff-card .bff-actions{margin-top:auto}
.fontish-bff .bff-card .bff-actions .bff-button{font-size:14px;padding:10px 14px}
.fontish-bff .bff-card p{font-size:15px;line-height:1.55}
/* Theme-generated title, not the plugin's own heading */
body.fontish-bff-page .wp-block-post-title,body.fontish-bff-page main > h1.entry-title,body.fontish-bff-page .entry-header > .entry-title,body.fontish-bff-page .page-header > .page-title{display:none!important}
@media(max-width:800px){.fontish-bff .bff-hero{grid-template-columns:1fr}.fontish-bff .bff-hero-art{min-height:220px}.fontish-bff .bff-art-tile{min-height:110px;font-size:48px}}
@media(max-width:480px){.fontish-bff .bff-hero-art{display:none}.fontish-bff .bff-features{gap:9px}.fontish-bff .bff-breadcrumb{margin-bottom:14px}}

/* Beta 4: compact tool top spacing and structured result cards */
body.fontish-bff-page main,body.fontish-bff-page .wp-site-blocks main{padding-top:0!important}
.fontish-bff{padding-top:0!important}
.fontish-bff .bff-breadcrumb{margin-top:0;margin-bottom:18px}
.fontish-bff .bff-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.fontish-bff .bff-card-head h3{margin:0 0 2px;font-size:22px;line-height:1.2}
.fontish-bff .bff-category{text-transform:capitalize;color:#665c77;font-size:13px}
.fontish-bff .bff-card{gap:16px;padding:20px;min-width:0}
.fontish-bff .bff-preview{min-height:150px;display:block;overflow-wrap:break-word;word-break:normal;hyphens:none;white-space:normal;line-height:1.35;padding:20px;transition:background-color .15s,color .15s}
.fontish-bff .bff-theme-dark{background:#211a30;color:#fff}
.fontish-bff .bff-theme-neutral{background:#eeeae4;color:#21182f}
.fontish-bff .bff-card-copy{flex:1}
.fontish-bff .bff-card-copy p{margin:4px 0 14px}
.fontish-bff .bff-card-label{font-size:12px;letter-spacing:.045em;text-transform:uppercase;color:#4c3377;font-weight:800}
.fontish-bff .bff-card-meta{border-top:1px solid #eee8f4;padding-top:12px;display:flex;flex-direction:column;gap:5px;color:#61596e;font-size:12px;line-height:1.5}
.fontish-bff .bff-card .bff-actions{margin-top:auto;align-items:center}
.fontish-bff .bff-card .bff-actions button{font-size:14px;padding:10px 13px}
.fontish-bff .bff-license-other{background:#f2eafa;color:#563376}
.fontish-bff .bff-preview-controls{background:#faf8fe;border:1px solid #e6dfed;border-radius:16px;padding:20px;margin:18px 0 24px}
.fontish-bff .bff-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.fontish-bff .bff-preview-heading button{padding:8px 12px;font-size:13px}
.fontish-bff .bff-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.fontish-bff .bff-control-grid label{font-size:13px}
.fontish-bff .bff-control-grid input[type=range]{padding:0;min-height:30px;accent-color:#442178}
.fontish-bff .bff-control-grid output{float:right;color:#5d5867;font-size:12px}
.fontish-bff .bff-preview-controls p{margin:12px 0 0}
@media(max-width:800px){.fontish-bff .bff-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.fontish-bff .bff-control-grid{grid-template-columns:1fr}.fontish-bff .bff-card{padding:16px}.fontish-bff .bff-preview{min-height:110px}}

/* Beta 5 editorial and refinement */
.fontish-bff .bff-advanced{margin:18px 0 16px;border:1px solid #e7dff0;border-radius:14px;padding:14px 18px;background:#fcfbfe}
.fontish-bff .bff-advanced summary{font-weight:700;cursor:pointer;color:#35204f}
.fontish-bff .bff-advanced .bff-grid{margin-top:15px}
.fontish-bff .bff-catalog-note{font-size:13px;color:#66527e;margin:0 0 12px}
.fontish-bff .bff-editorial{max-width:840px;margin:44px auto 0;color:#272139}
.fontish-bff .bff-editorial section{margin:0 0 48px}
.fontish-bff .bff-editorial h2{font-size:clamp(26px,3vw,34px);line-height:1.2;margin:0 0 16px}
.fontish-bff .bff-editorial h3{font-size:clamp(20px,2.2vw,24px);margin:24px 0 10px}
.fontish-bff .bff-editorial p{font-size:18px;line-height:1.65;margin:0 0 14px}
.fontish-bff .bff-faq details{border-bottom:1px solid #e5dff0;padding:16px 0}
.fontish-bff .bff-faq summary{font-size:18px;font-weight:700;cursor:pointer}
.fontish-bff .bff-faq details p{margin:12px 0 0}
@media(max-width:600px){.fontish-bff .bff-editorial p{font-size:16px}.fontish-bff .bff-editorial{margin-top:32px}}

/* Beta 6: unified editorial content and consistent related tools */
.fontish-bff .bff-editorial.bff-panel{max-width:none;margin:28px 0 0;padding:clamp(22px,4vw,46px);background:#fff}
.fontish-bff .bff-editorial.bff-panel>section{max-width:790px;margin:0 auto 38px}
.fontish-bff .bff-editorial.bff-panel>section:last-child{margin-bottom:0}
.fontish-bff .bff-editorial.bff-panel>section+section{padding-top:32px;border-top:1px solid #eae4f0}
.fontish-bff .bff-related{margin:60px 0 20px}
.fontish-bff .bff-related-kicker{text-align:center;font-size:12px;font-weight:800;letter-spacing:.09em;color:#5940a0;margin:0 0 8px}
.fontish-bff .bff-related>h2{text-align:center;font-size:clamp(29px,4vw,48px);margin:0 0 30px}
.fontish-bff .bff-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.fontish-bff .bff-related-card{border:1px solid #ded7ec;border-radius:14px;padding:18px;text-decoration:none;color:#21182f;display:flex;flex-direction:column;gap:12px;background:#fff}
.fontish-bff .bff-related-card>strong{font-size:20px}
.fontish-bff .bff-related-card>span:not(.bff-related-art){font-size:15px;color:#645b72}
.fontish-bff .bff-related-card>b{color:#4b37aa;font-size:17px;margin-top:auto}
.fontish-bff .bff-related-art{height:120px;background:#f5f0fc;border-radius:12px;display:flex;align-items:center;justify-content:space-around;padding:16px;color:#392369;overflow:hidden}
.fontish-bff .bff-related-art strong{font-size:48px;font-family:Georgia,serif}
.fontish-bff .bff-pair-art strong:last-child{color:#6e55c9;font-family:Arial,sans-serif}
.fontish-bff .bff-inspect-art strong:last-child{color:#6e55c9;font-family:Arial,sans-serif}
.fontish-bff .bff-scale-art i{width:15%;height:5px;background:#7055d0;border-radius:10px}
@media(max-width:800px){.fontish-bff .bff-related-grid{grid-template-columns:1fr}.fontish-bff .bff-related-art{height:95px}}

/* Beta 7 — shared Fontish Substitute Finder visual language */
.fontish-bff{--bff-border:#e7def2;--bff-muted:#625c72;color:#24183f;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal}
.fontish-bff .bff-breadcrumb{margin-bottom:18px;color:#686278}
.fontish-bff .bff-hero{position:relative;isolation:isolate;min-height:450px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;margin-bottom:30px;padding:clamp(28px,4vw,54px) clamp(26px,3.5vw,44px);border:1px solid #e7def7;border-radius:28px;background:radial-gradient(ellipse at 96% 5%,rgba(151,115,224,.40),transparent 43%),radial-gradient(ellipse at 65% 105%,rgba(115,202,220,.22),transparent 37%),linear-gradient(115deg,#fff 0%,#faf7ff 48%,#eee7ff 100%);box-shadow:0 12px 32px rgba(45,26,83,.035)}
.fontish-bff .bff-hero h1{max-width:620px;margin:0 0 20px;color:#24183f;font-family:Georgia,"Times New Roman",serif;font-size:clamp(39px,4.4vw,60px);font-weight:700;line-height:1.08;letter-spacing:-.035em}
.fontish-bff .bff-hero p{max-width:520px;color:#625c72;font-size:clamp(16px,1.65vw,18px);line-height:1.65}
.fontish-bff .bff-eyebrow{display:inline-block;margin-bottom:16px;padding:8px 13px;border-radius:999px;background:#6040c7;color:#fff;font-size:11px;line-height:1.3;letter-spacing:.065em}
.fontish-bff .bff-hero-art{min-height:270px;border-radius:22px;box-shadow:0 18px 40px rgba(72,36,127,.12)}
.fontish-bff .bff-hero .bff-button,.fontish-bff .bff-hero button{box-shadow:0 10px 24px rgba(19,94,242,.14)}
.fontish-bff .bff-features{gap:10px 18px;color:#515168;font-size:13px}
.fontish-bff .bff-features span:before{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:5px;border-radius:50%;background:#eeeafb;color:#5945b2}
.fontish-bff .bff-panel{border:1px solid #e8e0f2;border-radius:22px;background:#fff;box-shadow:0 8px 28px rgba(42,24,78,.045);padding:clamp(22px,2.8vw,34px);margin:22px 0}
.fontish-bff .bff-panel h2{color:#24183f;font-family:Georgia,"Times New Roman",serif;letter-spacing:-.025em;line-height:1.18}
.fontish-bff label{font-size:14px;line-height:1.4;color:#322840}
.fontish-bff select,.fontish-bff input:not([type=range]){min-height:46px;border:1px solid #cec4dd;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(31,18,60,.025);transition:border-color .16s,box-shadow .16s}
.fontish-bff select:hover,.fontish-bff input:not([type=range]):hover{border-color:#9c8cbd}
.fontish-bff select:focus,.fontish-bff input:not([type=range]):focus{border-color:#7252c5;box-shadow:0 0 0 3px rgba(110,85,201,.13);outline:none}
.fontish-bff button,.fontish-bff .bff-button{border-radius:10px;transition:background-color .16s,box-shadow .16s,transform .16s}
.fontish-bff button:hover,.fontish-bff .bff-button:hover{filter:brightness(.97);transform:translateY(-1px)}
.fontish-bff .bff-advanced{background:#fbf9ff;border-color:#e8e1f2;border-radius:14px}
.fontish-bff .bff-advanced summary{padding:3px 0}
.fontish-bff .bff-preview-controls{background:linear-gradient(145deg,#faf8fe,#f7f5fc);border-color:#e7dff1;border-radius:17px;padding:clamp(18px,2.2vw,26px)}
.fontish-bff .bff-card{background:#fff;border:1px solid #e5deee;border-radius:17px;padding:20px;box-shadow:0 5px 18px rgba(45,28,82,.035);transition:border-color .18s,box-shadow .18s,transform .18s}
.fontish-bff .bff-card:hover{border-color:#c8b9e2;box-shadow:0 12px 28px rgba(52,32,96,.09);transform:translateY(-2px)}
.fontish-bff .bff-card-head h3{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.02em;color:#25183e}
.fontish-bff .bff-preview{border:1px solid #f0ecf5;background:#faf9fd;border-radius:13px;min-height:152px;line-height:1.32}
.fontish-bff .bff-card-label{color:#5a3c91;letter-spacing:.07em}
.fontish-bff .bff-card-copy p{color:#41384e;line-height:1.6}
.fontish-bff .bff-card-meta{border-color:#eee9f5}
.fontish-bff .bff-editorial.bff-panel{margin-top:34px;box-shadow:0 6px 22px rgba(42,24,78,.035)}
.fontish-bff .bff-related-card{border-color:#e5ddf1;box-shadow:0 5px 16px rgba(45,28,82,.035);transition:transform .18s,box-shadow .18s,border-color .18s}
.fontish-bff .bff-related-card:hover{transform:translateY(-3px);border-color:#c9b9e8;box-shadow:0 12px 26px rgba(52,32,96,.09)}
@media(max-width:800px){.fontish-bff .bff-hero{grid-template-columns:1fr;min-height:0;gap:24px;padding:32px 26px}.fontish-bff .bff-hero h1{font-size:clamp(36px,6vw,50px)}.fontish-bff .bff-hero-art{min-height:230px}}
@media(max-width:520px){.fontish-bff .bff-hero{padding:28px 22px;border-radius:20px}.fontish-bff .bff-hero h1{font-size:clamp(34px,9vw,43px)}.fontish-bff .bff-panel{border-radius:16px;padding:18px}.fontish-bff .bff-card:hover,.fontish-bff .bff-related-card:hover{transform:none}.fontish-bff .bff-hero-art{display:none}}
@media(prefers-reduced-motion:reduce){.fontish-bff button,.fontish-bff .bff-button,.fontish-bff .bff-card,.fontish-bff .bff-related-card{transition:none!important;transform:none!important}}

/* Beta 11: shared theme hooks, reliable specimens and focused comparison. */
.fontish-bff{--bff-blue:var(--fontish-color-primary,#2563eb);--bff-heading-font:var(--wp--preset--font-family--playfair-display,Georgia,"Times New Roman",serif);--bff-body-font:var(--wp--preset--font-family--inter,Inter,system-ui,sans-serif);font-family:var(--bff-body-font)}
.fontish-bff .bff-hero h1,.fontish-bff .bff-panel h2,.fontish-bff .bff-card-head h3{font-family:var(--bff-heading-font)}
.fontish-bff .bff-hero-art{background:linear-gradient(135deg,#f4efff,#e9e2f8);color:#442178;border:1px solid #ded3ed;box-shadow:none}
.fontish-bff .bff-preview.bff-theme-light{background:#faf9fd;color:#24183f}
.fontish-bff .bff-preview.bff-theme-dark{background:#211a30;color:#fff;border-color:#453650}
.fontish-bff .bff-preview.bff-theme-neutral{background:#eeeae4;color:#21182f;border-color:#dbd5cb}
.fontish-bff .bff-preview:dir(rtl){direction:rtl}
.fontish-bff button:disabled{cursor:wait;opacity:.55;transform:none}
.fontish-bff .bff-warning{background:#fff6df;color:#654400;padding:10px;border-radius:8px}
.fontish-bff [data-compare]{grid-template-columns:1fr}
.fontish-bff [data-compare] .bff-card-copy{display:none}
.fontish-bff [data-compare] .bff-preview{min-height:90px}
.fontish-bff .bff-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.fontish-bff [data-action-status]:empty,.fontish-bff [data-compare-message]:empty{display:none}
.fontish-bff [data-results-section],.fontish-bff [data-compare-section],.fontish-bff [id^="bff-start"]{scroll-margin-top:110px}
@media(max-width:640px){.fontish-bff .bff-related-grid{grid-template-columns:1fr}.fontish-bff .bff-card-head{flex-wrap:wrap}.fontish-bff .bff-breadcrumb{flex-wrap:wrap}}
@media print{
 body.bff-printing *{visibility:hidden!important}
 body.bff-printing .fontish-bff [data-compare-section],body.bff-printing .fontish-bff [data-compare-section] *{visibility:visible!important}
 body.bff-printing .fontish-bff{position:static;transform:none;width:100%!important;padding:0!important}
 body.bff-printing .fontish-bff [data-compare-section]{position:absolute;top:0;left:0;width:100%;margin:0;box-shadow:none;border:0}
 body.bff-printing .fontish-bff [data-compare-section] .bff-actions{display:none}
 body.bff-printing .fontish-bff .bff-card{break-inside:avoid;box-shadow:none;transform:none}
 body.bff-printing .fontish-bff .bff-preview{background:white!important;color:black!important}
}
.fontish-bff .bff-preview-heading{flex-wrap:wrap}
@media print{
 body.bff-printing *:not(:has(.fontish-bff)):not(.fontish-bff):not(.fontish-bff *){display:none!important}
 body.bff-printing .fontish-bff > :not([data-compare-section]){display:none!important}
 body.bff-printing .fontish-bff [data-compare-section]{position:static}
}

/* Beta 13: give the main submit action a clearer visual emphasis. */
.fontish-bff button[data-action="find"]{min-height:52px;padding:15px 28px;font-size:16px;line-height:1.35;font-weight:750;min-width:180px}
