/* HEHEMETAL Global Dark Mode · standalone overlay, original artwork and logos unchanged.
 * Designed for custom [hhm_home], standard WordPress posts/archives, RIFF/33 and sidebar widgets.
 * The CSS is screen-only. Printing still uses the site's standard light print styles. */

:root.hhm-site-dark{color-scheme:dark;--hhm-dark-bg:#15161a;--hhm-dark-surface:#202127;--hhm-dark-card:#28292f;--hhm-dark-text:#f1ede8;--hhm-dark-muted:#c5bec0;--hhm-dark-border:#49464d;--hhm-dark-red:#ee5963;}
html.hhm-site-dark,html.hhm-site-dark body{background:var(--hhm-dark-bg)!important;color:var(--hhm-dark-text)!important;}
html.hhm-site-dark :is(.site,.site-content,.site-main,.content-area,.main-content,.site-wrapper,.site-container,.wp-site-blocks,.site-footer,.footer-inner,.site-info){background-color:transparent;color:var(--hhm-dark-text);}

/* WordPress theme: neutral surfaces, readable article body, archive lists, search and menus. */
html.hhm-site-dark :is(.site-header,.header-wrap,.main-header,.header-main,.site-footer,.footer-widgets,.footer-inner,.sidebar,.widget-area,#secondary,.site-info,.page-header,.entry-header,.post-header,.author-box,.related-posts,.post-navigation,.comments-area,.comment-body,.widget){background-color:var(--hhm-dark-surface)!important;color:var(--hhm-dark-text)!important;border-color:var(--hhm-dark-border)!important;}
html.hhm-site-dark :is(.site-content,.content-area,.site-main,.content-wrap,.main-content,.site-wrapper,.container-wrap,.entry-content,.post-content,.post-body,.page-content,.post,.page,.article-container,.archive,.search-results){color:var(--hhm-dark-text)!important;}
html.hhm-site-dark :is(.entry-title,.page-title,.post-title,.post-heading,.entry-header h1,.entry-header h2,.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.post-content h1,.post-content h2,.post-content h3,.post-content h4,.widget-title,.archive-title){color:var(--hhm-dark-text)!important;}
html.hhm-site-dark :is(.entry-content,.post-content,.post-body,.page-content,.entry-summary,.post-excerpt) :is(p,li,dt,dd,blockquote,figcaption,th,td){color:var(--hhm-dark-text)!important;}
html.hhm-site-dark :is(.entry-meta,.post-meta,.posted-on,.byline,.cat-links,.tags-links,.breadcrumbs,.wp-caption-text,.widget-area small){color:var(--hhm-dark-muted)!important;}
html.hhm-site-dark :is(.widget-area,.site-footer,.post-navigation,.entry-content) a:not(.button):not(.wp-block-button__link){color:var(--hhm-dark-text)!important;}
html.hhm-site-dark :is(.widget-area,.entry-content) a:not(.button):not(.wp-block-button__link):hover{color:var(--hhm-dark-red)!important;}
html.hhm-site-dark :is(.sub-menu,.dropdown-menu,.nav-menu .children,.search-form,.search-field,.comment-form input,.comment-form textarea,.wp-block-search__input,select,textarea,input[type="text"],input[type="search"],input[type="email"]){background-color:#28292f!important;color:#f5f1ed!important;border-color:#655d60!important;}
html.hhm-site-dark :is(.entry-content,.post-content) :is(blockquote,pre,code,.wp-block-quote,.wp-block-preformatted,.wp-block-table,.wp-block-group.has-background,.wp-block-media-text.has-background){background-color:#26272c!important;color:#eee9e4!important;border-color:var(--hhm-dark-border)!important;}
html.hhm-site-dark :is(hr,.wp-block-separator){border-color:var(--hhm-dark-border)!important;}
html.hhm-site-dark :is(.wp-block-table table,.entry-content table,.post-content table) :is(td,th){border-color:var(--hhm-dark-border)!important;}
/* Leave all photos, album covers, videos, embeds, logos and partner-owned design unmodified. */
html.hhm-site-dark :is(img,picture,video,iframe,canvas,svg){filter:none;}
html.hhm-site-dark :is(.custom-logo-link,.site-branding) img{background-color:#f5f2ec;border-radius:4px;}

/* Custom HEHEMETAL Home: turn only the PAPER sections dark; maintain already-black hero/release sections. */
html.hhm-site-dark body.hhm-home-active{background:#111216!important;}
html.hhm-site-dark .hhm-home{--paper:#f1ede8;--ink:#111216;--muted:#bbb6b9;}
html.hhm-site-dark .hhm-home :is(.hm-paper,.hm-categories,.hm-outro){background:#1f2025!important;color:#f1ede8!important;border-color:#48454b!important;}
html.hhm-site-dark .hhm-home :is(.hm-cat-card,.hm-cat-lead,.hm-cat-lead-copy,.hm-cat-mini,.hm-archive-card,.hm-discovery-card){background:#28292e!important;color:#f1ede8!important;border-color:#4e4b50!important;}
html.hhm-site-dark .hhm-home :is(.hm-paper,.hm-categories,.hm-outro) :is(h1,h2,h3,h4,h5,h6){color:#f6f2ed!important;}
html.hhm-site-dark .hhm-home :is(.hm-paper,.hm-categories,.hm-outro) :is(p,.hm-excerpt,.hm-cat-date,.hm-cat-index,.hm-cat-mini small,.hm-mini-story p,.hm-cat-card p,.hm-section-head p,.hm-outro-info p){color:#cfc8ca!important;}
html.hhm-site-dark .hhm-home :is(.hm-mini-story,.hm-side-list,.hm-cat-card,.hm-cat-mini,.hm-cat-top,.hm-cat-lead,.hm-outro,.hm-cat-list){border-color:#555056!important;}
html.hhm-site-dark .hhm-home .hm-cat-top{background:#303139!important;color:#f6f2ed!important;}
html.hhm-site-dark .hhm-home .hm-cat-all{color:#f4e8e8!important;}
html.hhm-site-dark .hhm-home .hm-cat-all:hover{color:#ff7279!important;}
html.hhm-site-dark .hhm-home .hm-section-head .hm-text-link{color:#ebe6e1!important;}
html.hhm-site-dark .hhm-home .hm-meta,.hhm-home .hm-eyebrow{color:#f1747e;}
html.hhm-site-dark .hhm-home .hm-outro-info .hm-btn{background:#df404a;border-color:#df404a;color:white!important;}
html.hhm-site-dark .hhm-home .hm-outro-info .hm-btn:hover{background:#a92435;border-color:#a92435;}
/* Some home blocks deliberately use black on saturated red. Preserve those high-contrast accent blocks. */
html.hhm-site-dark .hhm-home .hm-ticker{background:#ed4446!important;color:#151517!important;}
html.hhm-site-dark .hhm-home :is(.hm-pin,.hm-pin-title,.hm-pin-summary,.hm-pins,.hm-release-lead,.hm-release-item,.hm-releases){color:inherit;}

/* RIFF/33: reuse its tested visual dark mode. One global switch controls the entire issue and WP chrome. */
html.hhm-site-dark .ld-single-page.ld-cuttings-edition{background:#101115!important;color:#f1eae4!important;}
html.hhm-site-dark .ld-single-page.ld-cuttings-edition :is(.ld-mag-shell,.ld-edition-switch){border-color:#62595e;}
/* Hide the legacy issue-only toggle to avoid two contradictory controls. */
html .ld-single-page.ld-cuttings-edition .ld-theme-toggle{display:none!important;}
/* Reader floating action stays accessible above the site-wide theme switch. */
html .ld-single-page.ld-cuttings-edition .ld-reader-fab{bottom:83px!important;}


/* V1.0.2: theme-safe header treatment. 1.0.1 unintentionally painted
 * nested navigation boxes and ALL their links, exposing descriptions that
 * the theme otherwise keeps hidden. Colors only; never set width/height,
 * flex/grid positioning, display for nav containers, or font metrics. */
html.hhm-site-dark :is(#masthead,.site-header,.header-wrap,.main-header,.header-main){
  background-color:#202127!important;
  color:#f1ede8!important;
}
html.hhm-site-dark :is(#masthead,.site-header,.header-wrap) :is(.main-navigation,.site-navigation,.primary-navigation,nav.navbar,nav.navigation){
  background-color:transparent!important;
  border-color:#49464d!important;
}
/* Only top-level menu labels should be recolored. */
html.hhm-site-dark :is(#masthead,.site-header,.header-wrap,.main-navigation,.site-navigation,.primary-navigation) :is(.menu,.nav-menu,.primary-menu) > li > a{
  color:#f1ede8!important;
}
html.hhm-site-dark :is(#masthead,.site-header,.header-wrap,.main-navigation,.site-navigation,.primary-navigation) :is(.menu,.nav-menu,.primary-menu) > li > a:hover,
html.hhm-site-dark :is(#masthead,.site-header,.header-wrap,.main-navigation,.site-navigation,.primary-navigation) :is(.menu,.nav-menu,.primary-menu) > li.current-menu-item > a{
  color:#ee5963!important;
}
/* Site navigation descriptions are admin/editorial notes, not visible nav labels. */
html.hhm-site-dark :is(#masthead,.site-header,.header-wrap,.site-navigation,.main-navigation,.primary-navigation) :is(.menu-item-description,.menu-description,.menu-item-desc,.menu-item > a > .description,.menu-item > .description){
  display:none!important;
}
html.hhm-site-dark :is(.site-header,#masthead) :is(.search-toggle,.search-icon,.menu-toggle,.navbar-toggle,.mobile-menu-toggle){
  color:#f1ede8!important;
}
/* The logo is black artwork. Keep its original colors and use a small pale
 * backing rather than a global image inversion. */

/* The Events Calendar widget uses --tec-* variables and separate text colors.
 * Setting a dark background on .widget alone left November dates, schedules
 * and Upcoming Events almost black. Scope corrective contrast to that widget. */
html.hhm-site-dark :is(.tribe-events-widget,.tribe-events-widget-events-list,.tribe-events-widget-events-list__view-more){
  --tec-color-text-primary:#f4eee9;
  --tec-color-text-secondary:#c9c3c0;
  --tec-color-text-disabled:#aaa5a5;
  --tec-color-text-event-date:#d3c1bc;
  --tec-color-text-events-title:#f4eee9;
  --tec-color-link-primary:#f4eee9;
  --tec-color-accent-primary:#ee5963;
  --tec-color-border-default:#514d52;
}
html.hhm-site-dark :is(.tribe-events-widget,.tribe-events-widget-events-list) :is(
  .tribe-events-widget-events-list__header-title,
  .tribe-events-widget-events-list__event-title,
  .tribe-events-widget-events-list__event-title-link,
  .tribe-events-widget-events-list__event-title a,
  .tribe-events-widget-events-list__event-date-tag-month,
  .tribe-events-widget-events-list__event-date-tag-daynum,
  .tribe-events-widget-events-list__event-date-tag-daynum a,
  .tribe-events-widget-events-list__event-date-tag-datetime
){color:#f4eee9!important;}
html.hhm-site-dark :is(.tribe-events-widget,.tribe-events-widget-events-list) :is(
  .tribe-events-widget-events-list__event-datetime,
  .tribe-events-widget-events-list__event-date-tag,
  .tribe-events-widget-events-list__event-date-tag-weekday,
  .tribe-events-widget-events-list__event-datetime-wrapper,
  .tribe-events-widget-events-list__event-venue,
  .tribe-events-widget-events-list__event-cost
){color:#c9c3c0!important;}
html.hhm-site-dark :is(.tribe-events-widget,.tribe-events-widget-events-list) :is(
  .tribe-events-widget-events-list__view-more-link,
  .tribe-events-widget-events-list__view-more a
){color:#f2e9e3!important;border-color:#76666b!important;}
html.hhm-site-dark :is(.tribe-events-widget,.tribe-events-widget-events-list) a:hover{color:#ff8790!important;}
/* Compatibility for the older events-list widget and its inline style classes. */
html.hhm-site-dark :is(.tribe-events-list-widget,.tribe-events-adv-list-widget,.tribe-mini-calendar-list-wrapper) :is(
  .tribe-event-title,.tribe-event-title a,.tribe-event-date-start,.tribe-event-time,
  .tribe-events-widget-link a,.tribe-events-widget-link,
  .tribe-events-event-meta,.tribe-events-list-widget-events a
){color:#f4eee9!important;}
html.hhm-site-dark :is(.tribe-events-list-widget,.tribe-events-adv-list-widget) :is(time,small,.tribe-event-duration){color:#c9c3c0!important;}

/* Accessibility: one always-available switch, not a full-screen overlay. */
.hhm-site-mode-toggle{box-sizing:border-box!important;position:fixed!important;z-index:2147483000!important;right:22px!important;bottom:22px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:46px!important;padding:10px 16px!important;background:#f7f2ea!important;color:#19191d!important;border:1px solid #b8b0a7!important;border-radius:999px!important;box-shadow:0 5px 22px #0003!important;cursor:pointer!important;font:600 12px/1.3 'Be Vietnam Pro',Arial,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease!important;}
.hhm-site-mode-toggle:hover{box-shadow:0 7px 25px #0005!important;transform:translateY(-2px)!important;}
.hhm-site-mode-toggle:focus-visible{outline:3px solid #ee5963!important;outline-offset:3px!important;}
.hhm-site-mode-icon{width:19px!important;height:19px!important;flex:0 0 19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.hhm-site-mode-icon--moon{fill:currentColor!important;stroke:none!important;}
.hhm-site-mode-icon--sun{display:none!important;}
.hhm-site-mode-toggle .hhm-site-mode-label{font:inherit!important;letter-spacing:0!important;color:inherit!important;}
html.hhm-site-dark .hhm-site-mode-toggle{background:#27282e!important;border-color:#666067!important;color:#f7ede7!important;}
html.hhm-site-dark .hhm-site-mode-icon--moon{display:none!important;}
html.hhm-site-dark .hhm-site-mode-icon--sun{display:block!important;}
html.hhm-site-dark .hhm-site-mode-toggle:hover{background:#383942!important;}
@media(max-width:600px){.hhm-site-mode-toggle{right:13px!important;bottom:13px!important;padding:10px 13px!important;min-height:44px!important;font-size:11px!important;}}
@media(prefers-reduced-motion:reduce){.hhm-site-mode-toggle{transition:none!important;}}
