/*
Theme Name: Sarah's Haunted History
Theme URI: https://sarahshauntedhistory.com
Description: Kadence child theme for Sarah's Haunted History - dark, cinematic, violet brand system.
Author: Sarah's Haunted History
Template: kadence
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: shh-theme
*/

/* =========================================================
   1. Brand tokens (shared CSS contract)
   ========================================================= */
:root {
  --shh-black: #09070C;
  --shh-plum: #28132F;
  --shh-purple: #663078;
  --shh-violet: #BD4BCB;
  --shh-lavender: #DDA5E9;
  --shh-ivory: #F0E6EF;
  --shh-text: #E6DCE6;
  --shh-muted: #A795A8;
  --shh-border: rgba(189, 75, 203, .35);
  --shh-border-soft: rgba(189, 75, 203, .18);
  --shh-font-display: 'Cinzel', Georgia, serif;
  --shh-font-serif: 'Cormorant Garamond', Georgia, serif;
  --shh-font-body: 'Inter', system-ui, sans-serif;
  --shh-radius: 6px;
  --shh-glow: 0 0 24px rgba(189, 75, 203, .45);
  --shh-glow-soft: 0 0 18px rgba(189, 75, 203, .25);
  --shh-gradient: linear-gradient(135deg, #663078 0%, #BD4BCB 100%);
  --shh-ease: cubic-bezier(.2, .7, .2, 1);

  /* Re-supply fallbacks on Kadence's font variables (Kadence outputs bare family names). */
  --global-heading-font-family: var(--shh-font-display);
  --global-body-font-family: var(--shh-font-body);
  --global-fallback-font: Georgia, serif;
  --global-fallback-body-font: system-ui, sans-serif;
}

/* =========================================================
   2. Base
   ========================================================= */
html { scroll-behavior: smooth; }
body.shh-theme {
  background: var(--shh-black);
  color: var(--shh-text);
  font-family: var(--shh-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--shh-violet); color: var(--shh-ivory); }
::-moz-selection { background: var(--shh-violet); color: var(--shh-ivory); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.site-title, .entry-title, .widget-title, .archive-title {
  font-family: var(--shh-font-display);
  font-weight: 600;
  color: var(--shh-ivory);
  letter-spacing: .01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }

a { color: var(--shh-lavender); text-decoration: none; transition: color .2s var(--shh-ease); }
a:hover, a:focus { color: var(--shh-violet); }
.entry-content a:not(.button):not(.wp-block-button__link):not(.shh-btn):not(.shh-card):not(.wp-element-button) {
  text-decoration: underline;
  text-decoration-color: var(--shh-border);
  text-underline-offset: .18em;
  transition: color .2s var(--shh-ease), text-decoration-color .2s var(--shh-ease);
}
.entry-content a:not(.button):not(.wp-block-button__link):not(.shh-btn):hover { text-decoration-color: currentColor; }

em, i, .shh-italic, .has-drop-cap:first-letter, .wp-block-pullquote p, .wp-block-quote p {
  font-family: var(--shh-font-serif);
}
.shh-italic {
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.45;
  color: var(--shh-lavender);
}
.shh-italic--ivory { color: var(--shh-ivory); }
.is-style-shh-lead, .shh-lead {
  font-family: var(--shh-font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--shh-ivory);
}
:focus-visible { outline: 2px solid var(--shh-violet); outline-offset: 3px; border-radius: 2px; }

hr, .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--shh-border);
  max-width: none;
  opacity: 1;
}
.wp-block-separator.is-style-wide, .wp-block-separator:not(.is-style-dots) { background: none; height: 0; }

/* Kadence wrappers transparent so Midnight Black shows through */
.site, .content-area, .site-container, .content-bg, .content-wrap, .site-content, .page-hero-section, .entry-hero {
  background-color: transparent;
}
body.shh-theme .content-bg, body.shh-theme .content-wrap, body.shh-theme .content-style-boxed .content-bg { background: transparent; box-shadow: none; }

/* =========================================================
   3. Section + text utilities
   ========================================================= */
.shh-section { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); position: relative; }
/* Sections carry their own backgrounds, so they should touch: no stacked block margins between them. */
.entry-content > .shh-section, .entry-content > .wp-block-cover, .entry-content > .shh-newsletter-strip { margin-block: 0; }
/* Block-level inline padding on home sections is too tall; keep hero/newsletter as set, trim the rest. */
.entry-content > .shh-section:not(.shh-hero):not(.shh-newsletter-strip) { padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.75rem) !important; }
.shh-section--plum { background: var(--shh-plum); border-top: 1px solid var(--shh-border-soft); border-bottom: 1px solid var(--shh-border-soft); }
.shh-section--black { background: var(--shh-black); }
.shh-section--gradient {
  background: radial-gradient(120% 90% at 20% 0%, rgba(102, 48, 120, .55) 0%, rgba(40, 19, 47, .9) 45%, var(--shh-black) 100%);
}

.shh-eyebrow {
  display: block;
  font-family: var(--shh-font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--shh-lavender);
  margin-bottom: .9rem;
}

.shh-heading-rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  margin: 0 0 2rem;
  font-family: var(--shh-font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  letter-spacing: .04em;
  text-align: center;
  color: var(--shh-ivory);
}
.shh-heading-rule::before, .shh-heading-rule::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shh-violet));
  opacity: .7;
}
.shh-heading-rule::after { background: linear-gradient(90deg, var(--shh-violet), transparent); }
.shh-heading-rule--left::before { display: none; }

