:root{--sidebar:248px;--rail-width:64px}
.sidebar-shell>summary{position:fixed;left:232px;top:39px;z-index:50;width:30px;height:30px;display:grid;place-items:center;cursor:pointer;list-style:none;border:1px solid #e1d8cb;border-radius:50%;background:#fffaf2;color:#766d61;box-shadow:0 2px 6px #3c29100a}
.sidebar-shell>summary::-webkit-details-marker{display:none}
.sidebar-shell>summary::before{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(135deg);margin-left:3px}
.sidebar-shell:not([open])>summary{left:49px}
.sidebar-shell:not([open])>summary::before{transform:rotate(-45deg);margin-left:-3px}
.sidebar-shell>summary:hover{color:#b53b08;background:#ffead2}
.sidebar-shell>summary:focus-visible,.compact-nav a:focus-visible{outline:2px solid #b53b08;outline-offset:4px}
.sidebar-shell>summary>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.sidebar-shell .close-label{display:none}.sidebar-shell[open] .close-label{display:inline}.sidebar-shell[open] .open-label{display:none}
.sidebar-shell .site-header,.sidebar-shell .script-sidebar{width:248px;position:fixed;inset:0 auto 0 0;height:100dvh;box-sizing:border-box;padding:36px 20px 24px;background:#f5efe5;border-right:1px solid #e8dfd2;overflow-y:auto}
.sidebar-shell .site-header>.wordmark{margin:0 0 32px;padding:4px 12px;height:36px;max-width:180px}
.sidebar-shell .site-header>.wordmark svg{width:148px;height:auto}
.site-header nav{gap:16px}
.site-header nav a{border-radius:8px;min-height:36px;padding:8px 12px;font-size:13px}
.site-header .nav-group a{padding:8px 12px;min-height:36px;font-size:13px;gap:12px}
.site-header .nav-group summary{padding:12px 12px 8px;font-size:11px;font-weight:500;color:#857a6c}
.site-header nav a[aria-current=true]{background:#ffead2;color:#9d390b}
.site-header nav a[aria-current=true]:after{display:none}
.site-header nav a:hover{background:#ece3d6}
.sidebar-footer{padding:24px 12px 0;gap:10px}
.sidebar-shell .script-title{display:block;margin:0 0 28px;padding:8px 10px;font-size:16px}
.sidebar-shell .script-sidebar nav a{border-radius:8px;padding:8px 10px;margin-bottom:4px}
.sidebar-shell .script-sidebar nav a[aria-current=true]{background:#ffead2;color:#9d390b}
body:has(.sidebar-shell[open]) #main{margin-left:248px}
body:has(.sidebar-shell:not([open])) #main{margin-left:64px;padding-top:0}
body:has(.sidebar-shell[open]) main#script-top{margin-left:max(296px,calc((100vw - 760px)/2 + 124px))}
body:has(.sidebar-shell:not([open])) main#script-top{margin-left:max(112px,calc((100vw - 760px)/2 + 32px));padding-top:24px}
.compact-nav{display:none;position:fixed;inset:0 auto 0 0;width:64px;background:#f5efe5;border-right:1px solid #e8dfd2;z-index:20;overflow-y:auto;padding:92px 10px 20px;box-sizing:border-box;flex-direction:column;gap:7px}
body:has(.sidebar-shell:not([open])) .compact-nav{display:flex}
.compact-nav a{display:flex;width:42px;min-height:36px;align-items:center;justify-content:center;border-radius:8px;color:#71685b;font:12px Helvetica,Arial,sans-serif;padding:6px}
.compact-nav a:hover,.compact-nav a[aria-current=true]{background:#ffead2;color:#9d390b}
.compact-nav svg{width:18px;height:18px}
@media print{.sidebar-shell,.compact-nav{display:none!important}body:has(.sidebar-shell) #main,body:has(.sidebar-shell) main#script-top{margin-left:0}}

/* Framed navigation panel with a quieter editorial hierarchy. */
.sidebar-shell .site-header,.sidebar-shell .script-sidebar {
  inset:12px auto 12px 12px;width:232px;height:calc(100dvh - 24px);
  padding:28px 14px 18px;border:1px solid #ded7cc;border-radius:16px;
  background:#eee9e0;box-shadow:0 4px 16px #44321c06;
  scrollbar-width:thin;scrollbar-color:#d4cbbd transparent;
}
.sidebar-shell .site-header>.wordmark {
  padding:4px 14px;margin-bottom:24px;height:36px;
}
.sidebar-shell .site-header>.wordmark svg {width:132px}
.sidebar-shell>summary {
  left:228px;top:43px;width:28px;height:28px;
  border-color:#d9d0c2;background:#f8f4ed;color:#8a8072;
  box-shadow:0 2px 4px #4b39200a;
  transition:background .18s,color .18s;
}
.site-header nav{gap:10px}
.site-header .nav-group summary {
  padding:16px 14px 7px;font-family:Tiempos,'Times New Roman',serif;
  font-size:14px;line-height:1.3;font-weight:400;color:#8c8171;
}
.site-header nav a,.site-header .nav-group a {
  min-height:35px;padding:8px 14px;border-radius:7px;
  font-size:12px;font-weight:400;color:#554e44;
  transition:background .16s,color .16s,box-shadow .16s;
}
.site-header nav a svg{opacity:.65;width:16px;height:16px}
.site-header nav a[aria-current=true] {
  background:#fffcf7;color:#a34317;font-weight:500;
  box-shadow:0 1px 3px #47341e0a,inset 0 0 0 1px #e1d5c5;
}
.site-header nav a[aria-current=true] svg{opacity:1}
.site-header nav a:hover {background:#f8f3eb;color:#a34317}
.sidebar-footer {
  margin-top:auto;padding:22px 14px 0;font-size:10px;line-height:1.6;color:#968b7c;
}
.sidebar-footer a{font-size:11px;color:#6d6253;text-decoration:none}
.sidebar-footer a:hover{color:#a34317}
.sidebar-shell .script-title {font-family:Tiempos,'Times New Roman',serif;font-size:21px;color:#a34317}
.sidebar-shell .script-sidebar nav a {font-size:12px;color:#554e44}
.sidebar-shell .script-sidebar nav a[aria-current=true] {background:#fffcf7;box-shadow:inset 0 0 0 1px #e1d5c5;color:#a34317}
.compact-nav {
  inset:12px auto 12px 12px;width:48px;height:calc(100dvh - 24px);
  border:1px solid #ded7cc;border-radius:12px;padding:76px 4px 12px;
  background:#eee9e0;gap:8px;
}
.compact-nav a{width:38px;min-height:34px;border-radius:6px}
.compact-nav a:hover,.compact-nav a[aria-current=true]{background:#fffcf7;color:#a34317}
.sidebar-shell:not([open])>summary{left:46px;top:43px}
@media(prefers-reduced-motion:reduce){.sidebar-shell>summary,.site-header nav a{transition:none}}

.sidebar-shell .site-header,.sidebar-shell .script-sidebar,.compact-nav{background:#fff3df;border-color:#eee2cf;box-shadow:none}
.site-header nav a[aria-current=true],.sidebar-shell .script-sidebar nav a[aria-current=true],.compact-nav a[aria-current=true]{background:#ffead2;color:#9d390b;box-shadow:none}
.site-header nav a:hover,.compact-nav a:hover{background:#ffead2}
.sidebar-shell>summary{background:#fff8e9;border-color:#e9ddca;box-shadow:none}

.compact-nav a::after{display:none!important}
.sidebar-shell .site-header,.sidebar-shell .script-sidebar,.compact-nav,.sidebar-shell>summary{border:0;box-shadow:none}

.sidebar-shell .site-header,.sidebar-shell .script-sidebar{
  inset:0 auto 0 0;
  width:216px;
  height:100dvh;
  padding:24px 18px 22px;
  border-radius:0;
  background:#fff3df;
  box-shadow:none;
}
.sidebar-shell .site-header>.wordmark{
  margin:0 0 22px;
  padding:4px 12px;
}
.sidebar-shell>summary{
  left:200px;
  top:28px;
}
body:has(.sidebar-shell[open]) #main{margin-left:216px}
body:has(.sidebar-shell[open]) main#script-top{
  margin-left:max(264px,calc((100vw - 760px)/2 + 108px));
}
.compact-nav{
  inset:0 auto 0 0;
  width:56px;
  height:100dvh;
  padding:76px 7px 20px;
  border-radius:0;
  background:#fff3df;
  box-shadow:none;
}
.sidebar-shell:not([open])>summary{
  left:42px;
  top:28px;
}
body:has(.sidebar-shell:not([open])) #main{margin-left:56px}
