/* Explore: compact introduction, immediate search, quiet metadata. */
#explore.showcase.section-shell{padding-top:22px}
#explore>.section-head{display:flex;align-items:baseline;justify-content:flex-start;gap:18px 30px;min-height:0;margin-bottom:10px;padding:0}
#explore>.section-head h1{font-size:clamp(28px,3vw,40px);font-weight:500;line-height:1.12;letter-spacing:-.055em;margin:0}
#explore>.section-head>p{font-size:13px;line-height:1.6;color:#939ba5;max-width:620px;margin:0}
#explore .world-marketplace-entry{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0;margin:0 0 16px;min-height:28px;border:0;border-radius:0;background:transparent;font-size:11px;color:#939ba5}
#explore .world-marketplace-entry>a{display:inline-flex;align-items:center;gap:10px;padding:3px 0;background:none;border:0;border-radius:6px;color:#aab3bd!important;font-size:11px;line-height:1.5}
#explore .world-marketplace-entry>a:hover{color:#fff!important}
#explore .world-marketplace-entry small{font-size:9px;border:1px solid #363c44;border-radius:4px;padding:1px 5px;font-weight:400;color:#939ba5}
/* Search and purpose controls share one explicit, compact layout. */
#explore>.catalog-tools{display:block;min-width:0;margin:0 0 18px}
#explore>.catalog-tools input{display:block}
#explore .catalog-purpose-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px 20px;min-width:0;margin-top:10px}
#explore .catalog-purpose-row .purpose-shortcuts{flex:1 1 auto;min-width:0;margin:0;gap:7px;justify-content:flex-start}
#explore .catalog-purpose-row .purpose-button{flex:0 0 auto;white-space:nowrap}
#explore .catalog-purpose-row .growth-intent-trigger{flex:0 0 auto;align-self:flex-start;min-height:34px;height:auto;margin:0;padding:6px 0;line-height:1.5;white-space:nowrap;text-align:start}
@media(max-width:760px){
 #explore .catalog-purpose-row{flex-direction:column;align-items:stretch;gap:6px;margin-top:9px}
 #explore .catalog-purpose-row .purpose-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px;width:100%}
 #explore .catalog-purpose-row .purpose-button{min-width:0;min-height:44px;padding:7px 6px;font-size:11px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
 #explore .catalog-purpose-row .growth-intent-trigger{align-self:flex-end;min-height:36px;padding:8px 0;font-size:12px}
}
#explore>.catalog-tools input{width:100%;height:46px;min-width:0;padding:0 16px;border:1px solid #363c44;border-radius:10px;background:#000;color:#fff;font-size:14px;line-height:1.4}
#explore>.catalog-tools input::placeholder{color:#89939e}
#explore>.catalog-tools input:focus{border-color:#a9c8ec;outline:2px solid #a9c8ec33;outline-offset:2px}
#explore>.catalog-tools .catalog-search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#explore .toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin:0 0 15px;padding:0 0 12px;border-top:0;border-bottom:1px solid #252a30}
.discovery-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0}
.discovery-nav button{position:relative;border:0;border-radius:6px;padding:9px 12px;background:transparent;color:#939ba5;font-size:12px;line-height:1.4;white-space:nowrap;box-shadow:none;transition:color .15s,background .15s}
.discovery-nav button:hover{color:#fff;background:#101215}
.discovery-nav button[aria-selected="true"]{color:#fff;background:#171b20;font-weight:500}
.discovery-nav button:focus-visible{outline:2px solid #a9c8ec;outline-offset:3px}
.discovery-nav button::before,.discovery-nav button::after{content:none!important}
#explore .discovery-nav #discovery-random{flex:0 0 auto;min-width:44px;min-height:44px;padding:0 10px;font-size:17px;background:transparent}
.discovery-nav #discovery-hot,
.discovery-nav #discovery-fable52 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#discovery-hot[aria-selected="true"] {
  background: #241a17;
  color: #ffb38d;
}
#discovery-hot-note {
  margin: 0 0 14px;
  color: #aab3bd;
  font-size: 12px;
  line-height: 1.5;
}
.discovery-showcase-claude {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: url("./assets/claude-showcase-mark.png") center / contain no-repeat;
  animation: world-claude-glow 2.8s ease-in-out infinite;
}
@keyframes world-claude-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgb(217 119 87 / 0)); }
  50% { filter: drop-shadow(0 0 4px rgb(217 119 87 / .62)); }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-showcase-claude { animation: none; }
}
#explore .catalog-sort-control[hidden]{display:none}
#explore .toolbar-count{font-family:inherit;font-size:11px;letter-spacing:0;color:#89939e;margin-inline-end:auto;white-space:nowrap}
#explore .gallery-display-controls{gap:12px;margin:0}
#explore .gallery-display-controls select{min-height:34px;font-size:11px}
#explore .gallery-display-controls>label>span{font-size:10px}
:is(#explore,#creator) .study-card{padding:5px;background:#000;border:1px solid #252a30;border-radius:12px;box-shadow:none;overflow:hidden}
:is(#explore,#creator) .study-card:hover{border-color:#4c545e;box-shadow:none;transform:none}
:is(#explore,#creator) .study-card .card-main{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;width:100%;min-width:0;border:0;border-radius:8px;padding:0;margin:0;background:transparent;box-shadow:none;text-align:start;color:#fff;cursor:pointer}
:is(#explore,#creator) .study-card .card-main::before,:is(#explore,#creator) .study-card .card-main::after{content:none!important}
:is(#explore,#creator) .study-card .card-image{order:0;width:100%;height:auto;aspect-ratio:16/9;border-radius:8px;border:0;background:#080a0c}
:is(#explore,#creator) .study-card .card-image img{width:100%;height:100%;object-fit:cover}
:is(#explore,#creator) .study-card .card-title{order:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:15px;line-height:1.4;font-weight:500;letter-spacing:-.015em;color:#fff;margin:13px 11px 0;padding:0;min-height:0}
:is(#explore,#creator) .study-card .card-main:focus-visible{outline:2px solid #a9c8ec;outline-offset:2px}
:is(#explore,#creator) .study-card .card-purpose{order:2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:7px 11px 0;font-size:12px;line-height:1.6;color:#939ba5;font-weight:400}
:is(#explore,#creator) .study-card .card-tags{order:3;display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:11px 11px 0;min-height:20px}
:is(#explore,#creator) .study-card .card-tags>span{display:inline-block;padding:2px 6px;border:1px solid #30363e;border-radius:5px;background:transparent;color:#aab3bd;font-size:9px;line-height:1.4;font-weight:400;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
:is(#explore,#creator) .study-card .project-engagement{display:flex;align-items:center;gap:16px;padding:12px 11px 8px;margin-top:auto;border:0;background:transparent}
:is(#explore,#creator) .study-card .engagement-button{padding:2px 0;border:0;background:transparent;box-shadow:none;min-height:24px}
:is(#explore,#creator) .study-card .engagement-button:focus-visible{outline:2px solid #a9c8ec;outline-offset:3px}
#explore .gallery[data-view="names"] .study-card .card-title{font-size:14px;margin:11px;padding:0}
#explore .gallery[data-view="images"] .study-card{border-radius:0;border:0;padding:0}
#explore .gallery[data-view="images"] .study-card .card-main,#explore .gallery[data-view="images"] .study-card .card-image{border-radius:0}
#explore .gallery[data-view="images"] .study-card .project-engagement{position:absolute;inset:auto 0 0;z-index:2;justify-content:flex-start;padding:18px 10px 8px;background:linear-gradient(transparent,#000b);margin:0}
#explore .gallery[data-view="images"] .study-card .engagement-button{color:#fff}
.search-match {
  color: #fff2bc;
  background: #544016;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
#explore .study-card.is-search-result :is(.card-title, .card-purpose) {
  display: block;
  overflow-wrap: anywhere;
}
#explore .study-card.is-search-result .card-tags > span {
  white-space: normal;
  overflow-wrap: anywhere;
}
#explore .study-card .card-search-excerpts {
  display: grid;
  gap: 3px;
  order: 4;
  margin: 9px 11px 0;
  padding-inline-start: 7px;
  border-inline-start: 1px solid #665323;
  color: #bfc6ce;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.search-excerpt-label { color: #a7b0bb; font-size: 10px; }
.search-results .quick-search-excerpt { display: block; overflow-wrap: anywhere; }
@media(max-width:1100px){#explore .toolbar-count{order:2}#explore .gallery-display-controls{margin-inline-start:auto}#explore .discovery-nav{gap:1px}.discovery-nav button{padding-inline:9px}}
@media(max-width:760px){
 #explore.showcase.section-shell{padding-top:18px}
 #explore>.section-head{display:block;margin-bottom:7px}
 #explore>.section-head h1{font-size:30px}
 #explore>.section-head>p{font-size:12px;line-height:1.6;max-width:100%;margin-top:7px}
 #explore .world-marketplace-entry{margin-bottom:12px;min-height:24px;flex-direction:row;align-items:center;padding:0}
 #explore>.catalog-tools{margin-bottom:14px}
 #explore>.catalog-tools input{height:44px;font-size:16px;padding-inline:13px}
 #explore .toolbar{gap:8px 12px;padding-bottom:10px;margin-bottom:12px}
 #explore .discovery-nav{width:100%;gap:3px}
 #explore .discovery-nav button{font-size:12px;padding:8px 11px;flex:1}
 #explore .toolbar-count{order:0;font-size:10px}
 #explore .gallery-display-controls{gap:7px;margin-inline-start:auto}
 #explore .gallery-display-controls label{gap:4px}
 #explore .gallery-display-controls select{font-size:10px;max-width:140px}
 #explore .gallery-display-controls>label:not(:first-child)>span{display:none}
 :is(#explore,#creator) .study-card .card-title{font-size:14px;margin:10px 8px 0}
 :is(#explore,#creator) .study-card .card-purpose{font-size:11px;margin:5px 8px 0}
 :is(#explore,#creator) .study-card .card-tags{margin:8px 8px 0;gap:4px}
 :is(#explore,#creator) .study-card .project-engagement{gap:12px;padding:10px 8px 7px}
}
@media(max-width:400px){#explore .gallery-display-controls{width:100%;justify-content:space-between;margin:0}#explore .gallery-display-controls label{min-width:0}#explore .gallery-display-controls select{max-width:130px}.discovery-nav button{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.discovery-nav button{transition:none}}

/* Keep visual left-to-right reading order identical to result ranking. */
.showcase #gallery:not([data-view="images"]) {
  display: grid;
  columns: auto;
  grid-template-columns: repeat(var(--gallery-columns, 3), minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.showcase #gallery:not([data-view="images"]) > .study-card { margin-bottom: 0; min-width: 0; }

/* Keep the catalogue within reach on narrow screens when all categories are open. */
@media(max-width:760px) {
  #explore .catalog-sidebar #category-list {
    max-height: min(52vh, 24rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
#explore #category-list [data-category^="industry-"] + [data-category^="category-"] { margin-block-start: 8px; }

/* Category identity stays monochrome; counts align independently of wrapped names. */
#explore .catalog-sidebar :is(#category-list,#topic-list) .filter{display:grid;grid-template-columns:18px minmax(0,1fr) max-content;align-items:start;column-gap:9px;text-align:start}
#explore .catalog-sidebar :is(#category-list,#topic-list) .category-icon,
#explore .category-select-wrap .category-icon{display:block;width:18px;height:18px;flex:none;color:#969da7;pointer-events:none}
#explore .catalog-sidebar :is(#category-list,#topic-list) .filter .category-filter-name{margin:0;min-width:0;white-space:normal;overflow-wrap:anywhere;font:inherit;color:inherit;line-height:1.5}
#explore .catalog-sidebar :is(#category-list,#topic-list) .filter .category-filter-count{margin:0;padding-top:1px;white-space:nowrap;line-height:1.5;font-size:11px;font-variant-numeric:tabular-nums;color:#939ba5}
#explore .category-select-wrap{position:relative;margin-bottom:10px;min-width:0}
#explore #category-select-icon{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);pointer-events:none;z-index:1}
#explore .category-select-wrap #category-select{width:100%;margin-bottom:0;padding-inline-start:39px;min-height:42px}

/* Purpose shortcuts keep the same neutral pictograms and existing button layout. */
#explore .catalog-purpose-row .purpose-button{display:flex;align-items:center;justify-content:center;gap:6px}
#explore .catalog-purpose-row .purpose-button .category-icon{display:block;width:16px;height:16px;flex:0 0 16px;color:#969da7;pointer-events:none}
#explore .catalog-purpose-row .purpose-button .purpose-label{min-width:0;line-height:inherit}
@media(max-width:760px){
 #explore .catalog-purpose-row .purpose-shortcuts{grid-auto-rows:1fr}
 #explore .catalog-purpose-row .purpose-button{gap:5px;padding-inline:4px}
 #explore .catalog-purpose-row .purpose-button .category-icon{width:14px;height:14px;flex-basis:14px}
}


/* The first response and the interactive gallery share this compact introduction. */
.world-static-brand{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;border-bottom:1px solid #252a30;padding:12px 3%}
.world-static-brand nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.world-static-brand nav a{font-size:.875rem;font-weight:400;padding:8px 0}
.world-static-brand a{display:inline-flex;align-items:center;gap:.75rem;color:#fff;text-decoration:none;font-size:1.1rem;font-weight:600}
.world-static-brand small{display:block;font-size:.68rem;font-weight:400;letter-spacing:.07em}
.world-home-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 16px;
  margin-block: 0 8px;
  font-size: .8125rem;
  line-height: 1.6;
}
.world-home-examples strong { color: #c5ccd3; font-weight: 500; }
.world-home-examples a { color: #b6cef3; text-underline-offset: .18em; }
.world-home-examples a:hover { color: #fff; }
#explore[data-github-creators-open] > .world-home-examples { display: none; }
#explore .world-home-guides{margin:0 0 6px;color:#aab3bd;font-size:12px}
.world-home-guides summary{display:list-item;cursor:pointer;list-style-position:inside;width:fit-content;padding:5px 6px;border-radius:8px}
.world-home-guides summary:hover,.world-home-guides a:hover{color:#fff}
.world-home-guides nav{padding:6px 0 10px}
.world-home-guides a{color:inherit;text-decoration:underline;text-underline-offset:.19em}
.world-guide-links{display:flex;flex-wrap:wrap;gap:.55rem 1.05rem;margin-top:.6rem}
#explore .card-main{text-decoration:none}

:is(#explore,#creator) .study-card .card-added-date {
  order: 2;
  margin: 5px 11px 0;
  color: #aab3bd;
  font-size: .73rem;
  line-height: 1.45;
}
#explore .gallery[data-view="names"] .study-card .card-added-date { margin: 0 11px 5px; }
@media (max-width: 760px) {
  :is(#explore,#creator) .study-card .card-added-date { margin-inline: 8px; }
}