/* =========================================================
   4. Buttons
   ========================================================= */
.shh-btn,
.wp-block-button__link,
.wp-element-button,
.button,
.kb-button,
button:not(.menu-toggle-open):not(.menu-toggle-close):not(.drawer-toggle):not(.search-toggle-open):not(.components-button):not(.drawer-sub-toggle):not(.dropdown-nav-toggle):not(.search-submit),
input[type="submit"],
input[type="button"],
.wp-block-search__button,
.kadence-svg-iconset ~ .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  font-family: var(--shh-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.1;
  text-decoration: none;
  color: var(--shh-ivory);
  background: var(--shh-gradient);
  border: 1px solid rgba(189, 75, 203, .35);
  border-radius: var(--shh-radius);
  box-shadow: 0 0 0 rgba(189, 75, 203, 0);
  cursor: pointer;
  transition: transform .2s var(--shh-ease), box-shadow .2s var(--shh-ease), background-color .2s var(--shh-ease), border-color .2s var(--shh-ease), color .2s var(--shh-ease), filter .2s var(--shh-ease);
}
.shh-btn:hover, .shh-btn:focus-visible,
.wp-block-button__link:hover, .wp-element-button:hover,
.button:hover, .kb-button:hover,
button:not(.menu-toggle-open):not(.menu-toggle-close):not(.drawer-toggle):not(.search-toggle-open):not(.components-button):not(.drawer-sub-toggle):not(.dropdown-nav-toggle):not(.search-submit):hover,
input[type="submit"]:hover, input[type="button"]:hover, .wp-block-search__button:hover {
  color: var(--shh-ivory);
  transform: translateY(-1px);
  box-shadow: var(--shh-glow);
  filter: brightness(1.06);
}
.shh-btn:active, .wp-block-button__link:active, .button:active { transform: translateY(0); }

/* Secondary / outline */
.shh-btn--secondary,
.is-style-outline .wp-block-button__link,
.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button,
.button.button-style-outline,
.button.is-style-outline,
.shh-btn.is-style-outline {
  background: rgba(9, 7, 12, .55);
  color: var(--shh-ivory);
  border: 1px solid var(--shh-violet);
  box-shadow: none;
}
.shh-btn--secondary:hover, .shh-btn--secondary:focus-visible,
.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover,
.button.button-style-outline:hover {
  background: rgba(102, 48, 120, .35);
  border-color: var(--shh-lavender);
  color: var(--shh-ivory);
  box-shadow: var(--shh-glow-soft);
  filter: none;
}
.shh-btn--ghost { background: transparent; border-color: transparent; color: var(--shh-lavender); padding-inline: .6em; }
.shh-btn--ghost:hover { background: transparent; box-shadow: none; color: var(--shh-violet); transform: none; }
.shh-btn--sm { font-size: 11.5px; padding: .7em 1.2em; }
.shh-btn--lg { font-size: 14px; padding: 1em 2em; }
.shh-btn .shh-arrow { transition: transform .2s var(--shh-ease); }
.shh-btn:hover .shh-arrow { transform: translateX(3px); }
.wp-block-button__link { border-radius: var(--shh-radius) !important; }

/* =========================================================
   5. Cards
   ========================================================= */
.shh-card,
.loop-entry .content-bg,
.loop-entry.type-post,
.loop-entry.type-page,
.wp-block-group.is-style-shh-card,
.wp-block-column.is-style-shh-card {
  position: relative;
  background: var(--shh-plum);
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
  overflow: hidden;
  color: var(--shh-text);
  transition: transform .22s var(--shh-ease), box-shadow .22s var(--shh-ease), border-color .22s var(--shh-ease);
}
.shh-card:hover, .shh-card:focus-within,
.loop-entry.type-post:hover, .loop-entry .content-bg:hover,
.wp-block-group.is-style-shh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shh-glow), 0 18px 40px -20px rgba(0, 0, 0, .8);
  border-color: rgba(189, 75, 203, .65);
}
.shh-card__media, .loop-entry .post-thumbnail { display: block; overflow: hidden; }
.shh-card__media img, .loop-entry .post-thumbnail img { display: block; width: 100%; height: auto; transition: transform .5s var(--shh-ease), filter .5s var(--shh-ease); }
.shh-card:hover .shh-card__media img, .loop-entry:hover .post-thumbnail img { transform: scale(1.04); }
.shh-card__body, .loop-entry .entry-content-wrap { padding: 1.25rem 1.25rem 1.4rem; }
.shh-card__label, .loop-entry .entry-taxonomies a, .entry-taxonomies .category-links a {
  display: inline-block;
  font-family: var(--shh-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--shh-violet);
  margin-bottom: .5rem;
}
.shh-card__title, .loop-entry .entry-title { font-size: 1.15rem; margin: 0 0 .45rem; }
.shh-card__title a, .loop-entry .entry-title a { color: var(--shh-ivory); }
.shh-card__title a:hover, .loop-entry .entry-title a:hover { color: var(--shh-lavender); }
.shh-card__excerpt, .loop-entry .entry-summary p { font-family: var(--shh-font-serif); font-size: 1.05rem; color: var(--shh-text); margin: 0 0 .9rem; }
.shh-card__more, .loop-entry .post-more-link, .more-link {
  font-family: var(--shh-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--shh-lavender);
}
.shh-card__more:hover, .more-link:hover { color: var(--shh-violet); }
.shh-card--link::after { content: ""; position: absolute; inset: 0; }
.shh-card--plain { background: transparent; border-color: transparent; }
.entry-meta, .entry-meta a, .loop-entry .entry-meta { color: var(--shh-muted); font-size: .85rem; }
.loop-entry.type-post.kadence-blog-entry, .content-bg.loop-entry-theme { background: var(--shh-plum); }

