/* ==========================================================================
   THAIUPLINK STANDARDIZED SUBNAV STYLESHEET (subnav.css)
   Canonical Blueprint: Global Cloud Azure Subnav
   ========================================================================== */

/* 1. Root Sticky Container */
#subnav,
.subnav-host-wrapper,
.subnav-root,
.subnav-container {
  position: sticky;
  top: 56px;
  z-index: 40;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

@media (min-width: 640px) {
  #subnav,
  .subnav-host-wrapper,
  .subnav-root,
  .subnav-container {
    top: 64px;
  }
}

/* Scrolled elevation state */
.subnav-root.is-scrolled,
.subnav-container.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Dark Mode Container */
html.dark .subnav-root,
html.dark .subnav-container,
.dark .subnav-root,
.dark .subnav-container {
  background: rgba(14, 16, 34, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.dark .subnav-root.is-scrolled,
html.dark .subnav-container.is-scrolled,
.dark .subnav-root.is-scrolled,
.dark .subnav-container.is-scrolled {
  background: rgba(12, 14, 26, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

/* 2. Inner Centered Constraint */
.subnav-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 640px) {
  .subnav-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .subnav-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 3. Horizontal Row Layout */
.subnav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .subnav-row {
    height: 56px;
    gap: 1rem;
  }
}

/* 4. Left Brand Section (Pinned, Never Scrolled Away) */
.subnav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-right: 0.5rem;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
}

@media (min-width: 640px) {
  .subnav-brand {
    gap: 0.625rem;
    padding-right: 0.75rem;
  }
}

html.dark .subnav-brand,
.dark .subnav-brand {
  border-right-color: rgba(255, 255, 255, 0.1);
}

.subnav-brand-logo-box {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  max-width: 1.75rem;
  max-height: 1.75rem;
  padding: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(125, 211, 252, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  background: rgba(224, 242, 254, 0.9);
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .subnav-brand-logo-box {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    max-width: 2rem;
    max-height: 2rem;
  }
}

.subnav-brand-logo-box svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
}

html.dark .subnav-brand-logo-box,
.dark .subnav-brand-logo-box {
  background: rgba(8, 47, 73, 0.6);
  border-color: rgba(3, 105, 161, 0.5);
}

.subnav-brand-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.subnav-brand-text-col {
  display: flex;
  flex-direction: column;
}

.subnav-brand-title {
  font-size: 0.75rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  color: #0078d4;
}

@media (min-width: 640px) {
  .subnav-brand-title {
    max-width: none;
  }
}

.subnav-brand-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  line-height: 1;
  display: none;
  margin-top: 1px;
}

@media (min-width: 768px) {
  .subnav-brand-subtitle {
    display: block;
  }
}

html.dark .subnav-brand-subtitle,
.dark .subnav-brand-subtitle {
  color: #94a3b8;
}

/* 5. Center Scrollable Navigation Area */
.subnav-center {
  flex: 1 1 0%;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* Hide horizontal tabs scroll strip on mobile screens (< 768px) */
@media (max-width: 767px) {
  .subnav-center {
    display: none !important;
  }
}

/* Scroll Container with Universal No-Scrollbar */
.subnav-tabs-scroll {
  flex: 1 1 0%;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.25rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

@media (min-width: 640px) {
  .subnav-tabs-scroll {
    gap: 0.375rem;
  }
}

.subnav-tabs-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Tab Item Button */
.subnav-tab-item {
  white-space: nowrap;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #475569;
  text-decoration: none;
  outline: none;
}

@media (min-width: 640px) {
  .subnav-tab-item {
    padding: 0.375rem 0.75rem;
  }
}

html.dark .subnav-tab-item,
.dark .subnav-tab-item {
  color: #cbd5e1;
}

.subnav-tab-item:hover {
  color: #0078d4;
  background: rgba(240, 249, 255, 0.8);
}

html.dark .subnav-tab-item:hover,
.dark .subnav-tab-item:hover {
  color: #7dd3fc;
  background: rgba(8, 47, 73, 0.4);
}

/* Active State */
.subnav-tab-item.is-active {
  background: #0078d4;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 1px 3px 0 rgba(0, 120, 212, 0.35);
}

/* Chevron Arrow Navigation Buttons */
.subnav-arrow-btn {
  display: none;
  position: absolute;
  z-index: 10;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  padding: 0;
  outline: none;
}

@media (min-width: 1024px) {
  .subnav-arrow-btn {
    display: flex;
  }
}

.subnav-arrow-btn:hover {
  transform: scale(1.1);
  color: #0f172a;
}

html.dark .subnav-arrow-btn,
.dark .subnav-arrow-btn {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

html.dark .subnav-arrow-btn:hover,
.dark .subnav-arrow-btn:hover {
  color: #ffffff;
}

.subnav-arrow-btn-left {
  left: 0;
}

.subnav-arrow-btn-right {
  right: 0;
}

/* Gradient Fade Masks */
.subnav-gradient-mask-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
  z-index: 5;
}

html.dark .subnav-gradient-mask-left,
.dark .subnav-gradient-mask-left {
  background: linear-gradient(to right, rgba(12, 14, 26, 0.95), transparent);
}

.subnav-gradient-mask-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2rem;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
  z-index: 5;
}

html.dark .subnav-gradient-mask-right,
.dark .subnav-gradient-mask-right {
  background: linear-gradient(to left, rgba(12, 14, 26, 0.95), transparent);
}

/* 6. Right CTA Button Section (Pinned) */
.subnav-cta-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 0.25rem;
}

@media (min-width: 640px) {
  .subnav-cta-wrapper {
    padding-left: 0.5rem;
  }
}

.subnav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  background: #0078d4;
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 120, 212, 0.25);
}

