.wy-nav-content { max-width: 920px; }

.dwirobo-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #0b1f33;
  color: #fff;
  padding: 0.65rem 1rem;
  margin: -1.618em -1.618em 1.25em -1.618em;
  border-bottom: 3px solid #1e90ff;
}
.dwirobo-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff !important;
  text-decoration: none !important;
}
.dwirobo-brand-link:hover { opacity: 0.92; }
.dwirobo-logo {
  height: 44px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.dwirobo-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.dwirobo-brand-text strong {
  font-size: 1.15em;
  letter-spacing: 0.02em;
}
.dwirobo-brand-sub {
  font-size: 0.78em;
  opacity: 0.85;
  font-weight: 400;
}
.dwirobo-download-btn {
  display: inline-block;
  background: #1e90ff;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.55em 1.15em;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 0 #0d6ecd;
  letter-spacing: 0.04em;
}
.dwirobo-download-btn:hover {
  background: #3aa0ff;
  color: #fff !important;
}

.doc-banner {
  background: #eef6ff;
  border: 1px solid #1e90ff;
  padding: 0.75em 1em;
  margin: 0 0 1.25em 0;
  border-radius: 4px;
  font-size: 0.95em;
}
.doc-footer-note {
  clear: both;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 2.5em;
  margin-bottom: 1.5em;
  padding-top: 1.25em;
  border-top: 1px solid #e1e4e5;
  font-size: 0.85em;
  color: #666;
}
.doc-footer-note a { color: #1e6bb8; }

.rst-content .doc-footer-note,
.wy-nav-content .doc-footer-note {
  width: 100%;
  max-width: 100%;
}

.dwirobo-site-banner {
  margin: 0 0 1.25em 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.dwirobo-site-banner a {
  display: block;
  width: 100%;
  line-height: 0;
  border: 1px solid #e1e4e5;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.dwirobo-site-banner a:hover {
  border-color: #1e90ff;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.25);
}
.dwirobo-banner-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .dwirobo-brand-bar { margin-left: -0.8em; margin-right: -0.8em; }
  .dwirobo-logo { height: 40px; }
  .dwirobo-brand-sub { display: none; }
  .dwirobo-download-btn { width: 100%; text-align: center; }
}

.doc-build-stamp {
  background: #fff8e1;
  border: 1px solid #f0c36d;
  color: #5c4a00;
  padding: 0.65em 0.9em;
  border-radius: 4px;
  font-size: 0.95em;
  margin-bottom: 0.85em;
}
.doc-build-stamp strong { color: #8a5a00; font-size: 1.05em; }
