/* Qom Hockey 4.26: dark surfaces + accessible engagement UI.
   Final stylesheet in BOTH front and admin heads. Visual-only upgrade; no SQL changes.
   Contrast is paired: never dark text over a dark card or light card in dark mode. */
:root {
 --qh26-bg:#1d1f20;--qh26-surface:#202425;--qh26-raised:#2a302e;
 --qh26-hover:#343d38;--qh26-border:#404b45;--qh26-text:#f0f5f1;
 --qh26-muted:#becdc3;--qh26-accent:#69bc8d;
}
/* Consistent engagement panel in both light and dark modes */
body.public-site .qh23-engagement {
 display:grid;gap:clamp(14px,2vw,22px);padding:clamp(20px,3vw,32px) 0 0;
 margin-block:clamp(24px,3vw,35px) 0;border-top:1px solid var(--border,#dce4e9)
}
body.public-site .qh26-feedback,body.public-site .qh26-comments {
 min-width:0;border-radius:20px;padding:clamp(20px,2.5vw,30px)!important;
 box-shadow:none; border:1px solid var(--border,#d7e1e6)
}
body.public-site .qh26-feedback {
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
 gap:22px;background:var(--surface-2,#f5f8f6)
}
body.public-site .qh26-heading {display:flex;align-items:center;gap:12px;min-width:0}
body.public-site .qh26-heading h2{margin:0!important;font-size:clamp(18px,2.2vw,23px);line-height:1.6}
body.public-site .qh26-heading-icon {
 width:42px;height:42px;flex:none;display:grid;place-items:center;border:1px solid var(--border,#d8e2dc);
 border-radius:13px;background:var(--surface,#fff);color:var(--brand,#14643c)
}
body.public-site .qh26-feedback-copy p{margin:10px 0 6px!important;line-height:1.8;font-size:14px}
body.public-site .qh26-feedback-copy small{display:block;font-size:12px;line-height:1.9}
body.public-site .qh26-vote-actions {display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
body.public-site .qh26-vote-actions .btn {
 display:inline-flex!important;align-items:center;justify-content:center;gap:9px;
 min-height:45px;white-space:nowrap;line-height:1.35;padding:11px 15px;
 border-radius:12px;font-size:13px;font-weight:750;box-shadow:none
}
body.public-site .qh26-vote-actions .btn .icon{flex:none}
body.public-site .qh26-comments{background:var(--surface,#fff)}
body.public-site .qh26-comment-title {padding-bottom:18px;border-bottom:1px solid var(--border,#dce4e9)}
body.public-site .qh26-comment-title p{margin:3px 0 0;color:var(--muted,#65747b);font-size:13px}
body.public-site .qh26-comments-empty {
 display:flex;align-items:center;gap:11px;padding:22px 0 6px;
 font-size:13px;color:var(--muted,#738187)
}
body.public-site .qh26-comments-empty .icon {flex:none;opacity:.85}
body.public-site .qh23-comment {padding:18px 4px}
body.public-site .qh23-comment-form {margin-top:18px;gap:14px}
body.public-site .qh23-comment-form label{font-size:14px;gap:8px;line-height:1.7}
body.public-site .qh23-comment-form input:not([type=hidden]),body.public-site .qh23-comment-form textarea{
 background:var(--surface,#fff);border-color:var(--border,#dbe4e8);
 padding:13px 15px;min-height:47px;border-radius:12px;font-size:15px
}
body.public-site .qh23-comment-form textarea{min-height:112px;resize:vertical}
body.public-site .qh26-comment-note{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted,#74818a);font-size:12px}
body.public-site .qh26-comment-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding-inline:19px;border-radius:12px}
@media(max-width:760px) {
 body.public-site .qh26-feedback{grid-template-columns:minmax(0,1fr)!important;gap:18px}
 body.public-site .qh26-vote-actions{width:100%;justify-content:stretch}
 body.public-site .qh26-vote-actions .btn{flex:1 1 160px;white-space:normal}
 body.public-site .qh26-feedback,body.public-site .qh26-comments{padding:18px!important}
}
@media(max-width:420px) {
 body.public-site .qh26-vote-actions .btn{flex:1 1 100%}
 body.public-site .qh26-heading-icon{width:36px;height:36px;border-radius:11px}
 body.public-site .qh26-comment-title{align-items:flex-start}
}
/* Dark mode ONLY: admin and public share a neutral palette, not the old blue. */
html[data-theme="dark"] body:is(.admin-body,.public-site){
 --qh26-bg:#1d1f20;--qh26-surface:#202425;
 --dm-bg:#1d1f20;--dm-panel:#202425;--dm-raised:#2a302e;
 --dm-hover:#343d38;--dm-border:#404b45;--dm-border-strong:#647b6d;
 --dm-text:#f0f5f1;--dm-muted:#bdcbc1;--dm-subtext:#d5e1d8;
 --bg:#1d1f20!important;--surface:#202425!important;--surface-2:#2a302e!important;
 --surface-3:#343d38!important;--border:#404b45!important;
 --ink:#f0f5f1!important;--ink-2:#d5e1d8!important;--muted:#bdcbc1!important;
 color:#f0f5f1!important;background:#1d1f20!important;color-scheme:dark
}
/* Admin topbar: explicit background/gradient + child surfaces; keeps title legible. */
html[data-theme="dark"] body.admin-body header.admin-topbar {
 background:#202425!important;background-image:none!important;border:0!important;
 border-bottom:1px solid #404b45!important;box-shadow:0 1px 0 rgba(255,255,255,.035)!important;
 color:#f0f5f1!important
}
html[data-theme="dark"] body.admin-body header.admin-topbar:before,
html[data-theme="dark"] body.admin-body header.admin-topbar:after{background:none!important;box-shadow:none!important}
html[data-theme="dark"] body.admin-body .admin-topbar :is(h1,p,small,strong,.admin-topbar-start){color:#f0f5f1!important}
html[data-theme="dark"] body.admin-body .admin-topbar p{color:#bdcbc1!important}
html[data-theme="dark"] body.admin-body :is(.admin-topbar-actions,.admin-demo-form,.admin-demo-panel){background:transparent!important;box-shadow:none!important}
html[data-theme="dark"] body.admin-body :is(.admin-demo-toggle,.admin-topbar .btn-ghost,.admin-topbar .icon-btn,.admin-topbar .avatar-mini){
 background:#2a302e!important;color:#f0f5f1!important;border:1px solid #404b45!important;
 background-image:none!important;box-shadow:none!important
}
html[data-theme="dark"] body.admin-body :is(.admin-demo-toggle,.admin-topbar .btn-ghost,.admin-topbar .icon-btn):hover{background:#343d38!important;color:#fff!important;border-color:#66766b!important}
html[data-theme="dark"] body.admin-body .admin-topbar .btn-primary{background:#346e52!important;color:#fff!important;border-color:#428965!important}
html[data-theme="dark"] body.admin-body .admin-topbar .btn-primary:hover{background:#408363!important;color:#fff!important}
html[data-theme="dark"] body.admin-body :is(.admin-shell,.admin-workspace,.admin-content,#adminMain){background:#1d1f20!important}
html[data-theme="dark"] body.admin-body .admin-sidebar {background:#202425!important;background-image:none!important;border-color:#404b45!important}
html[data-theme="dark"] body.admin-body :is(.admin-sidebar,.admin-topbar,.admin-page-intro,.admin-topbar-actions) a{color:inherit}
html[data-theme="dark"] body.admin-body .admin-backdrop{background:rgba(0,0,0,.62)!important;backdrop-filter:none!important}
/* The final call-to-action used a huge green polygon and inherited low-contrast pale text. */
html[data-theme="dark"] body.public-home .qv-final-strip {
 background:#202425!important;background-image:none!important;color:#f0f5f1!important;
 border-top:1px solid #404b45!important;border-bottom:1px solid #404b45!important
}
html[data-theme="dark"] body.public-home .qv-final-strip::before,
html[data-theme="dark"] body.public-home .qv-final-strip::after {content:none!important;display:none!important}
html[data-theme="dark"] body.public-home .qv-final-grid{position:relative;z-index:1}
html[data-theme="dark"] body.public-home .qv-final-grid>div:nth-child(2)>span{color:#b7d5c2!important;font-size:clamp(12px,1.1vw,14px)!important}
html[data-theme="dark"] body.public-home .qv-final-grid h2{color:#f0f5f1!important}
html[data-theme="dark"] body.public-home .qv-final-actions :is(a,a span,a .icon){color:#fff!important}
html[data-theme="dark"] body.public-home .qv-final-actions .qv-action-light {
 background:#2c6c4d!important;border:1px solid #4b996f!important;color:#fff!important;
 box-shadow:none!important
}
html[data-theme="dark"] body.public-home .qv-final-actions .qv-action-light:hover {
 background:#3b815e!important;border-color:#74c59a!important;color:#fff!important
}
html[data-theme="dark"] body.public-home .qv-final-actions .qv-action-outline {
 background:transparent!important;color:#f0f5f1!important;border:1px solid #84968a!important
}
html[data-theme="dark"] body.public-home .qv-final-actions .qv-action-outline:hover{
 background:#343d38!important;color:#fff!important;border-color:#b0c8b8!important
}
/* Feature banner / archives still had cool-blue gradients after the previous release. */
html[data-theme="dark"] body.public-site :is(.page-hero,.qh22-article-hero,.region-hero,.region-detail-hero,.search-page-hero,.archive-hero,.vf-page-hero,.vf-hero,.qv-hero){
 background:#202425!important;background-image:none!important;border-color:#404b45!important;color:#f0f5f1!important
}
html[data-theme="dark"] body.public-site :is(.page-hero,.qh22-article-hero,.region-hero,.region-detail-hero,.search-page-hero,.archive-hero,.vf-page-hero)::before,
html[data-theme="dark"] body.public-site :is(.page-hero,.qh22-article-hero,.region-hero,.region-detail-hero,.search-page-hero,.archive-hero,.vf-page-hero)::after{
 background:none!important;box-shadow:none!important;opacity:0!important;pointer-events:none!important
}
html[data-theme="dark"] body.public-site :is(.page-hero,.qh22-article-hero,.region-hero,.region-detail-hero,.search-page-hero,.archive-hero,.vf-page-hero) :is(h1,h2,h3,strong){color:#f0f5f1!important}
html[data-theme="dark"] body.public-site :is(.page-hero,.qh22-article-hero,.region-hero,.region-detail-hero,.search-page-hero,.archive-hero,.vf-page-hero) :is(p,small,.eyebrow){color:#bdcbc1!important}
html[data-theme="dark"] body.public-site :is(.qh-routebar,.qv-ticker,.qv-access,.qv-access-grid,.qv-news-section,.qv-people-section,.qv-editorial,.qv-editorial-stream,.qv-pulse,.vf-home-hero,.site-footer,.vf-footer){
 background-color:#202425!important;background-image:none!important;border-color:#404b45!important;color:#f0f5f1!important
}
html[data-theme="dark"] body.public-site :is(.qv-access-grid>a,.qh-routebar-grid>a,.qv-stream-item,.qv-roster-item,.news-card,.person-card,.regional-card,.search-result,.card,.article-main,.aside-card){
 border-color:#404b45!important;color:#f0f5f1!important;
}
html[data-theme="dark"] body.public-site :is(.qv-access-grid>a,.qh-routebar-grid>a,.qv-stream-item,.qv-roster-item,.news-card,.person-card,.regional-card,.search-result):hover{
 background-color:#343d38!important;background-image:none!important;color:#fff!important;border-color:#647b6d!important
}
/* Preserve readable text on charcoal editorial / article cards. */
html[data-theme="dark"] body.public-site :is(.qh22-article-hero,.qh23-votes,.qh23-comments,.qh22-related-card,.qh22-shortcuts,.article-content,.article-head,.article-meta,.article-aside,.qv-news-section,.qv-section-head) :is(h1,h2,h3,p,strong,small,time,span){
 color:inherit
}
/* Minimal feedback and comment UI; surface/foreground are always paired. */
html[data-theme="dark"] body.public-site .qh26-feedback,
html[data-theme="dark"] body.public-site .qh26-comments {
 background:#202425!important;background-image:none!important;color:#f0f5f1!important;
 border-color:#404b45!important
}
html[data-theme="dark"] body.public-site .qh26-heading-icon {
 background:#2a302e!important;border-color:#404b45!important;color:#9dddb8!important
}
html[data-theme="dark"] body.public-site .qh26-heading h2,
html[data-theme="dark"] body.public-site .qh26-comment-title h2 {color:#f0f5f1!important}
html[data-theme="dark"] body.public-site .qh26-feedback-copy p,
html[data-theme="dark"] body.public-site .qh26-comment-title p,
html[data-theme="dark"] body.public-site .qh26-feedback-copy small,
html[data-theme="dark"] body.public-site .qh26-comments-empty,
html[data-theme="dark"] body.public-site .qh26-comment-note {color:#bdcbc1!important}
html[data-theme="dark"] body.public-site .qh26-comment-title,
html[data-theme="dark"] body.public-site .qh23-comment {border-color:#404b45!important}
html[data-theme="dark"] body.public-site .qh26-vote-yes,
html[data-theme="dark"] body.public-site .qh26-comment-submit{background:#346e52!important;color:#fff!important;border-color:#428965!important}
html[data-theme="dark"] body.public-site .qh26-vote-yes:hover,
html[data-theme="dark"] body.public-site .qh26-comment-submit:hover{background:#408363!important;color:#fff!important}
html[data-theme="dark"] body.public-site .qh26-vote-no{
 background:#2a302e!important;color:#f0f5f1!important;border-color:#647068!important
}
html[data-theme="dark"] body.public-site .qh26-vote-no:hover{background:#343d38!important;color:#fff!important;border-color:#879d8f!important}
html[data-theme="dark"] body.public-site .qh23-comment-form :is(input,textarea){
 background:#2a302e!important;border-color:#4d5a51!important;color:#f0f5f1!important;color-scheme:dark!important
}
html[data-theme="dark"] body.public-site .qh23-comment-form :is(input,textarea):focus-visible{
 outline:2px solid #84d1a2!important;outline-offset:2px!important
}
/* Avoid theme flashes on form elements and accidental blue select highlights. */
html[data-theme="dark"] body:is(.admin-body,.public-site) :is(input,select,textarea){color-scheme:dark;accent-color:#65bd8a}
@media(prefers-reduced-motion:reduce){
 body.public-site .qh26-vote-actions .btn,body.public-site .qh26-comment-submit{animation:none!important;transition:none!important}
}
/* A v4.22 article-banner selector carried greater specificity than the general theme rules. */
html[data-theme="dark"] body.public-site section.page-hero.qh22-article-hero,
html[data-theme="dark"] body.public-site .page-hero.qh22-article-hero,
html[data-theme="dark"] body.public-site section.page-hero {
 background:#202425!important;background-image:none!important;background-color:#202425!important;
 color:#f0f5f1!important;border-color:#404b45!important
}
/* 4.23 used :is(... .admin-content .card ...) where the entire list inherited
   two class specificity; a normal .admin-topbar selector could not override it.
   This explicit exact element wins without disturbing the other 4.23 components. */
html[data-theme="dark"] body.admin-body.admin-body header.admin-topbar.admin-topbar {
 background:#202425!important;background-color:#202425!important;background-image:none!important;
 border-bottom:1px solid #404b45!important;color:#f0f5f1!important
}