@media (min-width: 640px) {
  .subnav-cta-btn {
    padding: 0.375rem 0.875rem;
  }
}

.subnav-cta-btn:hover {
  background: #006cbd;
  transform: scale(1.02);
}

.subnav-cta-text-desktop {
  display: none;
}

@media (min-width: 768px) {
  .subnav-cta-text-desktop {
    display: inline;
  }
}

.subnav-cta-text-mobile {
  display: inline;
}

@media (min-width: 768px) {
  .subnav-cta-text-mobile {
    display: none;
  }
}

.subnav-cta-arrow {
  display: none;
  width: 0.75rem;
  height: 0.75rem;
}

@media (min-width: 640px) {
  .subnav-cta-arrow {
    display: inline-block;
  }
}

/* ==========================================================================
   7. MOBILE TABLE OF CONTENTS (TOC) & DRAWER
   ========================================================================== */

/* Mobile TOC Trigger Button (Inside Subnav Row on < 768px) */
.subnav-mobile-toc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .subnav-mobile-toc-btn {
    display: none !important;
  }
}

html.dark .subnav-mobile-toc-btn,
.dark .subnav-mobile-toc-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.subnav-mobile-toc-btn:hover {
  background: rgba(226, 232, 240, 1);
}

html.dark .subnav-mobile-toc-btn:hover,
.dark .subnav-mobile-toc-btn:hover {
  background: rgba(51, 65, 85, 0.95);
}

.subnav-mobile-toc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  background: #0078d4;
  color: #ffffff;
}

/* Floating Action Button (FAB) on Mobile (< 768px) */
.subnav-floating-toc {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .subnav-floating-toc {
    display: none !important;
  }
}

html.dark .subnav-floating-toc,
.dark .subnav-floating-toc {
  background: rgba(18, 20, 44, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.55);
}

.subnav-floating-toc:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.25);
}

.subnav-floating-toc-icon {
  width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0078d4;
}

.subnav-floating-toc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #0078d4;
  color: #ffffff;
}

