/*
Theme Name:   Flow X
Theme URI:    https://flowlive.cloud
Description:  Commercial-grade WordPress theme for the Flow Live ecosystem. Dashboard-driven header/footer with visual skeleton pickers, 6 header layouts, 3 footer layouts, 4 mobile nav modes, archive designs, and singular hero styles. No Customizer required. Lock-in-free — integrates with Flow Live Architect and Flow Sketch.
Author:       flowlive.cloud
Author URI:   https://flowlive.cloud
Version:      2.0.1
Requires at least: 6.4
Requires PHP: 8.2
Tested up to: 6.7
License:      Proprietary
License URI:  https://flowlive.cloud/licence
Text Domain:  flow-x
Tags:         custom-colors, custom-logo, custom-menu, full-width-template, theme-options
*/

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;font-size:16px;line-height:1.65;color:var(--fx-text,#2d2d3a);background:var(--fx-bg,#fff)}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}

/* ════════════════════════════════════════
   CSS CUSTOM PROPERTIES (fallbacks)
   Real values injected by PHP via #fx-vars
════════════════════════════════════════ */
:root{
  --fx-accent:#6c63ff;
  --fx-accent-dark:#5a52e0;
  --fx-text:#2d2d3a;
  --fx-muted:#6b7280;
  --fx-bg:#fff;
  --fx-max-width:1200px;
  --fx-pad:24px;
  /* header */
  --fx-hdr-h:68px;
  --fx-hdr-h-shrink:48px;
  --fx-hdr-bg:#fff;
  --fx-hdr-border:#ebebf0;
  --fx-logo-h:36px;
  --fx-logo-color:#111;
  /* nav */
  --fx-nav-fs:14px;
  --fx-nav-bg:transparent;
  --fx-nav-color:#555;
  --fx-nav-hover-bg:#f3f3f8;
  --fx-nav-hover-color:#111;
  /* sub-menu */
  --fx-sub-fs:13px;
  --fx-sub-bg:#fff;
  --fx-sub-color:#555;
  --fx-sub-hover-bg:#f3f3f8;
  --fx-sub-hover-color:#111;
  --fx-sub-radius:0px;
  --fx-sub-min-width:200px;
  --fx-sub-offset:0px;
  --fx-sub-pad-x:12px;
  --fx-sub-pad-y:8px;
  --fx-sub-sep-color:#ebebf0;
  --fx-mob-sub-bg:rgba(0,0,0,.04);
  --fx-mob-sub-fs:12px;
  --fx-mob-sub-ind-sz:10px;
  --fx-mob-sep-color:#ebebf0;
  /* cta button */
  --fx-cta-bg:#6c63ff;
  --fx-cta-color:#fff;
  --fx-cta-hover-bg:#5a52e0;
  --fx-cta-hover-color:#fff;
  --fx-cta-fs:14px;
  --fx-cta-radius:8px;
  --fx-cta-pad-y:8px;
  --fx-cta-pad-x:20px;
  --fx-cta-border-w:0px;
  --fx-cta-border-c:transparent;
  /* mobile nav */
  --fx-mob-bg:#fff;
  --fx-mob-color:#222;
  --fx-mob-fs:15px;
  --fx-mob-close-color:#222;
  --fx-mob-close-size:22px;
  --fx-mob-toggle-bg:transparent;
  --fx-mob-toggle-color:#333;
  --fx-mob-toggle-size:22px;
  /* footer */
  --fx-ftr-bg:#111118;
  --fx-ftr-text:#a0a0b8;
  --fx-ftr-heading:#fff;
  --fx-ftr-cols:3;
  --fx-ftr-logo-h:32px;
  --fx-ftr-heading-fs:13px;
  --fx-ftr-text-fs:13px;
  --fx-ftr-gap:40px;
  --fx-ftr-social-size:32px;
  --fx-ftr-social-icon-size:16px;
  --fx-ftr-social-bg:rgba(255,255,255,.08);
  --fx-ftr-social-hover-bg:#6c63ff;
  --fx-ftr-social-color:#a0a0b8;
  --fx-ftr-social-hover-color:#fff;
  --fx-ftr-social-radius:8px;
  /* archive */
  --fx-archive-cols:3;
  --fx-archive-gap:28px;
  /* breakpoints (also set inline from PHP) */
  --fx-bp-lg:1024px;
  --fx-bp-md:768px;
}

/* ════════════════════════════════════════
   SITE SHELL
════════════════════════════════════════ */
.fx-site{display:flex;flex-direction:column;min-height:100vh}
.fx-main{flex:1}
.fx-container{width:100%;max-width:var(--fx-max-width);margin:0 auto;padding:0 var(--fx-pad)}

/* ════════════════════════════════════════
   LAYOUT MODES
════════════════════════════════════════ */
body.fx-layout-full .fx-main{width:100%}
body.fx-layout-boxed-content .fx-container{max-width:var(--fx-max-width)}
body.fx-layout-boxed-layout{background:var(--fx-boxed-outer,#f0f0f5)}
body.fx-layout-boxed-layout .fx-site{max-width:var(--fx-max-width);margin:0 auto;box-shadow:0 0 60px rgba(0,0,0,.1)}

/* ════════════════════════════════════════
   HEADER BASE
════════════════════════════════════════ */
.fx-header{
  background:var(--fx-hdr-bg);
  border-bottom:1px solid var(--fx-hdr-border);
  position:sticky;top:0;z-index:300;
  transition:box-shadow .2s,background .25s,border-color .25s;
}
.fx-header--no-sticky{position:relative!important}
.fx-header.is-scrolled{box-shadow:0 2px 20px rgba(0,0,0,.08)}
.fx-header--shrink .fx-header-inner{transition:height .2s ease;}
.fx-header--shrink.is-scrolled .fx-header-inner{height:var(--fx-hdr-h-shrink,48px)!important;}
.fx-header-inner{display:flex;align-items:center;height:var(--fx-hdr-h);gap:16px;position:relative}

/* Logo */
.fx-logo{flex-shrink:0}
.fx-logo-shrink{display:none!important}
.fx-logo-primary{display:block}
/* Logo swap on scroll — triggers when header has .is-scrolled AND a shrink logo was output */
.fx-has-shrink-logo.is-scrolled .fx-logo-primary{display:none!important}
.fx-has-shrink-logo.is-scrolled .fx-logo-shrink{display:block!important}
.fx-logo a{display:flex;align-items:center;gap:10px}
.fx-logo-text{font-weight:800;font-size:var(--fx-logo-fs,1.5rem);color:var(--fx-logo-color);letter-spacing:-.4px;line-height:1}
.fx-logo img{height:var(--fx-logo-h);width:auto;display:block}

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.fx-nav{background:var(--fx-nav-bg);flex-shrink:0;}
.fx-nav>ul{display:flex;align-items:center;gap:2px}
.fx-nav>ul>li>a{
  display:flex;align-items:center;
  padding:var(--fx-nav-link-pad-y,7px) var(--fx-nav-link-pad-x,13px);
  margin:0 var(--fx-nav-link-margin-x,0px);
  border-radius:var(--fx-nav-item-radius,0px);
  box-shadow:inset 0 calc(var(--fx-nav-border-w,0px) * -1) 0 transparent;
  font-size:var(--fx-nav-fs);font-weight:500;color:var(--fx-nav-color);
  transition:background .12s,color .12s,box-shadow .12s;white-space:nowrap;
}
.fx-nav>ul>li>a:hover {
  background:var(--fx-nav-hover-bg);
  color:var(--fx-nav-hover-color);
  box-shadow:inset 0 calc(var(--fx-nav-border-w,0px) * -1) 0 var(--fx-nav-hover-border-c,transparent);
}
.fx-nav .current-menu-item>a,
.fx-nav .current-page-ancestor>a{
  background:var(--fx-nav-active-bg,var(--fx-nav-hover-bg));
  color:var(--fx-nav-active-color,var(--fx-nav-hover-color));
  box-shadow:inset 0 calc(var(--fx-nav-border-w,0px) * -1) 0 var(--fx-nav-active-border-c,transparent);
}

/* Dropdown wrapper */
.fx-nav li{position:relative}
.fx-nav li>ul{
  display:none;position:absolute;
  top:calc(100% + var(--fx-sub-offset,0px));
  left:var(--fx-sub-align-left,0);
  right:var(--fx-sub-align-right,auto);
  background:var(--fx-sub-bg);
  border:var(--fx-sub-border-w,1px) solid var(--fx-sub-border-c,var(--fx-hdr-border));
  border-radius:var(--fx-sub-radius,10px);
  padding:4px 0;
  min-width:var(--fx-sub-min-width,200px);
  box-shadow:0 8px 28px rgba(0,0,0,.1);z-index:400;
  flex-direction:column;gap:0;
}
/* Invisible bridge covers the gap between nav link and dropdown */
.fx-nav li.menu-item-has-children>ul::before{
  content:'';position:absolute;bottom:100%;left:0;right:0;
  height:calc(var(--fx-sub-offset,0px) + 4px);
}
.fx-nav li.is-open>ul{display:flex}
.fx-nav li>ul li{
  position:relative;
}
.fx-nav li>ul li+li{
  border-top:var(--fx-sub-sep-size,0px) solid transparent;
  margin-top:0;
}
.fx-sub-has-sep .fx-nav li>ul li+li{
  border-top-color:var(--fx-sub-sep-color,#ebebf0);
}
.fx-nav li>ul a{
  display:flex;align-items:center;
  border-radius:calc(var(--fx-sub-radius,10px) - 3px);
  padding:var(--fx-sub-pad-y,8px) var(--fx-sub-pad-x,12px);
  font-size:var(--fx-sub-fs);font-weight:400;
  color:var(--fx-sub-color);
  transition:background .1s,color .1s;
}
.fx-nav li>ul a:hover{
  background:var(--fx-sub-hover-bg);
  color:var(--fx-sub-hover-color);
}
.fx-nav li>ul li.current-menu-item>a{
  background:var(--fx-sub-active-bg,var(--fx-sub-hover-bg));
  color:var(--fx-sub-active-color,var(--fx-sub-hover-color));
}

/* Sub-menu toggle button (injected by JS) */
.fx-sub-toggle{
  display:none; /* hidden desktop — hover handles it */
  background:none;border:none;cursor:pointer;padding:4px 8px;
  color:var(--fx-nav-color);line-height:1;font-size:12px;
  align-items:center;justify-content:center;
  border-radius:4px;transition:background .1s;
}

/* Submenu indicator rendered via CSS ::after (see #fx-sub-indicator inline style in <head>) */

/* CTA button in nav */
.fx-header-cta{flex-shrink:0}
.fx-header-cta a{
  display:inline-flex;align-items:center;gap:6px;
  padding:var(--fx-cta-pad-y) var(--fx-cta-pad-x);
  background:var(--fx-cta-bg);color:var(--fx-cta-color);
  border-radius:var(--fx-cta-radius);
  font-size:var(--fx-cta-fs);font-weight:600;
  border:var(--fx-cta-border-w) solid var(--fx-cta-border-c);
  transition:background .12s,color .12s,border-color .12s;
}
.fx-header-cta a svg{
  width:1em;height:1em;flex-shrink:0;
  display:block;stroke:currentColor;fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.fx-header-cta a:hover{
  background:var(--fx-cta-hover-bg);
  color:var(--fx-cta-hover-color);
}

/* ════════════════════════════════════════
   MOBILE TOGGLE (hamburger)
   Hidden by default — shown via #fx-nav-bp
   injected inline by PHP using the saved breakpoints
════════════════════════════════════════ */
.fx-nav-toggle{
  display:none; /* shown by inline PHP breakpoint media query */
  align-items:center;justify-content:center;gap:6px;
  background:var(--fx-mob-toggle-bg);
  border:none;cursor:pointer;
  padding:6px 10px;margin-left:auto;
  color:var(--fx-mob-toggle-color);
  border-radius:6px;
  transition:background .12s;
  min-width:calc(var(--fx-mob-toggle-size) + 14px);
  min-height:calc(var(--fx-mob-toggle-size) + 14px);
  width:auto;height:auto;
}
.fx-nav-toggle:hover{background:var(--fx-nav-hover-bg)}
/* The toggle always shows the hamburger icon. The close icon is .fx-nav-close (separate element). */
.fx-nav-toggle svg{display:block}

/* Toggle text label beside hamburger icon */
.fx-toggle-text{font-size:13px;font-weight:600;line-height:1;margin-left:4px;white-space:nowrap}

/* Active menu item (current page) */
.fx-nav .current-menu-item>a,
.fx-nav .current-page-ancestor>a{
  background:var(--fx-nav-active-bg,var(--fx-nav-hover-bg));
  color:var(--fx-nav-active-color,var(--fx-nav-hover-color));
}
/* Mobile active state */

/* Mobile hover */



/* ════════════════════════════════════════
   HEADER TEMPLATE VARIANTS
════════════════════════════════════════ */
/* classic: logo left, nav right (overridden by alignment body classes) */
.fx-header--classic .fx-header-inner{justify-content:flex-start;gap:8px}
/* Left: nav sits right after logo, CTA pushed to far right */
body.fx-nav-align-left .fx-header--classic .fx-header-cta{margin-left:auto}
/* Center: nav takes all middle space and centers its links */
body.fx-nav-align-center .fx-header--classic .fx-header-inner{justify-content:space-between}
body.fx-nav-align-center .fx-header--classic .fx-nav{flex:1}
body.fx-nav-align-center .fx-header--classic .fx-nav>ul{justify-content:center}
/* Right: spacer before nav pushes it right, CTA follows */
body.fx-nav-align-right .fx-header--classic .fx-header-inner{justify-content:space-between}
body.fx-nav-align-right .fx-header--classic .fx-nav{margin-left:auto}

/* split: logo | nav center | CTA */
.fx-header--split .fx-header-inner{justify-content:space-between}
.fx-header--split .fx-nav{flex:1;display:flex;justify-content:center}
.fx-header--split .fx-nav>ul{justify-content:center}

/* centered: logo above, nav row below */
.fx-header--centered{padding-bottom:0}
.fx-header--centered .fx-header-inner{flex-wrap:wrap;height:auto;padding:14px 0 0}
.fx-header--centered .fx-logo{width:100%;justify-content:center;display:flex;margin-bottom:6px}
.fx-header--centered .fx-header-cta{margin-left:auto}
.fx-header-nav-row{border-top:1px solid var(--fx-hdr-border);background:var(--fx-hdr-bg)}
.fx-header-nav-row .fx-nav>ul{justify-content:center;padding:4px 0}
.fx-header--centered .fx-header-inner .fx-nav{display:none}

/* minimal */
.fx-header--minimal .fx-header-inner{justify-content:flex-start;gap:32px}

/* bold: accent bar */
.fx-header--bold{--fx-hdr-bg:var(--fx-accent);--fx-hdr-border:transparent}
.fx-header--bold .fx-logo-text,.fx-header--bold .fx-nav>ul>li>a{color:rgba(255,255,255,.92)}
.fx-header--bold .fx-nav>ul>li>a:hover{background:rgba(255,255,255,.15);color:#fff}
.fx-header--bold .fx-header-cta a{background:#fff;color:var(--fx-accent)}
.fx-header--bold .fx-nav-toggle{color:#fff}
.fx-header--bold .fx-nav li>ul{background:#4a44cc;border-color:rgba(255,255,255,.15)}

/* transparent: floats over hero */
.fx-header--transparent{
  background:transparent!important;border-color:transparent!important;
  position:fixed;top:0;left:0;right:0;
}
.fx-header--transparent .fx-logo-text,.fx-header--transparent .fx-nav>ul>li>a{color:#fff}
.fx-header--transparent .fx-nav>ul>li>a:hover{background:rgba(255,255,255,.15)}
.fx-header--transparent .fx-nav-toggle{color:#fff}
.fx-header--transparent.is-scrolled{background:var(--fx-hdr-bg)!important;border-color:var(--fx-hdr-border)!important}
.fx-header--transparent.is-scrolled .fx-logo-text,
.fx-header--transparent.is-scrolled .fx-nav>ul>li>a{color:var(--fx-nav-color)}
body.has-transparent-header{padding-top:var(--fx-hdr-h)}

/* builder header */
.fx-header--builder{border-bottom:none;position:relative}

/* ════════════════════════════════════════
   MOBILE NAV MODES
   Toggle is shown/hidden via inline PHP media query (#fx-nav-bp).
   Mode-specific styles applied via body class .fx-nav-mobile-{mode}.
   These kick in at the user's chosen breakpoint.
════════════════════════════════════════ */

/* ── Backdrop ── */
.fx-nav-backdrop{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.45);z-index:8999;
}
.fx-nav-backdrop.is-visible{display:block}

/* ── Close button in panels/overlay ──
   Always in DOM; only visible when nav has .is-open
   AND body has the right mode class.
────────────────────────────────────── */
/* .fx-nav-close: hidden by default via PHP media query; shown only at mobile breakpoint */

/* Mobile header padding (applied via breakpoint media query in PHP) */
.fx-header-inner{transition:height .25s ease;}
/* Mobile menu alignment */

/* Body scroll lock */
body.fx-nav-open{overflow:hidden}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.fx-footer{background:var(--fx-ftr-bg);color:var(--fx-ftr-text)}
.fx-footer-widgets{
  display:grid;
  grid-template-columns:repeat(var(--fx-ftr-cols,3),1fr);
  gap:var(--fx-ftr-gap,40px);padding:56px 0 36px;
}
.fx-footer-col h4,.fx-footer-col .widget-title{
  font-size:var(--fx-ftr-heading-fs,13px);font-weight:700;text-transform:uppercase;
  letter-spacing:.1em;color:var(--fx-ftr-heading);
  margin-bottom:16px;padding-bottom:8px;
}
.fx-footer-col ul{display:flex;flex-direction:column;gap:8px}
.fx-footer-col a{font-size:var(--fx-ftr-text-fs,13px);color:var(--fx-ftr-text);transition:color .12s}
.fx-footer-col a:hover{color:var(--fx-ftr-heading)}
.fx-footer-col p{font-size:var(--fx-ftr-text-fs,13px);line-height:1.7;opacity:.8}
.fx-footer-brand-name{font-size:1.1rem;font-weight:800;color:var(--fx-ftr-heading);margin-bottom:10px}
.fx-footer-brand img{height:var(--fx-ftr-logo-h,32px);width:auto;filter:brightness(0)invert(1);opacity:.85;margin-bottom:10px}
/* Social icons */
.fx-footer-social{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.fx-footer-social a{
  display:inline-flex;align-items:center;justify-content:center;
  width:var(--fx-ftr-social-size,32px);height:var(--fx-ftr-social-size,32px);
  border-radius:var(--fx-ftr-social-radius,8px);
  background:var(--fx-ftr-social-bg,rgba(255,255,255,.08));
  color:var(--fx-ftr-social-color,#a0a0b8);
  transition:background .12s,color .12s;
}
.fx-footer-social a svg{
  width:var(--fx-ftr-social-icon-size,16px);
  height:var(--fx-ftr-social-icon-size,16px);
}
.fx-footer-social a:hover{
  background:var(--fx-ftr-social-hover-bg,#6c63ff);
  color:var(--fx-ftr-social-hover-color,#fff);
}
/* Footer bottom bar */
.fx-footer-bottom{
  border-top:1px solid rgba(255,255,255,.07);
  padding:18px 0;display:flex;align-items:center;
  justify-content:space-between;font-size:12px;gap:12px;flex-wrap:wrap;
}
.fx-footer-bottom a{color:var(--fx-ftr-text)}
.fx-footer-bottom a:hover{color:var(--fx-ftr-heading)}
.fx-footer--builder{padding:0}
@media(max-width:900px){
  .fx-footer-widgets{grid-template-columns:repeat(2,1fr);gap:28px;padding:40px 0 28px}
}
@media(max-width:580px){
  .fx-footer-widgets{grid-template-columns:1fr;gap:24px;padding:32px 0}
  .fx-footer-bottom{flex-direction:column;text-align:center}
}

/* ════════════════════════════════════════
   ARCHIVE
════════════════════════════════════════ */
.fx-archive-banner{
  background:var(--fx-archive-banner-bg,linear-gradient(135deg,#667eea,#764ba2));
  color:#fff;text-align:center;padding:60px var(--fx-pad);
}
.fx-archive-banner h1{font-size:clamp(1.6rem,4vw,2.8rem);font-weight:800;margin-bottom:8px}
.fx-archive-banner p{font-size:1rem;opacity:.8;max-width:500px;margin:0 auto}
.fx-posts-wrap{padding:48px 0}
.fx-posts-grid{
  display:grid;
  grid-template-columns:repeat(var(--fx-archive-cols,3),1fr);
  gap:var(--fx-archive-gap,28px);
}
.fx-posts-list .fx-post-card{flex-direction:row}
.fx-posts-list .fx-post-card__thumb{width:240px;flex-shrink:0;padding-bottom:0;aspect-ratio:4/3}
.fx-posts-list .fx-post-card__thumb img{position:static;height:100%;object-fit:cover}
.fx-posts-list .fx-post-card__body{padding:24px}
.fx-posts-magazine{display:grid;grid-template-columns:3fr 2fr;gap:28px}
.fx-posts-magazine .fx-post-card:first-child{grid-row:span 2}
.fx-posts-magazine .fx-post-card:first-child .fx-post-card__thumb{padding-bottom:65%}
.fx-post-card{
  background:#fff;border-radius:12px;border:1px solid #ebebf0;
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .18s,box-shadow .18s;
}
.fx-post-card:hover{transform:translateY(-3px);box-shadow:0 8px 28px rgba(0,0,0,.1)}
.fx-post-card__thumb{position:relative;padding-bottom:56.25%;overflow:hidden;background:#f0f0f8;flex-shrink:0}
.fx-post-card__thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.fx-post-card:hover .fx-post-card__thumb img{transform:scale(1.04)}
.fx-post-card__body{padding:20px;flex:1;display:flex;flex-direction:column}
.fx-post-card__meta{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--fx-muted);margin-bottom:10px;text-transform:uppercase;letter-spacing:.04em;align-items:center}
.fx-post-card__cat{background:rgba(108,99,255,.1);color:var(--fx-accent);padding:2px 9px;border-radius:20px;font-weight:700}
.fx-post-card__title{font-size:1rem;font-weight:700;line-height:1.3;margin-bottom:10px;color:#111}
.fx-post-card__title a:hover{color:var(--fx-accent)}
.fx-post-card__excerpt{font-size:13px;color:var(--fx-muted);line-height:1.65;flex:1;margin-bottom:16px}
.fx-post-card__more{font-size:13px;font-weight:600;color:var(--fx-accent);display:inline-flex;align-items:center;gap:4px;margin-top:auto;transition:gap .12s}
.fx-post-card__more:hover{gap:8px}
.fx-pagination{display:flex;justify-content:center;gap:6px;padding:40px 0 48px;flex-wrap:wrap}
.fx-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:8px;font-size:13px;font-weight:600;border:1px solid #e5e7eb;color:#555;background:#fff;transition:all .12s}
.fx-pagination .current{background:var(--fx-accent);color:#fff;border-color:var(--fx-accent)}
.fx-pagination a.page-numbers:hover{background:var(--fx-accent);color:#fff;border-color:var(--fx-accent)}
.fx-archive-cta{background:linear-gradient(135deg,var(--fx-accent),var(--fx-accent-dark));color:#fff;padding:56px var(--fx-pad);text-align:center}
.fx-archive-cta h2{font-size:clamp(1.4rem,3vw,2.2rem);font-weight:800;margin-bottom:10px}
.fx-archive-cta p{font-size:1rem;opacity:.85;margin-bottom:24px;max-width:500px;margin-left:auto;margin-right:auto}
.fx-cta-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;background:#fff;color:var(--fx-accent);border-radius:9px;font-weight:700;font-size:15px;transition:transform .14s,box-shadow .14s}
.fx-cta-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.15)}
@media(max-width:900px){
  .fx-posts-grid{grid-template-columns:repeat(2,1fr)}
  .fx-posts-magazine{grid-template-columns:1fr}
  .fx-posts-magazine .fx-post-card:first-child{grid-row:span 1}
}
@media(max-width:580px){
  .fx-posts-grid{grid-template-columns:1fr}
  .fx-posts-list .fx-post-card{flex-direction:column}
  .fx-posts-list .fx-post-card__thumb{width:100%;aspect-ratio:16/9}
}

/* ════════════════════════════════════════
   SINGULAR
════════════════════════════════════════ */
.fx-single-hero{padding:56px 0 40px;border-bottom:1px solid #ebebf0}
.fx-single-hero--gradient{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:64px 0 48px}
.fx-single-hero--dark{background:#0f0f14;color:#fff;border:none;padding:64px 0 48px}
.fx-single-hero--minimal{padding:32px 0 24px;border:none}
.fx-single-hero--image{color:#fff;border:none;position:relative;overflow:hidden;min-height:420px;display:flex;align-items:flex-end}
.fx-single-hero--image .fx-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0}
.fx-single-hero--image .fx-hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75) 0%,rgba(0,0,0,.2) 60%,transparent 100%)}
.fx-single-hero--image .fx-container{position:relative;z-index:1;padding-bottom:48px}
.fx-single-hero__cats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.fx-single-hero__cat{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--fx-accent);background:rgba(108,99,255,.1);padding:3px 10px;border-radius:20px}
.fx-single-hero--gradient .fx-single-hero__cat,
.fx-single-hero--dark .fx-single-hero__cat,
.fx-single-hero--image .fx-single-hero__cat{background:rgba(255,255,255,.2);color:#fff}
.fx-single-hero__title{font-size:clamp(1.6rem,4vw,2.8rem);font-weight:800;line-height:1.18;margin-bottom:16px}
.fx-single-hero__meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:13px;opacity:.75}
.fx-single-hero__meta img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.fx-single-hero__thumb{margin-top:32px;border-radius:12px;overflow:hidden;max-height:460px}
.fx-single-hero__thumb img{width:100%;height:100%;object-fit:cover}
.fx-single-wrap{display:grid;grid-template-columns:1fr;gap:48px;padding:48px 0}
.fx-single-wrap.has-sidebar{grid-template-columns:minmax(0,1fr) 300px}
.fx-single-content{min-width:0}
.fx-entry-content h1,.fx-entry-content h2,.fx-entry-content h3,.fx-entry-content h4{margin:1.6em 0 .55em;line-height:1.22;font-weight:700}
.fx-entry-content h2{font-size:1.55rem}.fx-entry-content h3{font-size:1.2rem}
.fx-entry-content p{margin-bottom:1.3em;line-height:1.8}
.fx-entry-content ul,.fx-entry-content ol{margin:0 0 1.3em 1.6em;line-height:1.8}
.fx-entry-content li{list-style:disc}
.fx-entry-content ol li{list-style:decimal}
.fx-entry-content blockquote{border-left:4px solid var(--fx-accent);padding:14px 20px;background:rgba(108,99,255,.05);border-radius:0 10px 10px 0;margin:1.5em 0;font-style:italic}
.fx-entry-content a{color:var(--fx-accent);text-decoration:underline;text-underline-offset:2px}
.fx-entry-content img{border-radius:10px;margin:1em 0}
.fx-entry-content code{background:#f3f3f8;padding:2px 6px;border-radius:4px;font-size:.88em}
.fx-entry-content pre{background:#1a1a2e;color:#e8e8f0;padding:20px;border-radius:10px;overflow-x:auto;margin:1.5em 0}
.fx-sidebar .widget{margin-bottom:32px}
.fx-sidebar .widget-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#888;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #ebebf0}
.fx-author-box{display:flex;gap:20px;align-items:flex-start;background:#f8f8fc;border-radius:12px;padding:24px;margin:40px 0}
.fx-author-box img{width:68px;height:68px;border-radius:50%;object-fit:cover;flex-shrink:0}
.fx-author-box__name{font-weight:700;margin-bottom:4px}
.fx-author-box__bio{font-size:13px;color:var(--fx-muted);line-height:1.65}
.fx-related{padding:40px 0;border-top:1px solid #ebebf0}
.fx-related h3{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#888;margin-bottom:20px}
.fx-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.fx-single-cta{background:linear-gradient(135deg,var(--fx-accent),var(--fx-accent-dark));color:#fff;border-radius:14px;padding:40px;text-align:center;margin:40px 0}
.fx-single-cta h3{font-size:1.4rem;font-weight:800;margin-bottom:8px}
.fx-single-cta p{opacity:.85;margin-bottom:22px;max-width:440px;margin-left:auto;margin-right:auto}
@media(max-width:900px){
  .fx-single-wrap.has-sidebar{grid-template-columns:1fr}
  .fx-related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:580px){
  .fx-related-grid{grid-template-columns:1fr}
  .fx-author-box{flex-direction:column}
}

/* ════════════════════════════════════════
   UTILITIES
════════════════════════════════════════ */
body.fx-blank .fx-header,body.fx-blank .fx-footer{display:none}
.fx-prose{padding:48px 0}
