body[data-style="common"]:has(.home-wrapper) {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

body[data-style="common"] main:has(.home-wrapper) {
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

body:has(.home-wrapper) main > nav.breadcrumbs {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #1a1a6e;
  color: white;
  padding: 24px 32px;
  box-sizing: border-box;
  font-size: 1.8em;
  font-weight: bold;
  transition: padding 0.3s, font-size 0.3s;
}

.site-header.shrink {
  padding: 8px 32px;
  font-size: 1.2em;
}

.site-header .breadcrumbs {
  font-size: 0.6em;
  margin-top: 4px;
}

.site-header .breadcrumbs a {
  color: #ccccee; !important;
  text-decoration: none; !important;
}

.site-header .breadcrumbs a:hover {
  text-decoration: underline;
}

.home-wrapper {
  display: grid;
  grid-template-columns: 15% 1fr 15%;
  width: 100%;
  box-sizing: border-box;
  margin-top: 111px;
}

.home-wrapper.no-right {
  grid-template-columns: 15% 1fr;
}

.left-nav {
  background: #e8f4f8;
  color: #333;
  font-size: clamp(0.7em, 1.2vw, 1em);
  box-sizing: border-box;
}

.left-nav a {
  color: #1a1a6e;
  text-decoration: none;
  display: block;
  padding: 2px 0;
  min-height: 100%;
}

.left-nav-content {
  position: sticky;
  top: 111px;
  max-height: calc(100vh - 111px);
  overflow-y: auto;
  padding: 16px;
}

.nav-section {
  font-weight: bold;
  margin-top: 8px;
  color: #1a1a6e;
}

.nav-child {
  padding-left: 12px;
}

.nav-grandchild {
  padding-left: 24px;
}

.main-content {
  background: white;
  padding: 24px 32px;
  min-width: 0;
}

.main-content h2, .main-content h3, .main-content h4 {
  scroll-margin-top: 120px;
}

.right-links {
  background: #e8f4f8;
  color: #333;
  font-size: clamp(0.7em, 1.2vw, 1em);
  box-sizing: border-box;
  min-width: 0;
}

.right-links a {
  color: #1a1a6e;
  text-decoration: none;
  display: block;
  padding: 2px 0;
}

.right-links-content {
  position: sticky;
  top: 111px;
  max-height: calc(100vh - 111px);
  overflow-y: auto;
  padding: 16px;
}

.link-section {
  font-weight: bold;
  margin-top: 8px;
  color: #1a1a6e;
}

.link-section:first-child {
  margin-top: 0;
}

.link-child {
  padding-left: 12px;
}

.whatsnew-filter {
  margin-bottom: 8px;
}

.wn-filter-btn {
  margin: 0 4px;
  padding: 2px 10px;
  cursor: pointer;
  border: 1px solid #1a1a6e;
  background: white;
  color: #1a1a6e;
  border-radius: 4px;
}

.wn-filter-btn.active {
  background: #1a1a6e;
  color: white;
}

.whatsnew-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
}

.whatsnew-item {
  padding: 4px 0;
}

.wn-date {
  margin-right: 8px;
  color: #666;
  font-size: 0.9em;
}

.wn-viewall {
  display: inline-block;
  margin-top: 8px;
  color: #1a1a6e;
  text-decoration: none;
  font-weight: bold;
}

.wn-viewall:hover {
  text-decoration: underline;
}

.wn-product {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 8px;
  color: white;
  font-weight: bold;
  background: #6e4a1a;
}

.whatsnew-item {
  padding: 8px 0;
}

.wn-meta {
  margin-bottom: 4px;
}

.wn-text {
  line-height: 1.5;
}

#wn-more-btn {
  margin-top: 8px;
  padding: 4px 16px;
  cursor: pointer;
  border: 1px solid #1a1a6e;
  background: white;
  color: #1a1a6e;
  border-radius: 4px;
}

.wn-category {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 8px;
  color: white;
  font-weight: bold;
}

.wn-category-Release {
  background: #1a1a6e;
}

.wn-category-Announce {
  background: #2a6496;
}

.wn-category-Event {
  background: #4a7c6e;
}

.wn-category-Blog {
  background: #6e6e6e;
}

.wn-product-Sparrow-Hawk {
  background: #6e4a1a;
}

.wn-filter-btn.active {
  background: #1a1a6e;
  color: white;
}

.wn-new {
  color: red;
  font-weight: bold;
  margin-left: 4px;
}

.toc {
  font-size: clamp(0.7em, 1.2vw, 1em);
}

.toc-h2-item {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toc-h2-item a {
  color: #1a1a6e;
  text-decoration: none;
  font-weight: bold;
}

.toc-h2-item a:hover {
  text-decoration: underline;
}

.toc-h2-item .toc-toggle {
  cursor: pointer;
  color: #1a1a6e;
  font-size: 0.8em;
  white-space: nowrap;
  flex-shrink: 0;
}

.toc-h3-item {
  padding-left: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toc-h3-item a {
  color: #1a1a6e;
  text-decoration: none;
}

.toc-h3-item a:hover {
  text-decoration: underline;
}

.toc-h3-item .toc-toggle {
  cursor: pointer;
  color: #1a1a6e;
  font-size: 0.8em;
  white-space: nowrap;
  flex-shrink: 0;
}

.toc-h4-item {
  padding-left: 24px;
  margin-top: 4px;
}

.toc-h4-item a {
  color: #1a1a6e;
  text-decoration: none;
}

.toc-h4-item a:hover {
  text-decoration: underline;
}

.toc-title,
.link-section:first-child {
  font-weight: bold;
  color: #1a1a6e;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #1a1a6e;
}

footer {
  margin-left: 0;
  margin-right: 0;
  padding-left: 10px;
}
