/* Sticky sidebars, one type per DaletForge template (shared/product-sites/sidebars.py, SIDEBAR_SPEC_2026-12-01.md).
   Desktop >= 1024px: the whole rail column is sticky under the header (top 1rem), with every box it holds (owner,
   3 Dec 2026: video card, call to action, trust strip, "On this page"). A stack taller than the window scrolls on its
   own: max-height 100svh - 2rem, overflow-y auto, thin visible scrollbar, focusable by keyboard when it scrolls
   (site.js), so nothing is ever cut off. Below 1024px: marketing rails are hidden and the mobile sticky bar carries the
   call to action; the contact rail stays in the flow; ToC rails stay in the flow above the body as a collapsible
   "On this page". Widths follow the Forge templates. STICKY_SIDEBAR_SPEC.md section 4. */
.rail-col{min-width:0}
.rail-col .rail{display:block}
.rail-box .rail-text{margin:0 0 .75rem;color:var(--ink)}
.rail-sub{display:block;margin:.25rem 0 .35rem;font-weight:700;font-size:.9375rem;color:var(--muted)}
.rail-name{margin:0 0 .35rem;font:800 1.125rem/1.3 var(--font-head);color:var(--ink)}
.rail-checks{list-style:none;margin:0 0 .9rem;padding:0}
.rail-checks li{display:flex;gap:.5rem;align-items:flex-start;margin:0 0 .5rem;line-height:1.45}
.rail-checks .icon{flex:none;width:20px;height:20px;margin-top:.12rem;color:var(--navy)}
.rail-list{list-style:none;margin:0;padding:0}
.rail-list li{margin:0;border-top:1px solid var(--surface-2)}
.rail-list li:first-child{border-top:0}
.rail-link{display:inline-flex;align-items:center;min-height:44px;padding:.15rem 0;font-weight:600}
.rail-link[aria-current="page"]{color:var(--ink);text-decoration:none}
.rail-count{color:var(--muted);font-size:.875rem;white-space:nowrap}
.rail-address{display:flex;gap:.5rem;align-items:flex-start;margin:0 0 .35rem}
.rail-address .icon{flex:none;margin-top:.15rem}
.rail-more{margin:-.5rem 0 1rem;padding-left:1.1rem}
.rail-box .btn{width:100%;margin:.25rem 0}
.rail-box .fact-chips{margin:0 0 .9rem}
/* ToC rail: a disclosure, open on desktop, closed in the flow on small screens (site.js) */
.toc-details>summary,.rail-jump-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0}
.toc-details>summary::-webkit-details-marker,.rail-jump-details>summary::-webkit-details-marker{display:none}
.toc-details>summary::after,.rail-jump-details>summary::after{content:"";width:.6rem;height:.6rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 .3rem .25rem}
.toc-details[open]>summary::after,.rail-jump-details[open]>summary::after{transform:rotate(-135deg);margin-bottom:-.2rem}
.toc-details ol{margin-top:.35rem}
.rail-jump-details>summary.rail-title{margin:0}
.rail-jump-details[open]>summary.rail-title{margin:0 0 .15rem}
.rail-toc-box .rail-cta{margin-top:0}
@media (max-width:1023px){
  .layout-cols:has(>.rail-toc){display:flex;flex-direction:column}
  .layout-cols>.rail-toc{display:block;order:-1;padding:1rem 0 0}
  .layout-cols>.rail-toc .rail-cta{display:none}
  .layout-cols>.rail-marketing{display:none}
  .layout-cols>.rail-col:has(.daletforge-contact-info){display:block;padding-top:.5rem}
}
@media (min-width:1024px){
  .rail-col{position:sticky;top:1rem;align-self:start;max-height:calc(100vh - 2rem);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .rail-col:focus-visible{outline:3px solid var(--focus,#1A365D);outline-offset:-3px}
  .layout-cols:has(>.rail-left){grid-template-columns:280px minmax(0,1fr)}
  .layout-cols>.rail-left{order:-1}
  .layout-cols:has(.solution-benefits-sidebar),.layout-cols:has(.blog-archive-sidebar){grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}
  .layout-cols:has(.service-sidebar),.layout-cols:has(.daletforge-contact-info){grid-template-columns:minmax(0,3fr) minmax(300px,2fr)}
  .layout-cols:has(.local-contact-sidebar){grid-template-columns:minmax(0,7fr) minmax(280px,3fr)}
  .layout-cols:has(.sidebar-sticky){grid-template-columns:minmax(0,1fr) 300px}
  .layout-cols:has(>.rail-left .df-toc){grid-template-columns:minmax(240px,1fr) minmax(0,3fr)}
}
@supports (max-height:100svh){@media (min-width:1024px){.rail-col{max-height:calc(100svh - 2rem)}}}
@media (min-width:1440px){
  .layout-cols:has(.service-sidebar),.layout-cols:has(.daletforge-contact-info){grid-template-columns:minmax(0,3fr) minmax(320px,2fr)}
}
/* newsletter signup in the rail; services rail: shown first on small screens (Forge services, CSS order -1) */
.rail-form .field{margin:0 0 .6rem}
.rail-form label{display:block;font-weight:600;font-size:.9375rem;margin-bottom:.25rem}
.rail-form input[type=email]{width:100%;min-height:44px}
.rail-form .field.check{display:flex;gap:.5rem;align-items:flex-start}
.rail-form .field.check label{font-weight:400}
.rail-form .field.check input{width:24px;height:24px;flex:none;margin-top:.1rem}
.rail-checks strong{color:var(--ink)}
@media (max-width:1023px){
  .layout-cols:has(>.rail-col .service-sidebar){display:flex;flex-direction:column}
  .layout-cols>.rail-col:has(.service-sidebar){display:block;order:-1;padding-top:1rem}
}
@media (min-width:1024px){
  .layout-cols:has(>.rail-left .df-toc),.layout-cols:has(>.rail-left .sidebar-column){grid-template-columns:280px minmax(0,1fr)}
  .layout-cols.legal-layout:has(>.rail-left){grid-template-columns:minmax(220px,1fr) minmax(0,3fr)}
}