/* =========================================================
   6. Header
   ========================================================= */
.site-header, #masthead, .site-header-wrap, .site-header-inner-wrap { background: var(--shh-black); }
.site-top-header-wrap .site-header-row-container-inner { background: var(--shh-black); border-bottom: 1px solid var(--shh-border-soft); }
.site-main-header-wrap .site-header-row-container-inner { background: var(--shh-black); border-bottom: 1px solid var(--shh-border); }
.site-header-row-container { background: transparent; }
#masthead .site-header-row-container-inner { position: relative; }
/* soft violet haze under the header, like the mockup */
.site-main-header-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(189, 75, 203, .55) 35%, rgba(189, 75, 203, .55) 65%, transparent);
  pointer-events: none;
}

/* Logo */
.site-branding .brand { display: inline-flex; align-items: center; }
.site-branding .brand .shh-logo, .site-branding .brand svg.custom-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  transition: filter .25s var(--shh-ease);
}
.site-branding .brand:hover .shh-logo { filter: drop-shadow(0 0 10px rgba(189, 75, 203, .45)); }
.mobile-site-branding .brand .shh-logo { height: 40px; }
.item-is-stuck .site-branding .brand .shh-logo { height: 44px; }
.site-branding .site-title, .site-branding .site-description { display: none; }

/* Primary navigation */
.header-navigation .header-menu-container > ul > li > a,
.header-navigation ul li a {
  font-family: var(--shh-font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--shh-lavender);
  transition: color .2s var(--shh-ease);
}
.header-navigation .header-menu-container > ul > li > a:hover,
.header-navigation .header-menu-container > ul > li > a:focus,
.header-navigation .header-menu-container > ul > li.current-menu-item > a,
.header-navigation .header-menu-container > ul > li.current-menu-ancestor > a { color: var(--shh-ivory); }
/* violet underline (hover + current) */
.header-navigation .header-menu-container > ul > li > a { position: relative; }
.header-navigation .header-menu-container > ul > li > a::after {
  content: "";
  position: absolute;
  left: 1em; right: 1em; bottom: .35em;
  height: 1px;
  background: var(--shh-violet);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s var(--shh-ease), opacity .22s var(--shh-ease);
  opacity: 0;
  box-shadow: 0 0 8px rgba(189, 75, 203, .6);
}
.header-navigation .header-menu-container > ul > li > a:hover::after,
.header-navigation .header-menu-container > ul > li.current-menu-item > a::after,
.header-navigation .header-menu-container > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); opacity: 1; }
/* suppress Kadence's own underline style animation in favour of ours */
.header-navigation-style-underline .header-menu-container > ul > li > a:before { display: none; }
/* dropdowns */
.header-navigation ul ul.sub-menu, .header-navigation ul ul.submenu {
  background: var(--shh-plum);
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .85), var(--shh-glow-soft);
  padding: .35rem 0;
}
.header-navigation ul ul li a { font-size: 11.5px; letter-spacing: .1em; padding: .7em 1.2em; color: var(--shh-text); background: transparent; border-bottom: 0; }
.header-navigation ul ul li a:hover, .header-navigation ul ul li.current-menu-item > a { color: var(--shh-ivory); background: rgba(189, 75, 203, .12); }
.header-navigation .dropdown-nav-special-toggle, .header-navigation .dropdown-nav-toggle { color: inherit; }

/* Secondary (Account) nav in the top bar */
.site-top-header-wrap .secondary-navigation ul li a,
.site-top-header-wrap .header-navigation .header-menu-container > ul > li > a {
  font-family: var(--shh-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shh-lavender);
  padding-top: .55em; padding-bottom: .55em;
}
.site-top-header-wrap .header-navigation .header-menu-container > ul > li > a::after { display: none; }
.site-top-header-wrap .secondary-navigation ul li a:hover { color: var(--shh-ivory); }
.site-top-header-wrap .secondary-navigation ul li + li::before {
  content: "";
  display: inline-block;
  width: 1px; height: .8em;
  background: var(--shh-border);
  vertical-align: middle;
}
.site-top-header-wrap .secondary-navigation ul li { display: inline-flex; align-items: center; }

/* Header button -> primary gradient */
.header-button, .mobile-header-button, .header-button-wrap .button, .mobile-button-wrap .button {
  background: var(--shh-gradient) !important;
  color: var(--shh-ivory) !important;
  border: 1px solid rgba(189, 75, 203, .35) !important;
  border-radius: var(--shh-radius);
  font-family: var(--shh-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75em 1.35em;
  box-shadow: none;
}
.header-button:hover, .mobile-header-button:hover, .header-button-wrap .button:hover, .mobile-button-wrap .button:hover {
  box-shadow: var(--shh-glow) !important;
  transform: translateY(-1px);
}
.header-button-wrap { margin-left: .75rem; }

/* Sticky header: Midnight Black at 95% */
#masthead .item-is-stuck, .item-is-stuck .site-header-row-container-inner, .site-header-row-container-inner.item-is-stuck {
  background: rgba(9, 7, 12, .95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--shh-border);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9);
}

