/* Qom Hockey v4.24 — charcoal dark-mode system, native controls, media picker */
/* Editor boolean fields: full-size transparent native input is the interactive target. */
body.admin-body .qh24-post-options{display:grid!important;gap:12px!important;min-width:0}
body.admin-body .qh24-check-row{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;direction:rtl!important;min-height:66px!important;width:100%!important;padding:14px 18px!important;border:1px solid var(--border,#dce2e9)!important;background:var(--surface,#fff)!important;border-radius:14px!important;cursor:pointer!important;transition:background .17s ease,border-color .17s ease!important}
body.admin-body .qh24-check-row:hover{background:var(--surface-2,#f7f9fc)!important;border-color:#7e9ab6!important}
body.admin-body .qh24-check-text{display:block!important;position:relative!important;flex:1 1 auto!important;min-width:0!important;font-size:14px!important;line-height:1.75!important;font-weight:650!important;color:var(--ink,#17253a)!important}
body.admin-body .qh24-check-row>input[type=checkbox]{position:absolute!important;inset:0!important;z-index:2!important;display:block!important;opacity:0!important;visibility:visible!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;cursor:pointer!important;pointer-events:none!important;appearance:none!important;-webkit-appearance:none!important;border:0!important}
body.admin-body .qh24-check-row>input[type=checkbox]:focus-visible{outline:3px solid #5c93d6!important;outline-offset:2px!important;border-radius:14px!important}
body.admin-body .qh24-switch-ui{display:block!important;flex:0 0 46px!important;width:46px!important;height:26px!important;min-height:26px!important;border-radius:26px!important;position:relative!important;background:#c0cad4!important;border:1px solid #aab6c6!important;box-shadow:inset 0 1px 3px #0001!important;pointer-events:none!important;transition:background-color .18s ease,border-color .18s ease!important}
body.admin-body .qh24-switch-ui::after{content:""!important;display:block!important;position:absolute!important;width:20px!important;height:20px!important;right:2px!important;top:2px!important;border-radius:50%!important;background:white!important;box-shadow:0 1px 3px #0003!important;transition:transform .18s ease!important}
body.admin-body .qh24-check-row>input[type=checkbox]:checked+.qh24-switch-ui{background:#17764f!important;border-color:#17764f!important}
body.admin-body .qh24-check-row>input[type=checkbox]:checked+.qh24-switch-ui::after{transform:translateX(-19px)!important}
body.admin-body .qh24-image-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0}
body.admin-body .qh24-chosen-preview:not(:empty){display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--border,#ddd);border-radius:12px;max-width:480px}
body.admin-body .qh24-chosen-preview img{width:80px;height:72px;object-fit:contain;border-radius:9px;background:#eef1f4}
body.admin-body .qh24-chosen-preview span{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
/* Shared modal - WordPress-inspired two-tab workflow, custom to this project */
body.qh24-media-open{overflow:hidden!important}
.qh24-media-overlay{position:fixed!important;inset:0!important;z-index:100100!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;background:rgba(12,16,19,.72)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .18s ease,visibility .18s ease!important}
.qh24-media-overlay.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.qh24-media-overlay *{box-sizing:border-box}
.qh24-media-dialog{direction:rtl;display:flex;flex-direction:column;width:min(1150px,100%);max-height:min(780px,94dvh);height:min(760px,94dvh);overflow:hidden;min-width:0;border-radius:18px;border:1px solid var(--border,#d8e0e7);background:var(--surface,#fff);color:var(--ink,#182332);box-shadow:0 22px 80px #0007;transform:translateY(12px) scale(.988);transition:transform .2s cubic-bezier(.2,.7,.2,1)}
.qh24-media-overlay.open .qh24-media-dialog{transform:none}
.qh24-media-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 22px 12px;border-bottom:1px solid var(--border,#ddd);flex-shrink:0}
.qh24-media-header h2{margin:0;font-size:19px;line-height:1.5;color:inherit}
.qh24-media-header p{font-size:12px;margin:3px 0 0;color:var(--muted,#657386)}
.qh24-media-close{flex:none;width:38px;height:38px;border:1px solid var(--border,#ddd);border-radius:10px;background:transparent;color:inherit;font-size:24px;cursor:pointer}
.qh24-media-tabs{display:flex;gap:4px;padding:8px 20px 0;flex-shrink:0;border-bottom:1px solid var(--border,#ddd)}
.qh24-media-tabs button{font:inherit;padding:12px 16px;border:0;border-bottom:3px solid transparent;color:var(--muted,#536476);background:transparent;font-weight:650;cursor:pointer}
.qh24-media-tabs button.active{border-bottom-color:#287e5a;color:var(--ink,#172535)}
.qh24-media-main{display:grid;grid-template-columns:minmax(0,1fr) 265px;min-height:0;flex:1;overflow:hidden}
.qh24-media-main[hidden],.qh24-media-upload[hidden]{display:none!important}
.qh24-media-collection{min-width:0;display:flex;flex-direction:column;min-height:0;padding:16px}
.qh24-media-search{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:12px}
.qh24-media-search input{min-width:0;flex:1;max-width:450px;padding:12px 14px;border-radius:10px;border:1px solid var(--border,#ced6dd);background:var(--surface,#fff);color:var(--ink,#172535);font:inherit}
.qh24-media-search span{font-size:12px;color:var(--muted,#657386);white-space:nowrap}
.qh24-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:11px;align-content:start;overflow-y:auto;overscroll-behavior:contain;padding:4px;flex:1;min-height:0}
.qh24-media-item{display:block;position:relative;aspect-ratio:1;min-height:0;border:2px solid var(--border,#e0e6ed);background:var(--surface-2,#f2f5f7);border-radius:12px;padding:4px;overflow:hidden;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.qh24-media-item:hover{transform:translateY(-2px);border-color:#669d86;box-shadow:0 5px 14px #0002}
.qh24-media-item.selected,.qh24-media-item[aria-selected=true]{border-color:#189568;box-shadow:0 0 0 2px #18956844}
.qh24-media-item img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.qh24-media-tick{position:absolute;top:7px;right:7px;background:#169568;color:#fff;border-radius:50%;width:23px;height:23px;display:none;place-items:center;font-size:15px}
.qh24-media-item.selected .qh24-media-tick{display:grid}
.qh24-media-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:14px 0 0;font-size:12px;flex-shrink:0}
.qh24-media-pagination button{border:1px solid var(--border,#ddd);border-radius:8px;background:var(--surface-2,#f5f7f9);color:inherit;padding:8px 12px;font:inherit;cursor:pointer}
.qh24-media-pagination button:disabled{opacity:.4;cursor:default}
.qh24-media-noitems{grid-column:1/-1;line-height:2;color:var(--muted,#666);text-align:center;padding:45px 10px}
.qh24-media-detail{border-right:1px solid var(--border,#dce3e9);padding:17px;overflow-y:auto;background:var(--surface-2,#f8f9fb);min-width:0;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.qh24-media-detail-photo{display:block;max-height:180px;width:100%;object-fit:contain;border-radius:10px;margin-bottom:14px;background:#eef1f4}
.qh24-media-detail h3{margin:8px 0;font-size:14px;color:var(--ink,#14293b)}
.qh24-media-detail p{margin:8px 0;color:var(--muted,#6a7687)}
.qh24-media-detail strong{color:var(--ink,#14293b)}
.qh24-media-detail-empty{padding-top:35px;text-align:center;color:var(--muted,#6a7687)}
.qh24-media-upload{flex:1;display:grid;place-items:center;padding:25px;min-height:0;overflow:auto}
.qh24-media-upload form{display:grid;justify-items:center;gap:14px;width:min(530px,100%)}
.qh24-dropzone{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;justify-content:center;width:100%;min-height:245px;padding:24px;border:2px dashed #8ba1ae;border-radius:15px;background:var(--surface-2,#f5f8fb);cursor:pointer}
.qh24-dropzone input[type=file]{max-width:100%;width:min(260px,100%);font-size:12px;direction:rtl}
.qh24-upload-icon{font-size:38px;color:#19805e}
.qh24-dropzone strong{font-size:15px;color:var(--ink,#173044)}
.qh24-dropzone small{color:var(--muted,#657386)}
.qh24-media-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-shrink:0;border-top:1px solid var(--border,#dae0e7);padding:12px 20px}
.qh24-media-footer [data-qh-media-status]{margin-inline-end:auto;font-size:12px;color:var(--muted,#687786);max-width:42ch;white-space:normal}
.qh24-media-footer button:disabled{opacity:.4;cursor:not-allowed}
.qh24-media-overlay :is(button,input):focus-visible{outline:3px solid #66b9a0;outline-offset:2px}
/* Neutral dark palettes shared by site and admin. Brand accents remain only on actions. */
html[data-theme="dark"] body:is(.admin-body,.public-site){color-scheme:dark!important;--brand:#429b72!important;--qh-blue:#429b72!important;--bg:#1D1F20!important;--background:#1D1F20!important;--surface:#202425!important;--surface-2:#292d2e!important;--surface-3:#303535!important;--card:#202425!important;--foreground:#eef0ef!important;--ink:#eef0ef!important;--ink-2:#d3d9d7!important;--muted:#acb4b1!important;--muted-foreground:#acb4b1!important;--border:#404747!important;--border-strong:#56605c!important;--vf-bg:#1D1F20!important;--vf-surface:#202425!important;--vf-border:#404747!important;--qh-blue-soft:#303535!important;--qh-dark:#1D1F20!important;--qh-navy:#202425!important;background:#1D1F20!important;color:#eef0ef!important}
html[data-theme="dark"] body:is(.admin-body,.public-site) :is(input,textarea,select){color-scheme:dark!important;accent-color:#409475}
/* Admin: remove the blue canvas / blue cards / black-on-black labels from prior CSS generations. */
html[data-theme="dark"] body.admin-body :is(.admin-workspace,.admin-content,#adminMain,.admin-shell,.wizard-shell,.settings-shell){background:#1D1F20!important;color:#eef0ef!important}
html[data-theme="dark"] body.admin-body :is(.admin-sidebar,.admin-topbar){background:#202425!important;border-color:#39403f!important;color:#eef0ef!important}
html[data-theme="dark"] body.admin-body :is(.admin-brand,.admin-sidebar-footer){border-color:#444c49!important}
html[data-theme="dark"] body.admin-body :is(.admin-nav a.active,.admin-nav summary:hover,.admin-nav a:hover,.admin-nav-group[open]>summary,.admin-nav-dashboard.active){background:#343a39!important;color:#f8fbf9!important;box-shadow:none!important}
html[data-theme="dark"] body.admin-body :is(.admin-nav a,.admin-nav summary,.admin-nav small,.admin-sidebar-footer a,.admin-brand small){color:#d0d8d4!important}
html[data-theme="dark"] body.admin-body :is(.panel,.panel-body,.wizard-card,.wizard-card-head,.wizard-summary,.toolbar,.table-wrap,.data-table,.admin-area-tabs,.admin-stepper,.admin-step,.settings-stage,.settings-stage-nav,.settings-hub-card,.settings-stage-cards>a,.setting-switch,.media-card,.qh-dialog,.qh-dialog-head,.qh-dialog-body,.block-inserter-dialog,.block-library>button,.quick-admin,.metric,.subtle-card,.search-form,.admin-content .card,.admin-content .notice,.admin-form-grid,.qh23-calendar-popover,.qh23-file-control,.admin-content .editor-toolbar,.admin-content .editor-title-wrap,.admin-content .block-editor,.admin-content .editor-block,.admin-content .block-body,.qh24-check-row){background:#202425!important;border-color:#404747!important;color:#eef0ef!important;box-shadow:none!important}
html[data-theme="dark"] body.admin-body :is(.data-table th,.data-table td,.wizard-card-head,.wizard-summary,.admin-area-tabs a,.admin-stepper,.editor-toolbar,.block-head,.settings-stage-nav,.qh-dialog-actions,.block-inserter-head){background:#252a2a!important;border-color:#404747!important;color:#eef0ef!important}
html[data-theme="dark"] body.admin-body :is(.data-table tbody tr:hover td,.admin-step.active,.admin-area-tabs a.active,.admin-area-tabs a:hover,.settings-stage-cards>a:hover,.block-library>button:hover,.admin-content .qh24-check-row:hover){background:#323838!important;border-color:#5b6864!important;color:#fff!important}
html[data-theme="dark"] body.admin-body :is(.field input:not([type=checkbox]),.field select,.field textarea,.form-grid input:not([type=checkbox]),.form-grid textarea,.form-grid select,.admin-nav-search input,.editor-title,.editor-block input,.editor-block textarea,.editor-block select,.search-form input,.filter-bar input,.filter-bar select){background:#292d2e!important;color:#f2f5f3!important;border-color:#4c5652!important}
html[data-theme="dark"] body.admin-body :is(.admin-content h1,.admin-content h2,.admin-content h3,.admin-content h4,.admin-content strong,.admin-content label,.admin-content th,.admin-topbar h1,.wizard-card-head strong,.qh24-check-text){color:#f2f5f3!important}
html[data-theme="dark"] body.admin-body :is(.muted,.help,small,.admin-page-intro p,.wizard-card-head p,.qh23-chart-legend,.admin-topbar p,.data-table small){color:#b5bfba!important}
html[data-theme="dark"] body.admin-body .btn-ghost{background:#2b3030!important;color:#eef0ee!important;border:1px solid #58615d!important}
html[data-theme="dark"] body.admin-body .btn-ghost:hover{background:#3b4240!important;color:#fff!important}
html[data-theme="dark"] body.admin-body :is(.btn-primary,.qh24-media-footer .btn-primary){background:#24684e!important;color:#fff!important;border-color:#368263!important}
html[data-theme="dark"] body.admin-body .btn-primary:hover{background:#327b5d!important}
html[data-theme="dark"] body.admin-body :is(.qh24-switch-ui){background:#4e5855!important;border-color:#69746f!important}
html[data-theme="dark"] body.admin-body .qh24-check-row>input[type=checkbox]:checked+.qh24-switch-ui{background:#27835e!important;border-color:#27835e!important}
html[data-theme="dark"] body.admin-body :is(.admin-nav-search,.admin-demo-toggle,.admin-user,.avatar-mini,.qh23-chart,.qh23-metric-row,.qh23-metric,.block-inserter-modal,.smart-modal,.smart-modal-body,.smart-modal-head,.smart-modal-actions){border-color:#414947!important;color:#eaf0ed!important}
html[data-theme="dark"] body.admin-body :is(.admin-nav-search,.admin-demo-toggle,.admin-user,.avatar-mini,.qh23-chart,.qh23-metric-row,.qh23-metric,.smart-modal,.smart-modal-body,.smart-modal-head,.smart-modal-actions){background:#252a2a!important}
html[data-theme="dark"] body.admin-body .block-inserter-modal{background:rgba(0,0,0,.76)!important}
html[data-theme="dark"] body.admin-body input::placeholder,html[data-theme="dark"] body.admin-body textarea::placeholder{color:#a6b0ab!important}
/* Public pages: charcoal, not deep blue. Suppress outdated decorative blue gradients in dark scheme. */
html[data-theme="dark"] body.public-site :is(.site-header,.vf-site-header,.vf-footer,.site-footer,.vf-header,.vf-footer-main){background:#202425!important;color:#f0f4f1!important;border-color:#3e4742!important}
html[data-theme="dark"] body.public-site :is(.page-hero,.qh22-article-hero,.vf-home-hero,.vf-hero,.vf-home-intro,.vf-home-scoreboard,.vf-scoreboard,.vf-home-stats,.vf-hero-stat,.vf-story-stage){background:#202425!important;background-image:none!important;color:#f1f5f1!important;border-color:#3e4742!important}
html[data-theme="dark"] body.public-site :is(.page-hero,.qh22-article-hero,.vf-home-hero) :is(h1,h2,h3,p,strong,small){color:#eff4f1!important}
html[data-theme="dark"] body.public-site :is(.page-shell,.section,.vf-section,.vf-main,.content-shell,.article-layout,.article-content){color:#e6eeea!important}
html[data-theme="dark"] body.public-site :is(.news-card,.article-card,.member-card,.region-card,.vf-news-card,.vf-people-card,.qh22-article-main,.qh22-related-card,.qh22-shortcuts,.qh22-related-thumb,.qh22-article-noimage,.qh22-no-photo,.qh22-mini-empty,.search-result,.card,.panel,.vf-feature-card,.vf-quick-links,.vf-home-story,.vf-home-route-card,.vf-newsroom,.vf-home-section,.vf-surface){background:#202425!important;background-image:none!important;border-color:#414946!important;color:#f0f4f1!important}
html[data-theme="dark"] body.public-site :is(.news-card,.article-card,.member-card,.region-card,.qh22-related-card,.qh22-article-main,.qh22-no-photo,.qh22-article-noimage) :is(h1,h2,h3,h4,strong,p,span){color:#e8eee9!important}
html[data-theme="dark"] body.public-site :is(.news-card,.article-card,.member-card,.region-card,.qh22-related-item,.vf-quick-link):hover{background:#303635!important;border-color:#647369!important}
html[data-theme="dark"] body.public-site :is(.qh22-related-list a.qh22-related-item:hover,.qh22-shortcuts a:hover,.vf-header-actions .icon-btn:hover,.header-actions .icon-btn:hover){background:#343a38!important;color:#fff!important}
html[data-theme="dark"] body.public-site :is(.article-meta,.qh22-related-text small,.site-footer p,.vf-footer-column a,.vf-contact-value,.article-content .content-paragraph){color:#c3ccc6!important}
html[data-theme="dark"] body.public-site :is(.site-footer h2,.site-footer strong,.footer-brand strong){color:#f0f4f1!important}
html[data-theme="dark"] body.public-site :is(input,textarea,select,.qh22-consent){background:#2b3030!important;color:#f3f6f3!important;border-color:#515b56!important}
html[data-theme="dark"] body.public-site :is(.qh22-lightbox,.qh22-lightbox-toolbar,.qh22-lightbox-hint,.qh22-lightbox-stage){background:#202425!important;color:#eef3ef!important;border-color:#414946!important}
html[data-theme="dark"] body.public-site :is(.qh22-lightbox-actions button,.qh22-lightbox-caption,.qh22-lightbox .qh22-zoom-value){background:#303534!important;color:#edf2ee!important;border-color:#5c6961!important}
html[data-theme="dark"] body.public-site :is(.mh-header-signup,.vf-header-signup){background:#2b3632!important;color:#edf3ee!important;border-color:#638675!important}
html[data-theme="dark"] body.public-site :is(.vf-mobile-menu,.vf-mobile-menu-head,.vf-mobile-menu-foot){background:#202425!important;border-color:#444c49!important;color:#f0f4f1!important}
/* Media modal uses the same charcoal palette in dark admin */
html[data-theme="dark"] body.admin-body .qh24-media-overlay{--surface:#202425;--surface-2:#292d2e;--muted:#bcc6bf;--ink:#f0f4ef;--border:#4b5650}
html[data-theme="dark"] body.admin-body :is(.qh24-media-dialog,.qh24-media-header,.qh24-media-footer,.qh24-media-collection,.qh24-media-detail,.qh24-media-upload,.qh24-media-search input,.qh24-media-pagination button,.qh24-dropzone){background:#202425!important;color:#f0f4ef!important;border-color:#49534f!important}
html[data-theme="dark"] body.admin-body :is(.qh24-media-detail,.qh24-dropzone,.qh24-media-pagination button){background:#292d2e!important}
html[data-theme="dark"] body.admin-body :is(.qh24-media-header h2,.qh24-media-detail h3,.qh24-dropzone strong){color:#f0f4ef!important}
html[data-theme="dark"] body.admin-body :is(.qh24-media-detail p,.qh24-media-header p,.qh24-media-footer span,.qh24-media-tabs button,.qh24-dropzone small){color:#bac6c0!important}
html[data-theme="dark"] body.admin-body .qh24-media-item{background:#313735!important;border-color:#4a554f!important}
html[data-theme="dark"] body.admin-body .qh24-media-item.selected{border-color:#64bb91!important}
@media(max-width:790px){.qh24-media-overlay{padding:0!important}.qh24-media-dialog{height:100dvh;max-height:100dvh;width:100%;border-radius:0}.qh24-media-main{grid-template-columns:minmax(0,1fr) 190px}.qh24-media-detail{padding:12px}.qh24-media-grid{grid-template-columns:repeat(auto-fill,minmax(94px,1fr))}}
@media(max-width:570px){.qh24-media-header{padding:12px 14px}.qh24-media-header h2{font-size:16px}.qh24-media-header p{font-size:11px}.qh24-media-tabs{padding-inline:12px}.qh24-media-tabs button{padding:10px}.qh24-media-main{display:flex;flex-direction:column}.qh24-media-collection{flex:1;min-height:0;padding:12px}.qh24-media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.qh24-media-detail{flex:0 0 auto;max-height:112px;border-right:0;border-top:1px solid var(--border);display:flex;gap:12px;align-items:center;overflow:auto}.qh24-media-detail-photo{width:80px;height:75px;margin:0;flex:none}.qh24-media-detail h3{font-size:12px}.qh24-media-detail p{display:none}.qh24-media-footer{padding:10px 12px;gap:8px;flex-wrap:wrap}.qh24-media-footer [data-qh-media-status]{flex:1 1 100%}.qh24-media-footer button{flex:1}.qh24-check-row{min-height:60px!important}.qh24-dropzone{min-height:200px}.qh24-media-pagination{gap:8px}.qh24-media-pagination button{padding:7px}}
@media(prefers-reduced-motion:reduce){.qh24-media-overlay,.qh24-media-dialog,.qh24-check-row,.qh24-switch-ui,.qh24-switch-ui::after,.qh24-media-item{transition:none!important;animation:none!important}}

.qh24-media-metadata{display:grid;gap:9px;margin-top:14px}
.qh24-media-metadata label{display:grid;gap:3px;font-size:11px;font-weight:650;color:inherit}
.qh24-media-metadata input,.qh24-media-metadata textarea{min-width:0;width:100%;padding:7px 9px;border-radius:8px;border:1px solid var(--border,#dae0e7);background:var(--surface,#fff);color:var(--ink,#123);font:inherit;font-size:12px}
.qh24-media-metadata textarea{min-height:56px;resize:vertical}
.qh24-media-metadata small{color:var(--muted,#687)!important}
@media(max-width:570px){.qh24-media-detail:has(.qh24-media-metadata:focus-within){max-height:230px!important}.qh24-media-metadata{min-width:150px;max-height:190px;overflow-y:auto}}

body.admin-body .qh24-check-row:has(input[type=checkbox]:focus-visible){outline:3px solid #5c93d6!important;outline-offset:3px!important}
