/* Shared page chrome for the brand center pages (header, footer, toast, base). */
:root { --max: 1200px; }
body.wide { --max: 1320px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 14px/20px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

/* header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-secondary);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { width: 92px; }
.brand span {
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--border-secondary);
  color: var(--text-secondary);
  font: 600 14px/1 var(--font-sans);
}
.top-links { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-links::-webkit-scrollbar { display: none; }
.top-links a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.top-links a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.top-links a.active, .top-links a[aria-current="page"] { background: var(--bg-tertiary); color: var(--text-primary); }

/* footer */
footer { border-top: 1px solid var(--border-secondary); padding: 28px 0; color: var(--text-quaternary); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner img { width: 76px; }
.footer-inner a { text-decoration: underline; }

/* toast */
.toast {
  position: fixed;
  z-index: 30;
  inset-inline-start: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  font: 600 14px/20px var(--font-sans);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) { .topbar .nav-cta { display: none; } }
@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .brand span { display: none; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