/* Table of Contents Drawer & Modal Sheet */
.subnav-toc-drawer-wrapper {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.subnav-toc-drawer-wrapper.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.subnav-toc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

html.dark .subnav-toc-backdrop,
.dark .subnav-toc-backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.subnav-toc-sheet {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  box-shadow: 0 -10px 40px -5px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 10;
}

.subnav-toc-drawer-wrapper.is-open .subnav-toc-sheet {
  transform: translateY(0);
}

html.dark .subnav-toc-sheet,
.dark .subnav-toc-sheet {
  background: #0f1123;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.subnav-toc-handle-bar {
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.subnav-toc-handle {
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: #cbd5e1;
}

html.dark .subnav-toc-handle,
.dark .subnav-toc-handle {
  background: #334155;
}

.subnav-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

html.dark .subnav-toc-header,
.dark .subnav-toc-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.subnav-toc-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.subnav-toc-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 242, 254, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.6);
  flex-shrink: 0;
  padding: 0.25rem;
  overflow: hidden;
  box-sizing: border-box;
}

.subnav-toc-brand-icon svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
}

html.dark .subnav-toc-brand-icon,
.dark .subnav-toc-brand-icon {
  background: rgba(8, 47, 73, 0.6);
  border-color: rgba(3, 105, 161, 0.5);
}

.subnav-toc-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

html.dark .subnav-toc-title,
.dark .subnav-toc-title {
  color: #ffffff;
}

.subnav-toc-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.125rem 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.dark .subnav-toc-subtitle,
.dark .subnav-toc-subtitle {
  color: #94a3b8;
}

.subnav-toc-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background: rgba(241, 245, 249, 0.9);
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

html.dark .subnav-toc-close-btn,
.dark .subnav-toc-close-btn {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
}

.subnav-toc-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.dark .subnav-toc-close-btn:hover,
.dark .subnav-toc-close-btn:hover {
  background: #334155;
  color: #ffffff;
}

.subnav-toc-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.subnav-toc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #334155;
  font-family: inherit;
}

html.dark .subnav-toc-item,
.dark .subnav-toc-item {
  color: #cbd5e1;
}

.subnav-toc-item:hover {
  background: rgba(241, 245, 249, 0.8);
}

html.dark .subnav-toc-item:hover,
.dark .subnav-toc-item:hover {
  background: rgba(30, 41, 59, 0.5);
}

.subnav-toc-item.is-active {
  background: rgba(224, 242, 254, 0.6);
  border-color: rgba(125, 211, 252, 0.8);
  color: #0078d4;
  font-weight: 700;
}

html.dark .subnav-toc-item.is-active,
.dark .subnav-toc-item.is-active {
  background: rgba(8, 47, 73, 0.4);
  border-color: rgba(3, 105, 161, 0.6);
  color: #38bdf8;
}

.subnav-toc-item-num {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  background: rgba(241, 245, 249, 0.9);
  color: #64748b;
  flex-shrink: 0;
}

html.dark .subnav-toc-item-num,
.dark .subnav-toc-item-num {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}

.subnav-toc-item.is-active .subnav-toc-item-num {
  background: #0078d4;
  color: #ffffff;
}

.subnav-toc-item-label {
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.35;
}

.subnav-toc-item-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #0078d4;
  color: #ffffff;
  display: none;
}

.subnav-toc-item.is-active .subnav-toc-item-badge {
  display: inline-flex;
  align-items: center;
}

.subnav-toc-footer {
  padding: 0.875rem 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.8);
}

html.dark .subnav-toc-footer,
.dark .subnav-toc-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 34, 0.8);
}

.subnav-toc-footer-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: #0078d4;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.35);
  font-family: inherit;
}

.subnav-toc-footer-cta:hover {
  background: #006cbd;
}

/* ==========================================================================
   THEME PALETTES (Standardized per Cloud Ecosystem)
   ========================================================================== */

