/* Shared sidebar rail for pages, posts, categories, tags, archives and blog. */
.content-layout.has-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,310px);align-items:start;gap:clamp(26px,3.2vw,46px)}
.content-layout.has-sidebar>.content-primary{min-width:0}
.content-layout.has-sidebar>.site-sidebar{position:relative;align-self:stretch;min-width:0;height:auto;min-height:100%}
.content-layout.has-sidebar .sidebar-sticky-inner{position:sticky;top:112px;max-height:none;height:auto;overflow:visible;overscroll-behavior:auto;padding:0}
body.admin-bar .content-layout.has-sidebar .sidebar-sticky-inner{top:144px}
.site-sidebar .widget{margin:0 0 18px;padding:20px;border:1px solid var(--tw-line);border-radius:16px;background:var(--tw-paper);color:var(--tw-ink);box-shadow:0 8px 24px rgba(15,35,60,.045)}
.site-sidebar .widget-title{font-size:17px;margin:0 0 14px;color:var(--tw-heading)}
.site-sidebar img{display:block;max-width:100%;height:auto}
.site-sidebar a{color:var(--tw-accent)}
html[data-theme=dark] .site-sidebar .widget{background:#10243a;border-color:#2b435b;color:#d7e3ef}
html[data-theme=dark] .site-sidebar .widget-title{color:#f0f6fc}
html[data-theme=dark] .site-sidebar a{color:#c9d9e8}
html[data-theme=dark] .site-sidebar a:hover{color:#78d7f5}
@media(max-width:1050px){.content-layout.has-sidebar{grid-template-columns:minmax(0,1fr) 270px;gap:24px}}
@media(max-width:782px){.content-layout.has-sidebar{grid-template-columns:minmax(0,1fr)}.content-layout.has-sidebar>.site-sidebar{height:auto;min-height:0;margin-top:28px}.content-layout.has-sidebar .sidebar-sticky-inner{position:static;top:auto}}

/* 1.9.0 — blog and taxonomy archives share the same sticky rail as single posts. */
.blog .content-layout.has-sidebar,
.archive .content-layout.has-sidebar,
.category .content-layout.has-sidebar,
.tag .content-layout.has-sidebar,
.single .content-layout.has-sidebar{align-items:stretch}
.blog .content-layout.has-sidebar>.site-sidebar,
.archive .content-layout.has-sidebar>.site-sidebar,
.category .content-layout.has-sidebar>.site-sidebar,
.tag .content-layout.has-sidebar>.site-sidebar,
.single .content-layout.has-sidebar>.site-sidebar{align-self:stretch}
.blog .content-layout.has-sidebar .sidebar-sticky-inner,
.archive .content-layout.has-sidebar .sidebar-sticky-inner,
.category .content-layout.has-sidebar .sidebar-sticky-inner,
.tag .content-layout.has-sidebar .sidebar-sticky-inner,
.single .content-layout.has-sidebar .sidebar-sticky-inner{position:sticky;top:24px;max-height:none;overflow:visible}
body.admin-bar .blog .content-layout.has-sidebar .sidebar-sticky-inner,
body.admin-bar .archive .content-layout.has-sidebar .sidebar-sticky-inner,
body.admin-bar .category .content-layout.has-sidebar .sidebar-sticky-inner,
body.admin-bar .tag .content-layout.has-sidebar .sidebar-sticky-inner,
body.admin-bar .single .content-layout.has-sidebar .sidebar-sticky-inner{top:56px}

/* 1.9.1 — premium shared sidebar; sticky uses the document scroll only. */
.site-main.content-layout.has-sidebar{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(270px,320px);
  align-items:stretch;
  gap:clamp(28px,3.4vw,48px);
  overflow:visible;
}
.site-main.content-layout.has-sidebar>.content-primary{min-width:0;min-height:100%;overflow:visible}
.site-main.content-layout.has-sidebar>.site-sidebar{
  display:block;
  align-self:stretch;
  min-width:0;
  min-height:100%;
  height:auto;
  overflow:visible;
}
.site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{
  position:sticky;
  top:28px;
  display:grid;
  gap:16px;
  height:auto;
  max-height:none;
  overflow:visible;
  padding:0 0 12px;
}
body.admin-bar .site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{top:60px}
.site-sidebar .widget{
  position:relative;
  margin:0;
  padding:22px;
  overflow:hidden;
  border:1px solid var(--tw-line,#e4eaf1);
  border-radius:17px;
  background:var(--tw-paper,#fff);
  color:var(--tw-ink,#26364b);
  box-shadow:0 10px 30px rgba(13,34,62,.055);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.site-sidebar .widget:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,#078fc5,#54c7e9 58%,transparent);
  opacity:.9;
}
.site-sidebar .widget:hover{border-color:rgba(7,143,197,.32);box-shadow:0 15px 38px rgba(13,34,62,.085)}
.site-sidebar .widget-title{margin:0 0 15px;padding:0 0 12px;border-bottom:1px solid var(--tw-line);color:var(--tw-heading);font-size:16px;font-weight:850;letter-spacing:-.02em}
.site-sidebar .widget ul{display:grid;gap:0;margin:0;padding:0;list-style:none}
.site-sidebar .widget li{margin:0;padding:10px 0;border-bottom:1px solid var(--tw-line);font-size:13px;line-height:1.55}
.site-sidebar .widget li:last-child{border-bottom:0;padding-bottom:0}
.site-sidebar .widget li a{color:var(--tw-ink);text-decoration:none;transition:color .18s ease}
.site-sidebar .widget li a:hover{color:var(--tw-accent)}
.site-sidebar .widget select,.site-sidebar .widget input[type=search],.site-sidebar .widget input[type=text]{width:100%;min-height:42px;border:1px solid var(--tw-line);border-radius:9px;background:var(--tw-paper);color:var(--tw-ink);padding:9px 11px}
.site-sidebar .widget_categories,.site-sidebar .wp-block-categories,.site-sidebar .wp-block-categories-list{display:none!important}
html[data-theme=dark] .site-sidebar .widget{background:linear-gradient(145deg,#102840,#0d2035);border-color:#29445e;color:#dce8f4;box-shadow:0 12px 32px rgba(0,0,0,.18)}
html[data-theme=dark] .site-sidebar .widget-title{color:#f2f7fc;border-color:#29445e}
html[data-theme=dark] .site-sidebar .widget li{border-color:#263f57}
html[data-theme=dark] .site-sidebar .widget li a{color:#d5e2ef}
html[data-theme=dark] .site-sidebar .widget li a:hover{color:#7cdef8}
html[data-theme=dark] .site-sidebar .widget select,html[data-theme=dark] .site-sidebar .widget input[type=search],html[data-theme=dark] .site-sidebar .widget input[type=text]{background:#0b1d30;border-color:#2b435b;color:#eaf2fa}
@media(max-width:1050px){.site-main.content-layout.has-sidebar{grid-template-columns:minmax(0,1fr) 280px;gap:24px}}
@media(max-width:782px){
 .site-main.content-layout.has-sidebar{grid-template-columns:minmax(0,1fr);gap:28px}
 .site-main.content-layout.has-sidebar>.site-sidebar{height:auto;min-height:0;margin-top:0}
 .site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{position:static;top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .site-sidebar .widget{padding:17px;border-radius:14px}
}
@media(max-width:520px){.site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{grid-template-columns:minmax(0,1fr)}}


/* 1.9.2 — document-scroll sticky rail for all pages using the shared layout. */
.site-main.content-layout.has-sidebar{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,320px);
  align-items:stretch;gap:clamp(26px,3.2vw,46px);overflow:visible
}
.site-main.content-layout.has-sidebar>.content-primary,
.site-main.content-layout.has-sidebar>.site-sidebar,
.site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{
  min-width:0;height:auto;max-height:none;overflow:visible;overscroll-behavior:auto
}
.site-main.content-layout.has-sidebar>.site-sidebar{align-self:stretch;min-height:100%}
.site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{
  position:sticky;top:24px;display:grid;gap:16px;padding:0 0 12px
}
body.admin-bar .site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{top:56px}
@media(max-width:782px){
 .site-main.content-layout.has-sidebar{grid-template-columns:minmax(0,1fr);gap:28px}
 .site-main.content-layout.has-sidebar>.site-sidebar{min-height:0;margin-top:0}
 .site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{position:static;top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
 .site-main.content-layout.has-sidebar>.site-sidebar>.sidebar-sticky-inner{grid-template-columns:minmax(0,1fr)}
}
