/* Fixed navigation icon and full-height Homebase panel; no reserved rail. */
.homebase-panel { position:fixed; inset:0 auto auto 0; z-index:10001; font:16px/1.5 system-ui; color:#203b38; }
.homebase-panel>summary { position:fixed; top:calc(10px + env(safe-area-inset-top)); left:calc(10px + env(safe-area-inset-left)); width:44px; height:44px; display:flex; align-items:center; justify-content:center; cursor:pointer; list-style:none; border:1px solid #b9cbc5; border-radius:12px; background:#fff; color:#203b38; box-shadow:0 2px 10px #1c343414; }
.homebase-panel>summary::-webkit-details-marker { display:none; }
.homebase-panel[open]>summary { z-index:2; }
.homebase-panel-content { position:fixed; top:0; bottom:0; left:0; width:min(340px,calc(100vw - 32px)); height:100dvh; overflow-y:auto; overscroll-behavior:contain; padding:calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left)); background:#f6f5f0; border-right:1px solid #d9dfd8; box-shadow:12px 0 40px #0002; }
.homebase-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:20px; }
.homebase-panel-heading p { margin:0 0 4px; font-size:11px; font-weight:750; letter-spacing:2px; color:#357465; }
.homebase-panel-heading h2 { margin:0; font-size:28px; line-height:1.2; letter-spacing:-.5px; }
.homebase-panel-close { flex-shrink:0; width:44px; height:44px; border:1px solid #b9cbc5; border-radius:10px; background:#fff; color:#203b38; font:28px/1 system-ui; cursor:pointer; }
.homebase-panel-close[hidden] { display:none; }
.homebase-panel nav { display:flex; flex-direction:column; gap:4px; margin:0; padding:0; }
.homebase-panel a { display:flex; align-items:center; min-height:48px; padding:10px 12px; border-radius:10px; text-decoration:none; color:#203b38; font:600 16px/1.5 system-ui; overflow-wrap:break-word; }
.homebase-panel a:hover { background:#e2ebe1; }
.homebase-panel a[aria-current="page"] { background:#e2ebe1; color:#14685b; }
.homebase-panel-footer { display:flex; flex-wrap:wrap; gap:4px; border-top:1px solid #d9dfd8; margin-top:24px; padding-top:12px; }
.homebase-panel-footer a { font-weight:400; font-size:14px; }
.homebase-panel :is(summary,button,a):focus-visible { outline:3px solid #d38e37; outline-offset:2px; }
.homebase-panel-modal .homebase-panel-content { position:absolute; width:100%; box-shadow:none; }
.homebase-panel-modal { position:fixed; inset:0 auto 0 0; width:min(340px,calc(100vw - 32px)); height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:#f6f5f0; color:#203b38; overflow:hidden; }
.homebase-panel-modal::backdrop { background:#1c343466; }
/* The icon has its own clear area above the unchanged page header. */
body.homebase-with-panel:not(.homebase-panel-overlay-page) { padding-top:calc(64px + env(safe-area-inset-top)); }

.homebase-panel, .homebase-panel * { box-sizing:border-box; }
.homebase-panel[hidden] { display:none; }
.homebase-panel-modal .homebase-panel-content { box-sizing:border-box; }
.homebase-panel-modal { border-radius:0; transform:none; }

/* Approved: an opaque navigation area keeps scrolling text out of the icon. */
body.homebase-with-panel:not(.homebase-panel-overlay-page) details.homebase-panel::before{content:"";position:fixed;inset:0 0 auto 0;height:calc(64px + env(safe-area-inset-top));background:#f6f5f0;border-bottom:1px solid #d9dfd8;pointer-events:auto}
body.homebase-with-panel:not(.homebase-panel-overlay-page) details.homebase-panel>summary{z-index:1}
html:has(body.homebase-with-panel:not(.homebase-panel-overlay-page)){scroll-padding-top:calc(76px + env(safe-area-inset-top))}

/* Provisions nested navigation; scoped to the existing Homebase panel. */
.homebase-panel .homebase-provisions{position:static;margin:4px 0;padding:0;border:1px solid #dfcdb5;border-radius:10px;background:#fffaf2;color:#402817}
.homebase-panel .homebase-provisions>summary{position:static;display:list-item;list-style:disclosure-closed;min-height:44px;margin:0 0 0 24px;padding:11px 12px 11px 0;font:650 16px/1.4 system-ui;cursor:pointer;color:inherit}
.homebase-panel .homebase-provisions[open]>summary{list-style:disclosure-open}
.homebase-panel .homebase-provisions-links{display:flex;flex-direction:column;gap:2px;padding:0 6px 6px 14px}
.homebase-panel .homebase-provisions-links>a{min-width:0;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.homebase-panel .homebase-provisions-links>a[aria-current="page"]{background:#435b36;color:#fffaf2}
.homebase-panel .homebase-provisions :is(summary,a):focus-visible{outline:3px solid #8a511c;outline-offset:2px}
@media(max-width:450px){.homebase-panel .homebase-provisions-links{padding-left:10px}.homebase-panel .homebase-provisions-links>a{padding-inline:10px}}
