/* The search field has its own space, including in the signed-in header. */
html { scroll-padding-top: calc(var(--site-header-height, 90px) + 16px); }
.has-site-search .header-inner { gap: 24px; }
.has-site-search .brand-cn { display: none; }
.has-site-search .main-nav { margin: 0; gap: 24px; flex-shrink: 0; }
.has-site-search .main-nav a { white-space: nowrap; }
.has-site-search .brand { order: 0; }
.has-site-search .main-nav { order: 1; }
.has-site-search .site-search { order: 2; }
.has-site-search .header-actions { order: 3; }
.site-search { display: flex; align-items: center; gap: 8px; flex: 1 0 320px; width: 360px; min-width: 320px; max-width: 420px; height: 48px; margin: 0 0 0 auto; padding: 4px 5px 4px 14px; background: #f2f3f4; border: 1px solid #e6e7e9; border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.site-search:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px #e74b3b0b; }
.site-search > .icon { width: 19px; height: 19px; color: #909397; }
.site-search input { flex: 1; width: 0; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: 0; color: #202124; caret-color: var(--accent-strong); font-size: 16px; line-height: 1.5; -webkit-appearance: none; }
.site-search input::placeholder { color: #909397; }
.site-search input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; flex: 0 0 28px; height: 36px; padding: 0; color: #8c8e92; border-radius: 4px; }
.search-clear:hover { color: #333; background: #e8e9eb; }
.search-clear .icon { width: 15px; height: 15px; }
.search-submit { flex: 0 0 60px; height: 38px; padding: 0 12px; border-radius: 5px; background: var(--accent-strong); color: white; font-size: 14px; font-weight: 500; }
.search-submit:hover { background: var(--accent-hover); }
.mobile-filter-slot:empty { display: none; }
.home-page.is-searching > .intro, .home-page.is-searching > .hero, .home-page.is-library > .intro { display: none; }
.home-page .filter-row { width: 100%; }
.home-page .category-tabs { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.home-page .category-tabs::-webkit-scrollbar { display: none; }
.home-page .category-tab { flex: 0 0 auto; min-height: 42px; font-size: 12px; }
.home-page .result-label { font-size: 13px; line-height: 1.7; flex-wrap: wrap; min-width: 0; gap: 6px; }
.result-query { font-weight: 500; overflow-wrap: anywhere; }
.home-page .collection-toolbar { gap: 18px; }
.home-page .collection-controls { flex-shrink: 0; }
.home-page.is-searching .work-card { animation: none; }
@media (min-width: 801px) and (max-width: 1439px) {
  .has-site-search .header-inner { display: grid; grid-template-columns: auto minmax(320px,420px) auto; justify-content: space-between; height: auto; padding: 16px 32px 0; gap: 12px 24px; }
  .has-site-search .brand { grid-column: 1; grid-row: 1; }
  .has-site-search .site-search { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
  .has-site-search .header-actions { grid-column: 3; grid-row: 1; }
  .has-site-search .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; height: 40px; gap: 40px; border-top: 1px solid #eee; }
  .has-site-search .main-nav a.active:after { bottom: 1px; }
  .has-site-search .brand-word { font-size: 19px; }
  .has-site-search .header-actions { gap: 6px; }
  .has-site-search .header-actions .studio-link { padding: 9px; }
  .has-site-search .header-actions .studio-link .icon { display: none; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .has-site-search .header-inner { padding-left: 24px; padding-right: 24px; gap: 12px; }
  .has-site-search .brand-word { font-size: 17px; }
  .has-site-search .brand img { width: 27px; height: 27px; }
  .has-site-search .picker-start { font-size: 11px; padding: 8px 6px; }
  .has-site-search .picker-start > .icon { display: none; }
}
@media (min-width: 1440px) {
  .has-site-search .header-inner { padding-left: 32px; padding-right: 32px; }
  .has-site-search .site-search { flex-basis: 320px; }
}
@media (max-width: 800px) {
  .has-site-search .header-inner { display: grid !important; grid-template-columns: minmax(0,1fr) auto; height: auto; gap: 0 8px !important; padding: 0 16px !important; }
  .has-site-search .header-inner > .brand { grid-column: 1; grid-row: 1; min-height: 60px !important; justify-self: start; }
  .has-site-search .header-inner > .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .has-site-search .header-inner > .site-search { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; max-width: none; height: 48px; margin: 0 0 10px; }
  .has-site-search .header-inner > .main-nav { grid-column: 1 / -1; grid-row: 3; width: 100%; height: 40px; display: flex; justify-content: space-between; gap: 12px; margin: 0; border-top: 1px solid #eee; }
  .has-site-search .header-inner > .main-nav > a { display: flex !important; height: 40px; font-size: 11px; }
  .has-site-search .main-nav a.active:after { bottom: 3px !important; }
  .has-site-search .brand-word { font-size: 17px; }
  .has-site-search .brand img { width: 25px; height: 25px; }
  .home-page .mobile-filter-slot { margin: 0 -16px; padding: 0 16px; }
  .home-page .mobile-filter-slot .filter-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .home-page .category-tabs { gap: 6px; }
  .home-page .category-tab { padding: 10px 12px; font-size: 12px; }
  .home-page .category-tab > span { display: none; }
  .home-page .collection-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0; }
  .home-page .result-label { font-size: 13px; flex: 1 1 100%; }
  .home-page .collection-controls { margin-left: auto; }
  .home-page.is-searching .works-section, .home-page.is-library .works-section { padding-top: 24px; }
  .home-page .section-heading > p { display: none; }
  .home-page .section-heading { padding-bottom: 12px; }
}
@media (max-width: 380px) {
  .has-site-search .brand-word { font-size: 14px; }
  .has-site-search .brand img { width: 22px; height: 22px; }
  .has-site-search .header-inner > .brand { gap: 5px; }
  .has-site-search .header-actions .studio-link { font-size: 10px; padding: 8px 5px; }
}
