/* Final UI corrections: one focus frame, compact scopes and a shop byline. */
.mix-site input[type="search"]:is(:focus, :focus-visible) {
  border-color: var(--focus);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--focus);
}

.mix-site.community-theme :is(.sg-search, .search-field) {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}

.mix-site.community-theme :is(.sg-search, .search-field):focus-within {
  border-color: var(--focus);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--focus);
}

.mix-site.community-theme :is(.sg-search, .search-field) input,
.mix-site.community-theme :is(.sg-search, .search-field) input:is(:focus, :focus-visible) {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.mix-site.community-theme .sg-search input {
  padding-block: 10px;
  font-size: 14px;
}

.mix-site.community-theme .club-command .sg-search {
  min-height: 50px;
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mix-site.community-theme .club-command .sg-search:focus-within {
  border-color: var(--focus);
}

.mix-site .v2-feed-tabs {
  flex-wrap: nowrap;
  min-width: 0;
  padding: 0;
}

.mix-site .v2-feed-scopes {
  flex-wrap: nowrap;
  gap: 20px;
  min-width: 0;
}

.mix-site .v2-feed-scopes > a {
  flex: none;
  min-height: 48px;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 13px;
}

.mix-site .v2-feed-scopes > a:hover {
  color: var(--text);
}

.mix-site .v2-feed-scopes > a[aria-current="page"] {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--accent);
}

.mix-site .sg-post-head {
  flex-wrap: nowrap;
  margin-bottom: 13px;
}

.mix-site .sg-post-author {
  flex: 1;
  min-width: 0;
}

.mix-site .sg-shop-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  text-decoration: none;
}

.mix-site .sg-post-shop-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #633091;
  font-size: 12px;
  font-weight: 650;
}

.mix-site .sg-post-shop-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #fff;
  object-fit: contain;
}

.mix-site .sg-post-shop-copy {
  flex: 1;
  min-width: 0;
}

.mix-site .sg-post-shop-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mix-site .sg-post-shop-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mix-site .sg-post-shop-arrow {
  flex: none;
  color: var(--accent);
  font-size: 18px;
}

.mix-site .sg-shop-chip:hover {
  background: none;
}

.mix-site .sg-shop-chip:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mix-site .sg-post-footer > form[data-bookmark] { margin-left: auto; }

@media (max-width: 700px) {
  .mix-site .v2-feed-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-bottom: 0;
  }

  .mix-site .v2-feed-scopes {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    overflow: visible;
    border-bottom: 1px solid var(--line);
  }

  .mix-site .v2-feed-scopes > a {
    min-height: 44px;
    padding: 10px 0;
    font-size: 12px;
  }

  .mix-site .sg-post-footer .discussion-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0;
  }

  .mix-site .sg-post-footer .discussion-reaction {
    gap: 4px;
    min-height: 44px;
    padding: 6px 4px;
    font-size: 11px;
  }

  .mix-site .sg-post-footer .discussion-reaction > span:first-child { font-size: 15px; }
  .mix-site .sg-post-footer .club-bookmark { min-height: 44px; padding: 6px 0; font-size: 11px; }

  .mix-site .v2-feed-tabs > .v2-nav-more {
    justify-self: end;
  }

  .mix-site .v2-feed-tabs > .v2-nav-more > summary {
    min-height: 44px;
    padding: 11px 0 11px 10px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .mix-site .v2-feed-scopes {
    gap: 8px;
  }

  .mix-site .v2-feed-scopes > a {
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .mix-site .v2-feed-tabs { margin-inline: -4px; }
  .mix-site .v2-feed-scopes { gap: 2px; }
}
