/* Collection page shares the homepage's dark palette and motion system. */
.directory-page [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.directory-page .site-header nav a[aria-current] { color: var(--blue); }
.directory-page .site-header nav a[aria-current]::after { transform: scaleX(1); }
.directory-main { padding-top: 26px; }
.directory-main .workspace-path { margin-bottom: 62px; }
.directory-intro { display: flex; justify-content: space-between; align-items: center; gap: 70px; padding-bottom: 64px; }
.directory-heading h1 { font-size: clamp(54px,6vw,78px); margin-top: 24px; letter-spacing: -.065em; line-height: 1.06; }
.directory-heading h1 em { font: .9em/1.15 var(--mono); letter-spacing: -.07em; color: var(--blue); }
.directory-lead { margin-top: 25px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.collection-note { width: 315px; flex-shrink: 0; border: 1px solid #344250; border-radius: 10px; background: #101820e8; transform: rotate(2deg); box-shadow: 0 20px 60px #0003; font-family: var(--mono); }
.note-tab { padding: 12px 17px; background: #1b2430; border-radius: 9px 9px 0 0; border-bottom: 1px solid #344250; font-size: 11px; color: #b7c6d7; }
.note-tab span { margin-right: 10px; }
.collection-note dl { margin: 0; padding: 18px 20px 0; }
.collection-note dl>div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 0; }
.collection-note dt { font-size: 11px; color: #a1b4c6; }
.collection-note dd { margin: 0; font-size: 23px; color: #c4a5fa; }
.collection-note dd.syntax-green { color: var(--blue); }
.collection-note p { padding: 12px 20px 22px; font-size: 10px; color: #7e9a92; }
.directory-browser { border: 1px solid #303e4c; border-radius: 12px; background: #10161eef; box-shadow: 0 24px 70px #0002; }
.directory-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #303e4c; border-radius: 11px 11px 0 0; background: #19222d; padding-right: 25px; }
.directory-tab { display: flex; align-items: center; gap: 12px; background: #10161e; padding: 15px 24px; border-radius: 11px 0 0 0; border-right: 1px solid #303e4c; box-shadow: inset 0 2px var(--blue); }
.directory-tab h2 { font: 12px var(--mono); letter-spacing: 0; }
.folder-mark { color: var(--blue); font-size: 25px; line-height: 1; }
.tab-count { font: 10px var(--mono); background: #273544; border-radius: 4px; padding: 2px 6px; color: #a3b6c8; }
.browser-caption { font: 10px var(--mono); color: #8a9bae; }
.directory-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 26px 25px 20px; }
.filter-group { display: flex; gap: 6px; }
.filter-group button { cursor: pointer; border: 1px solid transparent; border-radius: 6px; padding: 8px 12px; background: transparent; color: #a8b7c8; font: 12px var(--mono); transition: background .25s, border-color .25s, color .25s; }
.filter-group button span { color: #789088; margin-left: 5px; font-size: 10px; }
.filter-group button:hover { background: #1b2931; color: #ddf2e9; }
.filter-group button[aria-pressed='true'] { background: #19382d; border-color: #315448; color: #a2efcc; }
.filter-group button[aria-pressed='true'] span { color: #83b99f; }
.directory-search { display: flex; align-items: center; min-width: 0; width: 285px; border: 1px solid #344655; background: #0c131b; border-radius: 6px; padding-inline: 11px; gap: 8px; }
.directory-search:focus-within { border-color: #70e0bb; box-shadow: 0 0 0 3px #70e0bb12; }
.directory-search label { color: #88a395; font-size: 25px; line-height: 1; }
.directory-search input { font: 12px var(--mono); color: #deebf3; width: 100%; min-width: 0; height: 38px; border: 0; background: transparent; outline: none; }
.directory-search input::placeholder { color: #7d8fa4; }
.directory-search input::-webkit-search-cancel-button { display: none; }
#clear-search { background: none; border: 0; cursor: pointer; color: #a6b8c6; font-size: 20px; padding: 0 4px; }
.collection-summary { display: flex; justify-content: space-between; gap: 15px; padding: 0 25px 20px; font-size: 11px; color: #92a4b9; }
.directory-controls[hidden]+.collection-summary { padding-top: 25px; }
#results-count { min-width: 0; overflow-wrap: anywhere; }
.collection-summary>span { font-family: var(--mono); font-size: 10px; color: #7d919f; }
.app-grid { padding: 0 25px 26px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.app-card { --accent: #70e0bb; --tint: #18332c; --tile: #122921; position: relative; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(145deg, var(--tile), #131c27 43%); padding: 23px; border: 1px solid #2b3a49; border-radius: 10px; isolation: isolate; transform: perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.tone-violet { --accent: #c4a5fa; --tint: #312844; --tile: #241e36; }
.tone-rose { --accent: #ef9cb5; --tint: #3c2839; --tile: #2c1c29; }
.tone-amber { --accent: #e9c084; --tint: #3b3428; --tile: #2b251b; }
.tone-cyan { --accent: #83cdeb; --tint: #223b49; --tile: #192c38; }
.app-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(330px circle at var(--pointer-x,50%) var(--pointer-y,50%), #b7fce514, transparent 65%); transition: opacity .3s; z-index: -1; }
.app-card:hover::before { opacity: 1; }
.app-card:hover, .app-card:focus-within { border-color: var(--accent); box-shadow: 0 14px 30px #0003; }
.app-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-artwork { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--tint); box-shadow: 0 5px 15px #0002; overflow: hidden; }
.app-artwork img { width: 100%; height: 100%; object-fit: cover; }
.app-monogram { display: grid; place-items: center; height: 100%; color: var(--accent); font: 18px var(--mono); letter-spacing: -.05em; border: 1px solid #ffffff13; border-radius: inherit; background-image: radial-gradient(#ffffff12 1px,transparent 1px); background-size: 8px 8px; }
.app-category { font: 9px/1.6 var(--mono); color: var(--accent); text-align: right; }
.app-card h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.035em; }
.app-card h3 a { display: inline; }
.app-title-arrow { display: inline-block; font-size: 17px; color: #6c8796; margin-left: 9px; transition: color .3s, transform .3s; }
.app-card h3 a:hover .app-title-arrow { color: var(--accent); transform: translate(2px,-2px); }
.app-description { color: #a3b1c2; font-size: 13px; line-height: 1.85; margin-top: 12px; margin-bottom: 25px; }
.app-card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid #2b3945; padding-top: 16px; font-size: 11px; }
.app-support { color: var(--accent); font-weight: 600; }
.app-support span { margin-left: 6px; display: inline-block; transition: transform .25s; }
.app-support:hover span { transform: translate(2px,-2px); }
.app-card-bottom nav { display: flex; gap: 14px; color: #96a7b9; }
.app-card-bottom nav a:hover { color: #e6edf3; text-decoration: underline; text-underline-offset: 4px; }
.empty-state { padding: 56px 20px 72px; text-align: center; }
.empty-state>span { font: 34px var(--mono); color: #628276; }
.empty-state h3 { font-size: 29px; margin-top: 20px; }
.empty-state p { color: var(--muted); font-size: 14px; margin-top: 14px; }
#reset-filters { margin-top: 24px; color: #a2efcc; border: 1px solid #365f4e; background: #19382d; border-radius: 6px; padding: 9px 14px; cursor: pointer; font-size: 12px; }
.directory-status { border-top: 1px solid #293742; padding: 12px 25px; display: flex; justify-content: space-between; gap: 15px; font: 9px/1.5 var(--mono); color: #8799ac; }
.directory-help { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 75px 0; }
.directory-help .eyebrow { color: #8d9cad; font-size: 9px; }
.directory-help h2 { font-size: 44px; margin-top: 20px; }
.directory-help h2 em { color: var(--blue); }
.directory-help p:not(.eyebrow) { margin-top: 20px; font-size: 14px; color: var(--muted); }
.directory-help .contact-link { white-space: nowrap; font-size: 18px; }
.directory-page .site-footer { border-top: 1px solid var(--line); }
[data-motion='off'] .app-card { transform: none; }
@media(max-width:1000px) { .app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .directory-intro { gap: 40px; } .collection-note { width: 275px; } .directory-heading h1 { font-size: 61px; } }
@media(max-width:700px) {
 .directory-page .site-header nav a:first-child { display: none; }
 .directory-main { padding-top: 20px; } .directory-main .workspace-path { margin-bottom: 38px; }
 .directory-intro { display: block; padding-bottom: 38px; } .directory-heading h1 { font-size: 55px; margin-top: 20px; }
 .directory-lead { font-size: 14px; margin-top: 22px; } .directory-lead br { display: none; }
 .collection-note { width: 100%; margin-top: 30px; transform: none; } .note-tab { padding: 10px 14px; }
 .collection-note dl { display: flex; justify-content: space-between; gap: 15px; padding: 16px 14px; }
 .collection-note dl>div { flex-direction: column-reverse; gap: 3px; padding: 0; align-items: flex-start; }
 .collection-note dt { font-size: 8px; } .collection-note dd { font-size: 22px; } .collection-note p { display: none; }
 .directory-tabbar { padding-right: 15px; } .directory-tab { padding: 13px 15px; gap: 8px; } .browser-caption { font-size: 8px; }
 .directory-controls { padding: 19px 15px 17px; gap: 15px; } .directory-search { width: 100%; }
 .filter-group { width: 100%; justify-content: space-between; } .filter-group button { padding: 8px 11px; font-size: 11px; }
 .collection-summary { padding: 0 15px 17px; font-size: 10px; } .collection-summary>span { display: none; }
 .app-grid { grid-template-columns: minmax(0,1fr); padding: 0 15px 19px; gap: 14px; }
 .app-card { padding: 21px; } .app-card-top { margin-bottom: 18px; } .app-description { margin-bottom: 23px; }
 .directory-status { padding: 12px 15px; font-size: 8px; } .directory-status>span:last-child { display: none; }
 .directory-help { padding: 50px 0; display: block; } .directory-help h2 { font-size: 40px; }
 .directory-help .contact-link { margin-top: 25px; font-size: 18px; }
}
@media(max-width:370px) { .directory-heading h1 { font-size: 48px; } .app-card { padding: 18px; } .app-category { font-size: 8px; } .collection-note dl { gap: 10px; } .collection-note dt { font-size: 7px; } .browser-caption { display: none; } .app-card h3 { font-size: 21px; } }
@media(prefers-reduced-motion:reduce) { .app-card { transform: none !important; } }