/* Azure Theme (Default Sky) */
.subnav-theme-azure .subnav-brand-title,
.subnav-theme-sky .subnav-brand-title {
  color: #0078d4;
}
html.dark .subnav-theme-azure .subnav-brand-title,
html.dark .subnav-theme-sky .subnav-brand-title,
.dark .subnav-theme-azure .subnav-brand-title,
.dark .subnav-theme-sky .subnav-brand-title {
  color: #38bdf8;
}
.subnav-theme-azure .subnav-brand-logo-box,
.subnav-theme-sky .subnav-brand-logo-box {
  background: rgba(224, 242, 254, 0.9);
  border-color: rgba(125, 211, 252, 0.6);
}
html.dark .subnav-theme-azure .subnav-brand-logo-box,
html.dark .subnav-theme-sky .subnav-brand-logo-box,
.dark .subnav-theme-azure .subnav-brand-logo-box,
.dark .subnav-theme-sky .subnav-brand-logo-box {
  background: rgba(8, 47, 73, 0.6);
  border-color: rgba(3, 105, 161, 0.5);
}
.subnav-theme-azure .subnav-tab-item.is-active,
.subnav-theme-sky .subnav-tab-item.is-active {
  background: #0078d4;
  box-shadow: 0 1px 3px 0 rgba(0, 120, 212, 0.35);
}
.subnav-theme-azure .subnav-cta-btn,
.subnav-theme-sky .subnav-cta-btn {
  background: #0078d4;
  box-shadow: 0 1px 3px 0 rgba(0, 120, 212, 0.25);
}
.subnav-theme-azure .subnav-cta-btn:hover,
.subnav-theme-sky .subnav-cta-btn:hover {
  background: #006cbd;
}

/* AWS Theme (Amazon Orange & Amber) */
.subnav-theme-aws .subnav-brand-title,
.subnav-theme-amber .subnav-brand-title {
  color: #232f3e;
}
html.dark .subnav-theme-aws .subnav-brand-title,
html.dark .subnav-theme-amber .subnav-brand-title,
.dark .subnav-theme-aws .subnav-brand-title,
.dark .subnav-theme-amber .subnav-brand-title {
  color: #fbbf24;
}
.subnav-theme-aws .subnav-brand-logo-box,
.subnav-theme-amber .subnav-brand-logo-box {
  background: rgba(254, 243, 199, 0.9);
  border-color: rgba(252, 211, 77, 0.6);
}
html.dark .subnav-theme-aws .subnav-brand-logo-box,
html.dark .subnav-theme-amber .subnav-brand-logo-box,
.dark .subnav-theme-aws .subnav-brand-logo-box,
.dark .subnav-theme-amber .subnav-brand-logo-box {
  background: rgba(69, 26, 3, 0.6);
  border-color: rgba(180, 83, 9, 0.5);
}
.subnav-theme-aws .subnav-tab-item:hover,
.subnav-theme-amber .subnav-tab-item:hover {
  color: #d97706;
  background: rgba(254, 243, 199, 0.7);
}
html.dark .subnav-theme-aws .subnav-tab-item:hover,
html.dark .subnav-theme-amber .subnav-tab-item:hover,
.dark .subnav-theme-aws .subnav-tab-item:hover,
.dark .subnav-theme-amber .subnav-tab-item:hover {
  color: #fbbf24;
  background: rgba(69, 26, 3, 0.4);
}
.subnav-theme-aws .subnav-tab-item.is-active,
.subnav-theme-amber .subnav-tab-item.is-active {
  background: #f59e0b;
  box-shadow: 0 1px 3px 0 rgba(245, 158, 11, 0.35);
}
.subnav-theme-aws .subnav-cta-btn,
.subnav-theme-amber .subnav-cta-btn {
  background: linear-gradient(to right, #f59e0b, #ff9900);
  box-shadow: 0 1px 3px 0 rgba(245, 158, 11, 0.25);
}
.subnav-theme-aws .subnav-cta-btn:hover,
.subnav-theme-amber .subnav-cta-btn:hover {
  background: linear-gradient(to right, #d97706, #f59e0b);
}

/* Google Workspace Theme (Google Blue) */
.subnav-theme-google-workspace .subnav-brand-title,
.subnav-theme-blue .subnav-brand-title {
  color: #1a73e8;
}
html.dark .subnav-theme-google-workspace .subnav-brand-title,
html.dark .subnav-theme-blue .subnav-brand-title,
.dark .subnav-theme-google-workspace .subnav-brand-title,
.dark .subnav-theme-blue .subnav-brand-title {
  color: #60a5fa;
}
.subnav-theme-google-workspace .subnav-brand-logo-box,
.subnav-theme-blue .subnav-brand-logo-box {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(147, 197, 253, 0.6);
}
html.dark .subnav-theme-google-workspace .subnav-brand-logo-box,
html.dark .subnav-theme-blue .subnav-brand-logo-box,
.dark .subnav-theme-google-workspace .subnav-brand-logo-box,
.dark .subnav-theme-blue .subnav-brand-logo-box {
  background: rgba(30, 58, 138, 0.6);
  border-color: rgba(29, 78, 216, 0.5);
}
.subnav-theme-google-workspace .subnav-tab-item:hover,
.subnav-theme-blue .subnav-tab-item:hover {
  color: #2563eb;
  background: rgba(239, 246, 255, 0.7);
}
html.dark .subnav-theme-google-workspace .subnav-tab-item:hover,
html.dark .subnav-theme-blue .subnav-tab-item:hover,
.dark .subnav-theme-google-workspace .subnav-tab-item:hover,
.dark .subnav-theme-blue .subnav-tab-item:hover {
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.4);
}
.subnav-theme-google-workspace .subnav-tab-item.is-active,
.subnav-theme-blue .subnav-tab-item.is-active {
  background: #2563eb;
  box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.35);
}
.subnav-theme-google-workspace .subnav-cta-btn,
.subnav-theme-blue .subnav-cta-btn {
  background: #2563eb;
  box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.25);
}
.subnav-theme-google-workspace .subnav-cta-btn:hover,
.subnav-theme-blue .subnav-cta-btn:hover {
  background: #1d4ed8;
}

