:root{--bg:#f6f8fb;--card:#fff;--text:#111827;--muted:#4b5563;--border:#d1d5db;--link:#0b57d0}
:root.dark{--bg:#0f172a;--card:#111827;--text:#e5e7eb;--muted:#9ca3af;--border:#334155;--link:#93c5fd}
*{box-sizing:border-box}
body{margin:0;font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--link)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.container{max-width:1100px;margin:0 auto;padding:0 1rem}
.site-header,.site-footer{background:var(--card);border-bottom:1px solid var(--border)}
.site-footer{border-top:1px solid var(--border);border-bottom:0;margin-top:2rem;padding:1rem 0}
.header-inner{display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:.75rem 0}
.logo{font-weight:700;text-decoration:none}
.nav-list,.footer-links{display:flex;flex-wrap:wrap;gap:.8rem;list-style:none;padding:0;margin:0}
main{padding:1rem 0 2rem}
.hero,.card,.table-wrap,.section{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1rem;margin:.8rem 0}
.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:2fr 1fr;gap:1rem}
.suggestions{list-style:none;margin:.5rem 0 0;padding:0;border:1px solid var(--border);border-radius:8px;background:var(--card);max-height:260px;overflow:auto}
.suggestions li{padding:.55rem .7rem;cursor:pointer}
.suggestions li[aria-selected="true"],.suggestions li:hover{background:rgba(59,130,246,.15)}
.search-form input{width:100%;padding:.6rem;border-radius:8px;border:1px solid var(--border);background:transparent;color:inherit}
.btn-ghost{border:1px solid var(--border);background:transparent;color:inherit;border-radius:8px;padding:.4rem .6rem;cursor:pointer}
.breadcrumbs{font-size:.9rem;margin:.4rem 0}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(148,163,184,.2);padding:.2rem .4rem;border-radius:6px}
pre{overflow:auto;background:#0b1220;color:#dbeafe;padding:1rem;border-radius:8px}
table{width:100%;border-collapse:collapse}
th,td{padding:.6rem;border:1px solid var(--border);vertical-align:top}
.ad-slot{border:1px dashed var(--border);padding:.8rem;text-align:center;border-radius:8px;color:var(--muted);margin:.6rem 0}

.header-actions{display:flex;align-items:center;gap:.6rem;margin-left:auto}
.fuel-link{font-size:.9rem;text-decoration:none;border:1px solid var(--border);border-radius:8px;padding:.35rem .6rem;white-space:nowrap}
.fuel-link:hover{text-decoration:underline}

.footer-main{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;row-gap:.7rem;padding:.2rem 0}
.footer-logo{grid-column:1/-1;justify-self:center;text-align:center}
.footer-logo img{width:520px;max-width:100%;height:150px;object-fit:cover;object-position:center;display:block;margin:0 auto;opacity:.95}
.footer-copy{grid-column:1;justify-self:start;margin:0;color:var(--muted);font-size:.78rem;text-transform:lowercase;letter-spacing:.02em;text-align:left}
.footer-meta-links{grid-column:3;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.7rem;list-style:none;margin:0;padding:0}
.footer-meta-links a{font-size:.78rem;text-decoration:none;color:var(--muted)}
.footer-meta-links a:hover{text-decoration:underline;color:var(--text)}
.footer-signature{margin:.65rem 0 0;text-align:center;font-size:.68rem;opacity:.45;letter-spacing:.11em;color:var(--muted)}

@media (max-width:900px){
  .grid{grid-template-columns:1fr}
  .nav-list{font-size:.95rem}
  .header-actions{width:100%;justify-content:flex-end}
  .fuel-link{font-size:.85rem}
  .footer-main{grid-template-columns:1fr;row-gap:.55rem}
  .footer-logo img{width:320px;max-width:100%;height:90px}
  .footer-copy{grid-column:1;justify-self:center;text-align:center}
  .footer-meta-links{grid-column:1;justify-self:center;justify-content:center}
  .footer-signature{letter-spacing:.08em}
}

.footer-logo img{
  width:520px;
  max-width:100%;
  height:150px;
  object-fit:cover;
  object-position:center;
  display:block;
  margin:0 auto;
  opacity:.95;
}

:root.dark .footer-logo img{
  filter:drop-shadow(0 0 6px rgba(147,197,253,.35))
         drop-shadow(0 0 14px rgba(147,197,253,.18));
}