/* Dark Side of the Brain — Blogsy editorial styles
 * Complete replacement for /wp-content/themes/blogsy/assets/css/ds-sidebar-tuning.css
 * Version 1.0.13 — 17 November 2026
 * Retains the live starfield header, article typography and link colours.
 * Footer tuning: 11% shorter band, gold currents visually centered, top-only fade.
 */

/* Hide unfinished subscription UI; preserve the main header and social icons. */
.blogsy-topbar,
.pt-header-widget__button {
  display: none !important;
}

/* Readable, understated inline and footer links (dark theme). */
html[scheme="dark"] .single-content .single-content-inner a:not(.wp-element-button),
html[scheme="dark"] #site-footer .widget_block a {
  color: #c2b092;
  text-decoration-color: rgba(194, 176, 146, 0.52);
  text-underline-offset: 2px;
}
html[scheme="dark"] .single-content .single-content-inner a:not(.wp-element-button):hover,
html[scheme="dark"] #site-footer .widget_block a:hover {
  color: #d6c6aa;
  text-decoration-color: currentColor;
}

/* Corresponding accessible links (light theme). */
html[scheme="light"] .single-content .single-content-inner a:not(.wp-element-button),
html[scheme="light"] #site-footer .widget_block a {
  color: #756348;
  text-decoration-color: rgba(117, 99, 72, 0.54);
  text-underline-offset: 2px;
}
html[scheme="light"] .single-content .single-content-inner a:not(.wp-element-button):hover,
html[scheme="light"] #site-footer .widget_block a:hover {
  color: #59482f;
  text-decoration-color: currentColor;
}

/* Starfield header — small scattered stars, navy haze, elevated golden strands. */
#site-header .pt-header-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background-color 0.25s ease;
}
html[scheme="dark"] #site-header .pt-header-inner {
  background: linear-gradient(112deg, #131e2b 0%, #1c2a39 49%, #141f2d 100%);
  border-bottom: 1px solid rgba(196, 159, 99, 0.25);
  box-shadow: 0 5px 24px rgba(4, 12, 23, 0.2);
}
html[scheme="light"] #site-header .pt-header-inner {
  background: linear-gradient(112deg, #f2efe9 0%, #e6e9ec 51%, #f4f0e9 100%);
  border-bottom: 1px solid rgba(128, 107, 75, 0.22);
  box-shadow: 0 4px 18px rgba(27, 35, 43, 0.045);
}
#site-header .pt-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/ds-header-neural-stars-centered.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
html[scheme="dark"] #site-header .pt-header-inner::before {
  opacity: 0.96;
}
html[scheme="light"] #site-header .pt-header-inner::before {
  opacity: 0.19;
}
#site-header .pt-header-inner > .pt-header-container {
  position: relative;
  z-index: 1;
}
html[scheme="dark"] #site-header .pt-header-inner .pt-logo .site-title a {
  color: #f0eee9;
  text-shadow: 0 1px 14px rgba(1, 8, 18, 0.22);
}
html[scheme="light"] #site-header .pt-header-inner .pt-logo .site-title a {
  color: #243142;
}
.pt-header-layout-1 #site-header .pt-header-inner .pt-header-container::after {
  display: none !important;
}
@media (max-width: 767px) {
  html[scheme="dark"] #site-header .pt-header-inner::before { opacity: 0.77; }
  html[scheme="light"] #site-header .pt-header-inner::before { opacity: 0.14; }
}

/* Approved header variant 2: the bottom gently merges into the page. */
body.ds-header-fade #site-header .pt-header-inner {
  border-bottom: 0;
  box-shadow: none;
}
body.ds-header-fade #site-header .pt-header-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
html[scheme="dark"] body.ds-header-fade #site-header .pt-header-inner::after {
  background: linear-gradient(to bottom,
    rgba(31, 35, 40, 0) 12%,
    rgba(31, 35, 40, 0.05) 40%,
    rgba(31, 35, 40, 0.44) 73%,
    #1f2328 100%);
}
html[scheme="light"] body.ds-header-fade #site-header .pt-header-inner::after {
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0) 12%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.58) 75%,
    #fff 100%);
}