/* Microsoft 365 Theme (Microsoft Indigo / Royal) */
.subnav-theme-m365 .subnav-brand-title,
.subnav-theme-indigo .subnav-brand-title {
  color: #0078d4;
}
html.dark .subnav-theme-m365 .subnav-brand-title,
html.dark .subnav-theme-indigo .subnav-brand-title,
.dark .subnav-theme-m365 .subnav-brand-title,
.dark .subnav-theme-indigo .subnav-brand-title {
  color: #818cf8;
}
.subnav-theme-m365 .subnav-brand-logo-box,
.subnav-theme-indigo .subnav-brand-logo-box {
  background: rgba(238, 242, 255, 0.9);
  border-color: rgba(165, 180, 252, 0.6);
}
html.dark .subnav-theme-m365 .subnav-brand-logo-box,
html.dark .subnav-theme-indigo .subnav-brand-logo-box,
.dark .subnav-theme-m365 .subnav-brand-logo-box,
.dark .subnav-theme-indigo .subnav-brand-logo-box {
  background: rgba(49, 46, 129, 0.6);
  border-color: rgba(67, 56, 202, 0.5);
}
.subnav-theme-m365 .subnav-tab-item:hover,
.subnav-theme-indigo .subnav-tab-item:hover {
  color: #0078d4;
  background: rgba(238, 242, 255, 0.7);
}
html.dark .subnav-theme-m365 .subnav-tab-item:hover,
html.dark .subnav-theme-indigo .subnav-tab-item:hover,
.dark .subnav-theme-m365 .subnav-tab-item:hover,
.dark .subnav-theme-indigo .subnav-tab-item:hover {
  color: #a5b4fc;
  background: rgba(49, 46, 129, 0.4);
}
.subnav-theme-m365 .subnav-tab-item.is-active,
.subnav-theme-indigo .subnav-tab-item.is-active {
  background: #0078d4;
  box-shadow: 0 1px 3px 0 rgba(0, 120, 212, 0.35);
}
.subnav-theme-m365 .subnav-cta-btn,
.subnav-theme-indigo .subnav-cta-btn {
  background: #0078d4;
  box-shadow: 0 1px 3px 0 rgba(0, 120, 212, 0.25);
}
.subnav-theme-m365 .subnav-cta-btn:hover,
.subnav-theme-indigo .subnav-cta-btn:hover {
  background: #006cbd;
}