/* Mobile trigger + drawer */
.mobile-toggle-open-container .menu-toggle-open { color: var(--shh-lavender); border-color: var(--shh-border); border-radius: var(--shh-radius); transition: color .2s, border-color .2s, box-shadow .2s; }
.mobile-toggle-open-container .menu-toggle-open:hover, .mobile-toggle-open-container .menu-toggle-open:focus { color: var(--shh-ivory); border-color: var(--shh-violet); box-shadow: var(--shh-glow-soft); }
#mobile-drawer .drawer-inner { background: var(--shh-plum); border-left: 1px solid var(--shh-border); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .9); }
#mobile-drawer .drawer-overlay { background: rgba(9, 7, 12, .7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#mobile-drawer .drawer-header .menu-toggle-close { color: var(--shh-lavender); }
#mobile-drawer .drawer-header .menu-toggle-close:hover { color: var(--shh-ivory); }
#mobile-drawer .mobile-navigation ul li a,
#mobile-drawer .mobile-navigation .menu > li > a {
  font-family: var(--shh-font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--shh-lavender);
  padding: .9em 0;
}
#mobile-drawer .mobile-navigation ul li a:hover,
#mobile-drawer .mobile-navigation ul li.current-menu-item > a { color: var(--shh-ivory); }
#mobile-drawer .mobile-navigation ul li { border-bottom: 1px solid rgba(189, 75, 203, .22); }
#mobile-drawer .mobile-navigation ul ul li a { font-family: var(--shh-font-body); font-size: 12px; letter-spacing: .08em; color: var(--shh-text); }
#mobile-drawer .drawer-nav-drop-wrap .drawer-sub-toggle { color: var(--shh-lavender); background: transparent; border: 0; border-left: 1px solid rgba(189, 75, 203, .22); border-radius: 0; box-shadow: none; padding: 0 .9em; transition: color .2s var(--shh-ease); }
#mobile-drawer .drawer-nav-drop-wrap .drawer-sub-toggle:hover { color: var(--shh-ivory); transform: none; }
#mobile-drawer .mobile-html .shh-drawer-account a, #mobile-drawer .inner-link-style-normal a.shh-drawer-link { text-decoration: none; }
#mobile-drawer .mobile-html { width: 100%; }
#mobile-drawer .mobile-button-wrap { margin-top: 1.5rem; }
#mobile-drawer .mobile-header-button { width: 100%; justify-content: center; display: inline-flex; }
/* Account links inside the drawer (secondary menu is appended via the mobile HTML element) */
#mobile-drawer .shh-drawer-account { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--shh-border-soft); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
#mobile-drawer .shh-drawer-account a { font-family: var(--shh-font-body); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--shh-muted); text-decoration: none !important; }
#mobile-drawer .shh-drawer-account a:hover { color: var(--shh-lavender); }

/* =========================================================
   7. Footer
   ========================================================= */
