/*
 * WP Query Lab public design system
 *
 * This is the shared contract for repeated public-page components. Route
 * styles may describe unique layouts, but must not invent their own type
 * scale, control height, section rhythm, rail width or divider treatment.
 */

:root {
  --wpq-ui-shell: var(--wpq-shell);
  --wpq-ui-rail: var(--wpq-rail);
  --wpq-ui-gutter: var(--wpq-space-7);
  --wpq-ui-section-gap: var(--wpq-space-6-5);
  --wpq-ui-block-gap: var(--wpq-space-4);
  --wpq-ui-control-height: var(--wpq-control-height);
  --wpq-ui-radius: var(--wpq-radius-control);
  --wpq-ui-line: var(--wpq-color-line);
  --wpq-ui-line-soft: var(--wpq-color-line-soft);
  --wpq-ui-ink: var(--wpq-color-ink);
  --wpq-ui-copy: var(--wpq-color-copy);
  --wpq-ui-meta: var(--wpq-color-muted);
  --wpq-ui-blue: var(--wpq-color-blue);
  --wpq-ui-green: var(--wpq-color-green);
  --wpq-ui-amber: var(--wpq-color-orange);
  --wpq-ui-violet: var(--wpq-color-violet);
  --wpq-ui-h1: var(--wpq-type-display);
  --wpq-ui-h2: var(--wpq-type-page-mobile-wide);
  --wpq-ui-h3: var(--wpq-type-subheading);
  --wpq-ui-body: var(--wpq-type-control);
  --wpq-ui-small: var(--wpq-type-small);
}

/* Author-level layout rules must never defeat the HTML hidden state. */
[hidden] {
  display: none !important;
}

/* Stable site chrome ----------------------------------------------------- */

.wpq-site-footer {
  margin-top: 0;
}

.wpq-site-main {
  padding-bottom: clamp(36px, 4vw, 56px);
}

.wpq-topbar .wpq-nav-menu--desktop a:not([aria-current="page"]),
.wpq-topbar .wpq-nav-menu--desktop a:not([aria-current="page"]) .wpq-nav-menu__icon {
  color: var(--wpq-ui-ink);
}

.wpq-topbar .wpq-nav-menu--desktop a[aria-current="page"],
.wpq-topbar .wpq-nav-menu--desktop a[aria-current="page"] .wpq-nav-menu__icon {
  color: var(--wpq-ui-blue);
}

.wpq-nav-shell--top > .wpq-nav-search-link {
  border-radius: var(--wpq-ui-radius);
}

/* Shared public shell and typography ----------------------------------- */

.wpq-site-main > :is(
    .wpq-wrap,
    .wpq-home-shell,
    .wpq-public-hub,
    .wpq-public-discovery,
    .wpq-popular-shell,
    .wpq-whats-new-shell,
    .wpq-official-reference-v1,
    .wpq-cheatsheet-v1,
    .wpq-trust-v1,
    .wpq-contact-v1,
    .wpq-privacy-v1,
    .wpq-sitemap-v1,
    .wpq-404-shell
  ) {
  width: min(var(--wpq-ui-shell), calc(100% - 36px));
  max-width: var(--wpq-ui-shell);
  margin-inline: auto;
}

:is(
    .wpq-public-hub__intro,
    .wpq-public-discovery__intro,
    .wpq-archive-intro,
    .wpq-public-compact-intro,
    .wpq-trust-v1__intro,
    .wpq-contact-v1__intro,
    .wpq-whats-new-hero__copy,
    .wpq-popular-hero__copy,
    .wpq-sitemap-v1__intro,
    .wpq-category-archive-intro__copy
  ) h1 {
  margin: 0;
  color: var(--wpq-ui-ink);
  font: var(--wpq-weight-bold) var(--wpq-ui-h1)/1.25 var(--wpq-font-ui);
  letter-spacing: var(--wpq-tracking-default);
}

