:root{
  --midnight:#0E1830; --navy:#16233F; --cream:#FAF6ED; --ivory:#FAF7F0;
  --amber:#E8A33D; --gold:#B58520; --coral:#FF6B57; --ink:#1D1D1F;
  --slate:#6E6E73; --green:#1A8917; --line:#E7DFCE;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
.top { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.topbar { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand { font-size: 19px; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.sibnav { margin-left: auto; display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.sibnav a { color: var(--slate); text-decoration: none; }
.sibnav a.on { color: var(--navy); }
.sibnav a:hover { color: var(--navy); }
.pagehero { text-align: center; padding: 64px 0 8px; }
.pagehero .mark { font-size: 58px; line-height: 1; }
.pagehero h1 { font-size: 56px; line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: var(--navy); margin: 22px 0 0; }
.pagehero h1 .amber { color: var(--amber); }
.lede { margin: 16px auto 0; font-size: 18.5px; color: #4A4A4F; max-width: 620px; line-height: 1.55; }
.searchrow { margin: 34px auto 0; max-width: 820px; display: flex; align-items: center; background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 10px 10px 10px 32px; box-shadow: 0 16px 40px rgba(14,24,48,.10); }
#search { flex: 1; border: none; font-size: 20px; font-family: inherit; color: var(--ink); background: transparent; outline: none; -webkit-appearance: none; appearance: none; min-width: 0; }
#search::placeholder { color: #9A9AA0; }
#searchbtn { border: none; cursor: pointer; background: var(--amber); color: var(--midnight); font-size: 18px; font-weight: 800; padding: 17px 38px; border-radius: 999px; font-family: inherit; }
#searchbtn:hover { background: #D8942A; }
.stats { margin-top: 26px; font-size: 16px; color: var(--slate); font-weight: 600; }
.stats b { color: var(--navy); font-weight: 800; }
.stats .sep { margin: 0 10px; color: #CFC6AC; }
.stats .free, .stats .free b { color: var(--green); }
.tagline { color: var(--slate); font-size: 16.5px; margin: 8px auto 0; max-width: 640px; }
.chips { display: none; }
main { max-width: 1240px; margin: 0 auto; padding: 18px 40px; }
h2.viewtitle { font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: 14px 0 4px; }
.count { color: var(--slate); margin: 0 0 14px; }
.count a { color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; }
.cardmain { text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--gold); }
.selbtn { position: absolute; top: 8px; left: 8px; z-index: 2; font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.selbtn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.selbar .btn { padding: 8px 14px; font-size: 14.5px; }
.selbar .btn.go { background: var(--navy); color: #fff; border-color: var(--navy); }
.selcount { color: var(--slate); font-size: 15px; min-width: 92px; }
.card .thumbwrap { height: 148px; display: flex; align-items: center; justify-content: center; background: #F3EEE1; padding: 10px; }
.card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .meta { padding: 9px 11px 11px; }
.card .t { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.card .lic { font-size: 12.5px; color: var(--slate); margin-top: 3px; }
.badge.grade { background: #FBEED3; color: #8A5A10; }
.badge.ai { background: var(--midnight); color: #FFD968; }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 26px; }
.herocard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.herocard:hover { border-color: var(--gold); }
.herowrap { display: flex; align-items: center; justify-content: center; background: var(--midnight); height: 300px; overflow: hidden; }
.herowrap img { width: 100%; height: 100%; object-fit: cover; }
.herometa { display: flex; align-items: center; gap: 6px; padding: 10px 13px 12px; }
.herometa .t { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 2px 7px; border-radius: 99px; background: #F1EAD8; color: var(--navy); margin-left: 6px; vertical-align: 2px; }
.detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } .pagehero h1 { font-size: 40px; } .top, main { padding-left: 18px; padding-right: 18px; } }
.preview { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.preview img { max-width: 100%; max-height: 480px; }
.dl { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 10px; font-size: 15.5px; border: 0; cursor: pointer; font-family: inherit; }
.btn.alt { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.licbox { background: #F2F7EC; border: 1px solid #D7E5C8; border-radius: 12px; padding: 13px 15px; font-size: 15px; }
.creditbox { background: #FBF8F1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; font-size: 13.5px; word-break: break-word; margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.tag { font-size: 13.5px; text-decoration: none; color: var(--slate); font-weight: 600; }
.tag:hover { color: var(--navy); text-decoration: underline; }
.back { display: inline-block; margin-bottom: 12px; color: var(--gold); font-weight: 600; }
.foot { max-width: 1240px; margin: 10px auto 0; padding: 18px 40px 30px; color: var(--slate); font-size: 14px; border-top: 1px solid var(--line); }
.foot b { color: var(--navy); }
.empty { text-align: center; color: var(--slate); padding: 42px 0; font-size: 17px; }

/* Dave, Oct 17 2026: Browse everything cards go big and edge to edge. */
.browsefull { width: 100vw; margin-left: calc(50% - 50vw); padding: 0 14px; }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card.big .thumbwrap { height: 210px; padding: 0; display: block; }
.card.big .thumbwrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card.big .thumbwrap img.cover { object-fit: cover; }
.card.big .meta { display: block; padding: 12px 14px 14px; }
.card.big .t { font-size: 15.5px; }

/* Dave, Oct 17 2026: AI note on cards is tiny plain text, no pill or chip. */
.ainote { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; color: #8E8E93; background: none; padding: 0; letter-spacing: 0; }

/* Clear Image redesign (v9-final): license chips + newest row */
.card .lic, .newcard .lic { display: inline-block; margin-top: 7px; font-size: 12px; font-weight: 700; color: var(--green); background: #EAF5EA; border-radius: 6px; padding: 3px 8px; }
.card .lic.cc, .newcard .lic.cc { color: var(--gold); background: #FBF3DF; }
.newest { width: 100vw; margin-left: calc(50% - 50vw); padding: 26px 14px 6px; }
.newest-head { display: flex; align-items: baseline; gap: 16px; }
.newest-head h2 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: 0; }
.newest-head a { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--gold); text-decoration: none; }
.newest-head a:hover { text-decoration: underline; }
.newgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 24px; }
.newcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.newcard:hover { border-color: var(--gold); }
.newcard img { width: 100%; height: 196px; object-fit: cover; display: block; }
.newcard .meta { display: block; padding: 13px 16px 15px; }
.newcard .meta b { display: block; font-size: 15.5px; color: var(--navy); }