.site-footer, #colophon, .site-footer-wrap { background: var(--shh-black); color: var(--shh-text); }
.site-middle-footer-wrap .site-footer-row-container-inner { background: var(--shh-black); border-top: 1px solid var(--shh-border); }
.site-bottom-footer-wrap .site-footer-row-container-inner { background: var(--shh-black); border-top: 1px solid var(--shh-border-soft); }
.site-footer .widget-title, .site-footer h2, .site-footer h3, .site-footer .footer-widget-area-inner > h2 {
  font-family: var(--shh-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--shh-lavender);
  margin: 0 0 1rem;
}
.site-footer .widget { margin-bottom: 1.5rem; }
.site-footer .widget:last-child { margin-bottom: 0; }
.site-footer p { font-size: .92rem; color: var(--shh-text); }
.site-footer .shh-footer-blurb { font-size: .9rem; line-height: 1.6; margin: 0 0 .75rem; color: var(--shh-text); }
.site-footer .shh-footer-blurb + .shh-footer-blurb { color: var(--shh-muted); }
.site-footer .shh-logo-link { display: inline-block; margin-bottom: 1rem; }
.site-footer .shh-logo-link .shh-logo { height: 52px; width: auto; display: block; transition: filter .25s var(--shh-ease); }
.site-footer .shh-logo-link:hover .shh-logo { filter: drop-shadow(0 0 10px rgba(189, 75, 203, .45)); }
.site-footer .footer-widget-area a:not(.button):not(.shh-btn) { color: var(--shh-text); }
.site-footer .footer-widget-area a:not(.button):not(.shh-btn):hover { color: var(--shh-lavender); }
/* menu widget as a simple list */
.site-footer .widget_nav_menu ul, .site-footer .footer-navigation ul, .site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .widget_nav_menu ul li, .site-footer .footer-navigation ul li { margin: 0 0 .45rem; padding: 0; }
.site-footer .widget_nav_menu ul li a, .site-footer .footer-navigation ul li a { font-size: .92rem; color: var(--shh-text); display: inline-block; padding: 0; }
.site-footer .widget_nav_menu ul li a:hover, .site-footer .footer-navigation ul li a:hover { color: var(--shh-lavender); transform: translateX(2px); }
.site-footer .widget_nav_menu ul li a { transition: color .2s var(--shh-ease), transform .2s var(--shh-ease); }
.site-footer .widget_nav_menu ul ul { display: none; }
/* social */
.site-footer .footer-social-wrap, .site-footer .shh-social { display: flex; gap: .6rem; flex-wrap: wrap; }
.site-footer .footer-social-inner-wrap { gap: .6rem; }
.site-footer .social-button, .site-footer .shh-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--shh-radius);
  color: var(--shh-lavender);
  background: rgba(189, 75, 203, .08);
  border: 1px solid var(--shh-border);
  transition: transform .2s var(--shh-ease), box-shadow .2s var(--shh-ease), background-color .2s var(--shh-ease), color .2s var(--shh-ease), border-color .2s var(--shh-ease);
}
.site-footer .social-button:hover, .site-footer .shh-social a:hover {
  color: var(--shh-ivory);
  background: var(--shh-purple);
  border-color: var(--shh-violet);
  transform: translateY(-2px);
  box-shadow: var(--shh-glow-soft);
}
.site-footer .social-button svg, .site-footer .shh-social svg { width: 18px; height: 18px; fill: currentColor; }
/* footer-social element sitting under the widget heading: stack column items */
.site-middle-footer-inner-wrap .site-footer-section { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.site-middle-footer-inner-wrap .site-footer-section > .footer-widget-area { width: 100%; }
.site-footer .footer-social-wrap { margin-top: -.25rem; }
/* bottom bar */
.site-bottom-footer-wrap .footer-html, .site-bottom-footer-wrap .footer-html p { font-size: 12.5px; color: var(--shh-muted); text-align: center; margin: 0; letter-spacing: .02em; }
.site-bottom-footer-wrap .footer-html a { color: var(--shh-lavender); }
.site-footer .footer-widget-area-inner { font-size: .92rem; }

/* =========================================================
   8. Forms & inputs
   ========================================================= */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea,
.wp-block-search__input, .shh-input {
  background: #1C0F22;
  color: var(--shh-ivory);
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
  padding: .7em .9em;
  font-family: var(--shh-font-body);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .2s var(--shh-ease), box-shadow .2s var(--shh-ease), background-color .2s var(--shh-ease);
}
input::placeholder, textarea::placeholder { color: var(--shh-muted); opacity: 1; }
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus,
input[type="number"]:focus, input[type="tel"]:focus, select:focus, textarea:focus, .wp-block-search__input:focus, .shh-input:focus {
  outline: none;
  border-color: var(--shh-violet);
  box-shadow: 0 0 0 3px rgba(189, 75, 203, .25), var(--shh-glow-soft);
  background: #22122A;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--shh-lavender) 50%), linear-gradient(135deg, var(--shh-lavender) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; -webkit-appearance: none; appearance: none; padding-right: 2.2em; }
label, legend { color: var(--shh-text); font-size: .9rem; font-weight: 500; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--shh-violet); }
.wp-block-search__inside-wrapper { border: 0; padding: 0; gap: .5rem; }
.wp-block-search__button-inside .wp-block-search__inside-wrapper { background: #1C0F22; border: 1px solid var(--shh-border); border-radius: var(--shh-radius); }

/* =========================================================
   9. Content blocks
   ========================================================= */
blockquote, .wp-block-quote {
  font-family: var(--shh-font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--shh-lavender);
  border-left: 2px solid var(--shh-violet);
  padding: .4rem 0 .4rem 1.4rem;
  margin: 2rem 0;
  background: transparent;
}
blockquote cite, .wp-block-quote cite { font-family: var(--shh-font-body); font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--shh-muted); }
.wp-block-pullquote { border-top: 1px solid var(--shh-border); border-bottom: 1px solid var(--shh-border); color: var(--shh-ivory); }
.wp-block-pullquote blockquote { border-left: 0; padding-left: 0; }
.wp-block-table table, table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th, table td, table th { border: 1px solid var(--shh-border-soft); padding: .65em .8em; }
table th, .wp-block-table th { font-family: var(--shh-font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--shh-lavender); background: rgba(40, 19, 47, .8); }
table tr:nth-child(even) td { background: rgba(40, 19, 47, .35); }
code, kbd, pre { background: #1C0F22; color: var(--shh-lavender); border: 1px solid var(--shh-border-soft); border-radius: 4px; }
pre { padding: 1rem; }
code { padding: .1em .35em; }
figcaption, .wp-element-caption { font-family: var(--shh-font-serif); font-style: italic; color: var(--shh-muted); font-size: .95rem; }
.wp-block-image img, .entry-content img { border-radius: var(--shh-radius); }
.wp-block-cover, .wp-block-media-text { border-radius: var(--shh-radius); overflow: hidden; }
.has-shh-plum-background-color { background: var(--shh-plum); }
.has-theme-palette-7-background-color { background: var(--shh-plum) !important; }
.wp-block-group.has-background { border-radius: var(--shh-radius); }
.wp-block-details, details { border: 1px solid var(--shh-border); border-radius: var(--shh-radius); padding: .8rem 1rem; background: rgba(40, 19, 47, .5); }
summary { font-family: var(--shh-font-display); color: var(--shh-ivory); cursor: pointer; }
.wp-block-latest-posts li a, .widget ul li a { color: var(--shh-text); }
.entry-hero .entry-header, .page-hero-section .entry-header, .entry-hero-container-inner { background: transparent; }
.entry-hero.page-hero-section .entry-hero-container-inner { background: linear-gradient(180deg, var(--shh-plum), var(--shh-black)); border-bottom: 1px solid var(--shh-border-soft); }
.entry-hero .entry-title, .page-title, .entry-header .entry-title { color: var(--shh-ivory); }
.kadence-breadcrumbs, .kadence-breadcrumbs a, .entry-header .entry-meta { color: var(--shh-muted); font-size: .8rem; letter-spacing: .06em; }
.single .entry-content, .page .entry-content { font-size: 1.05rem; }
.single .entry-content > p:first-of-type { font-family: var(--shh-font-serif); font-size: 1.3rem; line-height: 1.5; color: var(--shh-ivory); }
.entry-tags a, .tags-links a, .post-tags a { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--shh-lavender); border: 1px solid var(--shh-border); border-radius: 999px; padding: .25em .8em; margin: 0 .3em .4em 0; background: transparent; transition: all .2s var(--shh-ease); }
.entry-tags a:hover, .tags-links a:hover { background: var(--shh-purple); color: var(--shh-ivory); border-color: var(--shh-violet); }
.post-navigation .nav-links a, .pagination .page-numbers, .nav-links .page-numbers { color: var(--shh-lavender); border: 1px solid var(--shh-border); border-radius: var(--shh-radius); background: transparent; transition: all .2s var(--shh-ease); }
.pagination .page-numbers.current, .nav-links .page-numbers.current { background: var(--shh-gradient); color: var(--shh-ivory); border-color: transparent; }
.pagination .page-numbers:hover, .post-navigation .nav-links a:hover { border-color: var(--shh-violet); box-shadow: var(--shh-glow-soft); color: var(--shh-ivory); }
.comment-body, .comment-respond { background: var(--shh-plum); border: 1px solid var(--shh-border-soft); border-radius: var(--shh-radius); padding: 1.25rem; }
.comment-metadata, .comment-metadata a, .comment-reply-link { color: var(--shh-muted); font-size: .8rem; }
.site-main-header-wrap .search-toggle-open, .search-toggle-open-container .search-toggle-open { color: var(--shh-lavender); }
#search-drawer .drawer-inner { background: rgba(9, 7, 12, .95); }
#search-drawer .drawer-inner form input.search-field { background: #1C0F22; border-color: var(--shh-border); color: var(--shh-ivory); }
.primary-sidebar .widget, .secondary-sidebar .widget { background: var(--shh-plum); border: 1px solid var(--shh-border-soft); border-radius: var(--shh-radius); padding: 1.25rem; }
.primary-sidebar .widget-title, .secondary-sidebar .widget-title { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--shh-lavender); }
.wp-block-calendar table caption, .wp-block-calendar table th { color: var(--shh-lavender); }
.scroll-up-wrap { background: var(--shh-purple); color: var(--shh-ivory); border: 1px solid var(--shh-border); border-radius: var(--shh-radius); }
.scroll-up-wrap:hover { background: var(--shh-violet); box-shadow: var(--shh-glow); }
#kt-scroll-up, #kt-scroll-up-reader { background: var(--shh-purple); color: var(--shh-ivory); border-radius: var(--shh-radius); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   10. bbPress (forums) + plugin front-ends
   ========================================================= */
