/* iWander articles mobile filter pulldown - 2026-06-01 */

body.articles-page .article-filter-pulltab {
  display: none;
}

@media (max-width: 760px) {
  body.articles-page .section--articles-filters {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  body.articles-page .article-filters {
    width: min(100%, 372px);
    gap: 10px;
    padding: 12px 0 14px;
  }

  body.articles-page .article-filters__group {
    position: relative;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 0;
  }

  body.articles-page .article-filters__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.articles-page .article-filter-pulltab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 13px 0 15px;
    border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    box-shadow: none;
    cursor: pointer;
    font-family: var(--font-base);
    letter-spacing: 0;
  }

  body.articles-page .article-filter-pulltab:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
    outline-offset: 3px;
  }

  body.articles-page .article-filter-pulltab__meta {
    color: color-mix(in srgb, var(--text) 48%, transparent);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
  }

  body.articles-page .article-filter-pulltab__value {
    min-width: 0;
    margin-left: auto;
    padding-left: 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
    text-align: right;
  }

  body.articles-page .article-filter-pulltab__chevron {
    width: 8px;
    height: 8px;
    margin-left: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
    flex: 0 0 auto;
  }

  body.articles-page .article-filters__group.is-open .article-filter-pulltab {
    border-color: color-mix(in srgb, var(--text) 32%, transparent);
  }

  body.articles-page .article-filters__group.is-open .article-filter-pulltab__chevron {
    transform: translateY(2px) rotate(225deg);
  }

  body.articles-page .article-filters__row--segmented,
  body.articles-page .article-filters__row--products {
    display: none;
    width: 100%;
    max-width: none;
    margin-top: 7px;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg) 96%, var(--text) 4%);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--text) 10%, transparent);
  }

  body.articles-page .article-filters__group.is-open .article-filters__row--segmented,
  body.articles-page .article-filters__group.is-open .article-filters__row--products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
    justify-items: stretch;
  }

  body.articles-page .article-filters__row--segmented .chip:last-child:nth-child(7),
  body.articles-page .article-filters__row--products .chip:last-child:nth-child(9),
  body.articles-page .article-filters__row--products .chip:last-child:nth-child(11) {
    grid-column: auto;
    justify-self: stretch;
    min-width: 0;
  }

  body.articles-page .article-filters .chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    text-align: left;
  }

  body.articles-page .article-filters .chip.is-active::after {
    content: "";
    width: 8px;
    height: 13px;
    margin-left: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(42deg) translateY(-1px);
    flex: 0 0 auto;
  }
}