body .wpq-site-main :is(
    .wpq-public-hub__intro,
    .wpq-public-discovery__intro,
    .wpq-archive-intro,
    .wpq-public-compact-intro,
    .wpq-trust-v1__intro,
    .wpq-contact-v1__intro,
    .wpq-whats-new-hero__copy,
    .wpq-popular-hero__copy,
    .wpq-sitemap-v1__intro,
    .wpq-category-archive-intro__copy
  ) h1 {
  width: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  font: var(--wpq-weight-bold) var(--wpq-ui-h1)/1.25 var(--wpq-font-ui);
}

:is(
    .wpq-public-hub__intro,
    .wpq-archive-intro__copy,
    .wpq-public-compact-intro,
    .wpq-contact-v1__intro,
    .wpq-whats-new-hero__copy,
    .wpq-category-archive-intro__copy
  ) > p:last-child,
.wpq-whats-new-hero__lead {
  color: var(--wpq-ui-copy);
  font: var(--wpq-weight-medium) var(--wpq-ui-body)/1.75 var(--wpq-font-ui);
  letter-spacing: var(--wpq-tracking-default);
}

.wpq-public-hub__main,
.wpq-public-discovery__main,
.wpq-archive-main,
.wpq-contact-v1__main,
.wpq-official-reference-v1__main,
.wpq-whats-new-primary {
  min-width: 0;
}

.wpq-public-hub__main,
.wpq-category-archive-main {
  gap: var(--wpq-ui-section-gap);
}

.wpq-category-archive-main > *,
.wpq-public-hub__main > * {
  margin-block: 0;
}

/* Section-heading component. Icons come from the repository icon library. */
.wpq-section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  color: var(--wpq-ui-ink);
  font: var(--wpq-weight-bold) var(--wpq-ui-h2)/1.45 var(--wpq-font-ui);
  letter-spacing: var(--wpq-tracking-default);
  text-align: left;
}

.wpq-section-heading__icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: var(--wpq-ui-blue);
  overflow: visible;
}

.wpq-section-heading__icon svg {
  width: 21px;
  height: 21px;
  overflow: visible;
}

.wpq-section-heading--green .wpq-section-heading__icon { color: var(--wpq-ui-green); }
.wpq-section-heading--amber .wpq-section-heading__icon { color: var(--wpq-ui-amber); }
.wpq-section-heading--violet .wpq-section-heading__icon { color: var(--wpq-ui-violet); }

.wpq-trust-v1__section > .wpq-section-heading,
.wpq-404-section > .wpq-section-heading,
.wpq-popular-board > .wpq-section-heading {
  min-height: 0;
  padding: 0;
  border: 0;
}

.wpq-trust-v1__section > .wpq-section-heading::before,
.wpq-404-section > .wpq-section-heading::before,
.wpq-popular-board > .wpq-section-heading::before {
  display: none;
  content: none;
}

/* Repeated route entrance rows ----------------------------------------- */

.home .wpq-home-feature-grid,
.wpq-hub-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--wpq-ui-gutter);
  margin: 0 0 var(--wpq-ui-section-gap);
  border-block: 1px solid var(--wpq-ui-line);
}

.home .wpq-home-feature-card,
.wpq-hub-route {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-items: start;
  gap: 3px 11px;
  min-width: 0;
  min-height: 74px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--wpq-ui-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transform: none;
}

.home .wpq-home-feature-card:nth-last-child(-n + 2),
.wpq-hub-route:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.home .wpq-home-feature-card:is(:hover, :focus-visible),
.wpq-hub-route:is(:hover, :focus-visible) {
  background: var(--wpq-color-surface-subtle);
}

.home .wpq-home-feature-card__icon,
.wpq-hub-route__icon {
  grid-column: 1;
  grid-row: 1 / -1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: visible;
}

.home .wpq-home-feature-card__icon svg,
.wpq-hub-route__icon svg {
  width: 27px;
  height: 27px;
  transform: none;
  overflow: visible;
}

.home .wpq-home-feature-card__title,
.wpq-hub-route__copy strong {
  grid-column: 2;
  width: auto;
  color: var(--wpq-ui-ink);
  font: var(--wpq-weight-bold) var(--wpq-type-body)/1.45 var(--wpq-font-ui);
  text-align: left;
}

.home .wpq-home-feature-card__text,
.wpq-hub-route__copy span {
  grid-column: 2;
  width: auto;
  color: var(--wpq-ui-copy);
  font: var(--wpq-weight-medium) var(--wpq-ui-small)/1.55 var(--wpq-font-ui);
  text-align: left;
}

