/* Project discovery surfaces share the Cinematic Maker palette. */
.catalog-page,.category-page{--pc-paper:#f6f2e9;--pc-ink:#111613;--pc-muted:#565c55;--pc-rule:#8a8d81;--pc-accent:#ecf45c;--pc-surface:#fffdf7;--surface-card:var(--pc-surface);--color-dark-surface:var(--pc-surface)}
html[data-theme="dark"] :is(.catalog-page,.category-page){--pc-paper:#141b19;--pc-ink:#f2f4eb;--pc-muted:#bac4b9;--pc-rule:#76857b;--pc-surface:#1b2520}
html[data-theme] :is(.catalog-page,.category-page),html[data-theme] :is(.catalog-page,.category-page) main{background:var(--pc-paper);color:var(--pc-ink)}
:is(.catalog-page,.category-page) .nav-spotlight{display:none}
:is(.catalog-page,.category-page) :is(h1,h2,h3){color:var(--pc-ink)}
html[data-theme] :is(.catalog-page,.category-page) .site-nav-sticky,html[data-theme] :is(.catalog-page,.category-page) .site-nav-sticky.is-scrolled{background:#080d0e;border-color:#38433d;backdrop-filter:none}
:is(.catalog-page,.category-page) .top-nav{background:#080d0e}
:is(.catalog-page,.category-page) .top-nav a{color:#f6f2e9}
:is(.catalog-page,.category-page) .top-nav a:is(.active,:hover){background:#ecf45c;color:#111613;border-color:#ecf45c}
:is(.catalog-page,.category-page) .site-logo-img{background:#f6f2e9;border-radius:4px;padding:4px}
:is(.catalog-page,.category-page) :is(.header-search,.header-search button,.header-actions .icon-btn,.nav-toggle){background:#17211c;border-color:#7c8980;color:#f6f2e9}
:is(.catalog-page,.category-page) .header-search input{color:#f6f2e9}
:is(.catalog-page,.category-page) .header-search input::placeholder{color:#e5e9df;opacity:1}
:is(.catalog-page,.category-page) .nav-toggle span{background:#f6f2e9}
.catalog-page .catalog-intro{padding-top:4rem;padding-bottom:2rem;max-width:1240px}
.catalog-page .catalog-intro h1{font-size:clamp(2.6rem,5vw,4.6rem);letter-spacing:-.055em;line-height:1.06;margin:.8rem 0 1.3rem}
.catalog-page .catalog-intro>p:last-child{max-width:65ch;color:var(--pc-muted);font-size:1.08rem}
.catalog-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.catalog-content{max-width:1240px;padding-bottom:3rem}
.catalog-filters{padding:1.5rem 0;border-block:1px solid var(--pc-rule);margin-bottom:2rem}
.catalog-controls{display:grid;grid-template-columns:2fr 1.2fr 1.1fr 1fr auto;gap:1rem;align-items:end}
.catalog-controls label{display:flex;flex-direction:column;gap:.5rem;min-width:0;color:var(--pc-ink);font-weight:600;font-size:.88rem}
.catalog-controls :is(input,select,button),.catalog-controls+button{min-height:46px;max-width:100%;width:100%;border:1px solid var(--pc-rule);background:var(--pc-surface);color:var(--pc-ink);border-radius:3px;padding:.6rem;font:inherit}
.catalog-controls input::placeholder{color:var(--pc-muted);opacity:1}
.catalog-controls>button,.catalog-page #projects-load-more{min-height:46px;background:#ecf45c;color:#111613;border:1px solid #5b6223;border-radius:3px;padding:.65rem .9rem;font-weight:700;cursor:pointer}
.catalog-page #count{color:var(--pc-muted);margin:1rem 0 0}
.catalog-page .grid-projects{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card){background:var(--pc-surface);color:var(--pc-ink);border:1px solid var(--pc-rule);border-radius:4px;box-shadow:none;transform:none;text-decoration:none}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card):hover{border-color:var(--pc-ink);transform:none;box-shadow:none}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) .card-media-wrap{aspect-ratio:16/10;height:auto}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) .card-media,html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) .card-media-img{height:100%;width:100%;object-fit:cover}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) .card-body{padding:1.25rem}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) h3{font-size:1.25rem;line-height:1.3;letter-spacing:-.025em}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) .card-desc{color:var(--pc-muted);line-height:1.6}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) .badge{background:var(--pc-paper);color:var(--pc-ink);border:1px solid var(--pc-rule);border-radius:3px}
html[data-theme] :is(.catalog-page,.category-page) :is(.project-card,.post-card) .btn-card{background:transparent;color:var(--pc-ink);border:0;padding-inline:0}
.catalog-categories{border-block:1px solid var(--pc-rule);padding:1rem 0;margin:2rem 0;color:var(--pc-ink)}
.catalog-categories summary{font-weight:650;cursor:pointer;padding:.5rem 0}
.catalog-categories nav{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;padding:1rem 0}
.catalog-categories nav a[aria-current="page"]{font-weight:750;text-decoration-thickness:3px}
.catalog-categories nav a{color:var(--pc-ink);text-decoration:underline;text-underline-offset:4px}
.category-page .layout-with-sidebar{display:flex;flex-direction:column}
.category-page .main-with-sidebar{min-width:0;width:100%}
.category-page .catalog-categories{width:100%;margin:1rem 0}
.category-page .category-banner{background:#080d0e;color:#f6f2e9}
.category-page .category-banner :is(h1,p,a,.breadcrumb){color:#f6f2e9}
:is(.catalog-page,.category-page) footer.site-footer{background:#080d0e;color:#f6f2e9}
:is(.catalog-page,.category-page) footer :is(p,a){color:#c0c9bd}
:is(.catalog-page,.category-page) footer strong{color:#f6f2e9}
:is(.catalog-page,.category-page) footer :is([data-cookie-settings],[data-ad-privacy]){background:#17211c;color:#f6f2e9;border-color:#7c8980}
:is(.catalog-page,.category-page) :is(a,button,input,select,summary):focus-visible{outline:3px solid #736139;outline-offset:4px}
html[data-theme="dark"] :is(.catalog-page,.category-page) :is(a,button,input,select,summary):focus-visible,:is(.catalog-page,.category-page) .site-nav-sticky :focus-visible{outline-color:#ecf45c}
@media(max-width:1000px){.catalog-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-controls label:first-child{grid-column:1/-1}.catalog-page .grid-projects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.catalog-page .catalog-intro{padding-top:2.5rem}.catalog-controls{gap:.8rem}.catalog-page .grid-projects{grid-template-columns:1fr}.catalog-controls>button{grid-column:1/-1}.catalog-categories nav{flex-direction:column}}

/* Keep legacy theme selectors from overriding the scoped discovery surfaces. */
html[data-theme] :is(.catalog-page,.category-page) :is(.catalog-categories nav,.section-block){background:var(--pc-paper);color:var(--pc-ink)}
html[data-theme] .category-page .section-block a:not(.card):not(.modern-card){color:var(--pc-ink);text-decoration:underline;text-underline-offset:3px}
html[data-theme] :is(.catalog-page,.category-page) .catalog-categories nav a{color:var(--pc-ink)}
