:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#273d32;background:#eceee8}*{box-sizing:border-box}body{margin:0}.preview-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 28px;border-bottom:1px solid #d8ded2;background:#fffefa;font-size:14px}.preview-badge{font-size:12px;border:1px solid #d8ded2;padding:5px 10px;border-radius:20px;color:#65705b}.preview-main{max-width:1050px;margin:auto;padding:42px 28px}.preview-title>p:first-child{font-size:11px;letter-spacing:.15em;font-weight:650;color:#68785d}.preview-title h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em;line-height:1.15;font-weight:600;margin:10px 0 12px}.preview-title>p:last-child{font-size:16px;color:#65705d;margin:0}.preview-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:26px 0 22px}.preview-controls button{font:inherit;font-size:13px;min-height:40px;padding:8px 12px;border:1px solid #cad4c3;border-radius:9px;background:#fffefa;color:#315d46;cursor:pointer}.preview-controls button[aria-pressed=true]{background:#315d46;color:#fffefa;border-color:#315d46}.preview-controls a{margin-left:auto;font-size:13px;color:#315d46;text-underline-offset:3px}.example-site{background:#fffefa;border:1px solid #d8ded2;border-radius:16px;overflow:hidden}.example-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 30px;border-bottom:1px solid #e4e6df}.example-heading>span:first-child{font-family:Georgia,serif;font-size:18px;font-weight:600}.example-heading>span:last-child{font-size:12px;color:#7b8174}.example-body{padding:28px 30px;transition:none}.example-copy{max-width:560px;margin:0 auto 22px}.example-category{font-size:10px;letter-spacing:.13em;color:#8b6b4e;margin:0 0 8px}.example-copy h2{font-family:Georgia,serif;font-size:29px;font-weight:500;letter-spacing:-.03em;margin:0 0 10px}.example-copy>p:last-child{color:#6c7565;font-family:Georgia,serif;font-size:17px;line-height:1.6;margin:0}#widget-container{width:100%;max-width:520px;margin:auto}#widget-container[data-width=sidebar]{max-width:350px}#widget-container[data-width=mobile]{max-width:320px}#preview-frame{display:block;width:100%;border:0;height:760px;background:transparent}.example-end{max-width:560px;margin:22px auto 0;padding-top:18px;border-top:1px solid #e4e6df;color:#8b9284;font-size:12px}.preview-note{max-width:780px;margin:20px auto 0;font-size:13px;line-height:1.65;color:#5f6d57}.preview-note p{margin:0}.preview-note strong{color:#315d46}button:focus-visible,a:focus-visible{outline:3px solid #94613e;outline-offset:3px}@media(max-width:600px){.preview-main{padding:25px 10px}.preview-bar{padding:15px 14px;font-size:12px}.preview-controls a{margin:6px 0}.example-heading{padding:18px 14px;flex-wrap:wrap}.example-body{padding:22px 6px}.example-copy,.example-end{padding-left:10px;padding-right:10px}.example-heading>span:last-child{display:none}.preview-title{padding:0 8px}}

.preview-versions{margin-bottom:0}.preview-versions>span{font-size:13px}.preview-version-note{color:#65705d}

.preview-versions label{display:inline-flex;align-items:center;gap:6px;min-height:40px;font-size:13px;color:#315d46;cursor:pointer;margin-right:8px}.preview-versions input{margin:0;accent-color:#315d46;width:16px;height:16px}.preview-versions input:focus-visible{outline:3px solid #94613e;outline-offset:3px}

.embed-settings{margin-top:28px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}.embed-settings select{font:inherit;padding:7px 10px;border:1px solid #cad4c3;border-radius:6px;background:#fffefa;color:#315d46}.embed-settings p{flex-basis:100%;margin:0;color:#65705d;font-size:13px}.preview-versions label{flex-wrap:wrap}.embed-panel{margin-top:28px;padding:24px;background:#fffefa;border:1px solid #d8ded2;border-radius:16px}.embed-panel h2{margin:0 0 12px;font-size:24px}.embed-panel p{font-size:14px;line-height:1.6}.embed-panel label{display:block;font-size:13px;margin-bottom:8px}.embed-panel textarea{width:100%;resize:vertical;min-height:150px;border:1px solid #cad4c3;border-radius:8px;padding:12px;background:#f5f6f1;color:#273d32;font:12px/1.6 monospace}.embed-copy-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:13px}.embed-copy-row button{font:inherit;background:#315d46;color:white;border:0;border-radius:8px;padding:12px 18px;cursor:pointer}.embed-pending{padding:10px 12px;background:#f6efdf;border-radius:6px}.embed-help{color:#65705d}.embed-panel textarea:focus-visible,.embed-settings select:focus-visible{outline:3px solid #94613e;outline-offset:3px}

#embed-dialog{width:min(680px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow-y:auto;margin:auto;color:#273d32;padding:28px}#embed-dialog::backdrop{background:rgb(23 40 30 / 45%)}#embed-dialog h2{padding-right:32px}#close-embed{position:absolute;right:12px;top:10px;width:36px;height:36px;border:0;background:transparent;color:#315d46;font-size:26px;cursor:pointer}#preview-embed{background:#fff;border:1px solid #cad4c3;color:#315d46}#widget-container{scroll-margin-top:16px}#widget-container:focus{outline:none}@media(max-width:400px){#embed-dialog{padding:20px}}

#embed-title{display:flex;align-items:center;gap:10px}#embed-title img{flex-shrink:0}

#embed-live-preview{margin-top:20px;padding-top:16px;border-top:1px solid #d8ded2;scroll-margin-top:16px}#embed-preview-frame{display:block;width:100%;max-width:560px;margin:auto;border:0}

#embed-live-preview{margin:0;padding:0;border:0}#back-embed{display:block;margin:0 auto 16px;padding:9px 14px;background:#fff;color:#315d46;border:1px solid #cad4c3;border-radius:8px;font:inherit;font-size:13px;cursor:pointer}

.embed-preview-heading{text-align:center;margin-bottom:18px}#embed-dialog .embed-preview-heading h2{padding:0;margin:0 0 6px;font-size:20px}#back-embed{display:inline-block;margin:0;padding:4px 0;background:transparent;border:0;border-radius:0;text-decoration:underline;text-underline-offset:3px;color:#315d46}

.embed-preview-heading{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}#embed-dialog .embed-preview-heading h2{margin:0 4px 0 0}#back-embed,#close-preview{display:inline-block;margin:0;padding:5px 10px;background:#fff;border:1px solid #cad4c3;border-radius:6px;color:#315d46;font:inherit;font-size:12px;text-decoration:none;cursor:pointer}

#close-preview{position:absolute;right:12px;top:10px;width:36px;height:36px;padding:0;border:0;background:transparent;color:#315d46;font-size:26px;cursor:pointer}.embed-preview-heading{padding:0 30px}

html.embed-dialog-only,html.embed-dialog-only body{background:transparent}.embed-dialog-only .preview-bar,.embed-dialog-only .preview-main> :not(#embed-dialog){display:none}.embed-dialog-only .preview-main{padding:0}.embed-dialog-only #embed-dialog::backdrop{background:transparent}

#embed-title:focus{outline:none}

.embed-dialog-only #embed-dialog{width:100%;max-width:none;min-height:100dvh;max-height:100dvh;margin:0}

/* Bound the square board by the viewport, leaving room for the widget controls. */
#embed-preview-frame{max-width:clamp(220px,calc(100dvh - 210px),560px)}
@media(max-width:400px){#embed-dialog:has(#embed-live-preview:not([hidden])){padding:12px} .embed-preview-heading{margin-bottom:10px}}
