/* Shared header and footer for every page. Written by ~/ABW/site/tools/chrome/stamp.py; edit it there. */
.abw-header, .abw-header *, .abw-footer, .abw-footer * { box-sizing: border-box; }
.abw-header {
  position: sticky; top: 0; z-index: 40; margin: 0; padding: 0;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 0; border-bottom: 1px solid #e5e7eb;
  font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: #4b5563;
}
.abw-bar { max-width: 1280px; height: 64px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.abw-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.abw-brand img { display: block; width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.abw-brand-text { display: flex; flex-direction: column; min-width: 0; }
.abw-name {
  font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; white-space: nowrap;
  background: linear-gradient(to right, #111827, #1f2937, #4338ca); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.abw-version { display: none; font-family: "Fira Code", monospace; font-size: 10px; line-height: 1.25; color: #4f46e5; }
.abw-nav { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.abw-nav a { color: #4b5563; text-decoration: none; transition: color .15s; }
.abw-nav a:hover { color: #111827; }
/* Features: the link goes to the page; the arrow (or a mouse resting on it: is-hover, set by the script) opens the list */
.abw-dropdown { position: relative; display: flex; align-items: center; gap: 2px; height: 64px; }
.abw-dropdown-toggle {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: #6b7280; cursor: pointer; transition: color .15s, background-color .15s, transform .15s;
}
.abw-dropdown-toggle:hover { color: #111827; background: #f3f4f6; }
.abw-dropdown.is-open .abw-dropdown-toggle { transform: rotate(180deg); color: #111827; }
.abw-dropdown-menu {
  display: none; position: absolute; top: 54px; left: -14px; min-width: 200px; padding: 6px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .18);
}
.abw-dropdown.is-open .abw-dropdown-menu, .abw-dropdown.is-hover .abw-dropdown-menu { display: block; }
.abw-nav .abw-dropdown-menu a { display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.abw-nav .abw-dropdown-menu a:hover { background: #f3f4f6; }
.abw-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.abw-download {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px;
  background: #4f46e5; color: #fff; font-size: 14px; font-weight: 600; line-height: 20px; text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1); transition: background-color .15s;
}
.abw-download:hover { background: #6366f1; color: #fff; }
.abw-download-label { display: none; }
.abw-menu-button {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 8px;
  border: 1px solid #e5e7eb; background: transparent; color: #4b5563; cursor: pointer;
}
.abw-menu-button:hover { color: #111827; background: #f3f4f6; }
.abw-mobile { border-top: 1px solid #e5e7eb; background: rgba(255, 255, 255, .95); }
.abw-mobile[hidden] { display: none; }
.abw-mobile-grid { max-width: 1280px; margin: 0 auto; padding: 12px 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; font-size: 14px; font-weight: 500; }
.abw-mobile-grid a { display: block; padding: 10px 12px; border-radius: 8px; color: #4b5563; text-decoration: none; }
.abw-mobile-grid a:hover { background: #f3f4f6; color: #111827; }
.abw-footer {
  padding: 32px 0; background: #fff; border: 0; border-top: 1px solid #e5e7eb;
  font-family: Inter, system-ui, sans-serif; font-size: 12px; line-height: 1.5; color: #6b7280;
}
.abw-footer-bar { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; }
.abw-footer-platforms { max-width: 1280px; margin: 0 auto 24px; padding: 0 16px 24px; border-bottom: 1px solid #f3f4f6; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.abw-footer-platforms img { display: block; height: 36px; width: auto; }
.abw-footer-platforms span a { color: #4b5563; text-decoration: none; }
.abw-footer-platforms span a:hover { color: #111827; }
.abw-footer-social { display: flex; align-items: center; gap: 16px; }
.abw-footer-social a { display: flex; color: #6b7280; }
.abw-footer-social svg { display: block; }
.abw-footer-brand { display: flex; align-items: center; gap: 8px; }
.abw-footer-brand img { display: block; width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.abw-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.abw-footer-links a { color: #4b5563; text-decoration: none; transition: color .15s; }
.abw-footer-links a:hover { color: #111827; }
/* Back to top: appears after two screens of scrolling */
.abw-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 9999px; border: 1px solid #e5e7eb; background: rgba(255, 255, 255, .96);
  color: #374151; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .2); cursor: pointer; transition: color .15s, border-color .15s;
}
.abw-top[hidden] { display: none; }
.abw-top:hover { color: #4f46e5; border-color: #c7d2fe; }
@media (min-width: 640px) {
  .abw-bar, .abw-mobile-grid, .abw-footer-bar { padding-left: 24px; padding-right: 24px; }
  .abw-top { right: 24px; bottom: 24px; }
  .abw-name { font-size: 18px; }
  .abw-version { display: block; }
  .abw-download-label { display: inline; }
  .abw-mobile-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .abw-bar, .abw-footer-bar { padding-left: 32px; padding-right: 32px; }
  .abw-nav { display: flex; }
  .abw-menu-button, .abw-mobile { display: none; }
  .abw-footer-bar { flex-direction: row; }
  .abw-footer-brand { white-space: nowrap; }
  .abw-footer-links { justify-content: flex-end; gap: 8px 20px; }
}
