/* Shared navigation and footer for every static page. */
:root { --shell-ink:#0f172a; --shell-muted:#64748b; --shell-accent:#4f46e5; --shell-line:#e2e8f0; }
.site-navbar { position:sticky !important; top:0; z-index:100; min-height:74px; padding:12px 24px !important; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.94) !important; border-bottom:1px solid var(--shell-line) !important; box-shadow:0 1px 4px rgba(15,23,42,.04); backdrop-filter:blur(14px); }
.site-nav-inner { width:min(1280px,100%); display:flex; align-items:center; gap:20px; }
.site-brand { flex:0 0 auto; color:var(--shell-ink) !important; font:700 1.25rem/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; letter-spacing:-.04em; text-decoration:none !important; white-space:nowrap; }
.site-brand span { color:var(--shell-accent); }
.site-nav-links { min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:3px; overflow-x:auto; scrollbar-width:none; }
.site-nav-links::-webkit-scrollbar { display:none; }
.site-nav-links a { flex:0 0 auto; margin:0 !important; padding:9px 13px !important; border-radius:999px; color:var(--shell-muted) !important; background:transparent !important; font:600 .84rem/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; text-decoration:none !important; white-space:nowrap; transition:background .18s,color .18s; }
.site-nav-links a:hover, .site-nav-links a[aria-current="page"] { color:var(--shell-accent) !important; background:#eef2ff !important; }
.site-footer { margin-top:auto; padding:22px 24px !important; display:flex; gap:14px; align-items:center; justify-content:space-between; background:#fff !important; border-top:1px solid var(--shell-line) !important; color:var(--shell-muted) !important; font:500 .85rem/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; }
.site-footer-links { display:flex; gap:16px; flex-wrap:wrap; }
.site-footer a { margin:0 !important; color:#475569 !important; font:600 .85rem/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; text-decoration:none !important; }
.site-footer a:hover { color:var(--shell-accent) !important; }
.page-contact .site-footer { padding:14px 24px !important; }
.site-theme-toggle { margin-left:auto; flex:0 0 auto; min-height:42px; padding:10px 15px; border:1px solid var(--shell-line); border-radius:999px; background:#fff; color:var(--shell-ink); font:700 .88rem/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor:pointer; }
.site-language-label { display:flex; align-items:center; gap:7px; margin-left:auto; color:var(--shell-muted); font:700 .78rem/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; white-space:nowrap; }
.site-language-select { min-height:42px; padding:0 28px 0 11px; border:1px solid var(--shell-line); border-radius:999px; background:#fff; color:var(--shell-ink); font:700 .84rem/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor:pointer; }
.site-command { position:fixed; inset:0; z-index:1000; display:none; align-items:flex-start; justify-content:center; padding:12vh 18px 18px; background:rgba(15,23,42,.52); }
.site-command.is-open { display:flex; }
.site-command-panel { width:min(560px,100%); max-height:76vh; overflow:auto; padding:14px; border:1px solid var(--shell-line); border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(15,23,42,.28); }
.site-command-title { display:flex; align-items:center; justify-content:space-between; margin:2px 4px 10px; color:var(--shell-ink); font:700 .95rem/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.site-command-title kbd { padding:2px 6px; border:1px solid var(--shell-line); border-radius:5px; color:var(--shell-muted); font:600 .72rem/1 monospace; }
.site-command a { display:block; margin:3px 0; padding:11px 12px; border-radius:10px; color:var(--shell-ink); font:600 .9rem/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-decoration:none; }
.site-command a:hover, .site-command a:focus { background:#eef2ff; color:var(--shell-accent); outline:none; }
.site-editorial { max-width:980px; margin:42px auto 0; padding:26px; border:1px solid #e2e8f0; border-radius:18px; background:#fff; color:#475569; line-height:1.7; }
.site-editorial h2 { margin:0 0 10px; color:#0f172a; font-size:1.45rem; }
.site-editorial h3 { margin:19px 0 6px; color:#1e293b; font-size:1rem; }
.site-editorial code { padding:2px 5px; border-radius:5px; background:#eef2ff; color:#3730a3; }
.site-privacy-guard { display:none; max-width:980px; margin:10px auto 0; padding:11px 14px; border:1px solid #f59e0b; border-radius:10px; background:#fffbeb; color:#92400e; font:600 .86rem/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.site-privacy-guard.is-visible { display:block; }
html.dark-theme { color-scheme:dark; }
html.dark-theme body { background:#0b1120 !important; color:#dbe5f5 !important; background-image:none !important; }
html.dark-theme .site-navbar, html.dark-theme .site-footer { background:rgba(15,23,42,.94) !important; border-color:#26334b !important; }
html.dark-theme .site-brand, html.dark-theme .site-command-title, html.dark-theme h1, html.dark-theme h2, html.dark-theme h3 { color:#f8fafc !important; }
html.dark-theme .site-nav-links a, html.dark-theme .site-footer, html.dark-theme .site-footer a { color:#b8c5d9 !important; }
html.dark-theme .site-nav-links a:hover, html.dark-theme .site-nav-links a[aria-current="page"] { background:#1e293b !important; color:#a5b4fc !important; }
html.dark-theme .site-theme-toggle, html.dark-theme .site-command-panel, html.dark-theme .site-editorial, html.dark-theme .card, html.dark-theme .tool-card, html.dark-theme .info-card, html.dark-theme .card-output, html.dark-theme .card-input, html.dark-theme .input-group, html.dark-theme .output-group { background:#111a2d !important; border-color:#26334b !important; color:#dbe5f5 !important; box-shadow:none !important; }
html.dark-theme .site-language-select { background:#111a2d; border-color:#26334b; color:#dbe5f5; }
html.dark-theme p, html.dark-theme li, html.dark-theme label, html.dark-theme .subtitle, html.dark-theme .wrap, html.dark-theme .container { color:#c4d0e2 !important; }
html.dark-theme .subtitle strong, html.dark-theme p strong { color:#e2e8f0 !important; }
html.dark-theme textarea, html.dark-theme input, html.dark-theme pre, html.dark-theme code { background:#0b1120 !important; border-color:#334155 !important; color:#e2e8f0 !important; }
html.dark-theme .site-command { background:rgba(2,6,23,.76); }
html.dark-theme .site-command a { color:#e2e8f0; }
html.dark-theme .site-command a:hover, html.dark-theme .site-command a:focus { background:#1e293b; color:#c7d2fe; }
html.dark-theme .site-editorial code { background:#1e293b !important; color:#c7d2fe !important; }
html.dark-theme .site-privacy-guard { border-color:#a16207; background:#2b2109; color:#fde68a; }
@media (max-width:760px) { .site-navbar { min-height:64px; padding:10px 14px !important; } .site-nav-inner { flex-direction:column; gap:8px; } .site-brand { font-size:1.08rem !important; } .site-nav-links { justify-content:center; flex-wrap:wrap; overflow:visible; } .site-nav-links a { padding:7px 9px !important; font-size:.76rem !important; } .site-language-label { position:absolute; left:14px; top:10px; } .site-language-label span { display:none; } .site-language-select { min-height:38px; padding:0 22px 0 9px; font-size:.76rem; } .site-theme-toggle { position:absolute; right:14px; top:10px; min-height:38px; padding:8px 10px; font-size:.78rem; } .site-footer { align-items:flex-start; flex-direction:column; padding:20px 18px !important; } .site-editorial { margin:30px 16px 0; padding:20px; } }
