body.wet-tools-theme .wet-tools-site-header {
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

body.wet-tools-theme .wet-tools-site-header.is-condensed,
body.wet-tools-theme .wet-tools-site-header.is-compact {
  box-shadow: 0 10px 28px rgba(18, 58, 84, 0.1);
}

body.wet-tools-theme .wet-tools-site-header.is-condensed .wet-tools-header-inner {
  padding-bottom: 8px;
  padding-top: 8px;
}

body.wet-tools-theme .wet-tools-site-header.is-condensed .custom-logo {
  max-height: 44px;
}

body.wet-tools-theme .wet-tools-site-header.is-condensed .wet-tools-site-description {
  display: none;
}

body.wet-tools-theme .wet-tools-global-search,
body.wet-tools-theme [data-wet-search] {
  position: relative;
}

body.wet-tools-theme .wet-tools-global-search {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(120px, 220px) auto;
  min-width: 0;
}

body.wet-tools-theme .wet-tools-global-search__field {
  background: #ffffff;
  border: 1px solid var(--wet-color-border);
  border-radius: 6px 0 0 6px;
  color: var(--wet-color-ink);
  font: inherit;
  font-size: 14px;
  min-height: 40px;
  min-width: 0;
  padding: 0 10px;
}

body.wet-tools-theme .wet-tools-global-search__button {
  background: var(--wet-color-primary);
  border: 1px solid var(--wet-color-primary);
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 12px;
}

body.wet-tools-theme .wet-tools-live-search {
  background: #ffffff;
  border: 1px solid var(--wet-color-border);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 58, 84, 0.16);
  display: none;
  left: 0;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1200;
}

body.wet-tools-theme .wet-tools-live-search.is-open {
  display: grid;
  gap: 6px;
}

body.wet-tools-theme .wet-tools-live-search__item {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--wet-color-ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 8px;
  text-decoration: none;
}

body.wet-tools-theme .wet-tools-live-search__item:hover,
body.wet-tools-theme .wet-tools-live-search__item:focus {
  background: var(--wet-color-surface);
  border-color: var(--wet-color-border);
  outline: none;
}

