/* Shared main-site frame: home, product pages, and blog use identical geometry. */
.site-shell,
#main-content.site-shell {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
  padding-top: 16px;
}

.site-header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  margin-bottom: 18px;
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}

.site-header .brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  overflow: hidden;
}

.site-header .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header .brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header .eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header .brand-title {
  color: var(--text-strong, var(--strong));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.site-header .top-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.94rem;
}

.site-header .top-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-header .top-links a:hover,
.site-header .top-links a:focus-visible {
  color: var(--primary);
}

.site-header .top-links .nav-cta {
  padding-inline: 18px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  box-shadow: 0 6px 18px var(--shadow-light);
}

.site-header .top-links .nav-cta:hover,
.site-header .top-links .nav-cta:focus-visible {
  color: var(--bg);
  background: var(--primary);
}

.site-header .gm-theme-switcher {
  min-height: 28px;
  padding: 1px;
  gap: 0;
  background: transparent;
}

.site-header .gm-theme-option {
  position: relative;
  min-height: 24px;
  width: 32px;
  padding: 0;
}

/* Keep a generous click target around the compact visual control. */
.site-header .gm-theme-option::after {
  content: "";
  position: absolute;
  inset: -10px 0;
}

.site-header .gm-theme-option[aria-pressed="true"] {
  box-shadow: none;
}

.site-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font: 400 0.9rem/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.site-breadcrumbs a:hover,
.site-breadcrumbs a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .site-shell,
  #main-content.site-shell {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .site-header.topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .site-header .top-links {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }

  .site-header .top-links a {
    padding-inline: 8px;
    font-size: 0.86rem;
  }

  .site-header .top-links .nav-cta {
    padding-inline: 13px;
  }
}

@media (max-width: 680px) {
  .site-shell,
  #main-content.site-shell {
    padding-top: 12px;
  }
}
