/* v15 Premium Edition — visual-only enhancements; no content or image sizing changes. */
/* Explicitly non-sticky header, including previously saved sticky preference. */
body.kad12 #masthead,
body.kad12.kad12-dark_header #masthead {
  position:relative !important; top:auto !important;
  border-bottom:1px solid rgba(107,146,255,.32);
  box-shadow:0 14px 40px rgba(5,12,43,.22), inset 0 -1px rgba(151,110,255,.18);
}
body.kad12-dark_header #masthead {
  background:linear-gradient(112deg,#080f27 0%,#101a3c 52%,#1a1641 100%) !important;
}
body.kad12-dark_header #masthead::after {
  content:""; position:absolute;left:8%;right:8%;bottom:0;height:2px;
  background:linear-gradient(90deg,transparent,#24b8ff 30%,#9855ff 70%,transparent);
  opacity:.7;pointer-events:none;
}
body.kad12-dark_header #masthead .main-navigation a,
body.kad12-dark_header #masthead .header-navigation a {
  font-weight:700;letter-spacing:.012em;transition:color .2s ease,text-shadow .2s ease;
}
body.kad12-dark_header #masthead .main-navigation a:hover,
body.kad12-dark_header #masthead .header-navigation a:hover {
  color:#8be6ff;text-shadow:0 0 18px rgba(72,188,255,.5);
}
/* Layered editorial surface and luminous headings. */
body.kad12 {
  background:
    radial-gradient(ellipse 48% 25% at 88% 13%,rgba(141,92,255,.16),transparent 85%),
    radial-gradient(ellipse 45% 28% at 8% 33%,rgba(41,154,255,.12),transparent 85%),
    linear-gradient(180deg,#f7f9ff 0%,#f0f4ff 46%,#fafbff 100%);
}
body.kad12 .entry-content h2 {
  position:relative;
  padding-bottom:.38em;
}
body.kad12 .entry-content h2::after {
  content:"";display:block;width:56px;height:3px;margin-top:.34em;border-radius:6px;
  background:linear-gradient(90deg,#237bff,#a34cff);
  box-shadow:0 2px 10px rgba(98,80,255,.2);
}
body.kad12 .entry-content h3 {color:#202a60;}
/* Elevated glass cards, without resizing images or changing content order. */
body.kad12-cards .entry-content > .wp-block-group:not(.alignfull):not(.alignwide),
body.kad12-cards .entry-content > .wp-block-columns,
body.kad12-cards .entry-content > .wp-block-kadence-rowlayout {
  border:1px solid rgba(110,137,238,.24);
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(245,247,255,.82));
  box-shadow:0 15px 45px rgba(23,43,112,.085),inset 0 1px rgba(255,255,255,.95);
}
@media(hover:hover){
 body.kad12-cards .entry-content > .wp-block-group:not(.alignfull):not(.alignwide):hover,
 body.kad12-cards .entry-content > .wp-block-columns:hover,
 body.kad12-cards .entry-content > .wp-block-kadence-rowlayout:hover {
  box-shadow:0 22px 55px rgba(48,59,151,.16),0 0 0 1px rgba(139,99,255,.13);
 }
}
/* Distinct premium download CTAs. */
body.kad12-buttons .entry-content .wp-block-button__link,
body.kad12-buttons .entry-content .kb-button,
body.kad12-buttons .entry-content a.kad12-download {
  position:relative;overflow:hidden;
  background:linear-gradient(105deg,#005cf2 0%,#5550f8 50%,#a024ec 100%);
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 10px 27px rgba(62,72,211,.28),inset 0 1px rgba(255,255,255,.28);
  border-radius:16px;
}
body.kad12-buttons .entry-content .wp-block-button__link::after,
body.kad12-buttons .entry-content .kb-button::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.24) 48%,transparent 66%);
  transform:translateX(-130%);transition:transform .7s ease;
}
@media(hover:hover){
 body.kad12-buttons .entry-content .wp-block-button__link:hover::after,
 body.kad12-buttons .entry-content .kb-button:hover::after {transform:translateX(130%);}
}
/* Richer FAQ cards while keeping Rank Math's original markup/schema. */
body.kad12-faq .rank-math-list-item {
  border:1px solid #dce4ff;
  border-left:4px solid #7262ff;
  background:linear-gradient(110deg,#fff,#f7f8ff);
  box-shadow:0 10px 28px rgba(30,47,113,.075);
}
body.kad12-faq .rank-math-question {color:#15265b;}
/* Deep premium footer. */
body.kad12-footer #colophon {
  background:
    radial-gradient(ellipse at 95% 15%,rgba(132,67,255,.28),transparent 48%),
    radial-gradient(ellipse at 5% 95%,rgba(19,142,255,.2),transparent 50%),
    linear-gradient(120deg,#070e26,#101a3c 55%,#1d1441);
  border-top:1px solid rgba(141,127,255,.26);
}
body.kad12-footer #colophon a {text-decoration-color:rgba(191,204,255,.45);text-underline-offset:3px;}
body.kad12-footer #colophon a:hover {color:#9ee9ff;}
/* Stronger accessible link styling remains limited to body text. */
body.kad12-visible_links .entry-content a:not(.wp-block-button__link):not(.kb-button):not(.button):not(.kad12-download):not(.wp-element-button):not(:has(img)) {
  text-decoration-thickness:2px;text-underline-offset:4px;
}
/* Responsive typography and touch targets without altering editor image widths/heights. */
@media(max-width:767px) {
 body.kad12-dark_header #masthead {box-shadow:0 8px 25px rgba(5,12,43,.22);}
 body.kad12 .entry-content h2::after {width:44px;}
 body.kad12-buttons .entry-content .wp-block-button__link,
 body.kad12-buttons .entry-content .kb-button {min-height:46px;}
}
@media(prefers-reduced-motion:reduce) {
 body.kad12-buttons .entry-content .wp-block-button__link::after,
 body.kad12-buttons .entry-content .kb-button::after {display:none;}
}