/* Managed WordPress Theme (WordPress Cyan / Blue) */
.subnav-theme-wordpress .subnav-brand-title {
  color: #21759b;
}
html.dark .subnav-theme-wordpress .subnav-brand-title,
.dark .subnav-theme-wordpress .subnav-brand-title {
  color: #22d3ee;
}
.subnav-theme-wordpress .subnav-brand-logo-box {
  background: rgba(207, 250, 254, 0.9);
  border-color: rgba(103, 232, 249, 0.6);
}
html.dark .subnav-theme-wordpress .subnav-brand-logo-box,
.dark .subnav-theme-wordpress .subnav-brand-logo-box {
  background: rgba(22, 78, 99, 0.6);
  border-color: rgba(14, 116, 144, 0.5);
}
.subnav-theme-wordpress .subnav-tab-item:hover {
  color: #21759b;
  background: rgba(207, 250, 254, 0.7);
}
html.dark .subnav-theme-wordpress .subnav-tab-item:hover,
.dark .subnav-theme-wordpress .subnav-tab-item:hover {
  color: #67e8f9;
  background: rgba(22, 78, 99, 0.4);
}
.subnav-theme-wordpress .subnav-tab-item.is-active {
  background: #21759b;
  box-shadow: 0 1px 3px 0 rgba(33, 117, 155, 0.35);
}
.subnav-theme-wordpress .subnav-cta-btn {
  background: #21759b;
  box-shadow: 0 1px 3px 0 rgba(33, 117, 155, 0.25);
}
.subnav-theme-wordpress .subnav-cta-btn:hover {
  background: #1a5f7e;
}

/* Cloud VPS & Instance Theme */
.subnav-theme-cloud .subnav-brand-title {
  color: #2563eb;
}
html.dark .subnav-theme-cloud .subnav-brand-title,
.dark .subnav-theme-cloud .subnav-brand-title {
  color: #60a5fa;
}
.subnav-theme-cloud .subnav-brand-logo-box {
  background: rgba(238, 242, 255, 0.9);
  border-color: rgba(165, 180, 252, 0.6);
}
html.dark .subnav-theme-cloud .subnav-brand-logo-box,
.dark .subnav-theme-cloud .subnav-brand-logo-box {
  background: rgba(30, 58, 138, 0.6);
  border-color: rgba(29, 78, 216, 0.5);
}
.subnav-theme-cloud .subnav-tab-item:hover {
  color: #2563eb;
  background: rgba(239, 246, 255, 0.7);
}
html.dark .subnav-theme-cloud .subnav-tab-item:hover,
.dark .subnav-theme-cloud .subnav-tab-item:hover {
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.4);
}
.subnav-theme-cloud .subnav-tab-item.is-active {
  background: #2563eb;
  box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.35);
}
.subnav-theme-cloud .subnav-cta-btn {
  background: #2563eb;
  box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.25);
}
.subnav-theme-cloud .subnav-cta-btn:hover {
  background: #1d4ed8;
}

/* --- Theme overrides for Mobile TOC & Floating Button --- */

/* AWS Theme */
.subnav-theme-aws .subnav-floating-toc-icon,
.subnav-theme-amber .subnav-floating-toc-icon {
  color: #ea580c;
}
.subnav-theme-aws .subnav-floating-toc-badge,
.subnav-theme-amber .subnav-floating-toc-badge,
.subnav-theme-aws .subnav-mobile-toc-badge,
.subnav-theme-amber .subnav-mobile-toc-badge {
  background: #ea580c;
}
.subnav-theme-aws.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.subnav-theme-amber.subnav-toc-drawer-wrapper .subnav-toc-item.is-active {
  background: rgba(255, 237, 213, 0.7);
  border-color: rgba(253, 186, 116, 0.8);
  color: #ea580c;
}
html.dark .subnav-theme-aws.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
html.dark .subnav-theme-amber.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.dark .subnav-theme-aws.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.dark .subnav-theme-amber.subnav-toc-drawer-wrapper .subnav-toc-item.is-active {
  background: rgba(124, 45, 18, 0.4);
  border-color: rgba(234, 88, 12, 0.6);
  color: #fb923c;
}
.subnav-theme-aws.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-num,
.subnav-theme-amber.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-num,
.subnav-theme-aws.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-badge,
.subnav-theme-amber.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-badge,
.subnav-theme-aws.subnav-toc-drawer-wrapper .subnav-toc-footer-cta,
.subnav-theme-amber.subnav-toc-drawer-wrapper .subnav-toc-footer-cta {
  background: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}
