.doc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 251, 245, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.85);
}

.doc-topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.doc-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.doc-header-logo-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(209, 196, 193, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #f7f3ed 100%);
  box-shadow: 0 12px 28px -14px rgba(167, 58, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-header-logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: #a73a00;
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doc-header-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.doc-header-logo-title {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #141010;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.doc-header-logo-subtitle {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7f7572;
  line-height: 1.2;
  white-space: nowrap;
}

.doc-back-link {
  appearance: none;
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #292524;
  border-radius: 8px;
  padding: 0.52rem 0.9rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.doc-back-link:hover {
  border-color: #ea580c;
  color: #ea580c;
  background: #fff5eb;
}

body.doc-page-body {
  padding-top: 0 !important;
}

body.doc-page-body .container {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .doc-topbar-inner {
    padding: 0.65rem 0.85rem;
  }

  .doc-header-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .doc-header-logo-icon svg {
    width: 18px;
    height: 18px;
  }

  .doc-header-logo-title {
    font-size: 1.15rem;
  }

  .doc-header-logo-subtitle {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .doc-back-link {
    font-size: 0.72rem;
    padding: 0.48rem 0.7rem;
  }
}

@media (max-width: 620px) {
  .doc-header-logo-subtitle {
    display: none;
  }
}