.home .wpq-home-feature-card__arrow {
  display: none;
}

.home .wpq-home-panel__head {
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.home .wpq-home-panel__head h2 {
  text-align: left;
}

.home .wpq-home-article-card__meta svg,
.home .wpq-home-news-item__meta svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.home .wpq-home-news-item__meta > span:last-child {
  min-width: 5.5em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Shared controls, filters and paging ---------------------------------- */

:is(
    .wpq-search-query-form__field,
    .wpq-trouble-search form,
    .wpq-glossary-search,
    .wpq-glossary-hero__search,
    .wpq-whats-new-search
  ) input,
.wpq-contact-input input,
.wpq-contact-select__trigger,
.wpq-contact-field textarea {
  box-sizing: border-box;
  min-height: var(--wpq-ui-control-height);
  color: var(--wpq-ui-ink);
  font: var(--wpq-weight-medium) var(--wpq-type-copy)/1.5 var(--wpq-font-ui);
}

:is(
    .wpq-search-query-form__field,
    .wpq-trouble-search form,
    .wpq-glossary-search,
    .wpq-glossary-hero__search,
    .wpq-whats-new-search
  ) button {
  box-sizing: border-box;
  min-width: 68px;
  min-height: var(--wpq-ui-control-height);
  padding: 0 15px;
  place-items: center;
  align-items: center;
  justify-content: center;
  font: var(--wpq-weight-bold) var(--wpq-type-copy)/1 var(--wpq-font-ui);
  text-align: center;
}

.wpq-glossary-search-field,
.wpq-glossary-search-field input {
  min-height: var(--wpq-ui-control-height);
}

.wpq-glossary-search-field {
  grid-template-columns: 42px minmax(0, 1fr);
}

.wpq-glossary-search-field input {
  padding-left: 5px;
}

:is(
    .wpq-archive-filter-pill,
    .wpq-trouble-result-filters a,
    .wpq-glossary-groups a,
    .wpq-whats-new-type-tabs a,
    .wpq-cheatsheet-filter a,
    .wpq-cheatsheet-filter button,
    .wpq-official-reference-filter__button
  ) {
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 11px;
  font: var(--wpq-weight-bold) var(--wpq-type-small)/1.35 var(--wpq-font-ui);
  letter-spacing: var(--wpq-tracking-default);
}

.wpq-pagination {
  margin-top: var(--wpq-space-4-5);
  padding-top: 0;
  border-top: 0;
}

.wpq-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--wpq-space-1-5);
  border: 0;
}

.wpq-pagination .page-numbers {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wpq-ui-line);
  border-radius: 4px;
  font: var(--wpq-weight-bold) var(--wpq-type-small-strong)/1 var(--wpq-font-ui);
}

.wpq-pagination .page-numbers:is(.prev, .next) {
  width: auto;
  min-width: 58px;
  padding-inline: var(--wpq-space-3);
}

/* One boundary between adjacent listing regions, never two. */
.wpq-archive-result-toolbar,
.wpq-archive-card-list,
.wpq-glossary-pagination .nav-links {
  border-top: 0;
  border-bottom: 0;
}

.wpq-archive-result-toolbar + .wpq-archive-card-list {
  margin-top: 0;
}

.wpq-discovery-count {
  color: var(--wpq-ui-meta);
  font: var(--wpq-weight-medium) var(--wpq-ui-small)/1.5 var(--wpq-font-ui);
}

/* Code examples use one header/body boundary and one shared palette. */
.wpq-code-block,
.wpq-reference-hub .wpq-code-block {
  border: 1px solid #cfdced;
  border-radius: var(--wpq-ui-radius);
  background: var(--wpq-color-code-surface);
  overflow: hidden;
}

.wpq-code-head,
.wpq-reference-hub .wpq-code-head {
  border: 0;
  border-bottom: 1px solid #2c3c54;
  background: #17263b;
  color: #dce8f7;
}

.wpq-code-block pre,
.wpq-code-block code {
  background: var(--wpq-color-code-surface);
  color: var(--wpq-color-line);
}

