/* Hide empty header and remove padding for documentation pages */
body:has(.o-doc-layout) .t-page__header {
  display: none;
}

body:has(.o-doc-layout) .t-page__container {
  padding-top: 0 !important;
}

.o-doc-layout {
  width: 100%;
  min-height: 100vh;
  background: white;
}

/* Hero Header (Blue) */
.o-doc-layout__hero {
  width: 100%;
  background: linear-gradient(135deg, #2B4570 0%, #3B5A8F 100%);
  padding: 40px 24px 60px;
}

.o-doc-layout__hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.o-doc-layout__hero-logo {
  text-align: center;
  margin-bottom: 32px;
}

.o-doc-layout__hero-title {
  color: white;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.o-doc-layout__hero-search {
  max-width: 600px;
  margin: 0 auto;
}

/* Override search styles for hero */
.o-doc-layout__hero-search .a-doc-search__input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.o-doc-layout__hero-search .a-doc-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.o-doc-layout__hero-search .a-doc-search__input:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.o-doc-layout__hero-search .a-doc-search__input:focus {
  background: white;
  color: var(--color-greyscale-1);
  border-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.o-doc-layout__hero-search .a-doc-search__input:focus::placeholder {
  color: var(--color-greyscale-5);
}

.o-doc-layout__hero-search .a-doc-search__icon {
  color: rgba(255, 255, 255, 0.7);
}

.o-doc-layout__hero-search .a-doc-search__input:focus ~ .a-doc-search__icon {
  color: var(--color-greyscale-5);
}

.o-doc-layout__hero-search .a-doc-search__shortcut {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.o-doc-layout__hero-search .a-doc-search__input:focus ~ .a-doc-search__shortcut {
  background: var(--color-greyscale-9);
  border-color: var(--color-greyscale-7);
  color: var(--color-greyscale-4);
}

/* Breadcrumb container (White background) */
.o-doc-layout__breadcrumb-container {
  width: 100%;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 24px 0;
  margin-top: 32px;
}

.o-doc-layout__breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.o-doc-layout__container {
  display: grid;
  grid-template-columns: minmax(0, 800px) 260px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}

.o-doc-layout__content {
  padding: 48px 0 80px;
  min-width: 0; /* Prevent overflow */
  background: white;
  border-right: none;
}

.o-doc-layout__sidebar {
  width: 260px;
  height: 100%;
  padding: 48px 0 80px 0;
}

/* Content styling */
/* Page title */
.o-doc-layout__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #1A1A1A;
  margin: 0 0 24px 0;
}

.o-doc-layout__content h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #1A1A1A;
  margin-bottom: 40px;
}

.o-doc-layout__content h1 + p {
  font-size: 16px;
  line-height: 1.6;
  color: #6B7280;
  margin-bottom: 32px;
}

.o-doc-layout__content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #1A1A1A;
  margin: 48px 0 16px 0;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.o-doc-layout__content h2:first-of-type {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

.o-doc-layout__content h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #1A1A1A;
  margin: 32px 0 12px 0;
}

.o-doc-layout__content h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #1A1A1A;
  margin: 24px 0 12px 0;
}

.o-doc-layout__content h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1A1A1A;
  margin: 20px 0 8px 0;
}

.o-doc-layout__content h6 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #1A1A1A;
  margin: 16px 0 8px 0;
}

.o-doc-layout__content p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 20px 0;
}

.o-doc-layout__content p:last-child {
  margin-bottom: 0;
}

.o-doc-layout__content ul,
.o-doc-layout__content ol {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 20px 0;
  padding-left: 28px;
}

.o-doc-layout__content li {
  margin-bottom: 8px;
}

.o-doc-layout__content li:last-child {
  margin-bottom: 0;
}

.o-doc-layout__content a {
  color: #3B82F6;
  text-decoration: none;
}

.o-doc-layout__content a:hover {
  text-decoration: underline;
}

.o-doc-layout__content strong {
  font-weight: 600;
  color: #1A1A1A;
}

/* Documentation cards hover effects */
.o-doc-layout__content a div[style*="border: 1px solid #E5E7EB"]:hover {
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.o-doc-layout__content code {
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  color: #DC2626;
}

.o-doc-layout__content pre {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 24px 0;
}

.o-doc-layout__content pre code {
  background: none;
  padding: 0;
  color: #374151;
}

/* Responsive */
@media (max-width: 1024px) {
  .o-doc-layout__container {
    grid-template-columns: 1fr;
  }

  .o-doc-layout__sidebar {
    display: none;
  }

  .o-doc-layout__content {
    border-right: none;
    padding: 40px 40px 60px;
    max-width: 100%;
  }

  .o-doc-layout__breadcrumb-container {
    margin-top: 24px;
    padding: 20px 0;
  }

  .o-doc-layout__breadcrumb {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .o-doc-layout__hero {
    padding: 32px 20px 48px;
  }

  .o-doc-layout__hero-title {
    font-size: 20px;
  }

  .o-doc-layout__content {
    padding: 32px 20px 48px;
  }

  .o-doc-layout__breadcrumb-container {
    margin-top: 20px;
    padding: 16px 0;
  }

  .o-doc-layout__breadcrumb {
    padding: 0 20px;
  }

  .o-doc-layout__content h1 {
    font-size: 28px;
  }

  .o-doc-layout__content h2 {
    font-size: 18px;
    margin-top: 40px;
  }

  .o-doc-layout__content h3 {
    font-size: 16px;
  }
}