/* COPYRIGHT FOOTER — slightly shorter artwork, gold currents near center.
 * The pseudo-element stays anchored at the very bottom. The artwork extends
 * beyond its lower boundary, avoiding a visible cutoff or an empty gap.
 * Fade IN at the top, no fade-out at the bottom, copyright above the effect.
 */
#site-footer .site-default-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#site-footer .site-default-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(100px, 10.5vw, 155px);
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/ds-header-neural-stars-centered.svg");
  /* Keep full bleed at the lower edge while lowering the gold currents. */
  background-size: 100% calc(100% + 18px);
  background-repeat: no-repeat;
  background-position: center 12px;
  transform: none;
  /* Fade at the TOP only; the bottom must stay fully opaque. */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,0.12) 15%,
    rgba(0,0,0,0.55) 38%,
    rgba(0,0,0,0.90) 62%,
    #000 80%,
    #000 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,0.12) 15%,
    rgba(0,0,0,0.55) 38%,
    rgba(0,0,0,0.90) 62%,
    #000 80%,
    #000 100%);
}
html[scheme="dark"] #site-footer .site-default-footer::before {
  opacity: 0.86;
}
html[scheme="light"] #site-footer .site-default-footer::before {
  opacity: 0.16;
}
#site-footer .site-default-footer > .pt-container {
  position: relative;
  z-index: 1;
}
#site-footer .default-footer-copyright {
  position: relative;
}

/* Reading and sidebar typography: retain the already approved hierarchy. */
@media (max-width: 1024px) {
  .single-content .single-content-inner > p,
  .single-content .single-content-inner > ul,
  .single-content .single-content-inner > ol,
  .single-content .single-content-inner > blockquote,
  .single-content .single-content-inner > .wp-block-group p {
    font-size: 17px;
    line-height: 1.7;
  }
  .sidebar-container .blogsy-sidebar-widget .wp-block-latest-posts__post-title,
  .sidebar-container .blogsy-sidebar-widget .wp-block-latest-comments__comment-meta,
  .sidebar-container .blogsy-sidebar-widget .wp-block-latest-comments__comment-meta a,
  .sidebar-container .blogsy-sidebar-widget .wp-block-archives a,
  .sidebar-container .blogsy-sidebar-widget .wp-block-categories a {
    font-size: 16px;
  }
}
.single-content .single-content-inner > h1.single-page-title {
  font-size: 36px;
  line-height: 1.25;
}
.single-content .single-content-inner > h2.wp-block-heading {
  font-size: 28px;
  line-height: 1.35;
}
.single-content .single-content-inner > h3.wp-block-heading {
  font-size: 23px;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .single-content .single-content-inner > h1.single-page-title { font-size: 30px; }
  .single-content .single-content-inner > h2.wp-block-heading { font-size: 24px; }
  .single-content .single-content-inner > h3.wp-block-heading { font-size: 21px; }
}
.sidebar-container .blogsy-sidebar-widget h2.wp-block-heading,
.sidebar-container .blogsy-sidebar-widget .wp-block-search__label {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: normal;
}
.sidebar-container .blogsy-sidebar-widget .wp-block-latest-posts__post-title,
.sidebar-container .blogsy-sidebar-widget .wp-block-latest-comments__comment-meta,
.sidebar-container .blogsy-sidebar-widget .wp-block-latest-comments__comment-meta a,
.sidebar-container .blogsy-sidebar-widget .wp-block-archives a,
.sidebar-container .blogsy-sidebar-widget .wp-block-categories a {
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 767px) {
  .sidebar-container .blogsy-sidebar-widget h2.wp-block-heading,
  .sidebar-container .blogsy-sidebar-widget .wp-block-search__label {
    font-size: 21px;
  }
}