#bbpress-forums { font-family: var(--shh-font-body); font-size: 15px; color: var(--shh-text); }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results {
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
  overflow: hidden;
  background: var(--shh-plum);
}
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer {
  background: #1C0F22;
  border-top: 1px solid var(--shh-border-soft);
  border-bottom: 1px solid var(--shh-border-soft);
  color: var(--shh-lavender);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .7em 1em;
}
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--shh-border-soft); padding: .9em 1em; transition: background-color .2s var(--shh-ease); }
#bbpress-forums li.bbp-body ul.forum:hover, #bbpress-forums li.bbp-body ul.topic:hover { background: rgba(189, 75, 203, .06); }
#bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { font-size: 15px; }
#bbpress-forums div.odd, #bbpress-forums ul.odd { background: transparent; }
#bbpress-forums div.even, #bbpress-forums ul.even { background: rgba(9, 7, 12, .3); }
#bbpress-forums li.bbp-forum-info a.bbp-forum-title, #bbpress-forums li.bbp-topic-title a.bbp-topic-permalink {
  font-family: var(--shh-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--shh-ivory);
  letter-spacing: .01em;
}
#bbpress-forums li.bbp-forum-info a.bbp-forum-title:hover, #bbpress-forums li.bbp-topic-title a.bbp-topic-permalink:hover { color: var(--shh-lavender); }
#bbpress-forums .bbp-forum-content, #bbpress-forums p.bbp-topic-meta, #bbpress-forums .bbp-topic-freshness, #bbpress-forums li.bbp-forum-freshness, #bbpress-forums .bbp-topic-voice-count, #bbpress-forums .bbp-topic-reply-count, #bbpress-forums .bbp-forum-topic-count, #bbpress-forums .bbp-forum-reply-count {
  color: var(--shh-muted);
  font-size: .85rem;
}
#bbpress-forums .bbp-forum-content { font-family: var(--shh-font-serif); font-size: 1rem; }
#bbpress-forums p.bbp-topic-meta a, #bbpress-forums .bbp-topic-freshness a { color: var(--shh-lavender); }
#bbpress-forums div.bbp-breadcrumb, #bbpress-forums div.bbp-topic-tags { font-size: 12px; letter-spacing: .06em; color: var(--shh-muted); }
#bbpress-forums div.bbp-breadcrumb a { color: var(--shh-lavender); }
#bbpress-forums div.bbp-breadcrumb .bbp-breadcrumb-sep { color: var(--shh-border); }
/* topic & replies */
#bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header {
  background: #1C0F22;
  border-top: 1px solid var(--shh-border-soft);
  color: var(--shh-muted);
  font-size: .8rem;
}
#bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content { color: var(--shh-text); }
#bbpress-forums div.bbp-reply-content p, #bbpress-forums div.bbp-topic-content p { font-size: 1rem; line-height: 1.65; }
#bbpress-forums div.bbp-reply-author, #bbpress-forums div.bbp-topic-author { color: var(--shh-muted); }
#bbpress-forums div.bbp-reply-author a.bbp-author-name, #bbpress-forums div.bbp-topic-author a.bbp-author-name { color: var(--shh-lavender); font-weight: 600; }
#bbpress-forums div.bbp-reply-author img.avatar, #bbpress-forums div.bbp-topic-author img.avatar { border: 1px solid var(--shh-border); border-radius: 999px; }
#bbpress-forums .bbp-reply-ip, #bbpress-forums .bbp-admin-links { color: var(--shh-muted); }
#bbpress-forums .bbp-admin-links a { color: var(--shh-muted); }
#bbpress-forums .bbp-admin-links a:hover { color: var(--shh-lavender); }
#bbpress-forums .bbp-pagination-links a, #bbpress-forums .bbp-pagination-links span.current {
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
  color: var(--shh-lavender);
  background: transparent;
  padding: .3em .7em;
}
#bbpress-forums .bbp-pagination-links span.current { background: var(--shh-gradient); color: var(--shh-ivory); border-color: transparent; }
#bbpress-forums .bbp-pagination-links a:hover { border-color: var(--shh-violet); color: var(--shh-ivory); }
#bbpress-forums .bbp-pagination-count { color: var(--shh-muted); font-size: .85rem; }
/* forms (new topic / reply) */
#bbpress-forums fieldset.bbp-form {
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
  background: var(--shh-plum);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
