/* Qom Hockey 4.22 | Article UX, accessibility, admin bar & brand-aligned dark colors.
   Last style sheet for both public and admin. Visual only: zero database writes. */

/* --- Accessible membership actions (dark / light header) --- */
body.public-site .mh-header-signup{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:43px!important;padding:8px 16px!important;line-height:1.35!important;
  background:#fff!important;color:#0b3674!important;border:1px solid #b9d0ec!important;
  border-radius:12px!important;font-size:13px!important;font-weight:800!important;
  box-shadow:none!important;text-decoration:none!important;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease!important;
}
body.public-site .mh-header-signup:is(:hover,:focus-visible){
  background:#eef6ff!important;color:#082c61!important;border-color:#7da8dc!important;
  transform:translateY(-1px)!important;
}
body.public-site .mh-header-signup:focus-visible{outline:3px solid #72b3ff!important;outline-offset:3px!important}
body.public-site .vf-site-header:not(.ignore) .vf-header-actions .mh-header-signup{flex:0 0 auto!important}

/* --- Registration consent: restore native checkbox interaction; avoid overlay or pseudo interception --- */
body.public-site label.qh22-consent{
  position:relative!important;isolation:isolate;display:flex!important;align-items:center!important;
  gap:12px!important;min-height:55px!important;padding:10px 12px!important;margin:18px 0!important;
  border:1px solid #d5e2f1!important;border-radius:13px!important;background:#f6f9fd!important;
  color:#283f5e!important;font-size:14px!important;line-height:1.85!important;font-weight:600!important;
  cursor:pointer!important;user-select:none;overflow:visible!important;
}
body.public-site label.qh22-consent input[type="checkbox"]{
  position:static!important;flex:0 0 23px!important;display:block!important;appearance:auto!important;
  -webkit-appearance:checkbox!important;opacity:1!important;visibility:visible!important;
  pointer-events:auto!important;width:23px!important;height:23px!important;min-width:23px!important;
  padding:0!important;margin:0!important;cursor:pointer!important;accent-color:#0d448a!important;
  z-index:2!important;border-radius:5px!important;transform:none!important;
}
body.public-site label.qh22-consent input[type="checkbox"]::before,
body.public-site label.qh22-consent input[type="checkbox"]::after{content:none!important;display:none!important}
body.public-site label.qh22-consent span{flex:1!important;min-width:0!important;pointer-events:none!important}
body.public-site label.qh22-consent:has(input:checked){background:#eff9f3!important;border-color:#8dd2ac!important}
body.public-site label.qh22-consent:focus-within{outline:3px solid #a4c9f2!important;outline-offset:3px!important}

/* --- WP-like admin action bar (role-based from PHP, above site header) --- */
body.public-site .qh22-admin-bar{
  position:relative!important;z-index:220!important;width:100%!important;background:#091e3d!important;
  color:#eaf2fe!important;border-bottom:1px solid rgba(255,255,255,.13)!important;
  font-size:13px!important;font-weight:600!important;
}
body.public-site .qh22-admin-bar-inner{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;
  min-height:46px!important;overflow-x:auto!important;scrollbar-width:thin!important;padding-block:4px!important;
}
body.public-site .qh22-admin-bar a{
  display:inline-flex!important;align-items:center!important;gap:7px!important;flex:none!important;
  min-height:35px!important;padding:6px 10px!important;border-radius:8px!important;
  text-decoration:none!important;color:#dceaff!important;background:transparent!important;
  white-space:nowrap!important;transition:background-color .16s ease,color .16s ease!important;
}
body.public-site .qh22-admin-bar a:hover{background:rgba(255,255,255,.13)!important;color:#fff!important}
body.public-site .qh22-admin-bar a:focus-visible{outline:2px solid #95ccff!important;outline-offset:2px!important}
body.public-site .qh22-admin-bar .qh22-admin-bar-brand{font-weight:850!important;color:#fff!important}
body.public-site .qh22-admin-bar .qh22-admin-bar-edit{color:#b4f8d2!important;background:rgba(17,142,85,.24)!important}
body.public-site .qh22-admin-bar .qh22-admin-bar-edit:hover{color:white!important;background:rgba(16,143,85,.47)!important}
body.public-site .qh22-admin-bar .qh22-admin-bar-divider{flex:none;width:1px;height:20px;background:rgba(255,255,255,.2);margin-inline:6px}
body.public-site .qh22-admin-bar .qh22-admin-bar-spacer{flex:1;min-width:0}
body.public-site .qh22-admin-bar .qh22-admin-bar-site{color:#a9c7f7!important}

/* --- Article hero and title: remove enormous blank header, keep hierarchy --- */
body.public-site:not(.public-home) .page-hero.qh22-article-hero{
  padding:clamp(24px,3.5vw,48px) 0 clamp(20px,3.2vw,34px)!important;
  background:linear-gradient(145deg,#f4f7fc 0%,#fff 76%)!important;
  border-bottom:1px solid #e0e9f3!important;
  min-height:0!important;color:#102845!important;
}
body.public-site .qh22-article-hero::before,body.public-site .qh22-article-hero::after{display:none!important;content:none!important}
body.public-site .qh22-article-hero .container{max-width:1200px!important;padding-inline:0!important}
body.public-site .qh22-article-hero .qh22-article-eyebrow{
  display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid #d9e5f2;
  border-radius:100px;color:#1a579b;font-size:13px;font-weight:800;background:#fff;
}
body.public-site .page-hero.qh22-article-hero h1{
  max-width:980px!important;margin:14px 0 10px!important;
  font-size:clamp(27px,3.35vw,47px)!important;line-height:1.52!important;color:#102845!important;
  overflow-wrap:break-word!important;
}
body.public-site .page-hero.qh22-article-hero p{color:#5e718b!important;max-width:930px!important;font-size:15px!important;line-height:1.95!important}
body.public-site .section.qh22-article-section{
  padding:clamp(18px,2.8vw,32px) 0 clamp(36px,5vw,70px)!important;background:transparent!important;
}
body.public-site .qh22-article-section>.container{max-width:1200px!important}
body.public-site .qh22-article-section .article-shell{
  width:100%!important;max-width:1200px!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) 310px!important;gap:clamp(14px,2vw,26px)!important;
  align-items:start!important;
}
body.public-site .qh22-article-main{min-width:0!important;border-radius:22px!important;overflow:hidden!important}

/* --- Uncropped article image, explicit size reserved, zoom affordance --- */
body.public-site .article-cover.qh22-article-cover{
  position:relative!important;display:grid!important;place-items:center!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  aspect-ratio:auto!important;margin:0!important;padding:clamp(8px,1vw,14px)!important;
  background:#eef3f8!important;border:0!important;border-radius:0!important;overflow:visible!important;
}
body.public-site .article-cover.qh22-article-cover img{
  display:block!important;width:auto!important;max-width:100%!important;height:auto!important;
  max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;
  object-position:center!important;cursor:zoom-in!important;border-radius:12px!important;
}
body.public-site .article-cover.qh22-article-cover figcaption{
  display:flex!important;align-items:center;justify-content:center;gap:7px!important;
  margin:8px 0 0!important;color:#526985!important;font-size:12.5px!important;line-height:1.6!important;
}
body.public-site .qh22-article-main .article-head{padding:16px clamp(18px,3vw,30px)!important}
body.public-site .qh22-article-main .article-meta{font-size:13px!important}
body.public-site .qh22-article-main .article-content{padding:22px clamp(18px,3vw,32px) 40px!important;max-width:none!important}
body.public-site .qh22-article-main .content-image img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;margin-inline:auto!important;cursor:zoom-in!important}
body.public-site .qh22-article-main :is(.article-cover img,.content-image img):focus-visible{outline:3px solid #4e96e1!important;outline-offset:4px!important}
body.public-site .qh22-article-main .content-paragraph{font-size:clamp(15px,1.35vw,17px)!important;line-height:2.12!important}

/* --- No-image states, with label instead of generic broken glyph --- */
body.public-site .qh22-article-noimage{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:16px!important;min-height:130px!important;margin:14px!important;padding:24px!important;
  border:1px dashed #b9cce1!important;border-radius:16px!important;
  background:linear-gradient(125deg,#f4f8fd,#eaf1f9)!important;color:#385d89!important;
}
body.public-site .qh22-article-noimage>.icon{flex:none!important;width:36px!important;height:36px!important;color:#4a79aa!important}
body.public-site .qh22-article-noimage div{display:grid!important;gap:5px!important}
body.public-site .qh22-article-noimage strong{color:#23476e!important;font-size:16px!important}
body.public-site .qh22-article-noimage span{color:#647d98!important;font-size:13px!important}
body.public-site .news-media-placeholder.qh22-no-photo{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:9px!important;width:100%!important;height:100%!important;
  background:linear-gradient(135deg,#edf4fc,#e3ecf5)!important;color:#456d9a!important;
  border:1px dashed #c3d4e9!important;border-radius:14px!important;
}
body.public-site .qh22-no-photo span{font-size:13px!important;font-weight:750!important;color:#496c95!important;text-align:center!important}

/* --- Related content; modest thumbnails, balanced readable text --- */
body.public-site .qh22-article-aside{position:sticky!important;top:18px!important;align-self:start!important;min-width:0!important;gap:14px!important}
body.public-site .qh22-related-card{padding:16px!important;border-radius:20px!important}
body.public-site .qh22-related-card h2{display:flex!important;align-items:center!important;gap:9px!important;font-size:16px!important;font-weight:800!important;color:#173a67!important;margin:0 0 12px!important;padding-bottom:11px!important;border-bottom:1px solid #e3ebf4!important}
body.public-site .qh22-related-list{display:grid!important;gap:3px!important}
body.public-site .qh22-related-list a.qh22-related-item{
  display:grid!important;grid-template-columns:60px minmax(0,1fr)!important;align-items:center!important;
  gap:10px!important;padding:9px 7px!important;min-height:78px!important;
  border:0!important;border-radius:12px!important;text-decoration:none!important;color:#233954!important;
  background:transparent!important;transition:background-color .17s ease,transform .17s ease!important;
}
body.public-site .qh22-related-list a.qh22-related-item:hover{background:#edf4fc!important;transform:translateY(-1px)!important}
body.public-site .qh22-related-thumb{
  display:grid!important;place-items:center!important;width:60px!important;height:60px!important;
  overflow:hidden!important;border-radius:11px!important;border:1px solid #e3eaf3!important;
  background:#eef3f8!important;color:#7790aa!important;
}
body.public-site .qh22-related-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
body.public-site .qh22-related-text{display:grid!important;align-content:center!important;gap:4px!important;min-width:0!important}
body.public-site .qh22-related-text strong{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;font-size:13px!important;line-height:1.8!important;color:#233954!important;font-weight:750!important}
body.public-site .qh22-related-text small{font-size:11.5px!important;color:#728398!important}
body.public-site .qh22-shortcuts a{font-size:13px!important;line-height:1.75!important;min-height:38px!important}

/* --- Native dialog for interactive article photos --- */
.qh22-lightbox{
  position:fixed!important;inset:0!important;width:min(1100px,calc(100vw - 24px))!important;
  height:min(94dvh,1000px)!important;max-width:none!important;max-height:none!important;
  margin:auto!important;padding:0!important;border:1px solid #41536c!important;border-radius:18px!important;
  background:#0a1425!important;color:#fff!important;box-shadow:0 30px 110px rgba(0,0,0,.46)!important;
  overflow:hidden!important;
}
.qh22-lightbox::backdrop{background:rgba(4,12,29,.85)!important;backdrop-filter:blur(4px)!important}
.qh22-lightbox[open]{display:flex!important;flex-direction:column!important}
.qh22-lightbox-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  padding:10px 13px!important;min-height:54px!important;background:#101f34!important;border-bottom:1px solid #2d3d52!important;
}
.qh22-lightbox-caption{font-size:13px!important;color:#deebfa!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important}
.qh22-lightbox-actions{display:flex!important;align-items:center!important;gap:6px!important;flex:none!important}
.qh22-lightbox button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:39px!important;background:#1b2e49!important;color:#fff!important;border:1px solid #3a5375!important;border-radius:10px!important;cursor:pointer!important;font-size:20px!important;transition:background-color .16s ease!important}
.qh22-lightbox button:hover{background:#355074!important}
.qh22-lightbox button:focus-visible{outline:2px solid #96c7ff!important;outline-offset:2px!important}
.qh22-lightbox button:disabled{opacity:.4!important;cursor:not-allowed!important}
.qh22-lightbox .qh22-zoom-value{min-width:45px;text-align:center;font:700 12px Vazirmatn,sans-serif;color:#c9dcf3}
.qh22-lightbox-stage{flex:1!important;min-height:0!important;min-width:0!important;overflow:auto!important;overscroll-behavior:contain!important;display:block!important;padding:18px!important;text-align:center!important;scrollbar-color:#547196 #101c30!important}
.qh22-lightbox-stage img{display:block!important;position:relative!important;width:auto;height:auto!important;max-width:none!important;max-height:none!important;margin:auto!important;object-fit:contain!important;border-radius:8px!important}
.qh22-lightbox-hint{padding:6px 13px!important;text-align:center!important;font-size:11px!important;color:#b6c6db!important;background:#101f34!important}

/* --- Brand-aligned dark palette; stay navy with controlled red/green accents --- */
html[data-theme="dark"] body.public-site{
  --background:#071629!important;--card:#10243c!important;--foreground:#eff5ff!important;
  --muted-bg:#162d47!important;--muted-foreground:#b1c3d8!important;
  --vf-border:#2c4661!important;--vf-border-strong:#47647e!important;
  --surface:#10243c!important;--surface-2:#172e49!important;--surface-3:#1c3654!important;
  --ink:#ecf4ff!important;--ink-2:#c8d8ed!important;--muted:#b6c8df!important;
  --border:#294562!important;--border-strong:#52708c!important;
}
html[data-theme="dark"] body.public-site .page-hero.qh22-article-hero{
  background:linear-gradient(145deg,#102849,#0a1b32)!important;border-color:#2b4661!important;color:#eaf4ff!important;
}
html[data-theme="dark"] body.public-site .page-hero.qh22-article-hero h1{color:#eef6ff!important}
html[data-theme="dark"] body.public-site .page-hero.qh22-article-hero p{color:#b4c8dd!important}
html[data-theme="dark"] body.public-site .qh22-article-eyebrow{background:#193455!important;border-color:#3b5a77!important;color:#b8d9ff!important}
html[data-theme="dark"] body.public-site .qh22-article-main,
html[data-theme="dark"] body.public-site .qh22-related-card,
html[data-theme="dark"] body.public-site .qh22-shortcuts{background:#10243c!important;border-color:#2c4661!important;color:#dce9f9!important}
html[data-theme="dark"] body.public-site .qh22-article-main .article-content,
html[data-theme="dark"] body.public-site .qh22-article-main .content-paragraph{color:#d3e2f3!important}
html[data-theme="dark"] body.public-site .qh22-article-main .article-head{border-color:#2d4762!important}
html[data-theme="dark"] body.public-site .article-cover.qh22-article-cover{background:#09182c!important}
html[data-theme="dark"] body.public-site .article-cover.qh22-article-cover figcaption{color:#b5c6dc!important}
html[data-theme="dark"] body.public-site .qh22-related-card h2{color:#e6f1ff!important;border-color:#304963!important}
html[data-theme="dark"] body.public-site .qh22-related-list a.qh22-related-item{color:#e0edff!important}
html[data-theme="dark"] body.public-site .qh22-related-list a.qh22-related-item:hover{background:#1b3551!important}
html[data-theme="dark"] body.public-site .qh22-related-text strong{color:#e1eeff!important}
html[data-theme="dark"] body.public-site .qh22-related-text small{color:#adbfda!important}
html[data-theme="dark"] body.public-site .qh22-related-thumb{background:#1a3452!important;border-color:#345170!important;color:#b3cce5!important}
html[data-theme="dark"] body.public-site .qh22-article-noimage,
html[data-theme="dark"] body.public-site .qh22-no-photo{background:linear-gradient(135deg,#142c46,#102339)!important;border-color:#39536e!important}
html[data-theme="dark"] body.public-site .qh22-article-noimage strong,
html[data-theme="dark"] body.public-site .qh22-no-photo span{color:#e2effd!important}
html[data-theme="dark"] body.public-site .qh22-article-noimage span{color:#b4c7dd!important}
html[data-theme="dark"] body.public-site label.qh22-consent{background:#152d49!important;border-color:#3d5876!important;color:#eff6ff!important}
html[data-theme="dark"] body.public-site label.qh22-consent:has(input:checked){background:#12392e!important;border-color:#298b60!important}
html[data-theme="dark"] body.public-site .mh-header-signup{background:#172e4d!important;border-color:#6b9bdd!important;color:#e4f2ff!important}
html[data-theme="dark"] body.public-site .mh-header-signup:hover{background:#254b77!important;color:#fff!important;border-color:#92beff!important}
html[data-theme="dark"] body.public-site .qh22-shortcuts a{color:#cbdcf2!important}
html[data-theme="dark"] body.public-site .qh22-shortcuts a:hover{background:#1a344e!important;color:#fff!important}
html[data-theme="dark"] body.public-site .article-meta{color:#b9ccdf!important}

/* Also fix old hard-coded theme button hover collision. */
html[data-theme="dark"] body.public-site :is(.vf-header-actions,.header-actions) .icon-btn:hover{background:#24466b!important;color:#fff!important}
html[data-theme="dark"] body.public-site .news-card:hover{background:#152c47!important;border-color:#3c5a79!important}
html[data-theme="dark"] body.public-site .news-card :is(h3,p){color:#e3edf9!important}

@media(max-width:960px){
  body.public-site .qh22-article-section .article-shell{grid-template-columns:minmax(0,1fr)!important}
  body.public-site .qh22-article-aside{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}
@media(max-width:640px){
  body.public-site .qh22-admin-bar-inner{min-height:44px!important;gap:1px!important}
  body.public-site .qh22-admin-bar a{padding:5px 8px!important;font-size:12px!important}
  body.public-site .qh22-admin-bar .qh22-admin-bar-brand span{display:none!important}
  body.public-site .qh22-admin-bar .qh22-admin-bar-site{display:none!important}
  body.public-site:not(.public-home) .page-hero.qh22-article-hero{padding:23px 0 20px!important}
  body.public-site .page-hero.qh22-article-hero h1{font-size:clamp(25px,6.5vw,34px)!important;line-height:1.6!important;margin:10px 0 6px!important}
  body.public-site .page-hero.qh22-article-hero p{font-size:14px!important}
  body.public-site .qh22-article-section .article-shell{grid-template-columns:1fr!important}
  body.public-site .qh22-article-aside{grid-template-columns:1fr!important}
  body.public-site .article-cover.qh22-article-cover{padding:7px!important}
  body.public-site .article-cover.qh22-article-cover figcaption{font-size:11px!important}
  body.public-site .qh22-related-card{padding:14px!important}
  body.public-site label.qh22-consent{font-size:13.5px!important;padding:11px!important}
  .qh22-lightbox{width:calc(100vw - 10px)!important;height:min(96dvh,1000px)!important;border-radius:12px!important}
  .qh22-lightbox-stage{padding:10px!important}
  .qh22-lightbox-hint{font-size:10px!important}
  .qh22-lightbox button{width:36px!important;height:36px!important}
}
@media(prefers-reduced-motion:reduce){
  body.public-site .mh-header-signup,
  body.public-site .qh22-related-list a.qh22-related-item,
  .qh22-lightbox button{transition:none!important;animation:none!important}
}

/* Home news without artwork: clearer than repeating the federation logo. */
body.public-site .qh22-editorial-empty{
  width:100%!important;height:100%!important;min-height:220px!important;display:flex!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;
  background:linear-gradient(135deg,#183b69,#0d2650)!important;color:#d9e9fc!important;
  text-align:center!important;font-size:14px!important;font-weight:800!important;
}
body.public-site .qh22-mini-empty{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;background:#e9f1f9!important;color:#6a8eb3!important;border-radius:10px!important}
html[data-theme="dark"] body.public-site .qh22-mini-empty{background:#1a3452!important;color:#a8c9eb!important}
