/* Shared public index. Explicit rules isolate it from legacy page styles. */
.site-index{--index-gold:#e5c68a;--index-line:#d1b07838;font-family:Arial,sans-serif;color:#fffaf0;line-height:1.5;text-align:start}
.site-index[dir=rtl]{font-family:Tahoma,Arial,sans-serif}
.site-index *{box-sizing:border-box}
.site-index [hidden]{display:none!important}
.site-index a{color:#fffaf0;text-decoration:none}
.site-index button,.site-index input{font:inherit;letter-spacing:normal}
.site-index button{cursor:pointer}
.site-index :is(a,button,input,summary):focus-visible{outline:2px solid #f4d592;outline-offset:3px}
.site-index-panel{position:fixed;z-index:1202;top:0;bottom:0;inset-inline-start:0;width:296px;max-width:calc(100vw - 24px);height:100dvh;background:#0b0c0e;border-inline-end:1px solid var(--index-line);display:flex;flex-direction:column;box-shadow:12px 0 45px #0003;padding:0;text-align:start}
.site-index-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:24px 18px 18px;border-bottom:1px solid var(--index-line)}
.site-index .site-index-brand{font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--index-gold)}
.site-index[dir=rtl] .site-index-brand{letter-spacing:0;font-size:13px}
.site-index-heading p{font-size:21px;font-weight:600;margin:5px 0 0;color:#fffaf0}
.site-index .site-index-close,.site-index .site-index-clear{border:1px solid var(--index-line);background:transparent;color:#fffaf0;border-radius:6px;min-width:40px;height:44px;font:26px/1 Arial,sans-serif;padding:0;flex-shrink:0}
.site-index-search{padding:16px 16px 12px}
.site-index-search label{display:block;font-size:13px;font-weight:600;color:#eadbc0;margin:0 0 8px}
.site-index-search>div{position:relative}
.site-index input[type=search]{display:block;width:100%;height:46px;min-width:0;padding:10px 38px 10px 12px;border:1px solid #d1b07869;border-radius:6px;background:#161719;color:white;font-size:16px;appearance:none}
.site-index[dir=rtl] input[type=search]{padding:10px 12px 10px 38px}
.site-index input::placeholder{color:#bdb9af;opacity:1;font-size:14px}
.site-index input::-webkit-search-cancel-button{display:none}
.site-index .site-index-clear{position:absolute;inset-inline-end:2px;top:2px;border:0;min-width:34px;height:42px;font-size:22px}
.site-index-tabs{display:flex;margin:0 16px 10px;border:1px solid var(--index-line);border-radius:6px;padding:3px;gap:4px}
.site-index-tabs button{flex:1;min-height:40px;padding:7px 4px;background:transparent;border:0;border-radius:4px;color:#e8e2d7;font-size:13px;font-weight:600}
.site-index-tabs button[aria-pressed=true]{background:#e1c084;color:#15120d}
.site-index-tabs span{font-size:11px;margin-inline-start:2px}
.site-index-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#79684a #121315;padding:0 12px 14px}
.site-index nav{display:block;min-height:0;padding:0;margin:0;border:0;background:none}
.site-index-group{margin:0;border:0;border-bottom:1px solid #d1b07824;background:none;padding:0}
.site-index-group summary{display:flex;align-items:center;justify-content:space-between;list-style:none;gap:10px;min-height:49px;padding:12px 8px;cursor:pointer;font-weight:600;font-size:15px;color:#fffaf0}
.site-index-group summary::-webkit-details-marker{display:none}
.site-index-group summary span{color:var(--index-gold);font-size:19px;font-weight:400}
.site-index-group[open] summary span{transform:rotate(45deg)}
.site-index-group>div{padding:0 0 9px}
.site-index :is(.site-index-pages,.site-index-topics) a{display:block;min-height:44px;padding:11px 12px;border-inline-start:2px solid transparent;border-radius:0 5px 5px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.site-index .site-index-pages a{margin-inline-start:6px}
.site-index :is(.site-index-pages,.site-index-topics) a:hover{background:#e5c68a0e;color:#ffe2a9}
.site-index :is(.site-index-pages,.site-index-topics) a[aria-current]{background:#d1b07820;border-inline-start-color:#ebc986;color:#ffe2a9;font-weight:700}
.site-index .site-index-empty{padding:22px 10px;font-size:15px;color:#eee6d7}
.site-index-status{font-size:12px;color:#eadbc0;margin:0;padding:0 18px;min-height:0}
.site-index-status:not(:empty){padding-block:5px}
.site-index-footer{padding:14px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--index-line);background:#0b0c0e;display:grid;gap:8px}
.site-index a.site-index-book{display:flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:11px;border:1px solid #e9cd92;background:linear-gradient(120deg,#ecd59f,#caab6e);border-radius:5px;color:#19150e;font-size:14px;font-weight:700}
.site-index-footer>a:last-child{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#eadbc0;padding:6px 4px;min-height:34px}
.site-index-bar{position:fixed;z-index:1100;inset-inline:0;bottom:0;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#0b0c0ef5;border-top:1px solid var(--index-line);backdrop-filter:blur(12px)}
.site-index .site-index-open{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border:1px solid #d6bc88;background:#131416;color:#fffaf0;border-radius:5px;font-size:15px;font-weight:600;padding:10px 15px}
.site-index-bar>*{flex:1}
.site-index-shade{position:fixed;z-index:1201;inset:0;background:#000b;border:0;cursor:pointer}
body:has(.site-index) .practice-nav{display:none}
body:has(.site-index) .home-quick-actions{display:none!important}
body:has(.site-index) .whatsapp{bottom:90px!important}
body.site-index-modal{overflow:hidden}
body:has(.site-index) [data-index-anchor]{scroll-margin-top:112px}
@media(min-width:1280px){
 body:has(.site-index):not(.site-index-collapsed){padding-left:296px;padding-right:0}
 body:has(.site-index[dir=rtl]):not(.site-index-collapsed){padding-left:0;padding-right:296px}
 .site-index-bar{display:none}
 body.site-index-collapsed .site-index-panel{display:none}
 body.site-index-collapsed .site-index-bar{display:flex;width:330px;inset-inline-start:16px;inset-inline-end:auto;top:auto;bottom:16px;border:1px solid var(--index-line);padding:8px;border-radius:5px}
 body.site-index-collapsed:has(.site-index[dir=rtl]) .site-index-bar{left:auto;right:16px}
 body:has(.site-index) .compact-home .intro-copy p{font-size:16px}
}
@media(max-width:1279px){
 body:has(.site-index){padding-bottom:88px!important}
 .site-index-panel{width:360px;display:none}
 .site-index.is-open .site-index-panel{display:flex}
 .site-index-footer{padding-bottom:14px}
 .site-index-group summary{font-size:16px;min-height:50px}
 .site-index :is(.site-index-pages,.site-index-topics) a{font-size:16px;min-height:48px}
 .site-index:has(.is-searching) .site-index-tabs{display:none}
}
@media(max-width:360px){.site-index-bar{gap:8px;padding-inline:10px}.site-index .site-index-open,.site-index a.site-index-book{font-size:13px;padding:10px 8px}.site-index-panel{max-width:calc(100vw - 16px)}}
@media(prefers-reduced-motion:reduce){.site-index *{scroll-behavior:auto!important;transition:none!important}}
@media print{body:has(.site-index){padding:0!important}.site-index{display:none!important}}