.wpq-code-block .token.comment { color: #8192aa; }
.wpq-code-block .token.keyword { color: #78a9ff; }
.wpq-code-block .token.string { color: #92d6a8; }
.wpq-code-block .token.function { color: #ffd27d; }
.wpq-code-block .token.variable { color: #dfb1ff; }

/* Route-specific structures that reuse the system ---------------------- */

.wpq-reference-hub__jump-grid,
.wpq-reference-hub__guide,
.wpq-reference-hub__placement,
.wpq-reference-hub__section,
.wpq-reference-hub__next {
  margin-block: 0;
}

.wpq-reference-hub__section + .wpq-reference-hub__section {
  border-top: 0;
}

.wpq-reference-hub__section:first-of-type {
  border-top: 0;
}

.wpq-reference-hub__jump-grid + :is(.wpq-reference-hub__guide, .wpq-reference-hub__placement),
.wpq-hub-route-grid + .wpq-hub-section {
  margin-top: 0;
  padding-top: 0;
}

.wpq-reference-hub__query-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--wpq-space-2-5);
  align-items: start;
  margin: 0;
  padding: 13px 0;
  border-block: 1px solid var(--wpq-ui-line);
  color: var(--wpq-ui-copy);
}

.wpq-reference-hub__query-note > svg {
  width: 21px;
  height: 21px;
  color: var(--wpq-ui-blue);
}

.wpq-reference-hub__query-note p {
  margin: 0;
  font: var(--wpq-weight-medium) var(--wpq-ui-small)/1.7 var(--wpq-font-ui);
}

.wpq-trouble-search__guide,
.wpq-trouble-article-list__head {
  display: none;
}

.wpq-trouble-search form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 0;
  width: 100%;
}

.wpq-trouble-search form > span:first-of-type {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.wpq-trouble-search form > span:first-of-type svg {
  width: 17px;
  height: 17px;
}

.wpq-trouble-search form input {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 0 var(--wpq-space-3) 0 38px;
  border: 1px solid var(--wpq-ui-line);
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.wpq-trouble-search form button {
  grid-column: 2;
  grid-row: 1;
  width: 68px;
  border-radius: 0 4px 4px 0;
}

.wpq-trouble-search,
.wpq-trouble-classifications,
.wpq-trouble-recommended,
.wpq-trouble-results {
  display: grid;
  gap: var(--wpq-ui-block-gap);
}

.wpq-trouble-result-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wpq-space-1-5);
  min-width: 0;
}

.wpq-trouble-classifications svg,
.wpq-trouble-symptom-list svg {
  overflow: visible;
}

.wpq-contact-form {
  display: grid;
  gap: var(--wpq-space-4);
}

.wpq-contact-field {
  margin: 0;
  padding: 0;
}

.wpq-contact-v1__section-head {
  display: grid;
  gap: 7px;
  margin-bottom: var(--wpq-space-4-5);
}

.wpq-category-archive-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wpq-space-2) var(--wpq-space-3-5);
}

.wpq-category-archive-intro__all {
  width: fit-content;
  margin: 0;
}

.wpq-whats-new-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wpq-whats-new-summary-card {
  grid-column: span 2;
}

.wpq-whats-new-summary-card:nth-last-child(2):nth-child(4),
.wpq-whats-new-summary-card:nth-last-child(2):nth-child(4) + .wpq-whats-new-summary-card {
  grid-column: span 3;
}

.wpq-whats-new-summary-card:nth-last-child(2):nth-child(4) {
  border-left: 0;
}

.wpq-whats-new-summary-card:nth-last-child(2):nth-child(4) + .wpq-whats-new-summary-card {
  border-right: 0;
}

.wpq-whats-new-timeline-panel__footer {
  display: flex;
  justify-content: center;
}

.wpq-official-reference-frequent > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--wpq-ui-gutter);
  border-block: 1px solid var(--wpq-ui-line);
}

