/* Initial vertical section index plus horizontal floating rail. */
body.ks-sticky-preview > .ks-sticky-index { display:block; position:fixed; inset:auto 0 auto; width:100%; visibility:hidden; pointer-events:none; }
body.ks-sticky-preview.ks-sticky-ready > .ks-sticky-index.is-docked:not(.is-past-content) { display:block; position:fixed; top:calc(var(--ks-sticky-admin-h,0px) + var(--ks-sticky-header-h,0px)); left:0; right:0; z-index:1000; width:100%; margin:0; padding:0; background:#fff; border-bottom:1px solid #e2ddd1; box-shadow:0 4px 12px rgba(70,54,34,.08); visibility:visible; pointer-events:auto; }
body.ks-sticky-preview > .ks-sticky-index .ks-sticky-index__rail { display:flex; flex-wrap:nowrap; align-items:stretch; gap:0; overflow-x:auto; padding:0 18px; scrollbar-width:thin; }
body.ks-sticky-preview > .ks-sticky-index .ks-sticky-index__rail > a { box-sizing:border-box; display:flex; flex:0 0 auto; align-items:center; min-height:48px; padding:10px 16px; border:0; border-bottom:3px solid transparent; background:none; color:#6d6253; font-size:13px; text-decoration:none; white-space:nowrap; }
body.ks-sticky-preview > .ks-sticky-index .ks-sticky-index__rail > a[aria-current="location"] { color:#57452d; border-bottom-color:#9b8256; font-weight:700; }
body.ks-sticky-preview > .ks-sticky-index .ks-sticky-index__rail > a::after { display:none; }

.ks-treatment-layout .ha-jump.ks-vertical-index,
.ks-vertical-index.page-anchor-nav { position:relative !important; inset:auto !important; height:auto !important; margin:8px auto 30px !important; padding:14px 0 22px !important; background:transparent !important; box-shadow:none !important; visibility:visible !important; }
.ks-treatment-layout .ha-jump.ks-vertical-index .ha-jump__links,
.ks-vertical-index.page-anchor-nav { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:0 24px !important; overflow:visible !important; }
.ks-treatment-layout .ha-jump.ks-vertical-index a,
.ks-vertical-index.page-anchor-nav > a { display:flex !important; align-items:center !important; justify-content:space-between !important; min-height:45px !important; padding:10px 3px !important; margin:0 !important; border:0 !important; border-bottom:1px solid #e4ddd1 !important; border-radius:0 !important; background:none !important; color:#51483e !important; font-size:14px !important; line-height:1.6 !important; white-space:normal !important; }
.ks-treatment-layout .ha-jump.ks-vertical-index a::after,
.ks-vertical-index.page-anchor-nav > a::after { content:"↓" !important; flex-shrink:0; margin-left:8px; color:#a58b5f; }
@media(max-width:750px) {
 .ks-treatment-layout .ha-jump.ks-vertical-index .ha-jump__links,
 .ks-vertical-index.page-anchor-nav { grid-template-columns:minmax(0,1fr) !important; gap:0 !important; }
 .ks-treatment-layout .ha-jump.ks-vertical-index a,
 .ks-vertical-index.page-anchor-nav > a { font-size:13px !important; }
}

@media (max-width:750px) {
 body.ks-sticky-preview.ks-sticky-ready {
  --ks-sticky-header-h:60px;
  --ks-sticky-admin-h:0px;
  --ks-sticky-nav-h:50px;
 }
 body.ks-sticky-preview.ks-sticky-ready #wrapper > header {
  min-height:var(--ks-sticky-header-h);
 }
 body.ks-sticky-preview.ks-sticky-ready #header {
  position:fixed;inset:var(--ks-sticky-admin-h) 0 auto;
  width:100%;z-index:1010;
  background:#faf8f3;
  box-shadow:0 2px 12px rgba(70,54,34,.07);
 }
 body.ks-sticky-preview.ks-sticky-ready #header .header-box,
 body.ks-sticky-preview.ks-sticky-ready #header .btn-menu {height:60px;}
 body.ks-sticky-preview.ks-sticky-ready #header .header-logo {
  width:min(64vw,230px);max-width:calc(100% - 68px);
 }
 body.ks-sticky-preview.ks-sticky-ready #header #g-navi {
  top:calc(var(--ks-sticky-admin-h) + var(--ks-sticky-header-h));
  height:calc(100dvh - var(--ks-sticky-admin-h) - var(--ks-sticky-header-h));
  max-height:calc(100dvh - var(--ks-sticky-admin-h) - var(--ks-sticky-header-h));
  overflow-y:auto;overscroll-behavior:contain;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index-slot {margin:0 0 22px;}
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index {
  box-sizing:border-box;position:relative;display:block;width:100%;max-width:none;
  margin:0;padding:0;background:#fff;border:0;
  border-top:1px solid #ebe5d9;border-bottom:1px solid #ded6c8;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index > .inner {
  width:100%;max-width:none;margin:0;padding:0;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index__rail {
  display:flex;flex-wrap:nowrap;align-items:stretch;gap:0;
  width:100%;max-width:none;margin:0;padding:0 18px;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scrollbar-width:thin;scrollbar-color:#c9bca6 transparent;
  -webkit-overflow-scrolling:touch;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index__rail > a {
  display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:0;
  width:auto;min-width:0;max-width:none;min-height:48px;
  margin:0;padding:11px 14px 10px;border:0;border-bottom:3px solid transparent;
  border-radius:0;background:transparent;color:#6d6253;
  font-size:13px;font-weight:500;line-height:1.65;letter-spacing:.025em;
  white-space:nowrap;word-break:normal;text-decoration:none;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index__rail > a::after {display:none;}
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index__rail > a[aria-current="location"] {
  color:#57452d;border-bottom-color:#9b8256;font-weight:700;background:#faf8f3;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index__rail > a:focus-visible {
  outline:2px solid #776145;outline-offset:-4px;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index.is-docked {
  position:fixed;inset:calc(var(--ks-sticky-admin-h) + var(--ks-sticky-header-h)) 0 auto;
  width:100%;z-index:1000;box-shadow:0 4px 10px rgba(70,54,34,.06);
 }
 body.ks-sticky-preview.ks-sticky-ready.ks-sticky-menu-open .ks-sticky-index.is-docked,
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-index.is-past-content {
  visibility:hidden;pointer-events:none;
 }
 body.ks-sticky-preview.ks-sticky-ready .ks-sticky-target {
  scroll-margin-top:calc(var(--ks-sticky-admin-h) + var(--ks-sticky-header-h) + var(--ks-sticky-nav-h) + 14px);
 }
 /* Keep the cloned rail measurable but out of the page flow on mobile. */
 body.ks-sticky-preview.ks-sticky-ready > .ks-sticky-index {
  position:fixed;
  top:calc(var(--ks-sticky-admin-h,0px) + var(--ks-sticky-header-h,60px));
  left:0;right:0;
  visibility:hidden;pointer-events:none;
 }
 body.ks-sticky-preview.ks-sticky-ready > .ks-sticky-index.is-docked:not(.is-past-content) {
  visibility:visible;pointer-events:auto;
 }
 body.ks-sticky-preview.ks-sticky-ready.ks-sticky-menu-open > .ks-sticky-index.is-docked {
  visibility:hidden;pointer-events:none;
 }
}
