/* Cybernetic Pro Unified Theme — one shared stylesheet for blog, Shop-Script and GPT Hub. */
:root{
  --cp-ink:#1c2e43;
  --cp-muted:#63778d;
  --cp-accent:#1769b5;
  --cp-accent-hover:#10518f;
  --cp-line:#dfe7f0;
  --cp-canvas:#f5f8fc;
  --cp-surface:#ffffff;
  --cp-radius:16px;
  --cp-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --cp-shadow:0 8px 24px rgba(27,53,87,.045);
}
html{scroll-padding-top:30px}
body.cp-theme-blog,body.cp-theme-shop,body.cp-theme-hub{
  background:var(--cp-canvas);
  color:var(--cp-ink);
  font-family:var(--cp-font);
  -webkit-font-smoothing:antialiased;
}
.cp-shell-header,.cp-shell-header *,.cp-shell-footer,.cp-shell-footer *{box-sizing:border-box}
.cp-shell-header{
  position:relative;z-index:90;background:#fff;border-bottom:1px solid var(--cp-line);
  box-shadow:0 2px 14px rgba(26,46,75,.025);width:100%;font-family:var(--cp-font);
}
.cp-shell-inner{
  max-width:1180px;margin:0 auto;min-height:76px;padding:12px 24px;
  display:flex;justify-content:space-between;align-items:center;gap:28px;
}
.cp-shell-header .cp-shell-brand{
  display:inline-flex;align-items:center;gap:12px;flex:none;color:var(--cp-ink)!important;
  font-size:21px;font-weight:800;letter-spacing:-.035em;text-decoration:none!important;
  line-height:1.2;white-space:nowrap;
}
.cp-shell-mark{
  width:37px;height:37px;display:inline-flex;align-items:center;justify-content:center;
  position:relative;flex:none;background:linear-gradient(135deg,#1264b4,#2799b4);
  color:#fff;border-radius:12px;box-shadow:0 5px 12px rgba(23,105,181,.16);
  font:800 22px/1 var(--cp-font);letter-spacing:-.05em;
}
.cp-shell-mark span{width:5px;height:5px;position:absolute;right:7px;bottom:8px;background:#a4e9e6;border-radius:50%}
.cp-shell-header .cp-shell-nav{
  display:flex;align-items:center;justify-content:flex-end;gap:6px;
  margin:0;padding:0;min-width:0;flex-wrap:wrap;
}
.cp-shell-header .cp-shell-link{
  display:inline-flex;align-items:center;justify-content:center;min-height:39px;
  padding:9px 16px;border:1px solid transparent;border-radius:11px;
  font:650 14px/1.25 var(--cp-font);color:#52677e!important;
  text-decoration:none!important;white-space:nowrap;transition:background .15s,border-color .15s,color .15s;
}
.cp-shell-header .cp-shell-link:hover{color:var(--cp-accent)!important;background:#edf5ff}
.cp-shell-header .cp-shell-link.is-active{
  color:var(--cp-accent)!important;background:#eaf3ff;border-color:#d4e6fb;
}
.cp-shell-footer{
  font:14px/1.6 var(--cp-font);background:#fff;color:var(--cp-muted);
  border-top:1px solid var(--cp-line);width:100%;margin-top:32px;
}
.cp-shell-footer-inner{
  max-width:1180px;margin:auto;padding:32px 24px 24px;
  display:flex;align-items:start;justify-content:space-between;gap:30px;
}
.cp-shell-footer-about strong{
  color:var(--cp-ink);font-size:17px;font-weight:750;
}
.cp-shell-footer-about p{margin:5px 0 0;max-width:380px}
.cp-shell-footer-nav{display:flex;gap:14px 23px;flex-wrap:wrap}
.cp-shell-footer a,.cp-shell-footer a:visited{
  color:#48617b!important;text-decoration:none!important;font-weight:600;
}
.cp-shell-footer a:hover{color:var(--cp-accent)!important}
.cp-shell-footer-bottom{max-width:1180px;margin:auto;padding:17px 24px 22px;border-top:1px solid #eff2f6;font-size:12px}
.cp-shell-header a:focus-visible,.cp-shell-footer a:focus-visible{
  outline:3px solid #8ac8ff;outline-offset:2px;
}
/* BLOG — preserve native Webasyst rendering, replace only the outdated shell. */
body.cp-theme-blog header.globalheader,body.cp-theme-blog footer.globalfooter{display:none!important}
body.cp-theme-blog main.maincontent{background:var(--cp-canvas)!important;margin:0;min-height:56vh}
body.cp-theme-blog main.maincontent>.container{max-width:1180px!important;padding:30px 24px 54px!important}
body.cp-theme-blog .cybernetic-blog-layout{grid-template-columns:minmax(0,1fr) 226px;gap:26px}
body.cp-theme-blog .cybernetic-index-heading{
  background:linear-gradient(115deg,#eaf4ff,#f8fbff 70%,#ecf9f7);
  border:1px solid #d7e7f7;border-radius:20px;padding:31px 34px;box-shadow:none;margin:0 0 25px;
}
body.cp-theme-blog .cybernetic-index-heading__eyebrow{color:#2c7499;font:800 11px/1.4 var(--cp-font);letter-spacing:.14em}
body.cp-theme-blog .cybernetic-index-heading h1{
  color:var(--cp-ink);font:800 clamp(27px,3.1vw,39px)/1.17 var(--cp-font);
  letter-spacing:-.035em;
}
body.cp-theme-blog .cybernetic-index-heading>p:last-child{color:#536e89;font:400 15px/1.6 var(--cp-font)}
body.cp-theme-blog .cybernetic-story-grid{gap:18px}
body.cp-theme-blog .cybernetic-story{
  background:#fff;border:1px solid var(--cp-line);border-radius:16px;box-shadow:var(--cp-shadow);
}
body.cp-theme-blog .cybernetic-story:hover{border-color:#b6d7ee;box-shadow:0 12px 30px rgba(31,62,91,.09)}
body.cp-theme-blog .cybernetic-story__media{background:#f2f6fb;min-height:0}
body.cp-theme-blog .cybernetic-story__media img{width:100%;height:100%;object-fit:cover;background:#f2f6fb}
body.cp-theme-blog .cybernetic-story__body{padding:21px 22px 24px}
body.cp-theme-blog .cybernetic-story__title{
  font:750 21px/1.36 var(--cp-font);color:var(--cp-ink);letter-spacing:-.023em;
}
body.cp-theme-blog .cybernetic-story__meta,body.cp-theme-blog .cybernetic-story__excerpt{font-family:var(--cp-font)}
body.cp-theme-blog .cybernetic-story__excerpt{color:#61758a;font-size:14px}
body.cp-theme-blog .cybernetic-story__more{color:var(--cp-accent)!important;font-family:var(--cp-font)}
body.cp-theme-blog .cybernetic-story--lead .cybernetic-story__media{min-height:266px}
body.cp-theme-blog .cybernetic-blog-layout .sidebar{
  background:#fff;border:1px solid var(--cp-line);border-radius:16px;
  padding:19px 16px;box-shadow:var(--cp-shadow);
}
body.cp-theme-blog .cybernetic-blog-layout .sidebar .timeline{max-height:380px}
body.cp-theme-blog .cybernetic-blog-layout .sidebar a{color:#365e83}
body.cp-theme-blog .cybernetic-blog-layout .post{border-color:var(--cp-line);box-shadow:var(--cp-shadow);border-radius:17px}
body.cp-theme-blog .cybernetic-blog-layout .post h1{
  font-family:var(--cp-font);color:var(--cp-ink);font-weight:800;
}
body.cp-theme-blog .cybernetic-blog-layout .post .text{font-family:var(--cp-font)}
body.cp-theme-blog .cybernetic-blog-layout .post .text figure{border-radius:14px}
body.cp-theme-blog #stream-paging a{background:#eaf3ff;color:var(--cp-accent)}
/* SHOP — keep search, catalog mega-menu, checkout protection and Webasyst features. */
body.cp-theme-shop{
  --f-accent:#1769b5;--f-accent-hover:#0e568f;--f-bg:#fff;
  --f-bg-soft:#f3f7fb;--f-canvas:#f5f8fc;
  --f-ink:#1c2e43;--f-ink-soft:#61758a;--f-line:#dfe7f0;
  --f-font:var(--cp-font);--f-font-display:var(--cp-font);
}
body.cp-theme-shop .f-header{background:#fff;border-bottom:1px solid var(--cp-line);box-shadow:none}
body.cp-theme-shop .f-header__logo{display:none!important}
body.cp-theme-shop .f-header__bar,body.cp-theme-shop .f-nav__row{max-width:1180px}
body.cp-theme-shop .f-header__search input{border-radius:12px}
body.cp-theme-shop .f-nav{border-top:1px solid #eef2f6;background:#fff}
body.cp-theme-shop .f-nav__link{font-family:var(--cp-font)}
body.cp-theme-shop .f-page{background:var(--cp-canvas);min-height:55vh}
body.cp-theme-shop .f-footer{background:#fff;border-top:1px solid var(--cp-line);color:var(--cp-muted);margin-top:30px}
body.cp-theme-shop .f-footer__title{color:var(--cp-ink)}
body.cp-theme-shop .f-footer__bottom{border-top:1px solid #e8edf2}
body.cp-theme-shop .f-footer__list a{color:#48617b}
body.cp-theme-shop .f-homeblog__item{border-radius:var(--cp-radius);border-color:var(--cp-line)}
body.cp-theme-shop .f-footer .cp-shop-footer-nav{
 display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;
 padding:0 0 22px;margin:0 0 24px;border-bottom:1px solid var(--cp-line);
}
body.cp-theme-shop .f-footer .cp-shop-footer-nav strong{font-size:17px;color:var(--cp-ink);margin-right:auto}
body.cp-theme-shop .f-footer .cp-shop-footer-nav a{color:#48617b;text-decoration:none;font-weight:650}
body.cp-theme-shop .f-footer .cp-shop-footer-nav a:hover{color:var(--cp-accent)}
/* GPT HUB — harmonized spacing, typography, filter controls and cards. */
body.cp-theme-hub{font:16px/1.62 var(--cp-font)}
body.cp-theme-hub main{max-width:1120px;margin:30px auto 54px;padding:0 24px}
body.cp-theme-hub main>header{align-items:flex-start;gap:20px}
body.cp-theme-hub main>header h1{color:var(--cp-ink);font-weight:800;letter-spacing:-.032em}
body.cp-theme-hub main>header p{color:var(--cp-muted)}
body.cp-theme-hub main>.card,body.cp-theme-hub main>.box,body.cp-theme-hub main>.filter,
body.cp-theme-hub main article.card,body.cp-theme-hub main article.box{
  background:#fff;border:1px solid var(--cp-line);box-shadow:var(--cp-shadow);
  border-radius:var(--cp-radius);
}
body.cp-theme-hub main .card,body.cp-theme-hub main .box{padding:21px 24px}
body.cp-theme-hub main .card h2,body.cp-theme-hub main .box h1{letter-spacing:-.024em;line-height:1.32}
body.cp-theme-hub main .card h2{font-size:clamp(19px,2vw,23px)}
body.cp-theme-hub main .cp-category-item{border-color:var(--cp-line);border-radius:13px;box-shadow:var(--cp-shadow)}
body.cp-theme-hub main .cp-category-item:hover{border-color:#b6d7ee}
body.cp-theme-hub main .filter input,body.cp-theme-hub main .filter select{border-radius:10px}
body.cp-theme-hub main .tab{border-color:#dce5ed;background:#fff;border-radius:999px}
body.cp-theme-hub main .tab.selected{background:var(--cp-accent);color:#fff}
body.cp-theme-hub main button,body.cp-theme-hub main .button{background:var(--cp-accent);border-radius:9px}
body.cp-theme-hub main .tag{background:#eaf3ff;color:#3c638c}
body.cp-theme-hub main .meta{color:var(--cp-muted)}
body.cp-theme-hub main a{color:var(--cp-accent)}
body.cp-theme-hub main a.button,body.cp-theme-hub main a.button:visited{color:#fff;font-weight:600;text-decoration:none}
body.cp-theme-hub main a.button:hover,body.cp-theme-hub main a.button:focus-visible{background:var(--cp-accent-hover);color:#fff;text-decoration:none}
body.cp-theme-hub main .article-content img{background:#f6f9fc}
@media(max-width:900px){
  body.cp-theme-blog .cybernetic-blog-layout{grid-template-columns:minmax(0,1fr) 190px;gap:18px}
  body.cp-theme-blog main.maincontent>.container{padding:22px 18px 36px!important}
}
@media(max-width:760px){
  .cp-shell-inner{min-height:0;padding:13px 18px;gap:10px;flex-direction:column;align-items:stretch}
  .cp-shell-header .cp-shell-brand{font-size:19px}
  .cp-shell-mark{width:32px;height:32px;font-size:19px}
  .cp-shell-header .cp-shell-nav{gap:5px;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding:3px 0 1px}
  .cp-shell-header .cp-shell-link{min-height:37px;padding:8px 11px;font-size:13px}
  .cp-shell-footer-inner{padding:25px 18px 18px;flex-direction:column;gap:17px}
  .cp-shell-footer-bottom{padding:14px 18px 22px}
  body.cp-theme-blog main.maincontent>.container{padding:20px 14px 30px!important}
  body.cp-theme-blog .cybernetic-blog-layout{grid-template-columns:minmax(0,1fr)}
  body.cp-theme-blog .cybernetic-blog-layout .col.w3{display:none}
  body.cp-theme-blog .cybernetic-index-heading{padding:23px 20px;margin-bottom:18px}
  body.cp-theme-blog .cybernetic-index-heading h1{font-size:29px}
  body.cp-theme-blog .cybernetic-story--lead{display:flex;flex-direction:column}
  body.cp-theme-blog .cybernetic-story--lead .cybernetic-story__media{min-height:0;aspect-ratio:16/9}
  body.cp-theme-blog .cybernetic-story__body{padding:18px}
  body.cp-theme-blog .cybernetic-story__title{font-size:19px}
  body.cp-theme-blog .cybernetic-story--lead .cybernetic-story__title{font-size:20px}
  body.cp-theme-blog .cybernetic-blog-layout .post{padding:20px 17px}
  body.cp-theme-hub main{margin:23px auto 35px;padding:0 16px}
  body.cp-theme-hub main .cp-category-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
  body.cp-theme-hub main .card,body.cp-theme-hub main .box{padding:17px}
  body.cp-theme-hub main>header h1{font-size:27px}
  body.cp-theme-shop .f-footer .cp-shop-footer-nav{gap:12px}
  body.cp-theme-shop .f-footer .cp-shop-footer-nav strong{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){
  .cp-shell-header .cp-shell-link,
  body.cp-theme-blog .cybernetic-story,
  body.cp-theme-blog .cybernetic-story__media img{transition:none!important}
}

/* Accessible Blog search, replacing the search hidden with the legacy header. */
body.cp-theme-blog .cp-blog-search{max-width:660px;margin:21px 0 0}
body.cp-theme-blog .cp-blog-search-label{display:block;margin:0 0 8px;color:#375c7d;font:650 13px/1.4 var(--cp-font)}
body.cp-theme-blog .cp-blog-search-row{display:flex;gap:10px;align-items:stretch}
body.cp-theme-blog .cp-blog-search-row input{
  flex:1;min-width:0;background:#fff;border:1px solid #c9daeb;border-radius:11px;
  padding:12px 15px;color:var(--cp-ink);font:15px/1.25 var(--cp-font);box-shadow:none
}
body.cp-theme-blog .cp-blog-search-row button{
  border:0;border-radius:11px;padding:12px 23px;background:var(--cp-accent);
  color:#fff;font:700 14px/1.25 var(--cp-font);cursor:pointer
}
body.cp-theme-blog .cp-blog-search-row button:hover{background:var(--cp-accent-hover)}
body.cp-theme-blog .cp-blog-search-row input:focus-visible,
body.cp-theme-blog .cp-blog-search-row button:focus-visible{outline:3px solid #a5d6ff;outline-offset:2px}
@media(max-width:480px){
  body.cp-theme-blog .cp-blog-search-row{flex-wrap:wrap}
  body.cp-theme-blog .cp-blog-search-row button{width:100%}
}

/* CYBERNETIC_FINAL_VISUAL_FIX_V3 */
body.cp-theme-blog{padding-top:0!important;margin-top:0!important}
html.font_family_georgia body.cp-theme-blog .cp-shell-header,
html.font_family_georgia body.cp-theme-blog .cp-shell-header *,
html.font_family_georgia body.cp-theme-blog .cp-shell-footer,
html.font_family_georgia body.cp-theme-blog .cp-shell-footer *{font-family:var(--cp-font)!important}
body.cp-theme-blog .cybernetic-index-heading h1,
body.cp-theme-blog .cybernetic-index-heading p,
body.cp-theme-blog .cybernetic-story__title,
body.cp-theme-blog .cybernetic-story__title a,
body.cp-theme-blog .cybernetic-story__excerpt,
body.cp-theme-blog .cybernetic-story__meta,
body.cp-theme-blog .cybernetic-blog-layout .post h1,
body.cp-theme-blog .cybernetic-blog-layout .post p,
body.cp-theme-blog .cybernetic-blog-layout .post li,
body.cp-theme-blog .cybernetic-blog-layout .sidebar,
body.cp-theme-blog .cybernetic-blog-layout .sidebar *{font-family:var(--cp-font)!important}
body.cp-theme-blog .cybernetic-blog-layout .post pre,
body.cp-theme-blog .cybernetic-blog-layout .post code{font-family:ui-monospace,Consolas,monospace!important}
body.cp-theme-blog .cp-shell-header,body.cp-theme-hub .cp-shell-header,
body.cp-theme-shop .cp-shell-header{max-width:none!important;width:100%!important;margin:0!important}
body.cp-theme-shop .cp-shop-unified-footer{
  background:#fff;border-top:1px solid var(--cp-line);margin-top:32px;
  box-shadow:none;color:var(--cp-muted);font:14px/1.6 var(--cp-font)}
body.cp-theme-shop .cp-shop-unified-footer .f-container{max-width:1180px;margin:0 auto;padding-left:24px;padding-right:24px}
body.cp-theme-shop .cp-shop-unified-footer .cp-shell-footer-inner{
  width:100%;max-width:none;display:flex;justify-content:space-between;
  gap:30px;margin:0;padding:32px 0 24px;border-bottom:1px solid #eff2f6}
body.cp-theme-shop .cp-shop-unified-footer .cp-shell-footer-nav{
  margin:0;padding:0;display:flex;flex-wrap:wrap;gap:14px 23px}
body.cp-theme-shop .cp-shop-unified-footer .cp-shell-footer-nav a{
  color:#48617b;font-weight:600;text-decoration:none}
body.cp-theme-shop .cp-shop-unified-footer .f-footer__cols{padding:20px 0}
body.cp-theme-shop .cp-shop-unified-footer .f-footer__bottom{font-size:12px;color:var(--cp-muted)}
body.cp-theme-shop .cp-home-projectors{margin-top:25px;margin-bottom:30px}
body.cp-theme-shop .cp-home-projectors .f-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:18px;list-style:none;margin:0;padding:0}
@media(max-width:920px){
 body.cp-theme-shop .cp-home-projectors .f-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 html body.cp-theme-blog{padding-top:0!important}
 body.cp-theme-shop .cp-home-projectors .f-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.cp-theme-shop .cp-shop-unified-footer .f-container{padding-left:18px;padding-right:18px}
 body.cp-theme-shop .cp-shop-unified-footer .cp-shell-footer-inner{flex-direction:column;gap:17px;padding:25px 0 18px}}


/* GPT HUB shared header layout repair.
   Legacy GPT Hub templates set global header{display:flex},
   which incorrectly shrinks the full-width unified header. */
body.cp-theme-hub > header.cp-shell-header {
  display: block !important;
  flex: none;
  width: 100% !important;
  max-width: none !important;
}
body.cp-theme-hub > header.cp-shell-header > .cp-shell-inner {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 760px) {
  body.cp-theme-hub > header.cp-shell-header > .cp-shell-inner {
    align-items: stretch;
  }
}


/* SHARED_AUTH_RESTORE_V5 — authentic Webasyst login, registration and session state. */
.cp-shell-header .cp-shell-auth{
  display:flex;flex:none;align-items:center;justify-content:flex-end;
  gap:6px;max-width:100%;font-family:var(--cp-font);
}
.cp-shell-header .cp-shell-auth a,
.cp-shell-header .cp-shell-auth .cp-shell-auth__profile{
  display:inline-flex;align-items:center;justify-content:center;
  gap:7px;min-height:38px;box-sizing:border-box;
  padding:8px 11px;border-radius:10px;
  border:1px solid transparent;text-decoration:none!important;
  font:650 13px/1.25 var(--cp-font)!important;
  color:var(--cp-ink)!important;white-space:nowrap;
}
.cp-shell-header .cp-shell-auth .cp-shell-auth__login,
.cp-shell-header .cp-shell-auth .cp-shell-auth__profile{
  border-color:#c9def3;background:#eef6ff;
  color:var(--cp-accent)!important;
}
.cp-shell-header .cp-shell-auth .cp-shell-auth__signup,
.cp-shell-header .cp-shell-auth .cp-shell-auth__logout{
  border-color:var(--cp-line);background:#fff;
}
.cp-shell-header .cp-shell-auth a:hover{
  border-color:#a7cef4;background:#eaf3ff;color:var(--cp-accent)!important;
}
.cp-shell-header .cp-shell-auth__profile span{
  max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.cp-shell-header .cp-shell-auth a:focus-visible{
  outline:3px solid #8ac8ff;outline-offset:2px;
}
@media(max-width:760px){
  .cp-shell-header > .cp-shell-inner,
  body.cp-theme-hub > header.cp-shell-header > .cp-shell-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"cpbrand cpauth" "cpnav cpnav";
    align-items:center;gap:9px 12px;
    width:100%;padding:12px 18px;
    min-height:0;
  }
  .cp-shell-header .cp-shell-brand{grid-area:cpbrand;min-width:0;font-size:18px;white-space:normal}
  .cp-shell-header .cp-shell-brand>span:last-child{min-width:0;white-space:normal}
  .cp-shell-header .cp-shell-nav{grid-area:cpnav;justify-content:flex-start;min-width:0;max-width:100%}
  .cp-shell-header .cp-shell-auth{grid-area:cpauth;justify-content:flex-end;min-width:0}
  .cp-shell-header .cp-shell-auth__signup{display:none!important}
  .cp-shell-header .cp-shell-auth a,
  .cp-shell-header .cp-shell-auth .cp-shell-auth__profile{padding:7px 9px;min-height:35px;font-size:12px!important}
  .cp-shell-header .cp-shell-auth__profile span{max-width:72px}
}
@media(max-width:370px){
  .cp-shell-header .cp-shell-brand{font-size:16px}
  .cp-shell-header .cp-shell-auth__profile span{max-width:46px}
  .cp-shell-header .cp-shell-auth{gap:3px}
}
