:root{
  --site-rail-width:min(1280px, calc(100% - 80px));
}
.site-header.unified-site-header{
  height:var(--site-nav-height, 80px);
  position:sticky;
  top:0;
  z-index:20;
  box-sizing:border-box;
  background:#fff;
  border-bottom:1px solid #e6eefb;
}
.unified-site-header .header-container{
  box-sizing:border-box;
  width:var(--site-rail-width);
  max-width:none;
  padding:0;
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
}
html:has(.unified-site-header){scroll-padding-top:96px}

/* The homepage rail also sizes the stats and template gallery. */
body:has(.home-site-header){
  overflow-x:clip;
}
.home-reference-page .stats,
.home-reference-page .templates-section > .content-width{
  width:var(--site-rail-width);
  max-width:none;
}
.unified-site-header .brand{
  display:flex;
  align-items:center;
  gap:7px;
  flex:none;
  color:#090f35;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.unified-site-header .brand-lockup--header .brand-lockup__icon{
  width:64px;
  height:auto;
  display:block;
  flex:none;
  object-fit:contain;
  filter:drop-shadow(0 5px 8px rgba(7,67,165,.12));
  transition:transform .22s ease,filter .22s ease;
}
.unified-site-header .brand-lockup--header .brand-lockup__copy{
  display:grid;
  justify-items:center;
  align-content:center;
  gap:2px;
  min-width:0;
}
.unified-site-header .brand-lockup--header .brand-lockup__title{
  display:block;
  width:170px;
  height:auto;
}
.unified-site-header .brand-lockup--header .brand-lockup__url{
  display:block;
  width:170px;
  height:auto;
}
.unified-site-header .brand:hover .brand-lockup__icon{
  transform:translateY(-1px) rotate(-2deg);
  filter:drop-shadow(0 7px 11px rgba(7,67,165,.18));
}
.unified-site-header .brand-name{
  font-size:22px;
  font-weight:820;
  letter-spacing:-.8px;
}
.unified-site-header .brand-name>span{
  margin-right:2px;
  background:linear-gradient(115deg,#11356f 5%,#0767f4 72%,#08a6e8 100%);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}
.unified-site-header .main-nav{
  height:100%;
  display:flex;
  align-items:center;
  margin-left:clamp(48px,5vw,74px);
  gap:clamp(38px,4vw,60px);
  color:#0b2048;
  font-size:18px;
  font-weight:760;
  white-space:nowrap;
}
.unified-site-header .main-nav a{
  position:relative;
  height:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  color:inherit;
  text-decoration:none;
}
.unified-site-header .main-nav a:hover{color:#005cf7}
.unified-site-header .login-btn{
  min-width:92px;
  height:42px;
  margin-left:auto;
  padding:0 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(17,96,238,.78);
  border-radius:11px;
  background:linear-gradient(135deg,#1b82ff 0%,#0964f5 48%,#064bdc 100%);
  box-shadow:0 6px 16px rgba(7,91,225,.22),inset 0 1px 0 rgba(255,255,255,.28);
  color:#fff;
  font-size:15px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.unified-site-header .login-btn:hover{filter:saturate(1.08) brightness(1.04);transform:translateY(-1px);box-shadow:0 9px 22px rgba(7,91,225,.28),inset 0 1px 0 rgba(255,255,255,.32)}
.unified-site-header .login-btn:active{transform:translateY(0);filter:brightness(.96);box-shadow:0 3px 9px rgba(7,91,225,.2),inset 0 1px 0 rgba(255,255,255,.2)}
.unified-site-header .login-btn:focus-visible{outline:2px solid #2469dc;outline-offset:3px}
.unified-site-header .header-member-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.unified-site-header .header-member-actions .login-btn{margin-left:0}.unified-site-header .subscribe-btn{min-width:104px;height:42px;padding:0 17px;border:0;border-radius:11px;background:linear-gradient(135deg,#ffae25 0%,#ff9418 48%,#ff7613 100%);box-shadow:0 7px 17px rgba(239,126,19,.22),inset 0 1px 0 rgba(255,255,255,.3);color:#fff;font-size:15px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.unified-site-header .subscribe-btn:hover{filter:saturate(1.06) brightness(1.03);transform:translateY(-1px);box-shadow:0 10px 22px rgba(239,126,19,.28),inset 0 1px 0 rgba(255,255,255,.34)}.unified-site-header .subscribe-btn:active{transform:translateY(0);filter:brightness(.97)}.unified-site-header .subscribe-btn:focus-visible{outline:2px solid #ff9418;outline-offset:3px}
@media (min-width:761px) and (max-width:1199px){
  :root{--site-rail-width:min(954px, calc(100% - 70px))}
  .unified-site-header{--site-nav-height:64px}
  .unified-site-header .brand-lockup--header .brand-lockup__icon{width:48px}
  .unified-site-header .brand-lockup--header .brand-lockup__title{width:125px}
  .unified-site-header .brand-lockup--header .brand-lockup__url{width:125px}
  .unified-site-header .brand-name{font-size:19px}
  .unified-site-header .main-nav{gap:30px;font-size:15px}
  .unified-site-header .login-btn{min-width:76px;height:36px;padding:0 12px;font-size:13px}
  .unified-site-header .subscribe-btn{min-width:86px;height:36px;padding:0 12px;font-size:13px}
}
@media (max-width:760px){
  :root{--site-rail-width:calc(100% - 32px)}
  .unified-site-header{--site-nav-height:58px}
  .unified-site-header .brand{gap:5px}
  .unified-site-header .brand-lockup--header .brand-lockup__icon{width:38px}
  .unified-site-header .brand-lockup--header .brand-lockup__copy{gap:1px}
  .unified-site-header .brand-lockup--header .brand-lockup__title{width:95px}
  .unified-site-header .brand-lockup--header .brand-lockup__url{width:95px}
  .unified-site-header .brand-name{font-size:17px}
  .unified-site-header .main-nav{margin-left:auto;gap:14px;font-size:12px}
  .unified-site-header .login-btn{min-width:64px;height:34px;margin-left:16px;padding:0 10px;font-size:12px}
  .unified-site-header .header-member-actions{margin-left:16px;gap:7px}.unified-site-header .header-member-actions .login-btn{margin-left:0}.unified-site-header .subscribe-btn{min-width:72px;height:34px;padding:0 10px;font-size:12px}
}

.site-footer .brand-symbol{
  width:38px;
  height:38px;
  display:block;
  flex:none;
  filter:drop-shadow(0 5px 10px rgba(5,46,120,.2));
}
.site-footer .footer-brand-name,
.home-reference-footer .footer-brand strong{
  font-weight:800;
  letter-spacing:-.55px;
}
.site-footer .footer-brand-name b,
.home-reference-footer .footer-brand strong>span{
  color:#2386ff;
  font-weight:850;
}
.home-reference-footer .brand-symbol{width:42px;height:42px}
@media (max-width:430px){
  .unified-site-header .brand-name{display:none}
  .unified-site-header .main-nav{margin-left:12px;gap:10px}
  .unified-site-header .login-btn{margin-left:auto}
}
@media (max-width:560px){
  .unified-site-header{--site-nav-height:94px}
  .unified-site-header .header-container{flex-wrap:wrap;align-content:center;padding-top:5px}
  .unified-site-header .main-nav{order:3;width:100%;height:35px;margin:0;justify-content:center;gap:28px}
  .unified-site-header .header-member-actions{margin-left:auto}
}

.brand-lockup{display:inline-flex;max-width:100%}
.unified-site-header .brand-lockup{flex:none}
.site-footer .brand-lockup{height:38px;margin-bottom:5px}
.admin-logo .brand-lockup{height:31px}
.admin-login-brand .brand-lockup{height:auto;width:min(300px,60vw)}
.site-footer .footer-stack{
  width:var(--site-rail-width);
  margin-inline:auto;
  padding:32px 0;
  display:grid;
  justify-items:center;
  gap:10px;
  text-align:center;
  color:#526786;
}
.site-footer.home-reference-footer .footer-stack{color:#c5d6ee}
.site-footer .footer-lockup .brand-lockup{height:38px;margin:0}
.footer-stack .footer-description{margin:0;font-size:14px}
.footer-stack .footer-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:4px 6px;
  margin-top:6px;
  font-size:12px;
}
.footer-stack .footer-meta small{font:inherit}
.footer-stack .footer-meta nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 6px}
.footer-stack .footer-meta nav a{color:inherit;padding:0;border:0}
.footer-stack .footer-meta nav a:hover{color:#fff;text-decoration:none}
.footer-stack .footer-separator{opacity:.58;pointer-events:none;user-select:none}
@media (max-width:560px){
  .site-footer .footer-stack{padding:26px 0}
  .footer-stack .footer-meta{gap:4px 5px}
}
@media (min-width:761px) and (max-width:1199px){
  .unified-site-header .brand-lockup{height:44px}
}
@media (max-width:760px){
  .unified-site-header .brand-lockup{height:32px}
}
@media (max-width:430px){
  .unified-site-header .brand-lockup{height:29px}
}
@media (max-width:360px){
  .unified-site-header .brand-lockup--header .brand-lockup__icon{width:35px}
  .unified-site-header .brand-lockup--header .brand-lockup__title{width:88px}
  .unified-site-header .brand-lockup--header .brand-lockup__url{width:88px}
  .unified-site-header .brand-lockup{height:25px}
  .unified-site-header .main-nav{margin-left:8px;gap:8px}
  .unified-site-header .login-btn{min-width:52px;padding-inline:6px}
  .unified-site-header .subscribe-btn{min-width:66px;padding-inline:7px}
}

/* Polished conversion controls and a true hero-to-content floating data card. */
.view-hint{
  top:15px;
  right:15px;
  min-height:36px;
  padding:0 13px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:11px;
  background:linear-gradient(135deg,#2189ff 0%,#0965f4 55%,#0750dc 100%);
  color:#fff;
  font-size:13px;
  font-weight:750;
  letter-spacing:.1px;
  box-shadow:0 9px 22px rgba(7,83,208,.28),inset 0 1px 0 rgba(255,255,255,.3);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.view-hint:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 12px 27px rgba(7,83,208,.34),inset 0 1px 0 rgba(255,255,255,.34)}
.view-hint:active{transform:translateY(0);filter:brightness(.96)}
.view-hint:focus-visible{outline:3px solid rgba(60,144,255,.35);outline-offset:3px}
.view-hint svg{width:16px!important;height:16px!important;flex-basis:16px!important;stroke-width:2!important}
.home-reference-page .top-gradient{background:transparent}
.home-reference-page .stats{
  position:relative;
  z-index:6;
  margin:-39px auto -39px;
  border:1px solid rgba(255,255,255,.9);
  background:linear-gradient(112deg,rgba(255,255,255,.97),rgba(247,251,255,.93));
  box-shadow:0 24px 54px rgba(37,82,154,.18),0 5px 13px rgba(49,104,188,.09),inset 0 1px 0 #fff;
  backdrop-filter:blur(14px) saturate(1.1);
}
.home-reference-page .templates-section{padding-top:95px}
@media (max-width:1199px){
  .home-reference-page .stats{margin:-32px auto -32px}
  .home-reference-page .templates-section{padding-top:82px}
}
@media (max-width:760px){
  .view-hint{top:12px;right:12px;min-height:34px;padding:0 11px;font-size:12px}
  .home-reference-page .stats{margin:-28px auto -28px}
  .home-reference-page .templates-section{padding-top:74px}
}
