/* Scoped component repairs. Do not mask page overflow. */
/* The legacy meme script freezes this container to its load-time pixel width. */
html body.single-meme .entry-content.wp-block-post-content {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;grid-column:1/-1!important;grid-template-columns:minmax(0,1fr) 280px;}
.cm-topic-picker { min-width:0;font-size:14px;line-height:1.4; }
.cm-topic-picker summary { cursor:pointer;font-weight:600; }
.cm-topic-picker label {display:block;margin:8px 0 5px;}
.cm-topic-picker .cm-topic-search {box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:10px;border:1px solid #aaa;border-radius:8px;background:#fff;color:#222;font:inherit;}
.cm-topic-status {display:block;line-height:1.4;margin-top:8px;}
.cm-topic-picker select {max-width:100%;}
@media(max-width:767px) {
  html body .cj-meme-cta-form, html body .cj-cta-form, html body .cj-email-cta form {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;min-width:0!important;max-width:100%!important;}
  html body .cj-meme-cta-form > input, html body .cj-meme-cta-form > button,
  html body .cj-cta-form > input, html body .cj-cta-form > button,
  html body .cj-email-cta form > input, html body .cj-email-cta form > button {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;min-height:44px;white-space:normal!important;}
  html body .cj-meme-cta-form input, html body .cj-cta-form input, html body .cj-email-cta input {font-size:16px!important;}
  html body .cj-email-cta input:not([type=hidden]), html body .cj-email-cta button {min-height:44px!important;}
  html body.post-type-archive-joke main .wp-block-query {padding:12px!important;}
  html body.post-type-archive-joke .cj-joke-archive-hero,
  html body.post-type-archive-joke .cj-joke-archive-browser {box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;}
  html body.post-type-archive-joke .cj-joke-archive-hero {display:block!important;padding:14px!important;margin-bottom:12px!important;border-radius:16px;}
  html body.post-type-archive-joke .cj-joke-archive-hero .cj-archive-kicker,
  html body.post-type-archive-joke .cj-joke-archive-hero .cj-archive-stats {display:none!important;}
  html body.post-type-archive-joke .cj-joke-archive-hero h1 {font-size:26px!important;line-height:1.15!important;margin:0 0 6px!important;}
  html body.post-type-archive-joke .cj-joke-archive-hero .cj-archive-copy {font-size:14px!important;line-height:1.4!important;margin:0 0 10px!important;}
  html body.post-type-archive-joke .cj-joke-archive-hero .cj-archive-ctas {display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important;}
  html body.post-type-archive-joke .cj-joke-archive-hero .cj-archive-btn {width:auto!important;box-sizing:border-box;min-height:44px;padding:10px 12px!important;flex:1;white-space:nowrap;font-size:13px!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser {padding:12px!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-browser {display:block!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;padding:10px!important;margin-bottom:12px!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form > .cj-field,
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-quick > .cj-field,
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-actions {grid-column:1/-1!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-quick {display:contents!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form .cj-field {min-width:0;gap:3px!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form input[type=search],
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form select {box-sizing:border-box;min-height:44px!important;max-width:100%!important;min-width:0!important;width:100%!important;font-size:16px!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-actions {order:2!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form:has(details[open]) .cj-actions {order:4!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-actions input[type=submit] {flex:1;min-height:44px!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-actions a {min-height:44px;display:inline-flex;align-items:center;padding:0 8px;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form details {order:3!important;min-width:0;border-top:0!important;margin:0!important;padding:0!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form details summary {box-sizing:border-box;min-height:44px;padding:12px 0!important;margin:0!important;font-size:13px!important;line-height:20px;overflow-wrap:anywhere;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-form details[open] {grid-column:1/-1;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-sort-bar {gap:6px!important;margin:8px 0!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-sort-bar a {min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-joke-row {display:flex!important;flex-wrap:wrap!important;gap:6px 10px!important;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-row-sens {order:0;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-row-stats {order:1;margin-left:auto;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cj-row-title {order:2;flex:0 0 100%!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;min-height:44px;display:flex;align-items:center;}
  html body.post-type-archive-joke .cj-joke-archive-browser .cm-empty-stat {display:none!important;}
}
