/* Homepage-aligned canonical AgentenCode header for self-contained editorial articles.
   Existing pages with /assets/styles.css retain their original homepage stylesheet. */
.site-header.ac-sitewide-header{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.97);
  border-bottom:1px solid #e0e8f1;box-shadow:0 5px 18px rgba(16,38,65,.07);backdrop-filter:blur(14px);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ac-sitewide-header *, .ac-sitewide-header *::before, .ac-sitewide-header *::after{box-sizing:border-box}
.ac-sitewide-header .header{width:min(1140px,calc(100% - 32px));min-height:76px;margin:0 auto;padding:0 12px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:clamp(12px,2vw,24px);align-items:center}
.ac-sitewide-header .brand{display:flex;align-items:center;gap:11px;white-space:nowrap;min-width:225px;text-decoration:none}
.ac-sitewide-header .brand-symbol-v2{width:42px;height:42px;flex:0 0 42px;object-fit:contain;
  filter:drop-shadow(0 5px 9px rgba(22,105,255,.12))}
.ac-sitewide-header .brand-copy{display:flex;flex-direction:column;line-height:1}
.ac-sitewide-header .brand-wordmark-v2{font-size:21px;font-weight:850;letter-spacing:-.055em;line-height:1;
  display:inline-flex;gap:0}
.ac-sitewide-header .brand-main-v2{color:#101c38}
.ac-sitewide-header .brand-accent-v2{color:#1683ff}
.ac-sitewide-header .brand-copy small{font-size:7px;color:#73849a;font-weight:800;letter-spacing:.14em;margin-top:5px}
.ac-sitewide-header .nav.nav-premium{display:flex;align-items:center;justify-content:center;gap:clamp(14px,1.7vw,25px)}
.ac-sitewide-header .nav.nav-premium>a{font-size:13px;font-weight:760;color:#17233b;text-decoration:none;white-space:nowrap}
.ac-sitewide-header .nav.nav-premium>a:hover,.ac-sitewide-header .nav.nav-premium>a:focus-visible{color:#167dff}
.ac-sitewide-header .header-search{display:grid;place-items:center;margin:0;width:42px;height:42px;min-width:42px;
  background:#f2f5f9;border-radius:999px;color:#17263d;font-size:0;text-decoration:none;overflow:hidden}
.ac-sitewide-header .header-search span{font-size:25px;line-height:1}
.ac-sitewide-header .lang-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;background:#f5f8fc;
  border:1px solid #dce5ef;border-radius:999px;white-space:nowrap}
.ac-sitewide-header .lang-switch a{display:grid;place-items:center;min-width:34px;height:30px;padding:0 8px;
  border-radius:999px;font-size:11px;font-weight:800;color:#5e6d83;text-decoration:none}
.ac-sitewide-header .lang-switch a.active{color:#fff;background:#12233d}
.ac-sitewide-header .menu{display:none;border:1px solid #dfe7f1;background:#f7f9fc;color:#1b2d45;
  border-radius:10px;padding:9px 11px;font-weight:700;cursor:pointer}
.ac-sitewide-header :is(a,button):focus-visible{outline:3px solid #438af1;outline-offset:3px}
@media(max-width:1080px){
  .ac-sitewide-header .header{grid-template-columns:minmax(0,1fr) auto auto;gap:10px;min-height:68px}
  .ac-sitewide-header .header-search{display:none}
  .ac-sitewide-header .menu{display:block}
  .ac-sitewide-header .nav.nav-premium{display:none}
  .ac-sitewide-header .nav.nav-premium.nav-open{display:flex;position:absolute;top:calc(100% - 1px);
    left:16px;right:16px;flex-direction:column;align-items:stretch;gap:2px;padding:14px;
    background:#fff;border:1px solid #dce5ef;border-radius:15px;box-shadow:0 22px 55px rgba(13,36,63,.18)}
  .ac-sitewide-header .nav.nav-premium.nav-open a{padding:12px;border-radius:8px}
}
@media(max-width:480px){
  .ac-sitewide-header .header{width:calc(100% - 14px);padding:0 6px;gap:7px}
  .ac-sitewide-header .brand{min-width:0;gap:7px}
  .ac-sitewide-header .brand-symbol-v2{width:34px;height:34px;flex-basis:34px}
  .ac-sitewide-header .brand-wordmark-v2{font-size:18px}
  .ac-sitewide-header .brand-copy small{display:none}
  .ac-sitewide-header .lang-switch a{min-width:28px;height:28px;padding:0 5px}
  .ac-sitewide-header .menu{padding:7px 9px}
}