.catalog-sidebar,
.web-hero-title,
#mast.subhead .brand {
  display: none;
}

@media (min-width: 900px) {
  :root {
    --web-header-height: 70px;
    --web-gutter: clamp(22px, 3vw, 44px);
    scroll-padding-top: 92px;
  }

  .finder-web .app {
    max-width: 1440px;
    padding: 0;
  }

  .finder-web .app #mast {
    position: sticky;
    top: 0;
    z-index: 6;
    height: var(--web-header-height);
    min-height: var(--web-header-height);
    flex: 0 0 var(--web-header-height);
    padding: 0 var(--web-gutter);
    border-bottom: 1px solid var(--line);
    background: #151319f8;
  }

  #mast.subhead .brand { display: flex; }
  .subhead .back-btn { position: static; margin-left: auto; }
  #mast.subhead + main { padding-top: 0; }
  #main, #weaponFoil { min-width: 0; }

  .finder-web .app #nav {
    inset: 13px auto auto 50%;
    width: max-content;
    max-width: none;
    height: auto;
    padding: 0;
    gap: 5px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  #nav .nav-item {
    flex-direction: row;
    gap: 8px;
    min-width: 92px;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
  }
  #nav .nav-item .ico { width: 18px; height: 18px; }
  #nav .nav-item:hover { background: #28212d; }
  #nav .nav-item.active { background: #392b37; }
  #nav .nav-item.active::before { display: none; }
  #toast { bottom: 22px; }

  .pane, .home-search { padding-inline: var(--web-gutter); }
  #main[data-page="home"] { padding: 24px 0 36px; }
  #main[data-page="home"] .home-search:has(.home-cover) {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: flex-start;
    min-height: 310px;
    height: clamp(310px, 29vw, 400px);
    margin: 0 var(--web-gutter) 26px;
    padding: clamp(28px, 4.4vw, 62px);
    overflow: hidden;
    border: 1px solid #51424f;
    border-radius: 16px;
    background: #292431;
  }
  .home-search .home-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center 56%;
  }
  #main[data-page="home"] .home-search:has(.home-cover)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #18131ce8, #18131c8c 40%, transparent 77%),
      linear-gradient(0deg, #16121bc9, transparent 64%);
  }
  .web-hero-title {
    display: block;
    margin-bottom: 16px;
    color: #fff1f2;
    font-size: clamp(38px, 4.3vw, 60px);
    font-weight: 800;
    line-height: 1.2;
  }
  #main[data-page="home"] .searchbox {
    width: min(100%, 475px);
    height: 53px;
    background: #231b27ed;
    border-color: #ab8198;
  }

  .directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .directory .category-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 3px 13px;
    align-content: center;
    min-height: 116px;
    padding: 14px;
    border: 1px solid #493c4c;
    border-radius: 12px;
    background: #211b27;
  }
  .directory .category-row:hover { background: #2a2230; border-color: #866979; }
  .directory .category-cover, .directory .category-icon {
    grid-row: 1 / span 2;
    width: 78px;
    height: 58px;
    margin: 0;
  }
  .directory .category-copy { min-width: 0; }
  .directory .category-copy small { white-space: normal; }
  .directory .category-count { grid-row: 2; grid-column: 2; justify-self: start; }
  .directory .category-row > .ico { grid-row: 1 / span 2; grid-column: 3; }

  #main[data-page="list"] {
    display: grid;
    grid-template-columns: minmax(156px, 205px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: 0 24px;
    padding: 30px var(--web-gutter) 42px;
  }
  #main[data-page="list"] > .pane,
  #main[data-page="list"] > .home-search { grid-column: 2; padding-inline: 0; }
  #main[data-page="list"] > .intro { padding-block: 0 8px; }
  #main[data-page="list"] > .home-search { padding-top: 5px; }
  .catalog-sidebar {
    grid-area: 1 / 1 / span 3 / 2;
    position: sticky;
    top: 91px;
    display: block;
    padding: 12px;
    border: 1px solid #453849;
    border-radius: 12px;
    background: #1c1721;
  }
  .catalog-sidebar h2 { padding: 5px 7px 11px; font-size: 14px; color: #d5bdce; }
  .catalog-sidebar button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 0 7px;
    border-radius: 7px;
    font-weight: 650;
  }
  .catalog-sidebar button .ico { width: 17px; height: 17px; }
  .catalog-sidebar button:hover { background: #2a2230; }
  .catalog-sidebar [aria-current="page"] { color: #ffd5e0; background: #3b2b39; }
  .catalog-title h1, #main[data-page="records"] h1 { font-size: 35px; }
  .catalog-sort { top: var(--web-header-height); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 15px; }
  .catalog-card .catalog-art { border-radius: 9px; }
  #main[data-page="records"] { padding-block: 15px 42px; }

  .detail {
    width: 100%;
    max-width: 880px;
    margin-inline: auto;
    padding-block: 30px 44px;
  }
  .detail:has(.detail-columns) { max-width: 1190px; }
  .detail h1 { font-size: clamp(34px, 4vw, 48px); }
  .detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 38px);
    margin-top: 20px;
  }
  .detail-columns .entry-photo { margin-top: 0; }
  .detail-columns .detail-visual > .entry-photo + .block { margin-top: 16px; }
  .detail-guide > .block:first-child { padding-top: 0; border-top: 0; }
  .detail-guide > .detail-actions:first-child { margin-top: 0; }
  .detail > .cite { margin-top: 20px; }

  .map-open #main { padding: 14px var(--web-gutter) 20px; }
  #mapView {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(285px, 29vw, 375px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "toolbar toolbar" "map points";
    overflow: hidden;
    border: 1px solid #564756;
    border-radius: 13px;
  }
  #mapView .map-toolbar {
    grid-area: toolbar;
    padding: 9px 14px;
    border-bottom: 1px solid #594758;
  }
  #mapView .map-toolbar label { border-radius: 12px; }
  #mapView .stage { grid-area: map; min-width: 0; }
  #mapView .drawer, #mapView .drawer.expanded {
    grid-area: points;
    height: auto;
    max-height: none;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid #725768;
    transition: none;
  }
  #mapView .drawer-head { height: 56px; font-size: 16px; cursor: default; }
  #mapView .drawer-head:disabled { opacity: 1; }
  #mapView .drawer-head i { display: none; }
  #mapView .drawer .rows { flex: 1; }
  #mapView .street-row { min-height: 64px; }
  #mapView .street-photo { width: 60px; height: 43px; }
  #mapView .panel {
    inset: 68px 12px auto auto;
    width: min(490px, 70%);
    max-height: calc(100% - 80px);
  }
  #mapView .zoom input { width: 124px; }

  #weaponFoil { padding: 18px var(--web-gutter) 24px; }
  .foil-open #foilMotion { top: calc(var(--web-header-height) + 26px); right: calc(var(--web-gutter) + 8px); }
  .foil-full .app { max-width: none; }
}

@media (min-width: 1180px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .directory .category-row { grid-template-columns: 106px minmax(0, 1fr) auto; }
  .directory .category-cover, .directory .category-icon { width: 106px; height: 70px; }
}
