/* Page-local sentence preview. Uses the site's fonts, buttons and palette. */
.fb-demo-section { scroll-margin-top: 100px; }
.fb-demo-section .section-head { max-width: 800px; }
.fb-demo-section .section-head p { line-height: 1.7; }
.fb-demo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d5ded9; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 48px #143f3310; background: #fff; }
.fb-demo-editor, .fb-demo-result { padding: clamp(20px, 3vw, 36px); min-width: 0; }
.fb-demo-result { background: #edf7f3; border-left: 1px solid #d5ded9; }
.fb-demo-label { display: block; margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; }
.fb-demo-hint { font-size: .875rem; line-height: 1.6; color: #4b5b55; }
.fb-demo textarea { display: block; width: 100%; box-sizing: border-box; resize: vertical; min-height: 150px; border: 1px solid #7d9589; border-radius: 12px; padding: 16px; background: #fff; color: #182c24; font: inherit; font-size: 1rem; line-height: 1.7; }
.fb-demo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.fb-demo [hidden] { display: none; }
.fb-demo .btn { font-size: .9rem; white-space: normal; text-align: center; min-height: 44px; }
.fb-demo-text-button { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 4px 0; background: none; font: inherit; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: #086c62; cursor: pointer; }
.fb-demo-preview { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 2.2; overflow-wrap: anywhere; min-height: 120px; }
.fb-demo-gap { display: inline-block; min-width: 52px; padding: 0 8px; border-bottom: 2px solid #0f766e; background: #fff; border-radius: 6px 6px 0 0; text-align: center; color: #0f766e; font-size: .8rem; line-height: 2; vertical-align: baseline; }
.fb-demo-status { font-size: .875rem; font-weight: 600; min-height: 1.5em; }
.fb-demo-key summary { cursor: pointer; min-height: 44px; line-height: 44px; font-weight: 600; }
.fb-demo-key li { overflow-wrap: anywhere; line-height: 1.8; }
.fb-demo :focus-visible { outline: 3px solid #096c62; outline-offset: 4px; }
.fb-demo-handoff { max-width: 850px; margin-top: 32px; scroll-margin-top: 100px; line-height: 1.8; }
.fb-demo-handoff h3 { font-size: 1.25rem; }
.fb-demo-handoff li { margin-bottom: 10px; }
.fb-demo-handoff p { color: #4b5b55; font-size: .95rem; }
@media (max-width: 760px) {
 .fb-demo { grid-template-columns: 1fr; }
 .fb-demo-result { border-left: 0; border-top: 1px solid #d5ded9; }
 .fb-demo-preview { min-height: 0; }
}