#bbpress-forums fieldset.bbp-form legend { font-family: var(--shh-font-display); font-size: 1.1rem; color: var(--shh-ivory); padding: 0 .4em; }
#bbpress-forums fieldset.bbp-form label { color: var(--shh-lavender); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
#bbpress-forums fieldset.bbp-form input[type="text"], #bbpress-forums fieldset.bbp-form textarea, #bbpress-forums fieldset.bbp-form select, #bbpress-forums #bbp_topic_title, #bbpress-forums #bbp_topic_tags, #bbpress-forums #bbp_reply_content, #bbpress-forums #bbp_topic_content {
  width: 100%;
  background: #1C0F22;
  color: var(--shh-ivory);
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
}
#bbpress-forums fieldset.bbp-form textarea:focus, #bbpress-forums fieldset.bbp-form input:focus { border-color: var(--shh-violet); box-shadow: 0 0 0 3px rgba(189, 75, 203, .25); outline: none; }
#bbpress-forums div.bbp-submit-wrapper button, #bbpress-forums .bbp-submit-wrapper .button { margin-top: .5rem; }
#bbpress-forums .wp-editor-container, #bbpress-forums .quicktags-toolbar, #bbpress-forums .wp-editor-tabs { background: #1C0F22; border-color: var(--shh-border-soft); }
#bbpress-forums .quicktags-toolbar input.ed_button { background: var(--shh-plum); color: var(--shh-lavender); border: 1px solid var(--shh-border-soft); font-size: 11px; text-transform: none; letter-spacing: 0; padding: .3em .6em; box-shadow: none; }
#bbpress-forums .quicktags-toolbar input.ed_button:hover { transform: none; box-shadow: none; border-color: var(--shh-violet); }
#bbpress-forums div.bbp-template-notice, div.indicator-hint, .bbp-template-notice {
  background: rgba(102, 48, 120, .25);
  border: 1px solid var(--shh-border);
  border-radius: var(--shh-radius);
  color: var(--shh-text);
}
#bbpress-forums div.bbp-template-notice.error, .bbp-template-notice.error { background: rgba(184, 33, 5, .15); border-color: rgba(184, 33, 5, .5); }
#bbpress-forums div.bbp-template-notice a { color: var(--shh-lavender); }
#bbpress-forums .bbp-login-form, #bbpress-forums #bbp-user-wrapper, #bbpress-forums .bbp-user-section { color: var(--shh-text); }
#bbpress-forums #bbp-user-navigation ul li a { color: var(--shh-lavender); }
#bbpress-forums #bbp-user-navigation ul li.current a { background: var(--shh-plum); border-radius: var(--shh-radius); color: var(--shh-ivory); }
#bbpress-forums #bbp-search-form #bbp_search { background: #1C0F22; color: var(--shh-ivory); border: 1px solid var(--shh-border); border-radius: var(--shh-radius); }
#bbpress-forums .bbp-search-form .button { margin-left: .5rem; }
#bbpress-forums #bbp-search-form { margin-bottom: 1.5rem; }
#bbpress-forums #bbp-search-form #bbp_search_submit { padding: .55em .9em; }
#bbpress-forums span.bbp-topic-pagination a.page-numbers { border: 1px solid var(--shh-border); color: var(--shh-lavender); background: transparent; }
#bbpress-forums .status-closed, #bbpress-forums .status-closed a { color: var(--shh-muted); }
#bbpress-forums .bbp-topic-title .bbp-row-actions a { color: var(--shh-muted); }
#bbpress-forums .bbp-forums-list .bbp-forum-title { color: var(--shh-text); }
#bbpress-forums .bbp-forums-list { font-size: .85rem; color: var(--shh-muted); }
#bbpress-forums .bbp-forums-list li { display: inline-block; margin-right: .8em; }
#bbpress-forums .bbp-forums-list li a { color: var(--shh-lavender); }
.bbp-topic-form, .bbp-reply-form { margin-top: 1rem; }
#bbpress-forums #subscription-toggle, #bbpress-forums #favorite-toggle { font-size: .8rem; letter-spacing: .06em; }
.bbp-user-profile .bbp-user-section { background: var(--shh-plum); border: 1px solid var(--shh-border-soft); border-radius: var(--shh-radius); padding: 1rem; }
/* Generic plugin front-ends (login/register/account forms, FluentSMTP, etc.) */
.login-form, .register-form, .entry-content form, .shh-form, .fluentform, .wp-login-form, form.bbp-login-form {
  color: var(--shh-text);
}
.entry-content form .button, .entry-content form input[type="submit"] { margin-top: .25rem; }
.woocommerce-message, .woocommerce-info, .notice, .wc-block-components-notice-banner { background: rgba(102, 48, 120, .25); border-color: var(--shh-violet); color: var(--shh-text); }
.password-input .show-password-input::after { color: var(--shh-lavender); }

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .site-branding .brand .shh-logo { height: 44px; }
  .header-navigation .header-menu-container > ul > li > a { font-size: 12px; letter-spacing: .12em; }
}
@media (max-width: 767px) {
  body.shh-theme { font-size: 15.5px; }
  .shh-section { padding-block: 2.5rem; }
  .shh-heading-rule { gap: .8rem; font-size: 1.3rem; }
  .site-branding .brand .shh-logo, .mobile-site-branding .brand .shh-logo { height: 40px; }
  .site-footer .shh-logo-link .shh-logo { height: 44px; }
  .site-footer .footer-widget-area { padding-bottom: .5rem; }
  .site-middle-footer-inner-wrap { row-gap: 1.75rem; }
  .site-footer .widget-title { margin-bottom: .75rem; }
  .shh-btn, .wp-block-button__link, .button { padding: .8em 1.3em; font-size: 12.5px; }
  blockquote, .wp-block-quote { font-size: 1.15rem; }
  .single .entry-content > p:first-of-type { font-size: 1.15rem; }
  /* bbPress loads its stylesheet after ours at render time, hence the !important here. */
  #bbpress-forums ul.bbp-forums li.bbp-header, #bbpress-forums ul.bbp-topics li.bbp-header { display: none !important; }
  #bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { display: block !important; }
  #bbpress-forums li.bbp-body ul.forum > li, #bbpress-forums li.bbp-body ul.topic > li { display: block !important; float: none !important; width: 100% !important; text-align: left !important; padding: .1em 0 !important; }
  #bbpress-forums li.bbp-body li.bbp-forum-topic-count, #bbpress-forums li.bbp-body li.bbp-forum-reply-count, #bbpress-forums li.bbp-body li.bbp-topic-voice-count, #bbpress-forums li.bbp-body li.bbp-topic-reply-count { display: inline-block !important; width: auto !important; margin-right: 1em; font-size: .8rem; color: var(--shh-muted); }
  #bbpress-forums li.bbp-body li.bbp-forum-topic-count::before { content: "Topics: "; }
  #bbpress-forums li.bbp-body li.bbp-forum-reply-count::before { content: "Replies: "; }
  #bbpress-forums li.bbp-body li.bbp-topic-voice-count::before { content: "Voices: "; }
  #bbpress-forums li.bbp-body li.bbp-topic-reply-count::before { content: "Replies: "; }
  #bbpress-forums li.bbp-body li.bbp-forum-freshness, #bbpress-forums li.bbp-body li.bbp-topic-freshness { font-size: .8rem; color: var(--shh-muted); margin-top: .2em; }
  #bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { padding: 1em 1em !important; }
  #bbpress-forums fieldset.bbp-form { padding: 1rem; }
  #bbpress-forums div.bbp-reply-author, #bbpress-forums div.bbp-topic-author { float: none; width: auto; text-align: left; display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
  #bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content { margin-left: 0; }
}
@media (max-width: 420px) {
  .site-branding .brand .shh-logo, .mobile-site-branding .brand .shh-logo { height: 36px; }
  .site-footer .social-button, .site-footer .shh-social a { width: 36px; height: 36px; }
}
