/* Shared site navigation and footer, rendered from the PHP includes. */
header.shared-topbar{display:flex;align-items:center;flex-wrap:nowrap;gap:16px;min-height:64px;padding:9px 18px;border-radius:20px;margin-top:16px;position:relative;z-index:30}
.shared-topbar .brand{font-size:17px;gap:8px;flex-shrink:0;line-height:1.2;text-decoration:none}
.shared-topbar .brand img{width:34px;height:34px}
.shared-topbar #navigation{display:flex;align-items:center;gap:2px;flex-wrap:nowrap;order:initial;width:auto;padding:0;border:0;margin-left:auto}
.shared-topbar .nav-button,.shared-topbar .nav-dropdown>summary{display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;border:0;border-radius:10px;color:var(--muted);background:transparent;font:600 12px/1.35 var(--font-body,Inter,system-ui,sans-serif);text-decoration:none;white-space:nowrap;cursor:pointer}
.shared-topbar .nav-button:hover,.shared-topbar .nav-button.active,.shared-topbar .nav-dropdown[open]>summary,.shared-topbar .nav-dropdown>summary:hover{color:var(--ink);background:var(--surface-soft)}
.shared-topbar .nav-button.active{background:var(--nav-active)}
.shared-topbar .has-active-link>summary{color:var(--ink);background:var(--nav-active)}
.shared-topbar .nav-dropdown{position:relative}
.shared-topbar summary{list-style:none}
.shared-topbar summary::-webkit-details-marker{display:none}
.shared-topbar summary svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0;transition:transform .15s}
.shared-topbar .nav-dropdown[open]>summary svg{transform:rotate(180deg)}
.shared-topbar .nav-panel{position:absolute;top:calc(100% + 12px);left:0;min-width:228px;padding:10px;border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:0 16px 48px var(--shadow);z-index:40}
.shared-topbar .nav-panel-label{font-size:9px;letter-spacing:1.25px;line-height:1.5;color:var(--muted);padding:5px 10px 9px;margin:0}
.shared-topbar .nav-panel .nav-button{min-height:42px;justify-content:space-between;width:100%;font-size:13px}
.shared-topbar .header-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-shrink:0;width:auto;grid-column:auto;grid-row:auto}
.shared-topbar .workspace-access{min-height:38px;font-size:11px;padding:8px 13px;white-space:nowrap;gap:7px;border-radius:12px;text-decoration:none}
.shared-topbar .theme-dropdown>summary{width:38px;height:38px;min-height:38px;justify-content:center;padding:9px;border:1px solid var(--line)}
.shared-topbar .theme-dropdown>summary svg{width:18px;height:18px}
.shared-topbar .theme-dropdown[open]>summary svg{transform:none}
.shared-topbar .theme-panel{left:auto;right:0;min-width:160px}
.shared-topbar .theme-panel .theme-button{display:flex;align-items:center;gap:12px;width:100%;height:40px;padding:8px 12px;border-radius:9px;font-size:13px;font-family:inherit}
.shared-topbar .theme-panel .theme-button span{font-size:18px;width:20px}
.shared-topbar .menu-toggle{display:none}
.shared-topbar summary:focus-visible,.shared-topbar a:focus-visible,.shared-topbar button:focus-visible,.shared-footer a:focus-visible,.shared-footer button:focus-visible{outline:3px solid #85a94b;outline-offset:3px}
.shared-footer{display:block;max-width:1240px;margin:64px auto 0;padding:36px 0 20px;color:var(--ink);border-top:1px solid var(--line)}
.shared-footer .footer-top{display:grid;grid-template-columns:1.65fr 1fr 1fr 1.25fr;gap:36px;padding-bottom:32px}
.shared-footer .brand{display:flex;align-items:center;gap:9px;font-size:20px;color:var(--ink);text-decoration:none;font-weight:800;letter-spacing:-.8px}
.shared-footer .brand img{width:38px;height:38px;object-fit:contain}
.shared-footer .footer-brand p{font-size:14px;margin:14px 0 8px;line-height:1.65}
.shared-footer .footer-brand .footer-description{font-size:12px;color:var(--muted);max-width:260px;margin:0 0 15px}
.shared-footer .footer-email{font-size:12px;color:var(--muted);text-decoration:none;overflow-wrap:anywhere}
.shared-footer .footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.shared-footer h2{font-size:12px;line-height:1.5;letter-spacing:0;font-weight:700;color:var(--ink);margin:0 0 10px}
.shared-footer .footer-links a{display:flex;align-items:center;min-height:34px;padding:4px 0;font-size:12px;line-height:1.5;color:var(--muted);text-decoration:none}
.shared-footer a:hover,.shared-footer button:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.shared-footer .footer-socials{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 40px}
.shared-footer .footer-social-group{scroll-margin-top:28px}
.shared-footer .footer-social-group:first-child{grid-column:1/-1}
.shared-footer .social-links{display:flex;gap:7px;flex-wrap:wrap}
.shared-footer a.social-link{display:inline-flex;align-items:center;gap:10px;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;font-size:11px;line-height:1.4;color:var(--muted);text-decoration:none;background:var(--surface)}
.shared-footer .social-link span{font-size:12px;opacity:.6}
.shared-footer a.social-link:hover{background:var(--surface-soft);color:var(--ink)}
.shared-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;font-size:11px;color:var(--muted)}
.shared-footer .footer-bottom nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.shared-footer .footer-bottom a,.shared-footer .footer-bottom button{font-size:11px;color:var(--muted);font-family:inherit;background:none;border:0;text-decoration:none;padding:6px 0;cursor:pointer}
@media(max-width:1100px){header.shared-topbar{width:calc(100% - 40px);gap:9px;padding-inline:12px}.shared-topbar .brand{font-size:15px}.shared-topbar .nav-button,.shared-topbar .nav-dropdown>summary{padding-inline:9px}.shared-footer{width:calc(100% - 64px)}}
@media(max-width:900px){header.shared-topbar{width:calc(100% - 24px);min-height:60px;margin-top:12px;padding:7px 12px;border-radius:16px;gap:8px;flex-wrap:wrap}.shared-topbar .brand{font-size:16px;margin-right:auto}.shared-topbar .header-actions{gap:6px}.shared-topbar .workspace-access{display:none}.shared-topbar .menu-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;background:var(--surface-soft);color:var(--ink);border:1px solid var(--line);border-radius:10px;font:600 12px/1.4 inherit;cursor:pointer}.shared-topbar .menu-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}.shared-topbar #navigation{display:none;flex-basis:100%;order:4;margin:0;padding:10px 0 3px;border-top:1px solid var(--line);width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.shared-topbar.menu-open #navigation{display:grid}.shared-topbar #navigation>.nav-button{min-height:44px;justify-content:center;background:var(--surface-soft)}.shared-topbar #navigation>.nav-dropdown{grid-column:1/-1}.shared-topbar #navigation>.nav-dropdown>summary{min-height:44px;justify-content:space-between;padding-inline:12px;font-size:13px}.shared-topbar #navigation .nav-panel{position:static;min-width:0;width:100%;margin:3px 0 8px;box-shadow:none;background:var(--surface-soft);border:0;padding:6px}.shared-topbar #navigation .nav-panel .nav-button{min-height:44px;justify-content:flex-start;text-align:left;background:transparent;padding-inline:12px}.shared-topbar #navigation .nav-panel-label{padding-top:9px}.shared-topbar .theme-panel{top:calc(100% + 10px);right:-76px}.shared-footer .footer-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.shared-footer .footer-brand{grid-column:1/-1}.shared-footer .footer-socials{gap:22px}.shared-footer .footer-bottom{align-items:flex-start;flex-direction:column}}
@media(max-width:540px){.shared-topbar .brand{font-size:15px;gap:6px}.shared-topbar .brand img{width:29px;height:29px}.shared-topbar .theme-dropdown>summary{width:36px;height:36px}.shared-footer{width:calc(100% - 40px);margin-top:44px;padding-top:25px}.shared-footer .footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}.shared-footer .footer-links:last-child{grid-column:1/-1}.shared-footer .footer-links a{min-height:40px}.shared-footer .footer-socials{grid-template-columns:minmax(0,1fr)}.shared-footer a.social-link{min-height:40px}.shared-footer .footer-bottom nav{gap:8px 18px}.shared-footer .footer-bottom a,.shared-footer .footer-bottom button{min-height:40px;display:flex;align-items:center}}
@media(prefers-reduced-motion:reduce){.shared-topbar summary svg{transition:none}}
@media(max-width:900px){.shared-topbar .workspace-access{display:inline-flex;align-items:center;justify-content:center;min-width:40px;width:40px;min-height:44px;padding:6px;font-size:0;gap:0}.shared-topbar .workspace-access>span{display:none}.shared-topbar .workspace-access::after{content:'↗';font-size:17px}.shared-topbar .theme-dropdown>summary{min-height:44px}}
@media(max-width:540px){.shared-topbar .menu-toggle{font-size:0;width:40px;gap:0}.shared-topbar .menu-toggle svg{width:18px;height:18px}.shared-topbar .brand{font-size:14px}}
@media(max-width:360px){header.shared-topbar{padding-inline:8px;gap:4px}.shared-topbar .brand{font-size:12px;gap:4px}.shared-topbar .brand img{width:26px;height:26px}.shared-topbar .header-actions{gap:4px}}
@media(max-width:900px){header.shared-topbar .header-actions .workspace-access{font-size:0;padding:6px;gap:0;min-height:44px}header.shared-topbar .header-actions{width:auto;justify-content:flex-start}}