body.wet-tools-theme .wet-tools-live-search__media {
  align-items: center;
  background: var(--wet-color-surface);
  border: 1px solid var(--wet-color-border);
  border-radius: 8px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

body.wet-tools-theme .wet-tools-live-search__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.wet-tools-theme .wet-tools-live-search__placeholder {
  color: var(--wet-color-primary);
  font-weight: 900;
}

body.wet-tools-theme .wet-tools-live-search__title {
  display: block;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

body.wet-tools-theme .wet-tools-live-search__title mark {
  background: #fff3bf;
  border-radius: 4px;
  color: inherit;
  padding: 0 2px;
}

body.wet-tools-theme .wet-tools-live-search__meta {
  color: var(--wet-color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
  margin-top: 3px;
}

body.wet-tools-theme .wet-tools-live-search__empty {
  color: var(--wet-color-muted);
  font-size: 14px;
  padding: 10px;
}

body.wet-tools-theme .wet-tools-card {
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

body.wet-tools-theme .wet-tools-card:hover,
body.wet-tools-theme .wet-tools-card:focus-within {
  border-color: rgba(27, 83, 120, 0.28);
  box-shadow: 0 18px 42px rgba(18, 58, 84, 0.12);
  transform: translateY(-3px);
}

body.wet-tools-theme .wet-tools-card__media img,
body.wet-tools-theme .wet-tools-card__placeholder {
  transition: transform 180ms ease;
}

body.wet-tools-theme .wet-tools-card:hover .wet-tools-card__media img,
body.wet-tools-theme .wet-tools-card:focus-within .wet-tools-card__media img,
body.wet-tools-theme .wet-tools-card:hover .wet-tools-card__placeholder,
body.wet-tools-theme .wet-tools-card:focus-within .wet-tools-card__placeholder {
  transform: scale(1.04);
}

body.wet-tools-theme .wet-tools-card__badge,
body.wet-tools-theme .wet-tools-card__action {
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

body.wet-tools-theme .wet-tools-card:hover .wet-tools-card__badge:first-child,
body.wet-tools-theme .wet-tools-card:focus-within .wet-tools-card__badge:first-child {
  background: rgba(27, 83, 120, 0.12);
  color: var(--wet-color-primary);
}

body.wet-tools-theme .wet-tools-card:hover .wet-tools-card__action,
body.wet-tools-theme .wet-tools-card:focus-within .wet-tools-card__action {
  transform: translateX(2px);
}

body.wet-tools-theme .wet-tools-card__meta {
  align-items: center;
}

body.wet-tools-theme .wet-tools-card__meta span,
body.wet-tools-theme .wet-tools-card__meta time {
  background: var(--wet-color-surface);
  border-radius: 999px;
  padding: 3px 7px;
}

body.wet-tools-theme .wet-tools-related {
  background: #ffffff;
  border: 1px solid var(--wet-color-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 58, 84, 0.06);
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
}

body.wet-tools-theme .wet-tools-related__header {
  margin-bottom: 18px;
  max-width: 760px;
}

body.wet-tools-theme .wet-tools-related__header h2 {
  color: var(--wet-color-primary-dark);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 6px;
}

body.wet-tools-theme .wet-tools-related__header p {
  color: var(--wet-color-muted);
  margin: 0;
}

body.wet-tools-theme .wet-tools-related-grid {
  display: grid;
  gap: 22px;
}

body.wet-tools-theme .wet-tools-related-group__title {
  color: var(--wet-color-primary-dark);
  font-size: 20px;
  margin: 0 0 12px;
}

body.wet-tools-theme .wet-tools-card-grid--related {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.wet-tools-theme .wet-tools-category-card__icon svg {
  fill: currentColor;
  height: 25px;
  width: 25px;
}

body.wet-tools-theme .wet-tools-collection__image {
  align-items: center;
  display: flex;
  justify-content: center;
}

body.wet-tools-theme .wet-tools-collection__image svg {
  height: 100%;
  max-height: 150px;
  width: 100%;
}

body.wet-tools-theme .wet-tools-collection__image rect:first-child {
  fill: #ffffff;
  stroke: var(--wet-color-border);
}

body.wet-tools-theme .wet-tools-collection__image rect,
body.wet-tools-theme .wet-tools-collection__image path {
  fill: rgba(27, 83, 120, 0.14);
  stroke: var(--wet-color-primary);
  stroke-linecap: round;
  stroke-width: 4;
}

body.wet-tools-theme .wet-tools-site-footer--premium {
  background: #ffffff;
  border-top: 1px solid var(--wet-color-border);
}

body.wet-tools-theme .wet-tools-footer-brand-row {
  align-items: center;
  border-bottom: 1px solid var(--wet-color-border);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 28px;
  padding-bottom: 24px;
}

body.wet-tools-theme .wet-tools-footer-brand-title {
  color: var(--wet-color-primary-dark);
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 6px;
}

body.wet-tools-theme .wet-tools-footer-brand-row p {
  color: var(--wet-color-muted);
  margin: 0;
  max-width: 680px;
}

body.wet-tools-theme .wet-tools-footer-grid--premium {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.wet-tools-theme .wet-tools-footer-social {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.wet-tools-theme .wet-tools-footer-social a,
body.wet-tools-theme .wet-tools-footer-social span {
  align-items: center;
  background: var(--wet-color-surface);
  border: 1px solid var(--wet-color-border);
  border-radius: 999px;
  color: var(--wet-color-primary-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  text-decoration: none;
}

body.wet-tools-theme .wet-tools-newsletter__privacy,
body.wet-tools-theme .wet-tools-newsletter__message {
  color: var(--wet-color-muted);
  font-size: 13px;
  grid-column: 1 / -1;
  margin: 0;
}

body.wet-tools-theme .wet-tools-newsletter__message {
  background: #e7f4ef;
  border: 1px solid rgba(28, 107, 74, 0.22);
  border-radius: 6px;
  color: #1c6b4a;
  padding: 8px 10px;
}

@media (max-width: 1200px) {
  body.wet-tools-theme .wet-tools-footer-grid--premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.wet-tools-theme .wet-tools-card-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  body.wet-tools-theme .wet-tools-global-search {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.wet-tools-theme .wet-tools-card-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.wet-tools-theme .wet-tools-footer-brand-row,
  body.wet-tools-theme .wet-tools-footer-grid--premium,
  body.wet-tools-theme .wet-tools-card-grid--related {
    grid-template-columns: 1fr;
  }

  body.wet-tools-theme .wet-tools-global-search__button {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wet-tools-theme .wet-tools-card,
  body.wet-tools-theme .wet-tools-card__media img,
  body.wet-tools-theme .wet-tools-card__placeholder,
  body.wet-tools-theme .wet-tools-card__badge,
  body.wet-tools-theme .wet-tools-card__action,
  body.wet-tools-theme .wet-tools-site-header {
    transition: none;
  }
}

/* Phase 6.5 premium polish */
body.wet-tools-theme .wet-tools-mega-nav {
  position: relative;
}

body.wet-tools-theme .wet-tools-mega-item {
  position: relative;
}

body.wet-tools-theme .wet-tools-mega-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--wet-color-primary-dark);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 10px;
}

body.wet-tools-theme .wet-tools-mega-toggle::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 7px;
  margin-left: 8px;
  transform: rotate(45deg) translateY(-2px);
  width: 7px;
}

body.wet-tools-theme .wet-tools-mega-toggle:hover,
body.wet-tools-theme .wet-tools-mega-toggle:focus-visible,
body.wet-tools-theme .wet-tools-mega-item.is-open .wet-tools-mega-toggle,
body.wet-tools-theme .wet-tools-mega-item.is-active .wet-tools-mega-toggle {
  background: var(--wet-color-surface);
  color: var(--wet-color-primary);
  outline: none;
}

body.wet-tools-theme .wet-tools-mega-panel[hidden] {
  display: none !important;
}

  body.wet-tools-theme .wet-tools-mega-panel {
  background: #ffffff;
  border: 1px solid var(--wet-color-border);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(18, 58, 84, 0.16);
  left: 50%;
  min-width: min(1080px, calc(100vw - 32px));
  padding: 18px;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  z-index: 1500;
}

body.wet-tools-theme .wet-tools-mega-panel__inner {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.wet-tools-theme .wet-tools-mega-group {
  background: var(--wet-color-surface);
  border: 1px solid rgba(217, 226, 232, 0.75);
  border-radius: 8px;
  padding: 14px;
}

body.wet-tools-theme .wet-tools-mega-group h2 {
  color: var(--wet-color-primary-dark);
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 9px;
}

body.wet-tools-theme .wet-tools-mega-group ul,
body.wet-tools-theme .wet-tools-resource-meta ul,
body.wet-tools-theme .wet-tools-home-polish-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.wet-tools-theme .wet-tools-mega-group li + li,
body.wet-tools-theme .wet-tools-resource-meta li + li,
body.wet-tools-theme .wet-tools-home-polish-card li + li {
  margin-top: 7px;
}

body.wet-tools-theme .wet-tools-mega-group a,
body.wet-tools-theme .wet-tools-home-polish-card a,
body.wet-tools-theme .wet-tools-resource-panel a {
  color: var(--wet-color-ink);
  text-decoration: none;
}


body.wet-tools-theme .wet-tools-mega-link__title,
body.wet-tools-theme .wet-tools-mega-link__description {
  display: block;
}

body.wet-tools-theme .wet-tools-mega-link__description {
  color: var(--wet-color-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 3px;
}
body.wet-tools-theme .wet-tools-mega-group a:hover,
body.wet-tools-theme .wet-tools-mega-group a:focus-visible,
body.wet-tools-theme .wet-tools-home-polish-card a:hover,
body.wet-tools-theme .wet-tools-home-polish-card a:focus-visible,
body.wet-tools-theme .wet-tools-resource-panel a:hover,
body.wet-tools-theme .wet-tools-resource-panel a:focus-visible {
  color: var(--wet-color-primary);
  text-decoration: underline;
}

body.wet-tools-theme .wet-tools-live-search__badge {
  background: rgba(27, 83, 120, 0.1);
  border-radius: 999px;
  color: var(--wet-color-primary);
  font-weight: 800;
  padding: 2px 7px;
}

body.wet-tools-theme .wet-tools-live-search__view-all {
  align-items: center;
  background: var(--wet-color-primary);
  border-radius: 7px;
  color: #ffffff;
  display: flex;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  text-decoration: none;
}

body.wet-tools-theme .wet-tools-card {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

body.wet-tools-theme .wet-tools-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ffffff 0%, var(--wet-color-surface) 100%);
}

body.wet-tools-theme .wet-tools-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.wet-tools-theme .wet-tools-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.wet-tools-theme .wet-tools-card__action {
  justify-content: center;
  margin-top: auto;
  min-height: 42px;
  text-align: center;
}

body.wet-tools-theme .wet-tools-archive-tools,
body.wet-tools-theme .wet-tools-archive-feature,
body.wet-tools-theme .wet-tools-archive-seo-block,
body.wet-tools-theme .wet-tools-home-polish-card,
body.wet-tools-theme .wet-tools-resource-panel {
  background: #ffffff;
  border: 1px solid var(--wet-color-border);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(18, 58, 84, 0.06);
}

body.wet-tools-theme .wet-tools-archive-tools {
  margin: 18px 0 24px;
  padding: 12px;
}

body.wet-tools-theme .wet-tools-filter-bar,
body.wet-tools-theme .wet-tools-popular-searches,
body.wet-tools-theme .wet-tools-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.wet-tools-theme .wet-tools-filter-bar a,
body.wet-tools-theme .wet-tools-filter-bar button,
body.wet-tools-theme .wet-tools-popular-searches a,
body.wet-tools-theme .wet-tools-share-links a {
  background: var(--wet-color-surface);
  border: 1px solid var(--wet-color-border);
  border-radius: 999px;
  color: var(--wet-color-primary-dark);
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

body.wet-tools-theme .wet-tools-archive-showcase,
body.wet-tools-theme .wet-tools-home-polish-grid {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

body.wet-tools-theme .wet-tools-archive-feature,
body.wet-tools-theme .wet-tools-archive-seo-block,
body.wet-tools-theme .wet-tools-home-polish-card,
body.wet-tools-theme .wet-tools-resource-panel {
  padding: clamp(18px, 3vw, 26px);
}

body.wet-tools-theme .wet-tools-mini-section-header h2,
body.wet-tools-theme .wet-tools-home-polish-card h3,
body.wet-tools-theme .wet-tools-resource-panel h2,
body.wet-tools-theme .wet-tools-archive-seo-block h2 {
  color: var(--wet-color-primary-dark);
  font-size: clamp(20px, 2.3vw, 28px);
  margin: 0 0 12px;
}

body.wet-tools-theme .wet-tools-card-grid--compact {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.wet-tools-theme .wet-tools-archive-seo-block {
  margin: 28px 0;
}

body.wet-tools-theme .wet-tools-archive-faq details {
  border-top: 1px solid var(--wet-color-border);
  padding: 12px 0;
}

body.wet-tools-theme .wet-tools-archive-faq summary {
  color: var(--wet-color-primary-dark);
  cursor: pointer;
  font-weight: 850;
}

body.wet-tools-theme .wet-tools-home-polish-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.wet-tools-theme .wet-tools-resource-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 110px;
}

body.wet-tools-theme .wet-tools-resource-panel h2 {
  font-size: 17px;
}

body.wet-tools-theme .wet-tools-resource-primary {
  background: var(--wet-color-primary);
  border-radius: 7px;
  color: #ffffff !important;
  display: flex;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
}

body.wet-tools-theme .wet-tools-resource-actions {
  display: grid;
  gap: 9px;
}

body.wet-tools-theme .wet-tools-toc ol {
  margin: 0;
  padding-left: 18px;
}

body.wet-tools-theme .wet-tools-footer-newsletter {
  background: var(--wet-color-surface);
  border: 1px solid var(--wet-color-border);
  border-radius: 10px;
  margin: 24px 0;
  padding: 18px;
}

@media (max-width: 1200px) {
  body.wet-tools-theme .wet-tools-mega-panel__inner,
  body.wet-tools-theme .wet-tools-card-grid--compact,
  body.wet-tools-theme .wet-tools-home-polish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.wet-tools-theme .wet-tools-mega-item {
    position: static;
  }

  body.wet-tools-theme .wet-tools-mega-panel {
    min-width: 0;
    padding: 16px;
    width: min(calc(100vw - 48px), 1200px);
  }

  body.wet-tools-theme .wet-tools-mega-panel__inner {
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body.wet-tools-theme .wet-tools-mega-group {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-width: 0;
    padding: 0;
  }

  body.wet-tools-theme .wet-tools-mega-group h2 {
    align-items: center;
    background: var(--wet-color-surface);
    border: 1px solid rgba(217, 226, 232, 0.95);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(18, 58, 84, 0.03);
    color: var(--wet-color-primary-dark);
    display: flex;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    margin: 0;
    min-height: 46px;
    padding: 10px 12px;
    text-align: left;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  }

  body.wet-tools-theme .wet-tools-mega-group h2:has(a:hover),
  body.wet-tools-theme .wet-tools-mega-group h2:has(a:focus-visible) {
    background: #e6f0f6;
    border-color: rgba(27, 83, 120, 0.45);
    box-shadow: 0 6px 16px rgba(18, 58, 84, 0.08);
  }

  body.wet-tools-theme .wet-tools-mega-group h2 a {
    align-items: center;
    color: inherit;
    display: flex;
    min-height: 100%;
    text-decoration: none;
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-mega-group h2 a:focus-visible {
    outline: 2px solid rgba(27, 83, 120, 0.35);
    outline-offset: 2px;
  }

  body.wet-tools-theme .wet-tools-mega-group ul {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr;
  }

  body.wet-tools-theme .wet-tools-mega-group li + li {
    margin-top: 0;
  }

  body.wet-tools-theme .wet-tools-mega-group ul a {
    align-items: center;
    background: var(--wet-color-surface);
    border: 1px solid rgba(217, 226, 232, 0.95);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(18, 58, 84, 0.03);
    color: var(--wet-color-ink);
    display: flex;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    min-height: 46px;
    padding: 10px 12px;
    text-align: left;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-mega-group ul a::before {
    content: none;
  }

  body.wet-tools-theme .wet-tools-mega-link__title {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  body.wet-tools-theme .wet-tools-mega-link__description {
    display: none;
  }

  body.wet-tools-theme .wet-tools-mega-group ul a:hover,
  body.wet-tools-theme .wet-tools-mega-group ul a:focus-visible {
    background: #e6f0f6;
    border-color: rgba(27, 83, 120, 0.45);
    box-shadow: 0 6px 16px rgba(18, 58, 84, 0.08);
    color: var(--wet-color-primary);
    text-decoration: none;
  }

  body.wet-tools-theme .wet-tools-mega-group ul a:focus-visible {
    outline: 2px solid rgba(27, 83, 120, 0.35);
    outline-offset: 2px;
  }
}
@media (min-width: 1201px) and (max-width: 1399px) {
  body.wet-tools-theme .wet-tools-mega-panel {
    width: min(calc(100vw - 48px), 1040px);
  }

  body.wet-tools-theme .wet-tools-mega-panel__inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  body.wet-tools-theme .wet-tools-mega-panel {
    width: min(calc(100vw - 40px), 840px);
  }

  body.wet-tools-theme .wet-tools-mega-panel__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  body.wet-tools-theme .wet-tools-mega-nav {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-mega-item,
  body.wet-tools-theme .wet-tools-mega-toggle {
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-mega-toggle {
    justify-content: space-between;
  }


  body.wet-tools-theme .wet-tools-mega-panel {
    box-shadow: none;
    left: auto;
    min-width: 0;
    padding: 10px;
    position: static;
    transform: none;
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-mega-panel__inner,
  body.wet-tools-theme .wet-tools-card-grid--compact,
  body.wet-tools-theme .wet-tools-home-polish-grid,

  body.wet-tools-theme .wet-tools-resource-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  body.wet-tools-theme .wet-tools-mega-panel__inner,
  body.wet-tools-theme .wet-tools-card-grid--compact {
    grid-template-columns: 1fr;
  }

  body.wet-tools-theme .wet-tools-filter-bar,
  body.wet-tools-theme .wet-tools-popular-searches,
  body.wet-tools-theme .wet-tools-share-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.wet-tools-theme .wet-tools-live-search {
    max-height: 72vh;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  body.wet-tools-theme .wet-tools-mega-panel__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 374px) {
  body.wet-tools-theme .wet-tools-filter-bar,
  body.wet-tools-theme .wet-tools-popular-searches,
  body.wet-tools-theme .wet-tools-share-links {
    grid-template-columns: 1fr;
  }
}
/* Keep Popular Downloads and Searches readable on small screens. */
@media (max-width: 1200px) {
  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-home-polish-grid {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-home-polish-grid {
    gap: 16px;
    grid-template-columns: 1fr;
    margin: 20px 0;
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-home-polish-card {
    min-width: 0;
    padding: 18px;
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-home-polish-card h3 {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-home-polish-card li + li {
    margin-top: 9px;
  }

  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-home-polish-card a {
    overflow-wrap: break-word;
  }

  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    grid-template-columns: none;
    width: 100%;
  }

  body.wet-tools-theme .wet-tools-home-section--polish .wet-tools-popular-searches a {
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }
}
body.wet-tools-theme .wet-tools-filter-bar button {
  cursor: pointer;
  font: inherit;
}

body.wet-tools-theme .wet-tools-filter-bar button.is-active,
body.wet-tools-theme .wet-tools-filter-bar button[aria-selected="true"] {
  background: var(--wet-color-primary);
  border-color: var(--wet-color-primary);
  color: #ffffff;
}

body.wet-tools-theme .wet-tools-archive-tab-panel[hidden] {
  display: none;
}

body.wet-tools-theme .wet-tools-archive-tab-panel .wet-tools-card-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1023px) {
  body.wet-tools-theme .wet-tools-archive-tab-panel .wet-tools-card-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.wet-tools-theme .wet-tools-archive-tab-panel .wet-tools-card-grid--compact {
    grid-template-columns: 1fr;
  }
}
/* Archive category card width tuning. */
body.wet-tools-theme .wet-tools-archive .wet-tools-archive-header,
body.wet-tools-theme .wet-tools-archive .wet-tools-archive-tools,
body.wet-tools-theme .wet-tools-archive .wet-tools-archive-showcase,
body.wet-tools-theme .wet-tools-archive .wet-tools-archive-seo-block {
  max-width: min(100%, 1320px);
  width: 100%;
}

body.wet-tools-theme .wet-tools-archive-tab-panel .wet-tools-card-grid--compact {
  gap: 18px;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

@media (max-width: 1199px) {
  body.wet-tools-theme .wet-tools-archive-tab-panel .wet-tools-card-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  body.wet-tools-theme .wet-tools-archive-tab-panel .wet-tools-card-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.wet-tools-theme .wet-tools-archive-tab-panel .wet-tools-card-grid--compact {
    grid-template-columns: 1fr;
  }
}