html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ws-orange);
  outline-offset: 4px;
}

.search-box:focus-within {
  border-color: var(--ws-orange);
  box-shadow: 0 0 0 1px var(--ws-orange), 0 22px 70px rgba(0, 0, 0, .38);
}

.search-box input:focus,
.search-box input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.site-header { backdrop-filter: blur(18px); }

.site-header .logo-img,
.footer-brand .logo-img {
  filter: none;
  filter: brightness(0) invert(1) !important;
}

.category-menu[open] summary svg,
.mobile-nav details[open] summary svg {
  transform: rotate(180deg);
}

.category-menu summary svg,
.mobile-nav summary svg {
  transition: transform .28s cubic-bezier(.2, .75, .3, 1);
}

.category-page-top .category-results-heading h1 {
  white-space: nowrap;
}

.category-tools.listing-tools {
  margin-top: 0;
}

.search-results[hidden],
.dynamic-empty-results[hidden],
.dynamic-pagination[hidden] { display: none !important; }

.webstore-live-results {
  position: relative;
  z-index: 5;
  width: min(760px, 100%);
  max-height: min(470px, 60vh);
  margin: 14px auto 0;
  padding: 12px 22px 18px;
  overflow: auto;
  border: 1px solid var(--ws-border-strong);
  border-radius: 18px;
}

.article-hero-copy { max-width: none; }

.article-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px;
  margin-inline: auto;
}

.article-body { max-width: none; }

.article-body > p:first-child {
  margin-top: 0;
  color: var(--ws-muted-strong) !important;
  font-size: 1.12rem;
  line-height: 1.75;
}

.article-body h2 {
  margin-top: 64px;
  margin-bottom: 22px;
}

.article-body h3 {
  margin-top: 48px;
  margin-bottom: 18px;
}

.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 36px;
  margin-bottom: 14px;
}

.article-body .article-feedback {
  margin-top: clamp(64px, 7vw, 92px) !important;
  margin-bottom: 36px !important;
}

.article-feedback h2 {
  margin: 0;
}

.article-pagination a small {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}

.article-pagination a > span {
  display: block;
  width: 100%;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.article-pagination {
  padding-top: 36px;
}

.article-pagination a {
  min-height: 140px;
  padding: 28px 30px;
}

.article-pagination a.next small {
  justify-content: flex-end;
}

.article-pagination a small svg {
  transition: transform .25s ease;
}

.article-pagination a:hover small svg {
  transform: translateX(-3px);
}

.article-pagination a.next:hover small svg {
  transform: translateX(3px);
}

.feedback-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feedback-actions button svg {
  flex: none;
}

.article-body iframe,
.article-body video { max-width: 100%; }

.article-body .wp-block-table { overflow-x: auto; }

.article-body code {
  color: var(--ws-text);
  background: var(--ws-dark-contrast);
  border-radius: 5px;
  padding: .12em .35em;
}

.article-toc a.is-active {
  color: var(--ws-orange);
  transform: translateX(4px);
}

.knowledge-card.is-visible { opacity: 1; transform: none; }

.category-page .knowledge-list .knowledge-card,
.category-page .knowledge-list .knowledge-card:hover,
.category-page .knowledge-list .knowledge-card:focus-visible {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.category-search:focus-within,
.category-search.compact:focus-within {
  border-color: var(--ws-orange);
  box-shadow: none !important;
  transform: none;
}

.category-search input:focus,
.category-search input:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 0 0 1000px var(--ws-dark-contrast) inset !important;
}

@media (max-width: 820px) {
  .category-page-top .category-results-heading h1 { white-space: normal; }
  .article-layout { grid-template-columns: 1fr; }

  .article-body h2 {
    margin-top: 48px;
    margin-bottom: 18px;
  }

  .article-body h3 {
    margin-top: 38px;
    margin-bottom: 16px;
  }
}

@media (max-width: 620px) {
  .webstore-live-results { padding-inline: 16px; border-radius: 14px; }
  .article-body > p:first-child { font-size: 1rem; }
  .article-pagination a > span { font-size: 15px; }
}