.subnav-theme-aws.subnav-toc-drawer-wrapper .subnav-toc-footer-cta:hover,
.subnav-theme-amber.subnav-toc-drawer-wrapper .subnav-toc-footer-cta:hover {
  background: #c2410c;
}

/* Google Workspace Theme */
.subnav-theme-google-workspace .subnav-floating-toc-icon,
.subnav-theme-blue .subnav-floating-toc-icon {
  color: #2563eb;
}
.subnav-theme-google-workspace .subnav-floating-toc-badge,
.subnav-theme-blue .subnav-floating-toc-badge,
.subnav-theme-google-workspace .subnav-mobile-toc-badge,
.subnav-theme-blue .subnav-mobile-toc-badge {
  background: #2563eb;
}
.subnav-theme-google-workspace.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.subnav-theme-blue.subnav-toc-drawer-wrapper .subnav-toc-item.is-active {
  background: rgba(219, 234, 254, 0.7);
  border-color: rgba(147, 197, 253, 0.8);
  color: #2563eb;
}
html.dark .subnav-theme-google-workspace.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
html.dark .subnav-theme-blue.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.dark .subnav-theme-google-workspace.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.dark .subnav-theme-blue.subnav-toc-drawer-wrapper .subnav-toc-item.is-active {
  background: rgba(30, 58, 138, 0.4);
  border-color: rgba(37, 99, 235, 0.6);
  color: #60a5fa;
}
.subnav-theme-google-workspace.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-num,
.subnav-theme-blue.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-num,
.subnav-theme-google-workspace.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-badge,
.subnav-theme-blue.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-badge,
.subnav-theme-google-workspace.subnav-toc-drawer-wrapper .subnav-toc-footer-cta,
.subnav-theme-blue.subnav-toc-drawer-wrapper .subnav-toc-footer-cta {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.subnav-theme-google-workspace.subnav-toc-drawer-wrapper .subnav-toc-footer-cta:hover,
.subnav-theme-blue.subnav-toc-drawer-wrapper .subnav-toc-footer-cta:hover {
  background: #1d4ed8;
}

/* WordPress Theme */
.subnav-theme-wordpress .subnav-floating-toc-icon,
.subnav-theme-wp .subnav-floating-toc-icon {
  color: #21759b;
}
.subnav-theme-wordpress .subnav-floating-toc-badge,
.subnav-theme-wp .subnav-floating-toc-badge,
.subnav-theme-wordpress .subnav-mobile-toc-badge,
.subnav-theme-wp .subnav-mobile-toc-badge {
  background: #21759b;
}
.subnav-theme-wordpress.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.subnav-theme-wp.subnav-toc-drawer-wrapper .subnav-toc-item.is-active {
  background: rgba(207, 250, 254, 0.7);
  border-color: rgba(103, 232, 249, 0.8);
  color: #21759b;
}
html.dark .subnav-theme-wordpress.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
html.dark .subnav-theme-wp.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.dark .subnav-theme-wordpress.subnav-toc-drawer-wrapper .subnav-toc-item.is-active,
.dark .subnav-theme-wp.subnav-toc-drawer-wrapper .subnav-toc-item.is-active {
  background: rgba(22, 78, 99, 0.4);
  border-color: rgba(14, 116, 144, 0.6);
  color: #67e8f9;
}
.subnav-theme-wordpress.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-num,
.subnav-theme-wp.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-num,
.subnav-theme-wordpress.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-badge,
.subnav-theme-wp.subnav-toc-drawer-wrapper .subnav-toc-item.is-active .subnav-toc-item-badge,
.subnav-theme-wordpress.subnav-toc-drawer-wrapper .subnav-toc-footer-cta,
.subnav-theme-wp.subnav-toc-drawer-wrapper .subnav-toc-footer-cta {
  background: #21759b;
  box-shadow: 0 4px 12px rgba(33, 117, 155, 0.35);
}
.subnav-theme-wordpress.subnav-toc-drawer-wrapper .subnav-toc-footer-cta:hover,
.subnav-theme-wp.subnav-toc-drawer-wrapper .subnav-toc-footer-cta:hover {
  background: #1a5f7e;
}
