/* Compatibility rules for the live WordPress shell and existing Fluent Form. */
body.tb-site { margin:0; font-family:var(--font); color:var(--ink); background:#fff; }
body.tb-site.admin-bar .header { top:32px; }
body.tb-site :is(input,textarea,select,button) { font-family:var(--font); }
body.tb-site .form-handoff .fluentform { --fluentform-primary:var(--blue); font-family:var(--font); }
body.tb-site .form-handoff .ff-el-group { margin-bottom:22px; }
body.tb-site .form-handoff .ff-el-input--label label { color:var(--ink); font-size:15px; font-weight:500; margin-bottom:9px; }
body.tb-site .form-handoff .ff-el-form-control { font-family:var(--font); color:var(--ink); font-size:16px; line-height:1.5; border:1px solid #bad9e8; border-radius:12px; background:#fff; padding:13px 15px; box-shadow:none; width:100%; }
body.tb-site .form-handoff .ff-el-form-control:focus { border-color:var(--blue); outline:2px solid #60c7f240; outline-offset:2px; }
body.tb-site .form-handoff textarea { min-height:150px; resize:vertical; }
body.tb-site .form-handoff .ff-btn-submit { background:var(--blue); color:white; border:0; border-radius:99px; padding:15px 25px; font-family:var(--font); font-size:16px; font-weight:500; line-height:1.5; cursor:pointer; }
body.tb-site .form-handoff .ff-btn-submit:hover { background:var(--ink); }
body.tb-site .form-handoff .ff-message-success { border:1px solid var(--line); border-radius:12px; padding:18px; background:#fff; }
body.tb-site .form-handoff .error { font-size:14px; line-height:1.5; }
body.tb-site .pagination .current { display:grid; place-items:center; min-width:40px; height:40px; background:var(--blue); color:#fff; border-radius:50%; }
body.tb-site .article-content iframe { max-width:100%; border:0; }
body.tb-site .article-content li { display:list-item; }
body.tb-site .article-content ul { list-style:disc; }
body.tb-site .article-content ol { list-style:decimal; }
body.tb-site .article-content :is(ul,ol) { padding-inline-start:1.4em; }
@media (max-width:782px) { body.tb-site.admin-bar .header { top:46px; } }
@media (max-width:600px) { body.tb-site.admin-bar .header { top:0; } }

/* Keep every mobile menu link reachable on short screens and in WP preview. */
@media (max-width:980px) {
  body.tb-site .nav { max-height:calc(100vh - 124px - var(--wp-admin--admin-bar--height, 0px)); max-height:calc(100dvh - 124px - var(--wp-admin--admin-bar--height, 0px)); overflow-y:auto; overscroll-behavior:contain; }
  body.tb-site .nav > a { flex-shrink:0; }
}