.wpq-official-reference-frequent article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--wpq-space-1-5) var(--wpq-space-2-5);
  align-content: start;
  min-width: 0;
  padding: var(--wpq-space-4) 0;
  border: 0;
  border-bottom: 1px solid var(--wpq-ui-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wpq-official-reference-frequent article > span:first-child {
  grid-row: 1 / 4;
}

.wpq-official-reference-frequent article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* Contextual sidebars stay separate from global navigation. On narrow
 * screens, explanatory duplicates collapse while related links and Builder
 * remain in the page flow. */
.wpq-mobile-rail-disclosure {
  display: contents;
}

.wpq-mobile-rail-disclosure > summary {
  display: none;
}

.wpq-mobile-rail-disclosure__body {
  display: contents;
}

@media (min-width: 1024px) {
  .wpq-site-main :is(
      .wpq-home-content,
      .wpq-public-hub__layout,
      .wpq-public-discovery__layout,
      .wpq-archive-layout,
      .wpq-official-reference-v1__layout,
      .wpq-cheatsheet-v1__layout,
      .wpq-trust-v1__layout,
      .wpq-contact-v1__layout,
      .wpq-privacy-v1__layout,
      .wpq-sitemap-v1__layout,
      .wpq-content-layout,
      .wpq-whats-new-main
    ) {
    grid-template-columns: minmax(0, 1fr) var(--wpq-ui-rail);
    column-gap: var(--wpq-ui-gutter);
  }
}

@media (max-width: 1023px) {
  :root {
    --wpq-ui-h1: var(--wpq-type-page-desktop);
    --wpq-ui-h2: var(--wpq-type-title);
    --wpq-ui-body: var(--wpq-type-subsection);
  }

  .wpq-public-hub__layout,
  .wpq-public-discovery__layout,
  .wpq-archive-layout,
  .wpq-contact-v1__layout,
  .wpq-official-reference-v1__layout,
  .wpq-whats-new-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --wpq-ui-section-gap: var(--wpq-space-7);
    --wpq-ui-block-gap: var(--wpq-space-3);
    --wpq-ui-control-height: var(--wpq-space-8);
    --wpq-ui-h1: var(--wpq-type-title);
    --wpq-ui-h2: var(--wpq-type-heading);
    --wpq-ui-h3: var(--wpq-type-control);
    --wpq-ui-body: var(--wpq-type-body);
    --wpq-ui-small: var(--wpq-type-meta);
  }

  .wpq-site-main {
    padding-bottom: 30px;
  }

  .wpq-site-main > :is(
      .wpq-wrap,
      .wpq-home-shell,
      .wpq-public-hub,
      .wpq-public-discovery,
      .wpq-popular-shell,
      .wpq-whats-new-shell,
      .wpq-official-reference-v1,
      .wpq-cheatsheet-v1,
      .wpq-trust-v1,
      .wpq-contact-v1,
      .wpq-privacy-v1,
      .wpq-sitemap-v1,
      .wpq-404-shell
    ) {
    width: calc(100% - 28px);
  }

  :is(
      .wpq-public-hub__intro,
      .wpq-public-discovery__intro,
      .wpq-archive-intro__copy,
      .wpq-public-compact-intro,
      .wpq-trust-v1__intro,
      .wpq-contact-v1__intro,
      .wpq-whats-new-hero__copy,
      .wpq-popular-hero__copy,
      .wpq-sitemap-v1__intro,
      .wpq-category-archive-intro__copy
    ) > p:last-child,
  .wpq-whats-new-hero__lead {
    font-size: var(--wpq-ui-body);
    line-height: 1.7;
  }

  .wpq-page-breadcrumb,
  .wpq-breadcrumb,
  .wpq-breadcrumb a,
  .wpq-breadcrumb span {
    font-size: var(--wpq-type-meta);
    line-height: 1.45;
  }

  .home .wpq-home-feature-grid,
  .wpq-hub-route-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .home .wpq-home-feature-card,
  .home .wpq-home-feature-card:nth-last-child(-n + 2),
  .wpq-hub-route,
  .wpq-hub-route:nth-last-child(-n + 2) {
    min-height: 62px;
    padding: 9px 0;
    border-bottom: 1px solid var(--wpq-ui-line-soft);
  }

  .home .wpq-home-feature-card:last-child,
  .wpq-hub-route:last-child {
    border-bottom: 0;
  }

  .home .wpq-home-feature-card {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
  }

  .home .wpq-home-feature-card__arrow {
    display: grid;
    grid-column: 3;
    grid-row: 1 / -1;
    width: 18px;
    height: 18px;
    place-items: center;
    align-self: center;
    color: var(--wpq-ui-blue);
  }

  .home .wpq-home-feature-card__arrow svg {
    width: 15px;
    height: 15px;
  }

  .wpq-public-hub--map .wpq-map-lead-tail {
    white-space: normal;
  }

  .home .wpq-home-panel__head {
    flex-direction: row;
    align-items: center;
  }

  .home .wpq-home-panel__link {
    white-space: nowrap;
  }

  :is(
      .wpq-archive-filter-pill,
      .wpq-trouble-result-filters a,
      .wpq-glossary-groups a,
      .wpq-whats-new-type-tabs a,
      .wpq-cheatsheet-filter a,
      .wpq-cheatsheet-filter button,
      .wpq-official-reference-filter__button
    ) {
    min-height: 34px;
    padding: var(--wpq-space-1-5) 9px;
    font-size: var(--wpq-type-meta);
  }

  .wpq-pagination .page-numbers {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .wpq-contact-form {
    gap: var(--wpq-space-3-5);
  }

  .wpq-whats-new-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .wpq-whats-new-summary-card {
    grid-column: span 2;
  }

  .wpq-whats-new-summary-card:nth-last-child(2):nth-child(4),
  .wpq-whats-new-summary-card:nth-last-child(2):nth-child(4) + .wpq-whats-new-summary-card {
    grid-column: span 3;
  }

  .wpq-whats-new-entry__date,
  .wpq-whats-new-entry__date span {
    font-size: var(--wpq-type-meta);
    line-height: 1.4;
  }

  .wpq-whats-new-entry__badge {
    min-height: 20px;
    padding-inline: 7px;
    font-size: var(--wpq-type-micro-floor);
    line-height: 1.25;
  }

  .wpq-whats-new-entry__card {
    min-height: 0;
    padding: 11px var(--wpq-space-3);
  }

  .wpq-official-reference-frequent > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .wpq-official-reference-frequent article:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--wpq-ui-line-soft);
  }

  .wpq-official-reference-frequent article:last-child {
    border-bottom: 0;
  }

  .wpq-mobile-rail-disclosure {
    display: block;
    margin: 0 0 var(--wpq-space-3-5);
    border-block: 1px solid var(--wpq-ui-line);
  }

  .wpq-mobile-rail-disclosure > summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: var(--wpq-space-2-5);
    color: var(--wpq-ui-ink);
    font: var(--wpq-weight-bold) var(--wpq-type-small-strong)/1.4 var(--wpq-font-ui);
    cursor: pointer;
    list-style: none;
  }

  .wpq-mobile-rail-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .wpq-mobile-rail-disclosure > summary::after {
    content: "+";
    color: var(--wpq-ui-blue);
    font-size: var(--wpq-type-control);
  }

  .wpq-mobile-rail-disclosure[open] > summary::after {
    content: "−";
  }

  .wpq-mobile-rail-disclosure__body {
    display: grid;
    gap: 0;
    padding-bottom: var(--wpq-space-2-5);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .wpq-nav-toggle {
    display: none;
  }

  .wpq-nav-shell--bottom {
    display: flex;
    min-height: 44px;
  }

  .wpq-nav-bar,
  .wpq-nav-menu--desktop {
    width: 100%;
  }

  .wpq-nav-menu--desktop {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }

  .wpq-nav-menu--desktop a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: var(--wpq-space-1-5) var(--wpq-space-1);
    font-size: var(--wpq-type-meta);
    white-space: nowrap;
  }

  .wpq-nav-menu--desktop .wpq-nav-menu__icon,
  .wpq-nav-menu--desktop .wpq-nav-menu__icon svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .wpq-nav-panel {
    display: none;
  }
}

@media (max-width: 639px) {
  .wpq-footer-shell--main,
  .wpq-footer-shell--bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .wpq-footer-panel {
    grid-column: 1;
    padding-inline: 0;
  }

  .wpq-footer-menu,
  .wpq-footer-meta-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .wpq-footer-meta-note {
    text-align: left;
  }
}
